getloadavg: Return 0 on Windows without Cygwin.
[gnulib.git] / ChangeLog
blobdd0f58d8ee1f2e2ea44b893052e7b31f57290a72
1 2018-06-17  Bruno Haible  <bruno@clisp.org>
3         getloadavg: Return 0 on Windows without Cygwin.
4         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
6 2018-06-17  Paul Smith  <psmith@gnu.org>
8         getloadavg: Allow building on Windows without Cygwin
9         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
10         * m4/getloadavg.m4: Check for unistd.h.
12 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
14         Port crypto/af_alg to GCC 4.8.4
15         Problem reported by Peter Simons in:
16         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
17         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
19 2018-05-27  Colin Watson  <cjwatson@debian.org>
21         bootstrap: document source fetching in --help
22         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
24 2018-04-09  Colin Watson  <cjwatson@debian.org>
26         bootstrap: allow non-submodule control of gnulib
27         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
28         bootstrap.conf when fetching gnulib using "git clone" or via
29         GNULIB_SRCDIR.
31 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
33         crypto: omit stream ops Emacs doesn’t need
34         * lib/md5.c (md5_stream):
35         * lib/sha1.c (sha1_stream):
36         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
37         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
38         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
39         defined.  Emacs needs this, as it does not use the stream
40         operations and doesn’t need all the af_alg stuff we’ve recently
41         added.  Perhaps a similar change is needed to the other crypto
42         modules, but this patch changes only those needed for Emacs.
43         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
44         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
45         New modules, used by Emacs.
46         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
47         * modules/crypto/sha512: Rewrite to depend on the new modules.
49 2018-05-20  Pádraig Brady  <P@draigBrady.com>
51         fts: avoid a memory leak edge case
52         * lib/fts.c (fts_open): Set an appropriate fts_level
53         so that an immediate fts_close() will free the allocation.
54         * tests/test-fts.c (fts_dealloc): Add a test case which
55         will trigger under valgrind or address sanitizer.
56         Fixes https://bugs.gnu.org/31439
58 2018-05-20  Bruno Haible  <bruno@clisp.org>
60         wcwidth tests: Fix link error.
61         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
62         $(LIBUNISTRING).
64 2018-05-20  Bruno Haible  <bruno@clisp.org>
66         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
67         * modules/regex (Files): Add m4/glibc21.m4.
69 2018-05-20  Bruno Haible  <bruno@clisp.org>
71         localcharset: Optimize.
72         * lib/localcharset.c (alias_table): Comment out no-op mappings for
73         platforms where these don't matter. This reduces the table size,
74         which in turn reduces the lookup time.
76 2018-05-19  Bruno Haible  <bruno@clisp.org>
78         localcharset: Map the locale encodings found in newer OSes.
79         * lib/localcharset.c (alias_table): Add mapping for locale encodings
80         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
81         IRIX 6.5, Minix 3.3.
82         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
84 2018-05-19  Bruno Haible  <bruno@clisp.org>
86         localcharset: Move mapping tables into the code. Use a binary search.
87         * lib/localcharset.h: Document the GNU canonical names for character
88         encodings here.
89         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
90         relocatable.h, configmake.h.
91         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
92         macros.
93         (charset_aliases): Remove variable.
94         (get_charset_aliases): Remove function.
95         (struct table_entry): New type.
96         (alias_table, locale_table): New constants.
97         (locale_charset): Use the alias_table or locale_table to get the
98         canonicalized encoding name.
99         * lib/config.charset: Remove file.
100         * lib/ref-add.sin: Remove file.
101         * lib/ref-del.sin: Remove file.
102         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
103         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
104         * modules/localcharset (Notice): Remove.
105         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
106         glibc21.m4.
107         (Depends-on): Remove configmake.
108         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
109         (Makefile.am): Simplify.
110         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
112 2018-05-19  Bruno Haible  <bruno@clisp.org>
114         localcharset: Add a manual test.
115         * tests/test-localcharset.c: New file.
116         * modules/localcharset-tests: New file.
118 2018-05-19  Bruno Haible  <bruno@clisp.org>
120         localcharset: Remove support for obsolete platforms.
121         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
122         Mac OS X 10.2. Comment out dubious entry for Solaris.
124 2018-05-19  Jim Meyering  <meyering@fb.com>
126         gnupload: adjust comment
127         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
128         more likely we'll remove the just-added code in a year or two.
130 2018-05-19  Bruno Haible  <bruno@clisp.org>
132         gnupload: Fix "gpg-agent is not available in this session" error.
133         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
135 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
137         crypto/af_alg: fix --help
138         * m4/af_alg.m4: Avoid spurious newline in --help output.
140 2018-05-13  Bruno Haible  <bruno@clisp.org>
142         nl_langinfo: Fix compilation error on Android.
143         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
144         INT_CURR_SYMBOL, etc. only if these items are defined.
146 2018-05-13  Bruno Haible  <bruno@clisp.org>
148         truncate: Fix compilation error on Android.
149         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
150         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
151         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
152         HAVE_TRUNCATE.
153         * modules/truncate: Likewise.
154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
155         not HAVE_TRUNCATE.
156         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
157         HAVE_TRUNCATE.
158         * doc/posix-functions/truncate.texi: Mention the issue.
160 2018-05-13  Bruno Haible  <bruno@clisp.org>
162         pthread: Fix compilation error on Android.
163         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
164         recursive inclusion of this file.
166 2018-05-13  Bruno Haible  <bruno@clisp.org>
168         posix_spawn: Fix compilation error on Android.
169         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
170         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
171         (posix_spawn_file_actions_t): Consider also the case
172         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
174 2018-05-13  Bruno Haible  <bruno@clisp.org>
176         tsearch: Move from K&R C to ANSI C.
177         * lib/tsearch.c (tfind): Convert definition to ANSI C.
179 2018-05-13  Bruno Haible  <bruno@clisp.org>
181         tsearch: Fix compilation error on Android.
182         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
183         is 0.
184         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
185         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
186         GNULIB_defined_tsearch is true.
187         (twalk): Define only if GNULIB_defined_twalk is true.
188         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
189         is 0.
190         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
191         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
192         * modules/search (Makefile.am): Substitute HAVE_TWALK.
194 2018-05-13  Bruno Haible  <bruno@clisp.org>
196         imaxdiv: Fix compilation error on Android.
197         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
198         is not defined.
199         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
200         HAVE_DECL_IMAXDIV, is 0.
201         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
202         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
204 2018-05-13  Bruno Haible  <bruno@clisp.org>
206         Support selective inclusion mechanism of recent mingw.org header files.
207         Reported by Eli Zaretskii <eliz@gnu.org>.
208         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
209         __need_ssize_t, or __need_time_t is defined, just include the system's
210         <sys/types.h>.
211         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
212         include the system's <locale.h>.
214 2018-05-13  Bruno Haible  <bruno@clisp.org>
216         Avoid compilation error due to 'mmap' on Android.
217         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
218         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
219         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
220         Undefine on Android.
222 2018-05-13  Bruno Haible  <bruno@clisp.org>
224         Add cross-compilation guesses for Linux systems without glibc.
225         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
227         * m4/link.m4 (gl_FUNC_LINK): Likewise.
228         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
229         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
230         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
231         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
232         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
233         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
234         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
235         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
236         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
237         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
238         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
239         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
240         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
241         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
242         * m4/utimens.m4 (gl_UTIMENS): Likewise.
244 2018-05-13  Bruno Haible  <bruno@clisp.org>
246         getpagesize: Fix compilation error on Android.
247         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
248         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
249         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
250         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
251         HAVE_GETPAGESIZE accordingly.
252         * modules/getcwd (Files): Add m4/getpagesize.m4.
254 2018-05-13  Bruno Haible  <bruno@clisp.org>
256         tcgetsid: Fix compilation error on Android.
257         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
258         AC_CHECK_FUNC.
260 2018-05-13  Bruno Haible  <bruno@clisp.org>
262         getpass: Fix configure test for Android.
263         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
264         AC_CHECK_FUNC.
266 2018-05-13  Bruno Haible  <bruno@clisp.org>
268         ffs: Fix compilation error on Android.
269         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
271 2018-05-13  Bruno Haible  <bruno@clisp.org>
273         mkfifo: Fix compilation error on Android.
274         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
275         AC_CHECK_FUNC.
277 2018-05-13  Bruno Haible  <bruno@clisp.org>
279         c-strtod: Fix configure test for Android.
280         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
281         AC_CHECK_FUNC.
283 2018-05-13  Bruno Haible  <bruno@clisp.org>
285         random: Fix compilation error on Android.
286         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
287         AC_CHECK_FUNC.
289 2018-05-13  Bruno Haible  <bruno@clisp.org>
291         grantpt: Fix compilation error on Android.
292         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
293         AC_CHECK_FUNC.
295 2018-05-13  Bruno Haible  <bruno@clisp.org>
297         stdioext: Fix compilation errors with newer Android headers.
298         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
299         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
300         fallbacks for Android.
301         * lib/fpending.c: Update comments.
302         * lib/fpurge.c: Likewise.
303         * lib/freadable.h: Likewise.
304         * lib/freadable.c: Likewise.
305         * lib/freadahead.c: Likewise.
306         * lib/freading.h: Likewise.
307         * lib/freadptr.c: Likewise.
308         * lib/fseterr.c: Likewise.
309         * lib/fwritable.h: Likewise.
310         * lib/fwritable.c: Likewise.
311         * lib/fwriting.h: Likewise.
312         * lib/fwriting.c: Likewise.
314 2018-05-13  Bruno Haible  <bruno@clisp.org>
316         doc: Add info about Android versions 2.0 to 8.1.
317         * doc/**/*.texi: Add info about functions in all released versions of
318         Bionic.
320 2018-05-12  Bruno Haible  <bruno@clisp.org>
322         fseeko: On mingw, don't use the hidden function _fseeki64.
323         Reported by Eli Zaretskii <eliz@gnu.org>.
324         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
325         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
327 2018-05-12  Bruno Haible  <bruno@clisp.org>
329         glob: Choose 'dirent_type' in a way that works better on mingw.
330         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
331         * lib/glob.c (dirent_type): Define as uint_fast32_t.
333 2018-05-12  Bruno Haible  <bruno@clisp.org>
335         execute, spawn-pipe: Avoid warning about redefining 'close'.
336         Reported by Eli Zaretskii <eliz@gnu.org>.
337         * lib/execute.c: Undefine 'close' before redefining it.
338         * lib/spawn-pipe.c: Likewise.
340 2018-05-12  Bruno Haible  <bruno@clisp.org>
342         nanosleep: Avoid test failure on mingw when it has nanosleep.
343         Reported by Eli Zaretskii <eliz@gnu.org>.
344         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
345         If it does not exist, use a simpler test program that does not call
346         alarm().
348 2018-05-10  Bruno Haible  <bruno@clisp.org>
350         lock, cond, thread, tls: Use a different symbol as libpthread witness.
351         Reported by Devin Hussey <husseydevin@gmail.com>.
352         Based on a patch by Paul Eggert.
353         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
354         as witness of libpthread.
355         * lib/glthread/cond.h (pthread_in_use): Likewise.
356         * lib/glthread/thread.h (pthread_in_use): Likewise.
357         * lib/glthread/tls.h (pthread_in_use): Likewise.
359 2018-05-10  Bruno Haible  <bruno@clisp.org>
361         cond tests: Fix compilation error on Solaris.
362         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
363         macro.
365 2018-05-10  Bruno Haible  <bruno@clisp.org>
367         doc: Add partial info about Android 4.3.
368         * doc/*-functions/*.texi: Add info about functions that were added
369         to Bionic between Android 4.3 and Android 9.0.
371 2018-05-10  Bruno Haible  <bruno@clisp.org>
373         doc: Add info about Android 9.0.
374         * doc/**/*.texi: Add info about functions and headers in Bionic from
375         Android 9.0.
377 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
379         af_alg: fix my typo in afalg_buffer
380         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
381         (afalg_stream): Simplify and avoid the need for a runtime test
382         at the end.
384         af_alg: recover better from crypto failures
385         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
386         input stream is seekable, by repositioning the stream back to
387         where it was, possibly by just calling sendfile with an offset
388         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
389         cases, which lets our callers try again with user-mode code.
390         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
391         instead of on fflush and lseek.
393         af_alg: distiguish I/O errors better
394         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
395         not -EIO, if it’s OK for the caller to try again with user-mode code.
396         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
397         some other error number) if fflush fails, as the caller should not
398         try again that case.
400         af_alg: avoid gotos
401         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
402         gotos, as they were a source of unreliability and made the code a
403         bit harder to follow.
405         af_alg: don’t leak file descriptors into children
406         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
407         This code should be compiled only on recent GNU/Linux platforms
408         so we shouldn’t have to also depend on the accept4 module.
410         af_alg: coalesce socket creation
411         * lib/af_alg.c (alg_socket): New function.
412         (afalg_buffer, afalg_stream): Use it.  This avoids some
413         code duplication and gotos.
415         af_alg: fix file descriptor leak
416         * lib/af_alg.c (afalg_stream): Close leak.
418         af_alg: Pacify --enable-gcc-warnings on GCC 8
419         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
420         and checking to pacify gcc -Wjump-misses-init on GCC 8.
422 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
424         af_alg: Pacify --enable-gcc-warnings
425         Problem reported by Assaf Gordon in:
426         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
427         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
428         gcc -Wjump-misses-init.
429         * lib/sha512.c (shaxxx_stream): Now static.
431 2018-05-06  Bruno Haible  <bruno@clisp.org>
433         af_alg: Add ability to use Linux kernel crypto API on data in memory.
434         * lib/af_alg.h (afalg_buffer): New declaration.
435         * lib/af_alg.c (afalg_buffer): New function.
437 2018-05-06  Bruno Haible  <bruno@clisp.org>
439         af_alg: Avoid warnings.
440         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
441         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
443 2018-05-06  Bruno Haible  <bruno@clisp.org>
445         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
446         * tests/bench-digest.h: New file.
447         * tests/bench-md5.c: New file.
448         * tests/bench-sha1.c: New file.
449         * tests/bench-sha224.c: New file.
450         * tests/bench-sha256.c: New file.
451         * tests/bench-sha384.c: New file.
452         * tests/bench-sha512.c: New file.
453         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
454         tests/bench-digest.h.
455         (Depends-on): Add getrusage, gettimeofday.
456         (Makefile.am): Add variables to build bench-md5.
457         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
458         tests/bench-digest.h.
459         (Depends-on): Add getrusage, gettimeofday.
460         (Makefile.am): Add variables to build bench-sha1.
461         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
462         tests/bench-sha256.c, tests/bench-digest.h.
463         (Depends-on): Add getrusage, gettimeofday.
464         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
465         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
466         tests/bench-sha512.c, tests/bench-digest.h.
467         (Depends-on): Add getrusage, gettimeofday.
468         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
470 2018-05-06  Bruno Haible  <bruno@clisp.org>
472         af_alg: Fix a resource leak.
473         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
474         New local variable 'result'.
476 2018-05-06  Bruno Haible  <bruno@clisp.org>
478         af_alg: Fix bug with streams that are not at position 0.
479         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
480         assume that the stream is positioned at position 0.
481         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
482         of the stream.
483         * lib/md5.h (md5_stream): Likewise.
484         * lib/sha1.h (sha1_stream): Likewise.
485         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
486         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
487         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
489         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
490         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
491         stream that is not positioned at the beginning.
493 2018-05-06  Bruno Haible  <bruno@clisp.org>
495         af_alg: Add configure option to enable/disable use of Linux crypto API.
496         Suggested by Assaf Gordon <assafgordon@gmail.com>.
497         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
498         USE_LINUX_CRYPTO_API.
499         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
500         * lib/af_alg.c: Likewise.
502 2018-05-06  Bruno Haible  <bruno@clisp.org>
504         Followup to 'af_alg: New module.'.
505         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
506         * modules/crypto/sha1 (Depends-on): Likewise.
507         * modules/crypto/sha256 (Depends-on): Likewise.
508         * modules/crypto/sha512 (Depends-on): Likewise.
510 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
512         crypto/{md5,sha1,sha256,sha512}: simplify
513         * lib/md5.c (md5_stream):
514         * lib/sha1.c (sha1_stream):
515         * lib/sha256.c (shaxxx_stream):
516         Simplify, partly by assuming C99.
517         * lib/sha256.c (shaxxx_stream):
518         New function, which implements both sha256 and sha224.
519         Simplify, partly by assuming C99.
520         (sha256_stream, sha224_stream):
521         Use it to avoid code duplication, removing a FIXME.
522         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
523         Likewise.
525         af_alg: Improve comments.
526         * lib/af_alg.h: Use imperatives and tighten up wording.
528 2018-05-05  Bruno Haible  <bruno@clisp.org>
530         af_alg: Improve comments.
531         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
533 2018-05-05  Bruno Haible  <bruno@clisp.org>
535         af_alg: New module.
536         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
537         * lib/af_alg.c: Include "af_alg.h" before the other header files.
538         * lib/md5.c: Include "af_alg.h" unconditionally.
539         (md5_stream): Invoke afalg_stream unconditionally.
540         * lib/sha1.c: Include "af_alg.h" unconditionally.
541         (sha1_stream): Invoke afalg_stream unconditionally.
542         * lib/sha256.c: Include "af_alg.h" unconditionally.
543         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
544         * lib/sha512.c: Include "af_alg.h" unconditionally.
545         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
546         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
547         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
548         * modules/crypto/af_alg: New file.
549         * modules/crypto/md5 (Files): Remove files that are now in the
550         'crypto/af_alg' module.
551         (Depends-on): Add crypto/af_alg.
552         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
553         (Makefile.am): Don't mention af_alg.c here.
554         * modules/crypto/sha1 (Files): Remove files that are now in the
555         'crypto/af_alg' module.
556         (Depends-on): Add crypto/af_alg.
557         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
558         (Makefile.am): Don't mention af_alg.c here.
559         * modules/crypto/sha256 (Files): Remove files that are now in the
560         'crypto/af_alg' module.
561         (Depends-on): Add crypto/af_alg.
562         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
563         (Makefile.am): Don't mention af_alg.c here.
564         * modules/crypto/sha512 (Files): Remove files that are now in the
565         'crypto/af_alg' module.
566         (Depends-on): Add crypto/af_alg.
567         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
568         (Makefile.am): Don't mention af_alg.c here.
570 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
572         crypto tests: pacify GCC
573         * tests/test-digest.h (test_digest_on_files):
574         Don’t assume digest size fits in int (!).
576         af_alg: minor style improvements
577         * lib/af_alg.c (afalg_stream): Prefer C99 style
578         decl-after-statement, since we’re already assuming C99.  Clarify
579         by strengthening the bind test and omit unnecessary assignment.
581 2018-05-05  Bruno Haible  <bruno@clisp.org>
583         af_alg: Fix bug on empty files.
584         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
585         stream is empty.
587 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
589         sys-limits.h: new file for crypto and safe I/O
590         * lib/af_alg.c: Include sys-limits.h.
591         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
592         (afalg_stream): Also reject negative sizes for sendfile; they
593         should not happen and the code is a bit cleaner and faster this way.
594         * lib/safe-read.c: Include sys-limits.h.
595         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
596         * lib/sys-limits.h: New file, with values and commentary derived
597         from the old safe-read.c and from GNU Emacs sysdep.c.
598         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
599         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
600         Add lib/sys-limits.h to Files section.
602 2018-05-05  Bruno Haible  <bruno@clisp.org>
604         af_alg: Improve function signature.
605         * lib/af_alg.h (afalg_stream): Swap second and third argument.
606         * lib/af_alg.c (afalg_stream): Likewise.
607         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
609 2018-05-05  Bruno Haible  <bruno@clisp.org>
611         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
612         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
613         * modules/crypto/sha1 (Depends-on): Likewise.
614         * modules/crypto/sha256 (Depends-on): Likewise.
615         * modules/crypto/sha512 (Depends-on): Likewise.
617 2018-05-05  Bruno Haible  <bruno@clisp.org>
619         crypto/{md5,sha1,sha256,sha512}: Fix module description.
620         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
621         * modules/crypto/sha1 (Depends-on): Likewise.
622         * modules/crypto/sha256 (Depends-on): Likewise.
623         * modules/crypto/sha512 (Depends-on): Likewise.
625 2018-05-05  Bruno Haible  <bruno@clisp.org>
627         af_alg: Add documentation.
628         * lib/af_alg.h: Add comments.
630 2018-05-05  Bruno Haible  <bruno@clisp.org>
632         sha512: Add tests.
633         * tests/test-sha512.c: New file.
634         * modules/crypto/sha512-tests: New file.
636 2018-05-05  Bruno Haible  <bruno@clisp.org>
638         sha256: Add tests.
639         * tests/test-sha256.c: New file.
640         * modules/crypto/sha256-tests: New file.
642 2018-05-05  Bruno Haible  <bruno@clisp.org>
644         sha1 tests: Add test for sha1_stream.
645         * tests/test-sha1.c: Include test-digest.h.
646         (main): Invoke test_digest_on_files on 'sha1_stream'.
647         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
649 2018-05-05  Bruno Haible  <bruno@clisp.org>
651         md5 tests: Add test for md5_stream.
652         * tests/test-digest.h: New file.
653         * tests/test-md5.c: Include test-digest.h.
654         (main): Invoke test_digest_on_files on 'md5_stream'.
655         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
657 2018-04-28  Matteo Croce  <mcroce@redhat.com>
659         md5sum: Use AF_ALG when available.
660         * lib/md5.c: Include af_alg.h.
661         (md5_stream): Use afalg_stream when available.
662         * modules/crypto/md5 (Files): Add the af_alg files.
663         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
664         (Makefile.am): Add af_alg.c.
666 2018-04-28  Matteo Croce  <mcroce@redhat.com>
668         sha512sum: Use AF_ALG when available.
669         * lib/sha512.c: Include af_alg.h.
670         (sha512_stream, sha384_stream): Use afalg_stream when available.
671         * modules/crypto/sha512 (Files): Add the af_alg files.
672         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
673         (Makefile.am): Add af_alg.c.
675 2018-04-28  Matteo Croce  <mcroce@redhat.com>
677         sha256sum: Use AF_ALG when available.
678         * lib/sha256.c: Include af_alg.h.
679         (sha256_stream, sha224_stream): Use afalg_stream when available.
680         * modules/crypto/sha256 (Files): Add the af_alg files.
681         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
682         (Makefile.am): Add af_alg.c.
684 2018-04-28  Matteo Croce  <mcroce@redhat.com>
686         sha1sum: Use AF_ALG when available.
687         * lib/af_alg.h: New file.
688         * lib/af_alg.c: New file.
689         * lib/sha1.c: Include af_alg.h.
690         (sha1_stream): Use afalg_stream when available.
691         * m4/linux-if-alg.m4: New file.
692         * modules/crypto/sha1 (Files): Add the new files.
693         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
694         (Makefile.am): Add af_alg.c.
696 2018-05-05  Bruno Haible  <bruno@clisp.org>
698         all: Replace more http URLs by https URLs.
699         * lib/localename.c: Use https: URL.
700         * lib/timespec.h: Likewise.
702 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
704         maint: port more modules to GCC 8
705         * lib/dirname.h (base_name):
706         * lib/exclude.h (new_exclude):
707         * lib/xstrndup.h (xstrndup):
708         Add malloc attribute.
709         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
710         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
711         This pacifies GCC 8.
712         * m4/gnulib-common.m4 (gl_COMMON_BODY):
713         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
715 2018-05-03  Bruno Haible  <bruno@clisp.org>
717         Simplify code. Drop support for Borland C++ on Windows.
718         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
719         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
720         'defined _WIN32'.
721         * lib/canonicalize-lgpl.c: Likewise.
722         * lib/classpath.c: Likewise.
723         * lib/clean-temp.c: Likewise.
724         * lib/csharpexec.c: Likewise.
725         * lib/ctime.c: Likewise.
726         * lib/dosname.h: Likewise.
727         * lib/dup2.c: Likewise.
728         * lib/errno.in.h: Likewise.
729         * lib/error.c: Likewise.
730         * lib/euidaccess.c: Likewise.
731         * lib/execute.c: Likewise.
732         * lib/fcntl.in.h: Likewise.
733         * lib/fcntl.c: Likewise.
734         * lib/filename.h: Likewise.
735         * lib/findprog.c: Likewise.
736         * lib/flock.c: Likewise.
737         * lib/fopen.c: Likewise.
738         * lib/freopen.c: Likewise.
739         * lib/fstat.c: Likewise.
740         * lib/fsync.c: Likewise.
741         * lib/gc-gnulib.c: Likewise.
742         * lib/get-rusage-data.c: Likewise.
743         * lib/getaddrinfo.c: Likewise.
744         * lib/getdelim.c: Likewise.
745         * lib/getdtablesize.c: Likewise.
746         * lib/gethostname.c: Likewise.
747         * lib/getlogin.c: Likewise.
748         * lib/getlogin_r.c: Likewise.
749         * lib/getopt.c: Likewise.
750         * lib/getpagesize.c: Likewise.
751         * lib/getpass.c: Likewise.
752         * lib/getrusage.c: Likewise.
753         * lib/gettimeofday.c: Likewise.
754         * lib/glob.c: Likewise.
755         * lib/inttypes.in.h: Likewise.
756         * lib/isapipe.c: Likewise.
757         * lib/javaexec.c: Likewise.
758         * lib/link.c: Likewise.
759         * lib/localcharset.c: Likewise.
760         * lib/localename.h: Likewise.
761         * lib/localename.c: Likewise.
762         * lib/localtime.c: Likewise.
763         * lib/lseek.c: Likewise.
764         * lib/mbsinit.c: Likewise.
765         * lib/mkdir.c: Likewise.
766         * lib/msvc-nothrow.h: Likewise.
767         * lib/nanosleep.c: Likewise.
768         * lib/nl_langinfo.c: Likewise.
769         * lib/nonblocking.c: Likewise.
770         * lib/nproc.c: Likewise.
771         * lib/open.c: Likewise.
772         * lib/openpty.c: Likewise.
773         * lib/pathmax.h: Likewise.
774         * lib/pipe-filter-aux.c: Likewise.
775         * lib/pipe-filter-gi.c: Likewise.
776         * lib/pipe-filter-ii.c: Likewise.
777         * lib/pipe.c: Likewise.
778         * lib/pipe2.c: Likewise.
779         * lib/poll.c: Likewise.
780         * lib/popen.c: Likewise.
781         * lib/posix_openpt.c: Likewise.
782         * lib/printf-parse.c: Likewise.
783         * lib/progreloc.c: Likewise.
784         * lib/putenv.c: Likewise.
785         * lib/read.c: Likewise.
786         * lib/relocatable.c: Likewise.
787         * lib/rename.c: Likewise.
788         * lib/same-inode.h: Likewise.
789         * lib/secure_getenv.c: Likewise.
790         * lib/select.c: Likewise.
791         * lib/sethostname.c: Likewise.
792         * lib/setlocale.c: Likewise.
793         * lib/sigaction.c: Likewise.
794         * lib/sigprocmask.c: Likewise.
795         * lib/sleep.c: Likewise.
796         * lib/spawn-pipe.h: Likewise.
797         * lib/spawn-pipe.c: Likewise.
798         * lib/spawni.c: Likewise.
799         * lib/stat-time.h: Likewise.
800         * lib/stat-w32.c: Likewise.
801         * lib/stat.c: Likewise.
802         * lib/stdio.in.h: Likewise.
803         * lib/stdio-impl.h: Likewise.
804         * lib/stdio-read.c: Likewise.
805         * lib/stdio-write.c: Likewise.
806         * lib/stdlib.in.h: Likewise.
807         * lib/strerror_r.c: Likewise.
808         * lib/strftime-fixes.c: Likewise.
809         * lib/sys_stat.in.h: Likewise.
810         * lib/sys_types.in.h: Likewise.
811         * lib/sys_wait.in.h : Likewise.
812         * lib/system-quote.h: Likewise.
813         * lib/system-quote.c: Likewise.
814         * lib/tmpdir.c: Likewise.
815         * lib/tzset.c: Likewise.
816         * lib/uname.c: Likewise.
817         * lib/unistd.in.h: Likewise.
818         * lib/utime.in.h: Likewise.
819         * lib/utime.c: Likewise.
820         * lib/utimecmp.c: Likewise.
821         * lib/utimens.c: Likewise.
822         * lib/vasnprintf.c: Likewise.
823         * lib/vma-iter.h: Likewise.
824         * lib/vma-iter.c: Likewise.
825         * lib/wait-process.c: Likewise.
826         * lib/wcsftime.c: Likewise.
827         * lib/wctype.in.h: Likewise.
828         * lib/write.c: Likewise.
829         * tests/nap.h: Likewise.
830         * tests/test-cloexec.c: Likewise.
831         * tests/test-dup-safer.c: Likewise.
832         * tests/test-dup2.c: Likewise.
833         * tests/test-dup3.c: Likewise.
834         * tests/test-fcntl.c: Likewise.
835         * tests/test-get-rusage-data.c: Likewise.
836         * tests/test-getaddrinfo.c: Likewise.
837         * tests/test-getlogin.h: Likewise.
838         * tests/test-isatty.c: Likewise.
839         * tests/test-localename.c: Likewise.
840         * tests/test-mbrtowc-w32.c: Likewise.
841         * tests/test-nonblocking.c: Likewise.
842         * tests/test-nonblocking-pipe-main.c: Likewise.
843         * tests/test-nonblocking-socket-main.c: Likewise.
844         * tests/test-nonblocking-socket.h: Likewise.
845         * tests/test-pipe.c: Likewise.
846         * tests/test-pipe2.c: Likewise.
847         * tests/test-poll.c: Likewise.
848         * tests/test-pthread_sigmask1.c: Likewise.
849         * tests/test-select.h: Likewise.
850         * tests/test-sethostname2.c: Likewise.
851         * tests/test-sigprocmask.c: Likewise.
852         * tests/test-spawn-pipe-child.c: Likewise.
853         * tests/test-stat-time.c: Likewise.
854         * tests/test-system-quote-main.c: Likewise.
855         * tests/test-utimens-common.h: Likewise.
856         * tests/test-wcrtomb-w32.c: Likewise.
857         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
858         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
859         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
860         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
861         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
862         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
863         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
864         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
865         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
866         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
867         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
868         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
869         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
870         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
871         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
872         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
874 2018-05-02  Bruno Haible  <bruno@clisp.org>
876         localename: Fix test failures on mingw.
877         * lib/localename.c (gl_locale_name_thread): Remove code specific to
878         native Windows.
879         (gl_locale_name_posix): Move code specific to native Windows here.
880         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
881         Accept result without charset suffix, as it appears on mingw.
883 2018-04-28  Paul Smith  <psmith@gnu.org>
885         bootstrap: Avoid gnulib operations if not needed
886         * build-aux/bootstrap: Remove unused variable gnulib_mk.
887         Set $gnulib_extra_files early so it can be overridden in .conf.
888         Remove redundant --import flag from $gnulib_tool_options.
889         Set $use_gnulib to false if no gnulib modules or files are needed.
890         If $use_gnulib is false, don't do anything related to gnulib.
891         A lot of this is just whitespace (indentation) changes.
893 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
895         manywarnings: port to GCC 8.0
896         * build-aux/gcc-warning.spec: Add -Wcatch-value,
897         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
898         fact that the GCC help message now mentions operands for
899         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
900         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
901         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
902         and -Wunused-const-variable.
903         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
904         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
905         -Wmissing-attributes, -Wmultistatement-macros,
906         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
907         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
909 2018-04-24  Bruno Haible  <bruno@clisp.org>
911         sys_socket: Make SO_REUSEPORT available across platforms.
912         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
913         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
914         * doc/posix-headers/sys_socket.texi: Mention the issue.
915         * tests/test-poll.c (SO_REUSEPORT): Remove.
916         * tests/test-select.h: Include <sys/socket.h>.
917         (SO_REUSEPORT): Remove.
918         * modules/select-tests (Depends-on): Add 'sys_socket'.
920 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
922         localcharset: short-circuit the search for an alias on a Mac
923         * lib/localcharset.c (get_charset_aliases): Add a tautological
924         UTF-8 entry to speed up the search for this case.
925         Most machines default to a UTF-8 locale nowadays, so begin the
926         list of aliases with a dummy UTF-8 entry so it will be found
927         immediately and a time-consuming search through the rest of
928         the list is avoided.
930 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
932         fts: add comment
933         * lib/fts.c (fts_build): Explain why ==, not >.
934         See remark by Bernhard Voelker in:
935         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
937         fts: fix bug in find across filesystems
938         This fixes a bug I introduced last summer.
939         Problem reported by Kamil Dudka in:
940         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
941         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
942         (leaf_optimization):
943         New arg for file descriptor.  All callers changed.
944         (fts_build): Check for whether inodes should be sorted
945         before closing the directory.
947 2018-04-07  Bruno Haible  <bruno@clisp.org>
949         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
950         Reported by Genki Sky <sky@genki.is>.
951         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
952         version 0.9.10 or newer.
953         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
954         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
955         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
956         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
957         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
959 2018-04-07  Bruno Haible  <bruno@clisp.org>
961         execute: Update comment.
962         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
964 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
966         fts: treat CIFS like NFS
967         Problem reported by Kamil Dudka in:
968         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
969         * lib/fts.c (S_MAGIC_CIFS): New macro.
970         (dirent_inode_sort_may_be_useful, leaf_optimization):
971         Treat CIFS like NFS.
973 2018-03-28  Bruno Haible  <bruno@clisp.org>
975         c-stack: Fix possible build failure on some platforms.
976         * lib/c-stack.c (die): Define whenever this function is referenced.
978 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
980         time_rz: fix workaround for Mac OS X 10.6 infloop
981         Problems reported by Charles A. Roelli (Bug#27736#117).
982         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
983         Also, discard output, which clutters the 'configure' log.
985 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
987         havelib: port to Solaris 10 /bin/sh
988         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
989         instead of '! test EXPR'.
991 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
993         time_rz: work around Mac OS X 10.6 infloop
994         * doc/posix-functions/localtime.texi:
995         * doc/posix-functions/localtime_r.texi: Mention the bug.
996         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
997         better to fix localtime and localtime_r instead, but that would be
998         more work and is not needed to fix the Emacs problem.
999         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
1001 2018-03-24  Jim Meyering  <meyering@fb.com>
1003         test-version-etc.sh: don't use diff directly: use init.sh's compare
1004         We'd rather not sacrifice readable "diff -u" output even for
1005         "diff -c" output (not supported by busybox) or for even less
1006         readable ed-style "diff" output.  So use init.sh's compare function
1007         * tests/test-version-etc.sh: Source init.sh and add "." to path.
1008         Remove "./" from invocation of test-version-etc, so we use path.
1009         And s/diff/compare/.
1010         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
1011         to get init.sh.
1012         Prompted by Eric Blake's comments in
1013         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
1015 2018-03-24  Bruno Haible  <bruno@clisp.org>
1017         javacomp-script, javacomp: Add support for Java 10.
1018         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
1019         target-version 10.
1020         * lib/javaversion.h: Update comments.
1021         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1022         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1023         TARGET_VERSION_BOUND, target_version_index,
1024         corresponding_classfile_version): Accept source_version 10 and
1025         target_version 10.
1026         * lib/javacomp.h: Update comments accordingly.
1028 2018-03-24  Bruno Haible  <bruno@clisp.org>
1030         javacomp-script, javacomp: Update comments.
1031         * m4/javacomp.m4: Update comments regarding gcj.
1032         * lib/javacomp.h: Likewise.
1034 2018-03-24  Bruno Haible  <bruno@clisp.org>
1036         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
1037         * lib/javaversion.h: Update comments.
1038         * lib/javacomp.h: Likewise.
1039         * lib/javacomp.c (default_target_version, source_version_index,
1040         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
1041         "1.9".
1042         (TARGET_VERSION_BOUND): Bump to 9.
1043         (target_version_index, corresponding_classfile_version): Recognize "9"
1044         instead of "1.9".
1045         (get_source_version_for_javac): New function.
1046         (is_envjavac_nongcj_usable, is_javac_usable): Add
1047         source_version_for_javac argument.
1048         (compile_java_class): Determine and pass source_version_for_javac.
1049         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
1050         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
1051         appropriate.
1053 2018-03-23  Jim Meyering  <meyering@fb.com>
1055         test-version-etc.sh: port to diff without -c
1056         * tests/test-version-etc.sh: Don't use diff's -c option.
1057         This caused spurious test failure on Alpine Linux, which
1058         uses busybox's diff. Reported by Assaf Gordon in
1059         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
1061 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
1063         c-stack: port to recent GCC build
1064         Problem reported by The Fireplace (Bug#30913).
1065         * lib/c-stack.c (die): Define only if used.
1067 2018-03-20  Bruno Haible  <bruno@clisp.org>
1069         euidaccess: Port to native Windows.
1070         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
1071         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
1073 2018-03-19  Bruno Haible  <bruno@clisp.org>
1075         javacomp: Add support for Java 7, 8, 9.
1076         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1077         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1078         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
1079         and target_version 1,7, 1.8, 1.9.
1080         * lib/javacomp.h: Update comments accordingly.
1082 2018-03-19  Bruno Haible  <bruno@clisp.org>
1084         javacomp-script: Add support for Java 9.
1085         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
1086         target-version 1.9.
1088 2018-03-16  Bruno Haible  <bruno@clisp.org>
1090         glob: Don't compile replacements on recent glibc systems.
1091         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
1092         REPLACE_GLOB is 0, include the system's <glob.h> and use
1093         _GL_CXXALIAS_SYS.
1094         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
1095         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
1096         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
1097         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
1098         Remove snippet/warn-on-use.
1099         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
1100         (Makefile.am): Create glob.h always. Update list of substitutions in
1101         glob.h. Don't depend on $(WARN_ON_USE_H).
1103 2018-03-16  Bruno Haible  <bruno@clisp.org>
1105         glob: Fix link error on native Windows.
1106         * modules/glob (Depends-on): Add 'lstat'.
1108 2018-03-15  Bruno Haible  <bruno@clisp.org>
1110         glob: Fix compilation error in C++ mode.
1111         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
1113 2018-03-15  Bruno Haible  <bruno@clisp.org>
1115         host-cpu-c-abi: Support for RISC-V CPU.
1116         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
1117         riscv32 and riscv64 ABIs.
1118         References:
1119         https://github.com/riscv/riscv-toolchain-conventions
1120         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
1121         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
1123 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1125         fflush: be more paranoid about libio.h change
1126         Suggested by Eli Zaretskii in:
1127         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
1128         * lib/fbufmode.c (fbufmode):
1129         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1130         (disable_seek_optimization, rpl_fflush):
1131         * lib/fpending.c (__fpending):
1132         * lib/fpurge.c (fpurge):
1133         * lib/freadable.c (freadable):
1134         * lib/freadahead.c (freadahead):
1135         * lib/freading.c (freading):
1136         * lib/freadptr.c (freadptr):
1137         * lib/freadseek.c (freadptrinc):
1138         * lib/fseeko.c (fseeko):
1139         * lib/fseterr.c (fseterr):
1140         * lib/fwritable.c (fwritable):
1141         * lib/fwriting.c (fwriting):
1142         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
1144 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
1146         maint: write-file-hooks -> before-save-hook
1147         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
1148         it's time to use the recommended replacement.
1149         Problem reported by Glenn Morris in:
1150         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
1151         * build-aux/announce-gen, build-aux/bootstrap:
1152         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
1153         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
1154         * build-aux/gnu-web-doc-update, build-aux/gnupload:
1155         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
1156         * build-aux/update-copyright, build-aux/useless-if-before-free:
1157         * build-aux/vc-list-files:
1158         Update hook usage for files where Gnulib is the canonical source.
1160 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
1162         binary-io: pacify gcc -Wunused-parameter
1163         Problem reported by Reuben Thomas in:
1164         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
1165         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
1166         Use _GL_UNUSED where appropriate.
1168         fflush: adjust to glibc 2.28 libio.h removal
1169         Problem reported by Daniel P. Berrangé in:
1170         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
1171         * lib/fbufmode.c (fbufmode):
1172         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1173         (disable_seek_optimization, rpl_fflush):
1174         * lib/fpending.c (__fpending):
1175         * lib/fpurge.c (fpurge):
1176         * lib/freadable.c (freadable):
1177         * lib/freadahead.c (freadahead):
1178         * lib/freading.c (freading):
1179         * lib/freadptr.c (freadptr):
1180         * lib/freadseek.c (freadptrinc):
1181         * lib/fseeko.c (fseeko):
1182         * lib/fseterr.c (fseterr):
1183         * lib/fwritable.c (fwritable):
1184         * lib/fwriting.c (fwriting):
1185         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
1186         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
1187         Define if not already defined.
1189 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
1191         environ: fix link error on 32-bit Cygwin
1192         Problem reported for GNU Emacs by Ken Brown in:
1193         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
1194         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
1196 2018-02-24  Bruno Haible  <bruno@clisp.org>
1198         mbrtowc tests: Fix regression on glibc.
1199         Reported by Bernhard Voelker.
1200         * tests/test-mbrtowc.c (main): Fix expected value of wc.
1202 2018-02-24  Bruno Haible  <bruno@clisp.org>
1204         striconveha, uniconv/*: Avoid test failures on musl libc.
1205         * tests/iconvsupport.c: New file.
1206         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
1207         does not support the ISO-2022-JP-2 encoding.
1208         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
1209         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
1210         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
1211         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
1212         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
1213         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
1214         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
1215         (Makefile.am): Link test-striconveha with iconvsupport.o.
1216         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
1217         tests/iconvsupport.c.
1218         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
1219         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
1220         tests/iconvsupport.c.
1221         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
1222         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
1223         tests/iconvsupport.c.
1224         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
1225         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
1226         tests/iconvsupport.c.
1227         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
1228         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
1229         tests/iconvsupport.c.
1230         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
1231         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
1232         tests/iconvsupport.c.
1233         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
1235 2018-02-24  Bruno Haible  <bruno@clisp.org>
1237         localename: Add support for musl libc.
1238         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
1239         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
1240         on Linux platforms which define NL_LOCALE_NAME.
1242 2018-02-24  Bruno Haible  <bruno@clisp.org>
1244         mbrtowc tests: Don't make assumptions about the charset the C locale.
1245         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
1246         particular mapping in the C locale.
1248 2018-02-24  Bruno Haible  <bruno@clisp.org>
1250         ptsname_r: Don't expect that this function sets errno.
1251         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
1252         from ptsname_r().
1253         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
1255 2018-02-23  Bruno Haible  <bruno@clisp.org>
1257         xmalloca: pacify gcc -Wbad-function-cast
1258         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
1260 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
1262         nl_langinfo: pacify gcc -Wunused-function
1263         * lib/nl_langinfo.c (ctype_codeset): Do not define if
1264         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
1265         this case.  Without this change, I got a diagnostic when building
1266         coreutils on Fedora 27 with gcc 7.3.1 20180130.
1268         same: pacify gcc -Wunused-variable
1269         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
1270         Omit unused variable.
1272         malloca: pacify gcc -Wbad-function-cast
1273         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
1274         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
1275         To pacify GCC, I had to cast alloca’s result to some type other
1276         than void * before casting that to uintptr_t.
1278 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1280         utimecmp: new function utimecmpat
1281         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
1282         Do not include utimens.h.
1283         (utimecmpat): New function, generalizing utimecmp.
1284         (utimecmp): Now a thin layer around utimecmpat.
1285         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
1286         utimensat instead of on lstat and utimens.
1288         same: new function same_nameat
1289         * lib/same.c: Include fcntl.h.
1290         * lib/same.c (same_nameat): New function, generalizing same_name.
1291         (same_name): Now a thin layer around same_nameat.
1292         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
1293         * modules/same (Depends-on): Depend on fstatat, openat.
1295 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
1297         warnings: Add support for Objective C.
1298         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
1299         macro.
1301 2018-02-17  Bruno Haible  <bruno@clisp.org>
1303         lock: Fix test-once1 crash on FreeBSD11.
1304         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
1305         'pthread_create', not 'pthread_cancel'.
1307 2018-02-17  Bruno Haible  <bruno@clisp.org>
1309         lock: Add test of gl_once.
1310         * tests/test-once.c: New file.
1311         * modules/lock-tests (Files): Add it.
1312         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
1314 2018-02-17  Bruno Haible  <bruno@clisp.org>
1316         thread: Fix compilation error on IRIX.
1317         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
1318         needed; include it outside the C++ extern "C" {} block.
1319         * doc/posix-headers/pthread.texi: Mention the problem with
1320         pthread_atfork on IRIX.
1322 2018-02-04  Bruno Haible  <bruno@clisp.org>
1324         nl_langinfo: Override the system's nl_langinfo() when needed.
1325         Reported by Jim Meyering.
1326         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
1327         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
1329 2018-02-04  Bruno Haible  <bruno@clisp.org>
1331         signal-h, monetary, strings: Fix build failure in some cases.
1332         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1333         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
1334         as delimiter in sed command, not '|'.
1335         * modules/monetary (Makefile.am): Likewise.
1336         * modules/strings (Makefile.am): Likewise.
1338 2018-02-03  Jim Meyering  <meyering@fb.com>
1340         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
1341         * top/maint.mk (sc_file_system): Don't complain about
1342         "/proc/filesystems".
1344 2018-02-03  Bruno Haible  <bruno@clisp.org>
1346         stdlib: Fix compilation error on OpenIndiana.
1347         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
1348         <sys/time.h>.
1349         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1350         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
1352 2018-02-03  Bruno Haible  <bruno@clisp.org>
1354         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
1355         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
1356         and use $EGREP instead of 'grep -E'.
1357         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
1358         'grep -E'.
1360 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
1362         malloca: Add a compile-time verification.
1363         * lib/malloca.c (small_t): Verify that it is wide enough.
1364         * modules/malloca (Depends-on): Add verify.
1366 2018-02-02  Bruno Haible  <bruno@clisp.org>
1368         malloca: Add an argument check.
1369         Suggested by Paul Eggert.
1370         * lib/malloca.c (freea): Check against an invalid argument.
1372 2018-02-02  Bruno Haible  <bruno@clisp.org>
1374         localename: Add support for OpenIndiana.
1375         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
1376         Solaris 11 variants with uselocale() but without getlocalename_l().
1378 2018-02-02  Bruno Haible  <bruno@clisp.org>
1380         malloca, xmalloca: Make multithread-safe.
1381         Reported by Florian Weimer <fweimer@redhat.com>.
1382         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
1383         * lib/malloca.h (malloca): In the stack allocation case, return a
1384         pointer that is a multiple of 2 * sa_alignment_max.
1385         (sa_increment): Remove enum item.
1386         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
1387         a pointer that is a multiple of 2 * sa_alignment_max.
1388         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
1389         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
1390         HASH_TABLE_SIZE, mmalloca_results): Remove.
1391         (small_t): New type.
1392         (mmalloca, free): Rewritten.
1393         * lib/malloca.valgrind: Remove file.
1394         * modules/malloca (Files): Remove it.
1395         (Depends-on): Remove verify.
1397 2018-01-31  Bruno Haible  <bruno@clisp.org>
1399         environ: Fix link error on 64-bit Cygwin.
1400         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
1401         __declspec(dllimport) attribute.
1402         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
1404 2018-01-30  Bruno Haible  <bruno@clisp.org>
1406         get-rusage-data: Add support for Minix 3.
1407         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
1409 2018-01-30  Bruno Haible  <bruno@clisp.org>
1411         vma-iter: Add support for Minix 3.
1412         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
1413         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
1415 2018-01-27  Bruno Haible  <bruno@clisp.org>
1417         Fix malfunction of socket functions on HP-UX in 64-bit mode.
1418         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
1419         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
1420         _HPUX_ALT_XOPEN_SOCKET_API.
1421         * modules/accept (Depends-on): Add 'extensions'.
1422         * modules/getpeername (Depends-on): Likewise.
1423         * modules/getsockname (Depends-on): Likewise.
1424         * modules/getsockopt (Depends-on): Likewise.
1425         * modules/recvfrom (Depends-on): Likewise.
1426         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
1427         * doc/posix-functions/getpeername.texi: Likewise.
1428         * doc/posix-functions/getsockname.texi: Likewise.
1429         * doc/posix-functions/getsockopt.texi: Likewise.
1430         * doc/posix-functions/recvfrom.texi: Likewise.
1432 2018-01-27  Bruno Haible  <bruno@clisp.org>
1434         getsockname tests: More tests.
1435         * tests/test-getsockname.c (open_server_socket): New function, mostly
1436         copied from test-poll.c.
1437         (main): Check that getsockname fills in addr.
1438         * modules/getsockname-tests (Depends-on): Add the necessary
1439         dependencies.
1440         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
1442 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
1444         manywarnings: fix maintainer comment
1445         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
1446         it does not mistakenly think that ‘-1)’ is an option.
1448 2018-01-26  Bruno Haible  <bruno@clisp.org>
1450         langinfo: Fix last commit.
1451         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1452         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
1454 2018-01-24  Bruno Haible  <bruno@clisp.org>
1456         langinfo, nl_langinfo: Add support for alternative month names.
1457         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
1458         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
1459         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
1460         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
1461         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
1462         * doc/posix-functions/nl_langinfo.texi: Likewise.
1464 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1466         Merge strftime.c changes from glibc
1467         This incorporates:
1468         2017-11-14 [BZ #10871] Implement alternative month names
1469         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
1470         2017-06-20 Use locale_t, not __locale_t, throughout glibc
1471         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
1472         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
1473         Use locale_t, not __locale_t.
1474         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
1475         (__strftime_internal): Add support for alternate months.
1477 2018-01-23  Bruno Haible  <bruno@clisp.org>
1479         doc: Mention another prerequisite for using Gnulib.
1480         Reported at <https://stackoverflow.com/questions/48378214/>.
1481         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
1482         AC_CONFIG_HEADERS.
1484 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
1486         build: GuixSD doesn't have /bin/bash
1487         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
1489 2018-01-21  Bruno Haible  <bruno@clisp.org>
1491         Avoid test failures on Microsoft Windows Subsystem for Linux.
1492         * tests/test-fcntl.c (main): Allow a different errno.
1493         * tests/test-rename.h (test_rename): Likewise.
1494         * tests/test-renameat.c (main): Likewise.
1495         * tests/test-renameat2.c (main): Likewise.
1497 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
1499         filenamecat: make base a suffix of result
1500         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
1501         (mfile_name_concat): Always make BASE a suffix of the result, as
1502         cp expects this.  To implement this, separate with '.' instead of
1503         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
1504         * tests/test-filenamecat.c (main): Adjust tests to match
1505         current behavior.  Check that BASE_IN_RESULT points to
1506         a copy of BASE and is a suffix of the resultk, and that DIR
1507         is a prefix of the result that is no longer than the prefix
1508         indicated by BASE_IN_RESULT.
1510 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
1512         update-copyright: Handle use of ©
1513         * build-aux/update-copyright ($circle_c_re): Update regex to
1514         handle use of © in headers.
1516 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
1518         Fix -Wundef warning in user-included header lib/cdefs.h.
1519         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
1521 2018-01-04  Bruno Haible  <bruno@clisp.org>
1523         pthread_sigmask: Avoid compilation error on mingw.
1524         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1525         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
1526         macro.
1528 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1530         test-framework-sh: ‘ps -ef’, not ‘ps ef’
1531         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
1532         Suggested by Bob Proulx (Bug#29968).
1533         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
1535 2018-01-02  Eric Blake  <eblake@redhat.com>
1537         stat-time: silence -Wunused-parameter regression
1538         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
1539         Prefer attribute over cast-to-void.
1540         (stat_time_normalize): Mark st as potentially unused.
1542 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
1544         test-framework-sh: avoid netstat
1545         Problem reported by Kristýna Streitová (Bug#29947).
1546         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
1547         deprecated on SuSE and it's not that important anyway.
1549 2018-01-01  Jim Meyering  <meyering@fb.com>
1551         update-copyright: add code to handle more special cases
1552         After running "make update-copyright" this year, five files
1553         required additional manual changes.  Automate those adjustments
1554         for next year.
1555         * Makefile (_year_and_prev): Define.
1556         (update-copyright): Add perl commands to induce this year's post-
1557         update-copyright adjustments.
1559 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1561         version-etc: new year
1562         * build-aux/gendocs.sh (version):
1563         * doc/gendocs_template:
1564         * doc/gendocs_template_min:
1565         * doc/gnulib.texi:
1566         * lib/version-etc.c (COPYRIGHT_YEAR):
1567         Update copyright dates by hand in templates and the like.
1569         maint: fix 'make update-copyright'
1570         * Makefile (update-copyright): Adjust to 2016-11-23 change
1571         to config/srclist-update, which changed the format of srclist.txt.
1573 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1575         chdir-safer: remove this module
1576         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
1577         * NEWS: Document removal.
1578         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
1579         * modules/chdir-safer: Remove these files.
1581 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
1583         Add cross-compilation results for GNU/Hurd.
1584         * m4/calloc.m4: Add GNU/Hurd guess.
1585         * m4/cbrtl.m4: Likewise.
1586         * m4/ceil.m4: Likewise.
1587         * m4/ceilf.m4: Likewise.
1588         * m4/ceill.m4: Likewise.
1589         * m4/chown.m4: Likewise.
1590         * m4/duplocale.m4: Likewise.
1591         * m4/exp2l.m4: Likewise.
1592         * m4/expm1.m4: Likewise.
1593         * m4/fchdir.m4: Likewise.
1594         * m4/floor.m4: Likewise.
1595         * m4/floorf.m4: Likewise.
1596         * m4/fmod.m4: Likewise.
1597         * m4/fmodf.m4: Likewise.
1598         * m4/fmodl.m4: Likewise.
1599         * m4/getcwd.m4: Likewise.
1600         * m4/getgroups.m4: Likewise.
1601         * m4/gettimeofday.m4: Likewise.
1602         * m4/hypot.m4: Likewise.
1603         * m4/hypotf.m4: Likewise.
1604         * m4/hypotl.m4: Likewise.
1605         * m4/link-follow.m4: Likewise.
1606         * m4/link.m4: Likewise.
1607         * m4/linkat.m4: Likewise.
1608         * m4/log.m4: Likewise.
1609         * m4/log10.m4: Likewise.
1610         * m4/log10f.m4: Likewise.
1611         * m4/log1p.m4: Likewise.
1612         * m4/log1pf.m4: Likewise.
1613         * m4/log1pl.m4: Likewise.
1614         * m4/log2.m4: Likewise.
1615         * m4/log2f.m4: Likewise.
1616         * m4/logf.m4: Likewise.
1617         * m4/lstat.m4: Likewise.
1618         * m4/malloc.m4: Likewise.
1619         * m4/mbrlen.m4: Likewise.
1620         * m4/mbrtowc.m4: Likewise.
1621         * m4/mkdir.m4: Likewise.
1622         * m4/mkfifo.m4: Likewise.
1623         * m4/mknod.m4: Likewise.
1624         * m4/mkstemp.m4: Likewise.
1625         * m4/modf.m4: Likewise.
1626         * m4/modff.m4: Likewise.
1627         * m4/modfl.m4: Likewise.
1628         * m4/printf.m4: Likewise.
1629         * m4/pselect.m4: Likewise.
1630         * m4/ptsname.m4: Likewise.
1631         * m4/putenv.m4: Likewise.
1632         * m4/readlink.m4: Likewise.
1633         * m4/realloc.m4: Likewise.
1634         * m4/remainder.m4: Likewise.
1635         * m4/remainderf.m4: Likewise.
1636         * m4/remainderl.m4: Likewise.
1637         * m4/rmdir.m4: Likewise.
1638         * m4/round.m4: Likewise.
1639         * m4/roundf.m4: Likewise.
1640         * m4/roundl.m4: Likewise.
1641         * m4/select.m4: Likewise.
1642         * m4/setenv.m4: Likewise.
1643         * m4/signbit.m4: Likewise.
1644         * m4/sleep.m4: Likewise.
1645         * m4/stat.m4: Likewise.
1646         * m4/strerror.m4: Likewise.
1647         * m4/strtok_r.m4: Likewise.
1648         * m4/symlink.m4: Likewise.
1649         * m4/symlinkat.m4: Likewise.
1650         * m4/trunc.m4: Likewise.
1651         * m4/truncf.m4: Likewise.
1652         * m4/truncl.m4: Likewise.
1653         * m4/tzset.m4: Likewise.
1654         * m4/ungetc.m4: Likewise.
1655         * m4/usleep.m4: Likewise.
1656         * m4/wcwidth.m4: Likewise.
1658 2017-12-28  Bruno Haible  <bruno@clisp.org>
1660         gnulib-tool: Make --conditional-dependencies work better.
1661         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
1662         * gnulib-tool (Options): Don't reject the combination of
1663         --conditional-dependencies with --with-tests.
1664         (func_emit_autoconf_snippets): Add argument referenceable_modules.
1665         Don't reference $modules.
1666         (func_import, func_create_testdir): Pass it.
1668 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1670         regex: use re_malloc etc. consistently
1671         Problem and original patch reported by Arnold Robbins in:
1672         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
1673         * lib/regcomp.c (re_comp):
1674         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
1675         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
1677 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
1678             Paul Eggert  <eggert@cs.ucla.edu>
1680         glob: Silence warning about void pointer arithmetic.
1681         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
1682         arithmetic.
1684 2017-12-15  Bruno Haible  <bruno@clisp.org>
1686         spawn-pipe: Silence a clang warning.
1687         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1688         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
1689         in this file.
1691 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1693         explicit_bzero: port to macOS + Clang 9.0.0
1694         Problem reported by Marcus Johnson (Bug#29658).
1695         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
1696         Don’t use asm.
1698 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
1700         doc: Improve explanation of supporting relocatable libraries.
1701         * doc/relocatable-maint.texi (Supporting Relocation): Explain
1702         properly how to build the relocatable module for
1703         libraries. (Method and example code from Bruno Haible.)
1705 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
1707         doc: Use better texinfo tags in a few cases.
1708         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
1709         instead of @samp in a few places.
1711 2017-12-11  Bruno Haible  <bruno@clisp.org>
1713         unistr/base: Update comment.
1714         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
1716 2017-12-10  Pádraig Brady  <P@draigBrady.com>
1718         test-faccessat.c: unlink temp file to avoid subsequent test failure
1719         * tests/test-faccessat.c: Remove the file to avoid failure
1720         to open the file on subsequent runs due to being created
1721         with no permissions.
1723 2017-12-10  Bruno Haible  <bruno@clisp.org>
1725         doc: New sect. "Modifying the build rules of a Gnulib import directory".
1726         * doc/gnulib-tool.texi (Modified build rules): New node.
1728 2017-12-10  Bruno Haible  <bruno@clisp.org>
1730         doc: Tweak wording.
1731         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
1732         "binaries".
1734 2017-12-05  Sam Steingold  <sds@gnu.org>
1735             Bruno Haible  <bruno@clisp.org>
1737         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
1738         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
1739         AC_EGREP_CPP pattern.
1741 2017-12-03  Bruno Haible  <bruno@clisp.org>
1743         all: Replace more http URLs by https URLs.
1744         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
1745         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
1746         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
1747         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
1749 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
1751         Port better to CentOS 5
1752         Problems reported by Tom G. Christensen in:
1753         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
1754         * doc/glibc-functions/strverscmp.texi (strverscmp):
1755         Document strverscmp bug with glibc 2.9 and earlier.
1756         * doc/posix-functions/tzset.texi (tzset):
1757         Document that TZ with angle brackets is POSIX-2001 and later.
1758         * tests/test-nstrftime.c: Include unistd.h.
1759         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
1760         (TZ): Use it to skip tests with angle brackets in TZ,
1761         for older systems.
1763         stat: add missing module dependencies
1764         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
1765         Add stat-time.
1767 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
1769         stat: fix compilation failure on macOS Sierra
1770         Reported by Marius Schamschula <mschamschula@gmail.com> in:
1771         https://savannah.gnu.org/bugs/?52546
1772         * lib/stat.c: Add missing include of stat-time.h.
1774 2017-11-28  Jim Meyering  <meyering@fb.com>
1776         test-faccessat.c: correct BASE definition to avoid parallel test failure
1777         * tests/test-faccessat.c (BASE): Define using this file's name, not
1778         that of test-lstat.c.  Using the latter caused this test to fail
1779         sometimes when run concurrently with test-lstat.
1781 2017-11-27  Daiki Ueno  <ueno@gnu.org>
1783         unicase: fix VPATH build
1784         * modules/unicase/special-casing (Makefile.am): Ensure that the
1785         base directory is created when generating
1786         unicase/special-casing.h.
1788 2017-11-27  Daiki Ueno  <ueno@gnu.org>
1790         libunistring: update to Unicode 9.0.0
1791         * lib/gen-uni-tables.c (fill_properties): Recognize
1792         Sentence_Terminal and Prepended_Concatenation_Mark.
1793         (is_property_default_ignorable_code_point): Exclude U+08E2.
1794         (fill_arabicshaping): Allow missing whitespace when parsing;
1795         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
1796         (output_blocks): Increase the element size of the level1 table to
1797         accommodate more blocks.
1798         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
1799         Update each class according to the standard.
1800         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
1801         E_Base_GAZ characters.
1802         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
1803         Glue_After_Zwj, and E_Base_GAZ characters.
1804         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
1805         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
1806         enum value.
1807         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
1808         value.
1809         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
1810         LBP_ZWJ, LBP_EB, and LBP_EM.
1811         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
1812         enum value.
1813         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
1814         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
1815         declaration.
1816         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
1817         (uniwbrk_table): Implement WB14.
1818         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
1819         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
1820         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
1821         uc-is-grapheme-break.
1822         * modules/unigbrk/uc-grapheme-breaks: New module.
1823         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
1824         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
1825         enum value.
1826         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
1827         * lib/unigbrk/u-grapheme-breaks.h: New file.
1828         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
1829         u-grapheme-breaks.h instead of uc_is_grapheme_break.
1830         * lib/unigbrk/uc-grapheme-breaks.c: New file.
1831         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
1832         29.
1833         * tests/unigbrk/test-uc-gbrk-prop.c
1834         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
1835         GBP_GAZ, and GBP_EBG.
1836         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
1837         * tests/unigbrk/test-uc-is-grapheme-break.c
1838         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
1839         GBP_GAZ, and GBP_EBG.
1840         (main): Skip unsupported rules involving 3 or more characters,
1841         namely GB10, GB12, and GB13.
1842         * lib/uniwidth/width.c (nonspacing_table_data): Update.
1843         * all generated files under lib/uni* and tests/uni*: Regenerate.
1844         * all the affected modules: Bump version.
1846 2017-11-26  Bruno Haible  <bruno@clisp.org>
1848         strfmon_l: Fix compilation error with glibc 2.5.
1849         Reported by Tom G. Christensen <tgc@jupiterrise.com>
1850         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
1851         * lib/monetary.in.h: Include also <locale.h>.
1853 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
1855         posixtm: remove PDS_LEADING_YEAR
1856         This changes the API slightly, in a hopefully-innocuous way.
1857         Without this change the code had undefined behavior when a
1858         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
1859         Problem reported by Pádraig Brady in:
1860         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
1861         * NEWS: Mention this.
1862         * lib/posixtm.c (posix_time_parse): Treat the absence of
1863         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
1864         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
1865         present, but define it as zero, for compatibility with existing
1866         source code).  All other PDS_* values moved up.
1867         * tests/test-posixtm.c (LY): New macro.
1868         (T): Use it.  Do not expect a particular numeric encoding
1869         for PDS_CENTURY etc.
1871 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
1873         stat: work around Solaris bug with tv_nsec < 0
1874         * doc/posix-functions/fstat.texi (fstat):
1875         * doc/posix-functions/fstatat.texi (fstatat):
1876         * doc/posix-functions/lstat.texi (lstat):
1877         * doc/posix-functions/stat.texi (stat):
1878         Mention Solaris 11 bug.
1879         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
1880         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
1881         * lib/lstat.c (rpl_lstat):
1882         * lib/stat.c (rpl_stat):
1883         Normalize resulting timestamps.
1884         * lib/fstatat.c (normal_fstatat): New function.
1885         (rpl_fstatat): Use it.
1886         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
1887         (stat_time_normalize): New function.
1888         * m4/fstat.m4 (gl_FUNC_FSTAT):
1889         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
1890         * m4/lstat.m4 (gl_FUNC_LSTAT):
1891         * m4/stat.m4 (gl_FUNC_STAT):
1892         Replace on Solaris.
1893         * modules/fstat (Depends-on):
1894         * modules/fstatat (Depends-on):
1895         Add stat-time.
1896         * modules/stat-time (Depends-on): Add errno, intprops.
1898 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
1900         regex: merge from glibc
1901         * lib/regcomp.c (init_word_char): Add comments.
1903 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
1905         regex: merge from glibc
1906         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
1907         * lib/regex_internal.h (internal_function): Remove.
1908         All uses removed.
1910 2017-11-20  Bruno Haible  <bruno@clisp.org>
1912         crypto/gc-sm3: Fix buffer overrun.
1913         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
1914         Reported by Coverity.
1916 2017-11-12  Jim Meyering  <meyering@fb.com>
1918         maint: shorten https://lists.gnu.org/archive/html/... links
1919         Each /archive/html/ part can be replace with /r/.
1920         Run this to induce the change:
1921         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
1922         * ChangeLog: Perform that substitution.
1923         * Makefile: Likewise.
1924         * STATUS-libposix: Likewise.
1925         * build-aux/bootstrap: Likewise.
1926         * doc/maintain.texi: Likewise.
1927         * gnulib-tool: Likewise.
1928         * lib/allocator.h: Likewise.
1929         * lib/argp-ba.c: Likewise.
1930         * lib/argp-pv.c: Likewise.
1931         * lib/canon-host.c: Likewise.
1932         * lib/canonicalize-lgpl.c: Likewise.
1933         * lib/float.in.h: Likewise.
1934         * lib/fstat.c: Likewise.
1935         * lib/getdelim.c: Likewise.
1936         * lib/getprogname.c: Likewise.
1937         * lib/glthread/thread.h: Likewise.
1938         * lib/intprops.h: Likewise.
1939         * lib/mbsrtowcs-state.c: Likewise.
1940         * lib/safe-read.c: Likewise.
1941         * lib/signal.in.h: Likewise.
1942         * lib/stat.c: Likewise.
1943         * lib/stdbool.in.h: Likewise.
1944         * lib/stdio-impl.h: Likewise.
1945         * lib/stdio.in.h: Likewise.
1946         * lib/sysexits.in.h: Likewise.
1947         * lib/timespec.h: Likewise.
1948         * lib/wcsrtombs-state.c: Likewise.
1949         * m4/alloca.m4: Likewise.
1950         * m4/extern-inline.m4: Likewise.
1951         * m4/fstatat.m4: Likewise.
1952         * m4/gnulib-common.m4: Likewise.
1953         * m4/lib-ignore.m4: Likewise.
1954         * m4/printf.m4: Likewise.
1955         * m4/regex.m4: Likewise.
1956         * m4/stat-size.m4: Likewise.
1957         * m4/std-gnu11.m4: Likewise.
1958         * m4/stdbool.m4: Likewise.
1959         * m4/sys_types_h.m4: Likewise.
1960         * m4/threadlib.m4: Likewise.
1961         * m4/vararrays.m4: Likewise.
1962         * pygnulib/GLImport.py: Likewise.
1963         * tests/test-exp.h: Likewise.
1964         * tests/test-exp2.h: Likewise.
1965         * tests/test-expm1.h: Likewise.
1966         * tests/test-fflush2.c: Likewise.
1967         * tests/test-getopt_long.h: Likewise.
1968         * tests/test-intprops.c: Likewise.
1969         * tests/test-log.h: Likewise.
1970         * tests/test-log10.h: Likewise.
1971         * tests/test-log1p.h: Likewise.
1972         * tests/test-log2.h: Likewise.
1973         * tests/test-printf-posix.h: Likewise.
1974         * tests/test-regex.c: Likewise.
1975         * tests/test-snprintf-posix.h: Likewise.
1976         * tests/test-sprintf-posix.h: Likewise.
1977         * tests/test-stdalign.c: Likewise.
1978         * tests/test-stdbool.c: Likewise.
1979         * tests/test-vasnprintf-posix.c: Likewise.
1980         * tests/test-vasprintf-posix.c: Likewise.
1981         * top/maint.mk: Likewise.
1983 2017-11-12  Bruno Haible  <bruno@clisp.org>
1985         faccessat: Make the last change more robust.
1986         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
1987         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
1989 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1991         faccessat: port to macOS (Bug#29231)
1992         macOS faccessat has the same bug that lstat does: if the file
1993         name ends in '/' it ignores the trailing slash.
1994         Problem reported for Emacs by Vincent Zhang.
1995         * doc/posix-functions/faccessat.texi (faccessat): Document this.
1996         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
1997         around the initial includes.  Include errno.h, string.h, sys/stat.h.
1998         (orig_faccessat) [HAVE_FACCESSAT]: New function.
1999         Include "unistd.h" after defining it.
2000         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
2001         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
2002         Handle in the usual way.
2003         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
2004         lstat dereferences symlinks, since faccessat is likely to
2005         have the same problem.
2006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
2007         * modules/faccessat (Depends-on): Add fstatat.
2008         Depend if REPLACE_FACCESSAT is 1, too.
2009         (configure.ac): Link if REPLACE_FACCESSAT is 1.
2010         * modules/faccessat-tests (Depends-on): Add symlink.
2011         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
2012         * tests/test-faccessat.c (main): Test for the bug.
2014 2017-11-11  Bruno Haible  <bruno@clisp.org>
2016         getprogname: Fix compilation error on IRIX.
2017         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
2018         'namesize'.
2020 2017-11-11  Bruno Haible  <bruno@clisp.org>
2022         year2038: Tweak last patch.
2023         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
2025 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2027         year2038: be more insistent about 64-bit time_t
2028         Applications requiring access to arbitrary files should not be
2029         built with 32-bit time_t on hosts that have 64-bit timestamps,
2030         as this can lead to real trouble at runtime.
2031         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
2032         Check on all systems, not just MinGW.  Use a heuristic involving
2033         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
2034         output a failure or just a warning, to make it more likely that
2035         builders will select 64-bit time_t.
2037 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2039         havelib: fix typo in previous change
2040         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
2042         Don’t use AC_EGREP_CPP if affected by CFLAGS
2043         * m4/float_h.m4 (gl_FLOAT_H):
2044         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
2045         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
2046         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
2047         * m4/year2038.m4 (gl_YEAR2038):
2048         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
2049         likely to be affected by the choice of CFLAGS, since CFLAGS are
2050         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
2051         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
2053         fstatat: pacify GCC on unusual platform
2054         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
2055         Omit, as it’s unused in this case.
2057 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
2059         timespec: prefer ‘assume’ to ‘assure’
2060         This avoids some runtime tests.  The rest of the module makes
2061         similar assumptions and there is little point to testing here.
2062         * lib/timespec.h: Include verify.h instead of assure.h.
2063         (timespec_cmp): Use ‘assume’, not ‘assure’.
2064         Also, remove an unnecessary cast to ‘int’, as lots of other
2065         code in this module now causes -Wconversion to complain, and
2066         this is a problem with -Wconversion not with the code.
2068         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
2070         Port recent gnulib-tool change to Dash
2071         * gnulib-tool (func_create_testdir): Don't assume that the shell
2072         retokenizes after expanding "$@" inside the call to
2073         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
2075 2017-10-27  Jim Meyering  <meyering@fb.com>
2077         timespec.h: use "assure" to avoid a spurious warning
2078         * lib/timespec.h: Include "assure.h" and use it to help
2079         gcc7's -Wstrict-overflow avoid a false positive warning
2080         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
2081         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
2082         * modules/timespec (Depends-on): Add assure.
2084 2017-10-29  Bruno Haible  <bruno@clisp.org>
2086         Avoid several test failures with traditional locales on Haiku.
2087         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
2088         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
2089         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
2090         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
2091         LOCALE_ZH_CN=none.
2093 2017-10-29  Bruno Haible  <bruno@clisp.org>
2095         strerror_r-posix: Fix behaviour and test failure on Haiku.
2096         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
2097         are positive. Work around return value 0 instead of ERANGE on Haiku.
2098         For unknown error numbers, use a format string consistent with perror().
2099         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
2100         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
2101         are positive.
2103 2017-10-29  Bruno Haible  <bruno@clisp.org>
2105         get-rusage-data: Avoid crash on Haiku.
2106         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
2108 2017-10-29  Bruno Haible  <bruno@clisp.org>
2110         get-rusage-as: Avoid crash on Haiku.
2111         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
2113 2017-10-29  Bruno Haible  <bruno@clisp.org>
2115         ilogbl: Ensure replacement on Haiku.
2116         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
2117         REPLACE_ILOGBL if ilogbl does not work.
2118         (gl_FUNC_ILOGBL_WORKS): New macro.
2119         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
2120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
2121         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
2122         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
2123         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
2125 2017-10-29  Bruno Haible  <bruno@clisp.org>
2127         expl: Ensure replacement on Haiku.
2128         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
2129         zero.
2130         * doc/posix-functions/expl.texi: Mention the Haiku problem.
2132 2017-10-29  Bruno Haible  <bruno@clisp.org>
2134         math: Fix test failure on Haiku.
2135         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
2136         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
2137         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
2138         * doc/posix-headers/math.texi: Mention the Haiku problem.
2140 2017-10-29  Bruno Haible  <bruno@clisp.org>
2142         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
2143         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
2144         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
2146 2017-10-29  Bruno Haible  <bruno@clisp.org>
2148         crypto/*: Verify that the header file is self-contained.
2149         * tests/test-gc-*.c: Include the module's header file immediately after
2150         <config.h>.
2151         * tests/test-hmac-*.c: Likewise.
2152         * tests/test-arcfour.c: Likewise.
2153         * tests/test-arctwo.c: Likewise.
2154         * tests/test-des.c: Likewise.
2155         * tests/test-md2.c: Likewise.
2156         * tests/test-md4.c: Likewise.
2157         * tests/test-md5.c: Likewise.
2158         * tests/test-rijndael.c: Likewise.
2159         * tests/test-sha1.c: Likewise.
2160         * tests/test-sm3.c: Likewise.
2162 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2163             Bruno Haible  <bruno@clisp.org>
2165         crypto/gc: fix build failure with -Werror=suggest-attribute=const
2166         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
2168 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2170         New module: crypto/gc-sm3
2171         * lib/gc.h: Declare SM3-related stuffs.
2172         * lib/gc-gnulib.c: Support sm3 in internal functions.
2173         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
2174         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
2175         * modules/crypto/gc-sm3: Define gc-sm3 module.
2176         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
2177         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
2178         * MODULES.html.sh: List gc-sm3 module.
2180 2017-10-29  Bruno Haible  <bruno@clisp.org>
2182         random, random_r: Mention different prototypes on Haiku.
2183         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
2184         * doc/glibc-functions/random_r.texi: Likewise.
2185         * doc/glibc-functions/initstate_r.texi: Likewise.
2186         * doc/glibc-functions/setstate_r.texi: Likewise.
2188 2017-10-28  Bruno Haible  <bruno@clisp.org>
2190         posix_spawn: Avoid spurious message in configure output.
2191         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
2192         'cmp' command.
2194 2017-10-28  Bruno Haible  <bruno@clisp.org>
2196         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
2197         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
2198         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2200 2017-10-28  Bruno Haible  <bruno@clisp.org>
2202         ioctl: Override non-POSIX declaration on Haiku.
2203         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
2204         * lib/sys_ioctl.in.h: Add comment about Haiku.
2205         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
2206         * doc/glibc-headers/sys_ioctl.texi: Likewise.
2208 2017-10-28  Bruno Haible  <bruno@clisp.org>
2210         crypto/sm3: Add overview documentation to the .h file.
2211         * lib/sm3.h: Add comments.
2213 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2215         New module: crypto/sm3
2216         This new module can be used to compute SM3 message digest of files or
2217         memory blocks according to the specification GM/T 004-2012
2218         Cryptographic Hash Algorithm SM3, published by State Cryptography
2219         Administration, China.
2220         The official SM3 cryptographic hash algorithm specification is
2221         available at
2222         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
2223         * lib/sm3.h: Declare the APIs of sm3 module.
2224         * lib/sm3.c: Implement SM3 hash algorithm.
2225         * m4/sm3.m4: m4 file for sm3 module.
2226         * modules/crypto/sm3: Define sm3 module.
2227         * tests/test-sm3.c: Implement SM3 test case.
2228         * modules/crypto/sm3-tests: Define sm3 test module.
2229         * MODULES.html.sh: List sm3 module.
2231 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2233         gc-libgcrypt: fix undefined enum type in switch statement
2234         Resolve the following build failure:
2235         lib/gc-libgcrypt.c: In function 'gc_hash_open':
2236         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
2237         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
2238              case 0:
2239              ^~~~
2240         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
2241         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
2243 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2245         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
2246         Resolve the following build failure:
2247         lib/gc-libgcrypt.c: In function 'gc_hash_read':
2248         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
2249         in signedness [-Werror=pointer-sign]
2250             digest = gcry_md_read (ctx->gch, 0);
2251                    ^
2252         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
2254 2017-10-26  Bruno Haible  <bruno@clisp.org>
2256         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
2257         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
2258         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
2260 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
2262         glob: fix another heap buffer overflow
2263         Problem reported by Tim Rühsen in:
2264         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
2265         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
2267 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
2269         quotearg: pacify compiler re unsigned
2270         * lib/quotearg.c (quotearg_n_options):
2271         Rewrite to avoid diagnostic from overly-picky compiler.
2272         Problem reported by Sami Kerola in:
2273         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
2275         glob: fix heap buffer overflow
2276         * lib/glob.c (glob): Fix off-by-one error introduced into
2277         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
2278         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
2279         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
2280         Fix suggested by Bruno Haible.
2282 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
2284         glob: pacify fuzzer for mempcpy
2285         Problem reported by Tim Rühsen in:
2286         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
2287         * lib/glob.c (glob): Do not pass NULL to mempcpy.
2289 2017-10-12  Bruno Haible  <bruno@clisp.org>
2291         doc: Fix syntax error (regression from 2017-10-03).
2292         * doc/posix-functions/strncpy.texi: Fix syntax error.
2294 2017-10-12  Bruno Haible  <bruno@clisp.org>
2296         doc: Update for Solaris 11.3.
2297         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
2298         mention Solaris 11.3.
2299         * m4/log2.m4: Fix comments.
2300         * m4/log2f.m4: Likewise.
2301         * m4/printf.m4: Update comments.
2302         * m4/rename.m4: Likewise.
2303         * m4/strncat.m4: Likewise.
2305         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
2307 2017-10-10  Bruno Haible  <bruno@clisp.org>
2309         doc: Improve doc about ioctl.
2310         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
2311         prototype.
2313 2017-10-09  Bruno Haible  <bruno@clisp.org>
2315         wcwidth: Don't use obsolete syntax of 'test'.
2316         Reported by Eric Blake.
2317         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
2318         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
2320 2017-10-09  Bruno Haible  <bruno@clisp.org>
2322         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
2323         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
2324         and Daniel P. Berrange <berrange@redhat.com>.
2325         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
2326         on glibc systems. The getopt-pfx-core.h file declares exactly what
2327         unistd.h needs, nothing more.
2329 2017-10-08  Bruno Haible  <bruno@clisp.org>
2331         vma-iter: Improve support for FreeBSD.
2332         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
2333         vma_iterate.
2334         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
2336 2017-10-08  Bruno Haible  <bruno@clisp.org>
2338         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
2339         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
2341 2017-10-07  KO Myung-Hun  <komh@chollian.net>
2343         test-framework-sh: Fix 'invalid path dir' error.
2344         On OS/2, a path separator is ';' not ':'. And ':' is used as a
2345         separator between a drive letter and directory parts.
2346         As a result, an absolute path such as x:/path/to/dir on OS/2 is
2347         treated as an invalid path dir.
2348         * tests/init.sh (PATH_SEPARATOR): Set at startup.
2349         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
2350         instead of hard coded ':'.
2352 2017-10-07  Bruno Haible  <bruno@clisp.org>
2354         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
2355         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
2356         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
2357         (rof_open): On Linux, do multiple read() calls and make sure
2358         MIN_LEFTOVER bytes are left when read() returns.
2360 2017-10-07  Bruno Haible  <bruno@clisp.org>
2362         vma-iter: Improve support for GNU/Hurd.
2363         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
2364         API, not the /proc file system.
2366 2017-10-07  Bruno Haible  <bruno@clisp.org>
2368         test-framework-sh: Don't require bash on Windows and OS/2.
2369         Reported by KO Myung-Hun.
2370         * tests/test-init.sh: Use 'shopt' only when running in bash.
2372 2017-10-06  KO Myung-Hun  <komh@chollian.net>
2374         wcwidth: check a macro version of wcwidth () as well
2375         * lib/wchar.in.h: Revert commit from 2016-01-14.
2376         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
2378 2017-10-06  Bruno Haible  <bruno@clisp.org>
2380         getopt-posix: Clarify copyright header.
2381         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
2382         * lib/getopt-pfx-core.h: Likewise.
2383         * lib/getopt-pfx-ext.h: Likewise.
2384         * lib/getopt-cdefs.in.h: Likewise.
2386 2017-10-03  Bruno Haible  <bruno@clisp.org>
2388         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
2389         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
2390         gl_HOST_CPU_C_ABI.
2392 2017-10-03  Bruno Haible  <bruno@clisp.org>
2394         doc: warn about misuse of strncpy and wcsncpy.
2395         * doc/posix-functions/strcpy.texi: Describe requirements on prior
2396         memory allocation.
2397         * doc/posix-functions/wcscpy.texi: Likewise.
2398         * doc/posix-functions/strncpy.texi: Describe what this function is not
2399         useful for.
2400         * doc/posix-functions/wcsncpy.texi: Likewise.
2402 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
2404         fsuage: fix typo in previous change
2405         * lib/fsusage.c: Remove stray include of full-read.h.
2406         Problem reported by Sam Steingold for macOS (Bug#28669).
2408 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
2410         fsusage: remove SVR2 support
2411         SVR2 was obsolete by 1986 and is no longer supported by anybody,
2412         and its code was getting in the way of use of this module by
2413         Emacs, which has its own ‘read’ function anyway.
2414         * lib/fsusage.c: Do not include sys/filsys.h.
2415         (get_fs_usage): Remove SVR2-specific code.
2416         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
2417         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
2418         * modules/fsusage (Depends-on): Do not depend on full-read.
2420         Simplify autoupdate of licenses
2421         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
2422         place.
2424 2017-10-01  Bruno Haible  <bruno@clisp.org>
2426         vma-iter: Add support for GNU/Hurd.
2427         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
2428         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
2430 2017-09-30  Bruno Haible  <bruno@clisp.org>
2432         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
2433         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
2434         fail when module 'largefile' is in use.
2435         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
2436         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
2437         Don't test HAVE_SYS_PROCFS_H.
2439 2017-09-30  Bruno Haible  <bruno@clisp.org>
2441         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
2442         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
2443         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
2444         * modules/havelib (Depends-on): Add host-cpu-c-abi.
2446 2017-09-30  Bruno Haible  <bruno@clisp.org>
2448         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
2449         * lib/uniname/uniname.c (unicode_name_character): Add braces around
2450         scope of local variables.
2452 2017-09-28  Bruno Haible  <bruno@clisp.org>
2454         string: code style
2455         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
2456         substitutable variables.
2457         * modules/string (Makefile.am): Likewise.
2459 2017-09-26  Bruno Haible  <bruno@clisp.org>
2461         uniname/uniname-tests: Tighten code.
2462         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
2463         local variables into one.
2465 2017-09-26  Bruno Haible  <bruno@clisp.org>
2467         vma-iter: Improvements for Linux and BSD platforms.
2468         - Add support for DragonFly BSD.
2469         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
2470         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
2471         Read the entire file into memory in a single system call.
2472         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
2473         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
2475 2017-09-26  Bruno Haible  <bruno@clisp.org>
2477         vma-iter: Provide the protection flags on FreeBSD.
2478         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
2479         skip three fields between the addresses and the protection flags.
2481 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2483         glob: remove bogus extern decl
2484         * lib/glob.c (__glob_pattern_type): Remove now-spurious
2485         extern declaration.  Problem reported by Adhemerval Zanella in:
2486         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
2488 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2490         uniname/uniname-tests: integer overflow fix
2491         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
2492         Check for integer overflow.
2494         duplocale-tests: fix unlikely crash
2495         * tests/test-duplocale.c (get_locale_dependent_values):
2496         Don’t crash with absurdly long month names.
2498         maint: fix overflow checking in nap.h
2499         * modules/chown-tests:
2500         * modules/fchownat-tests, modules/fdutimensat-tests:
2501         * modules/futimens-tests, modules/lchown-tests:
2502         * modules/stat-time-tests, modules/utime-tests:
2503         * modules/utimens-tests, modules/utimensat-tests:
2504         Depend on intprops.
2505         * tests/nap.h: Include intprops.h.
2506         (diff_timespec): Handle overflow properly.
2508         sys_types: update URL
2509         * m4/sys_types_h.m4: Use https: URL.
2511         parse-datetime: fix dependency
2512         * modules/parse-datetime (Depends-on): Depend
2513         on nstrftime, not strftime.
2515         parse-datetime, posixtm: avoid uninit access
2516         * lib/parse-datetime.y (parse_datetime2):
2517         * lib/posixtm.c (posixtime):
2518         Do not access uninitialized storage, even though the resulting
2519         value is never used.
2521 2017-09-25  Bruno Haible  <bruno@clisp.org>
2523         vma-iter: Improvements for BSD platforms.
2524         - Add support for GNU/kFreeBSD.
2525         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
2526         - Speed up on OpenBSD.
2527         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
2528         (vma_iterate_bsd): New function.
2529         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
2530         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
2531         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
2532         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
2534 2017-09-23  Bruno Haible  <bruno@clisp.org>
2536         strfmon_l: New module.
2537         * modules/strfmon_l: New file.
2538         * lib/strfmon_l.c: New file.
2539         * m4/strfmon_l.m4: New file.
2540         * doc/posix-functions/strfmon_l.texi: Mention the new module.
2541         * modules/strfmon_l-tests: New file.
2542         * tests/test-strfmon_l.c: New file.
2544         monetary: New module.
2545         * modules/monetary: New file.
2546         * lib/monetary.in.h: New file.
2547         * m4/monetary_h.m4: New file.
2548         * doc/posix-headers/monetary.texi: Mention the new module.
2549         * modules/monetary-tests: New file.
2550         * tests/test-monetary.c: New file.
2551         * modules/monetary-c++-tests: New file.
2552         * tests/test-monetary-c++.cc: New file.
2553         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
2555 2017-09-23  Bruno Haible  <bruno@clisp.org>
2557         duplocale tests: Fix test crash on Linux/x86.
2558         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
2559         locale from the current thread before freeing it.
2561 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
2563         mktime: port to OpenVMS
2564         Problem reported by John E. Malmberg in:
2565         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
2566         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
2568 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2570         manywarnings: port to GCC on 64-bit MS-Windows
2571         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
2572         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
2573         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
2575 2017-09-13  Bruno Haible  <bruno@clisp.org>
2577         all: Replace many more http URLs by https URLs. Update stale URLs.
2578         * users.txt: Remove mention of 'newts'.
2579         * lib/localename.c: Update comment about LANG_SOTHO.
2581 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2583         all: Replace many http URLs by https URLs.
2585 2017-09-12  Bruno Haible  <bruno@clisp.org>
2587         doc: Prefer https URLs where possible.
2588         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
2589         * doc/ld-output-def.texi: Remove unavailable URL.
2591 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2593         maintainer-makefile: FTP -> HTTPS
2594         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
2595         of FTP, which is planned to be decommissioned on 2017-11-01.
2597 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
2599         libc-config: Fix __GNUC_PREREQ macro.
2600         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
2601         __GNUC_MINOR.
2603 2017-09-09  Bruno Haible  <bruno@clisp.org>
2605         gnulib-tool: Simplify commit from 2015-08-20.
2606         * gnulib-tool (func_add_or_update): Remove local variable
2607         is_binary_file.
2609 2017-09-08  Bruno Haible  <bruno@clisp.org>
2611         stddef: Avoid conflict with system-defined max_align_t.
2612         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
2613         Reported by Werner Lemberg <wl@gnu.org> in
2614         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
2615         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
2616         (max_align_t): Define as a macro.
2617         (GNULIB_defined_max_align_t): New macro. Guards against multiple
2618         definitions of rpl_max_align_t in different copies of gnulib-generated
2619         <stddef.h>.
2621 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2623         libc-config: port to MSVC
2624         Problems reported by Gisle Vanem in:
2625         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
2626         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
2627         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
2628         * m4/__inline.m4: New file.
2629         * modules/libc-config (Files): Add it.
2630         (Depends-on): Use it.
2632         glob: Use enum for __glob_pattern_type result
2633         From a patch proposed by Adhemerval Zanella in:
2634         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
2635         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
2636         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
2637         * lib/glob_internal.h (__glob_pattern_type):
2638         * lib/glob.c (glob):
2639         * lib/glob_pattern_p.c (__glob_pattern_p):
2640         Use them.
2642         glob: fix for use in glibc
2643         Problem reported by Adhemerval Zanella in:
2644         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
2645         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
2646         Do not redefine if _LIBC.
2648 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2650         glob: fix bugs with long login names
2651         Problem reported by Adhemerval Zanella in:
2652         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
2653         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
2654         (glob): Use the same scratch buffer for both getlogin_r and
2655         getpwnam_r.  Don’t require preallocation of the login name.  This
2656         simplifies storage allocation, and corrects the handling of
2657         long login names.
2659 2017-09-02  Bruno Haible  <bruno@clisp.org>
2661         dirent: Update doc.
2662         * doc/posix-headers/dirent.texi: More concrete list of platforms.
2664 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2666         glob: fix getpwnam_r errno typo
2667         * lib/glob.c (glob): Fix longstanding misuse of errno after
2668         getpwnam_r, which returns an error number rather than setting
2669         errno.
2671         glob: fix typo in recent change
2672         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
2673         Fix recently-introduced typo.
2675 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2677         glob: don't save and restore errno unnecessarily
2678         * lib/glob.c (glob): Don't save and restore errno
2679         merely because we have getpwnam_r.
2681         glob: don't assume getpwnam_r
2682         * lib/glob.c (glob): Port recent patches to platforms
2683         lacking getpwnam_r.
2685         scratch_buffer: don’t use private glibc API
2686         Suggested by Florian Weimer in:
2687         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
2688         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
2689         * lib/scratch_buffer_grow.c: Rename to
2690         lib/malloc/scratch_buffer_grow.c.
2691         * lib/scratch_buffer_grow_preserve.c: Rename to
2692         lib/malloc/scratch_buffer_grow_preserve.c.
2693         * lib/scratch_buffer_set_array_size.c: Rename to
2694         lib/malloc/scratch_buffer_set_array_size.c.
2695         * lib/scratch_buffer.h: New file.
2696         * modules/scratch_buffer (Files, Makefile.am):
2697         Adjust to source-file renaming.
2699 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2701         glob: use scratch_buffer instead of extend_alloca
2702         Much of the lib/glob.c part of this patch comes from a glibc patch
2703         proposed by Adhemerval Zanella in:
2704         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
2705         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
2706         included via glob.h, does this for us now.
2707         (__set_errno): Remove, as libc-config does this for us now.
2708         Include <scratch_buffer.h>.
2709         (GETPW_R_SIZE_MAX): Remove.
2710         (glob): Use struct scratch_buffer instead of extend_alloca.
2711         * lib/glob.in.h: Include libc-config.h rather than
2712         including <sys/cdefs.h> conditionally.
2713         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
2714         (__glibc_unlikely, __restrict, weak_alias):
2715         Remove, as libc-config does this for us now.
2716         * m4/glob.m4 (gl_PREREQ_GLOB):
2717         Remove sys/cdefs.h tests; no longer needed.
2718         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
2719         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
2721         scratch_buffer: new module
2722         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
2723         * lib/scratch_buffer_grow_preserve.c:
2724         * lib/scratch_buffer_set_array_size.c:
2725         New files, copied from glibc with very minor changes that can be
2726         copied back.
2727         * modules/scratch_buffer: New file.
2729         libc-config: new module
2730         * MODULES.html.sh: Add libc-config.
2731         * lib/cdefs.h: New file, copied from the GNU C Library with very
2732         minor changes that can be copied back.
2733         * lib/libc-config.h, modules/libc-config: New files.
2735 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2737         glob: match dangling symlinks
2738         This fixes a bug I inadvertently introduced to Gnulib when I
2739         merged glibc glob back into gnulib on 2007-10-16.  This fix is
2740         inspired by a patch proposed for glibc by Adhemerval Zanella in:
2741         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
2742         * doc/posix-functions/glob.texi: Update list of affected platforms.
2743         * lib/glob.c (__lstat64): New macro.
2744         (is_dir): New function.
2745         (glob, glob_in_dir): Match symlinks even if they are dangling.
2746         (link_stat, link_exists_p): Remove.  All uses removed.
2747         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
2748         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
2749         * modules/glob-tests (Depends-on): Add symlink.
2750         * tests/test-glob.c: Include errno.h, unistd.h.
2751         (BASE): New macro.
2752         (main): Test dangling symlinks, if symlinks are supported.
2754         glob, backupfile: inode 0 is a valid inode number
2755         * doc/posix-functions/readdir.texi (readdir):
2756         * doc/posix-headers/dirent.texi (dirent.h):
2757         Document more readdir portability issues.
2758         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
2759         (numbered_backup): Don’t treat inode 0 any differently from
2760         other inode values.
2761         * lib/glob.c (struct readdir_result): Remove skip_entry member.
2762         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
2763         All uses removed.
2764         * modules/glob (Depends-on): Remove d-ino.
2766         glob: simplify symlink detection
2767         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
2768         uint8_t, as C99 does not require uint8_t.
2769         (struct readdir_result): Use it.  Do not define skip_entry unless
2770         it is needed; this saves a byte on platforms lacking d_ino.
2771         (readdir_result_type, readdir_result_skip_entry):
2772         New functions, replacing ...
2773         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
2774         ... these functions, which were removed.  This makes the callers
2775         easier to read.  All callers changed.
2776         (D_INO_TO_RESULT): Now empty if there is no d_ino.
2778 2017-08-30  Pádraig Brady  <P@draigBrady.com>
2780         fts-tests: tag as a longrunning-test so not included by default
2781         * modules/fts-tests: This test takes about 20s on current systems,
2782         and uses about 285M of space on ext4.
2784 2017-08-30  Pádraig Brady  <P@draigBrady.com>
2786         renameat2: fix compilation on alpine linux
2787         * m4/renameat.m4: Check for <linux/fs.h> presence.
2788         * lib/renameat2.h: Only include <linux/fs.h> if present.
2789         Reported by Assaf Gordon on Alpine Linux.
2791 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2793         glob: try to port recent changes to MS-Windows
2794         Problem reported by Bruno Haible in:
2795         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
2796         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
2797         * lib/glob.in.h (__glob_pattern_p): ... to here.
2799 2017-08-24  Eric Blake  <eblake@redhat.com>
2801         warnings: fix compilation with old autoconf
2802         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
2803         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
2804         AC_DEFUN.
2805         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
2806         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
2808 2017-08-24  Bruno Haible  <bruno@clisp.org>
2810         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
2811         * modules/glob (Depends-on): Add c99.
2813 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2815         glob: fix typo that broke platforms lacking d_ino
2816         This typo also hurt performance on GNU/Linux and similar hosts.
2817         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
2818         in previous change.
2820 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2822         glob: merge from glibc with Zanella glob changes
2823         Merge glob from glibc, with changes for glob proposed
2824         by Adhemerval Zanella in the thread starting here:
2825         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
2826         plus some fixes for this merge.
2827         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
2828         New files, ported from glibc.
2829         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
2830         with __restrict.
2831         (__size_t): Remove.  All uses replaced by size_t.
2832         (size_t): Define by defining __need_size_t and including <stddef.h>.
2833         This should work even in non-glibc platforms, where any name
2834         pollution is OK.
2835         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
2836         (struct stat64): Don’t worry about __GLOB_GNULIB.
2837         (glob, globfree, glob_pattern_p): Remove macros for
2838         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
2839         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
2840         but set errno.
2841         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
2842         removed since the glibc behavior works on null pointers.
2843         Do not include stdio.h; old SunOS is irrelevant now.
2844         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
2845         Include glob_internal.h.
2846         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
2847         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
2848         worked only coincidentally.
2849         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
2850         Remove macros; now done in glob.in.h.
2851         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
2852         (glob): Properly initialize glob structure with
2853         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
2854         Remove old code using SHELL since Bash no longer
2855         uses this.
2856         (glob, prefix_array): Separate MS code better.
2857         (glob, glob_in_dir): Use C99 decls before statements when glibc
2858         does.
2859         (glob_in_dir): Remove old Amiga and VMS code.
2860         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
2861         separate files.
2862         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
2863         (__glibc_unlikely):
2864         Move here from glob.c.
2865         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
2866         (weak_alias): New macro.
2867         (__size_t): Remove.  All uses replaced by size_t.
2868         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
2869         * modules/glob (Files): Add +lib/glob_internal.h,
2870         lib/glob_pattern_p.c, lib/globfree.c.
2871         (Depends-on): Remove snippet/arg-nonnull.
2873 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2875         glob: port to clang's Undefined Sanitizer
2876         Problem reported by Tim Rühsen in:
2877         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
2878         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
2879         (glob_in_dir): Do not rely on undefined behavior in accessing
2880         struct members beyond their bounds.  Use a flexible array member
2881         instead.
2883 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
2885         vc-list-files: port to Solaris 10
2886         * build-aux/vc-list-files: Don't assume test -e works.
2888 2017-08-21  Karl Berry  <karl@freefriends.org>
2890         * doc/posix-functions/srandom.texi (srandom): typo }.
2892 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2894         git-version-gen: port to Solaris 10
2895         Problem reported by Dagobert Michelsen in:
2896         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
2897         * build-aux/git-version-gen (v_from_git):
2898         Use expr instead of shell substitution.
2900 2017-08-19  Bruno Haible  <bruno@clisp.org>
2902         host-cpu-c-abi: Improve detection of MIPS ABI.
2903         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
2904         _MIPS_SIM.
2906 2017-08-17  Bruno Haible  <bruno@clisp.org>
2908         hypot tests: Fix test failure on FreeBSD 11.0/x86.
2909         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
2911 2017-08-17  Bruno Haible  <bruno@clisp.org>
2913         float: Fix LDBL_MIN value on FreeBSD/x86.
2914         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
2916 2017-08-17  Bruno Haible  <bruno@clisp.org>
2918         random: Fix test compilation failure on Cygwin 1.5.25.
2919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
2920         HAVE_DECL_SETSTATE.
2921         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
2922         declared.
2923         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
2924         HAVE_DECL_SETSTATE.
2925         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
2926         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
2927         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
2928         * doc/posix-functions/random.texi: Likewise.
2929         * doc/posix-functions/setstate.texi: Likewise.
2930         * doc/posix-functions/srandom.texi: Likewise.
2932 2017-08-16  Bruno Haible  <bruno@clisp.org>
2934         stdnoreturn: Fix test compilation failure on Cygwin.
2935         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
2936         <stdnoreturn.h> replacement.
2937         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
2938         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
2940 2017-08-16  Bruno Haible  <bruno@clisp.org>
2942         thread: Fix conflict with pthread_sigmask module.
2943         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
2944         it's defined as a macro.
2945         * modules/thread (Depends-on): Add pthread_sigmask.
2947 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
2949         rename: port better to NetBSD
2950         * doc/posix-functions/rename.texi (rename): NetBSD 7
2951         does not have the link-count bug.
2952         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
2953         broken merely because rename ("a", "b") removes "a" when the two
2954         names are hard links to the same file.
2956 2017-08-16  Bruno Haible  <bruno@clisp.org>
2958         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
2959         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
2960         the target file names with '$(srcdir)/'.
2961         * modules/unicase/locale-language (Makefile.am): Likewise.
2962         * modules/unicase/special-casing (Makefile.am): Likewise.
2963         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
2964         * modules/unictype/category-byname (Makefile.am): Likewise.
2965         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
2966         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
2967         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
2968         * modules/unictype/property-byname (Makefile.am): Likewise.
2969         * modules/unictype/scripts (Makefile.am): Likewise.
2970         * modules/uninorm/composition (Makefile.am): Likewise.
2972 2017-08-16  Bruno Haible  <bruno@clisp.org>
2974         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
2975         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
2976         value for OpenBSD.
2978 2017-08-16  Bruno Haible  <bruno@clisp.org>
2980         rename, renameat: Update doc regarding NetBSD.
2981         * doc/posix-functions/rename.texi: Clarify that when using
2982         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
2983         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
2984         version.
2986 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2988         renameat2: port better to macOS
2989         * lib/renameat2.c (renameat2): Use renameatx_np if available.
2991         futimens: don’t assume struct timespec layout
2992         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
2993         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
2994         * tests/test-fdutimensat.c (main):
2995         * tests/test-futimens.h (test_futimens):
2996         * tests/test-lutimens.h (test_lutimens):
2997         * tests/test-utimens.h (test_utimens):
2998         * tests/test-utimensat.c (main):
2999         Don’t assume that struct timespec is a two-member structure in
3000         tv_sec, tv_nsec order.  Although this is true on all platforms we
3001         know about, POSIX does not guarantee it.
3003         rename: document+test NetBSD rename
3004         Test failure reported by Bruno Haible in:
3005         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
3006         This is an area where NetBSD is better-behaved than POSIX,
3007         so allow the NetBSD behavior in tests.
3008         * doc/posix-functions/rename.texi:
3009         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
3010         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
3012 2017-08-15  Bruno Haible  <bruno@clisp.org>
3014         renameat: Ensure declaration in <stdio.h> on NetBSD.
3015         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
3016         * doc/posix-functions/renameat.texi: Mention this problem.
3018 2017-08-15  Bruno Haible  <bruno@clisp.org>
3020         duplocale: Work around NetBSD 7.0 bug.
3021         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
3022         * lib/duplocale.c: Add comment about NetBSD problem.
3023         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
3025 2017-08-15  Bruno Haible  <bruno@clisp.org>
3027         duplocale tests: Verify use with *_l functions.
3028         * modules/duplocale-tests (configure.ac): Test for uselocale and
3029         some *_l functions.
3030         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
3031         from main.
3032         (get_locale_dependent_values_from, test_with_locale_parameter): New
3033         functions.
3034         (main): Test both test_with_uselocale and test_with_locale_parameter.
3036 2017-08-15  Bruno Haible  <bruno@clisp.org>
3038         extensions: Enable NetBSD specific extensions.
3039         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
3041 2017-08-14  Bruno Haible  <bruno@clisp.org>
3043         open, openat: Update doc about O_CLOEXEC.
3044         * doc/posix-functions/open.texi: More concrete list of platforms.
3045         * doc/posix-functions/openat.texi: Likewise.
3047 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3049         open: support O_CLOEXEC
3050         * NEWS, doc/posix-functions/open.texi:
3051         * doc/posix-functions/openat.texi: Document this.
3052         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
3053         (GNULIB_defined_O_CLOEXEC): New symbol.
3054         * lib/open.c: Include cloexec.h.
3055         (open): Support O_CLOEXEC.
3056         * lib/openat.c: Include cloexec.h.
3057         (rpl_openat): Support O_CLOEXEC.
3058         * lib/popen-safer.c: Do not include cloexec.h.
3059         (open_noinherit): Remove.
3060         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
3061         * lib/save-cwd.c: Do not include cloexec.h.
3062         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
3063         * m4/open-cloexec.m4: New file.
3064         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
3065         Replace 'open' if O_CLOEXEC is not present.
3066         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
3067         Replace 'openat' if O_CLOEXEC is not present.
3068         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
3069         * modules/open (Files): Add m4/open-cloexec.m4.
3070         (Depends-on): Depend on cloexec if replacing 'open'.
3071         * modules/openat (Files): Add m4/open-cloexec.m4.
3072         (Depends-on): Depend on cloexec if replacing openat.
3073         * modules/popen-safer (Depends-on): Remove cloexec.
3074         * modules/save-cwd (Depends-on): Remove cloexec, and add
3075         fd-safer-flag and 'open'.
3077 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
3079         reallocarray: minor fixes
3080         * doc/glibc-functions/reallocarray.texi: Update version numbers.
3081         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
3082         * modules/reallocarray (License): Change from GPL to LGPL.
3083         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
3084         Indent properly and don't use tabs.
3086 2017-08-13  Darshit Shah  <darnir@gnu.org>
3088         reallocarray: New module
3089         reallocarray is a new function in glibc 2.26 to safely allocate an array
3090         of memory locations with integer overflow protection.
3091         * MODULES.html.sh: Add reallocarray.
3092         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
3093         * lib/reallocarray.c: New file to implement module reallocarray.
3094         * lib/stdlib.in.h: Add function declarations for reallocarray.
3095         * m4/reallocarray.m4: New file.
3096         * m4/stdlib_h.m4: Declare reallocarray.
3097         * modules/reallocarray: New file.
3098         * modules/reallocarray-test: New file.
3099         * modules/stdlib: Coerce stdlib.h to export reallocarray.
3100         * tests/test-reallocarray.c: New test.
3102 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3104         dirent-safer: fix cloexec race
3105         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
3106         (opendir_safer): Use F_DUPFD_CLOEXEC.
3107         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
3108         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
3109         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
3110         instead of dup_safer.
3112         fts: fix cloexec races
3113         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
3114         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
3115         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
3116         (fd_ring_check): Set cloexec flag on new file descriptors.
3117         (fts_build, fd_ring_check): While we’re at it, make sure the
3118         resulting file descriptor is not 0, 1, or 2, since that is easy.
3120 2017-08-11  Bruno Haible  <bruno@clisp.org>
3122         fts tests: Fix link error.
3123         Reported by Tom G. Christensen in
3124         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
3125         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
3127 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3129         fts: port recent changes to CentOS 6
3130         Problem reported by Tom G. Christensen in:
3131         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
3132         * lib/fts.c (fsword): New type.
3133         (struct dev_type, filesystem_type): Use it.
3134         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
3135         Also, check for f_type only if fstatfs and sys/vfs.h work.
3137 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3139         tempname: do not depend on secure_getenv
3140         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
3141         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
3142         * modules/tempname (Depends-on): Remove secure_getenv.
3144 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
3146         extensions: add _OPENBSD_SOURCE
3147         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
3149 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
3150             Bruno Haible  <bruno@clisp.org>
3152         manywarnings: Add support for C++.
3153         * build-aux/g++-warning.spec: New file.
3154         * m4/manywarnings-c++.m4: New file.
3155         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
3156         redirects to manywarnings-c++.m4.
3157         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
3159 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
3161         git-version-gen: another fix for tags with "-"
3162         * build-aux/git-version-gen: Improve fix for tags containing "-".
3163         Suggested by Markus Armbruster in:
3164         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
3166 2017-08-06  Bruno Haible  <bruno@clisp.org>
3168         warnings, manywarnings: Add support for multiple languages, not just C.
3169         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
3170         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
3171         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
3172         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
3173         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
3174         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
3175         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
3176         of the current language. If C++ is the current language, modify
3177         WARN_CXXFLAGS instead of WARN_CFLAGS.
3178         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
3179         gl_MANYWARN_ALL_GCC.
3180         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
3182 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
3184         git-version-gen: Fix for tags containing '-'
3186         Really old versions of git-describe (before v1.5.0, Feb 2007)
3187         don't have the number of commits in their long format output,
3188         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
3189         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
3190         recognizes both patterns, and normalizes the old format to the new one.
3192         Unfortunately, this normalization code gets confused when the tag
3193         contains '-'.  Reproducer:
3195             $ git-tag -m test v0.2-rc1
3196             $ build-aux/git-version-gen .tarball-version; echo
3197             build-aux/git-version-gen: WARNING: git rev-list failed
3198             UNKNOWN
3200         We take exact tag "v0.2-rc1" for the old format, extract the presumed
3201         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
3202         commits since tha tag.  Fails, because tag "v0.2" does not exist.
3204         * git-version-gen: We could perhaps drop support for versions from
3205         more than a decade ago.  But tightening the pattern match is easy
3206         enough, so do that.  Still breaks when you use version tags ending in
3207         something matching -g????, but you arguably get what you deserve then.
3209 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
3211         valgrind-tests: use ls, and cache
3212         * m4/valgrind-tests.m4: Test ls, not bash.
3213         Problem reported by Reuben Thomas.
3214         Also, cache the result so that it can be overridden.
3216 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
3218         manywarnings: port to 64-bit GCC builds of Emacs
3219         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
3220         object size rather than hardwiring 2147483647.  This is needed to
3221         build GNU Emacs, which has one conditional (and used
3222         only-in-theory) call to malloc with a literal greater than
3223         2147483647.
3225 2017-08-04  Bruno Haible  <bruno@clisp.org>
3227         Relax the license of some modules with no runtime code.
3228         * modules/std-gnu11 (License): Set to 'unlimited'.
3229         * modules/c99 (License): Likewise.
3230         Reported by Reuben Thomas <rrt@sc3d.org>.
3231         * modules/d-ino (License): Set to 'LGPL'.
3232         * modules/host-os (License): Likewise.
3233         * modules/longlong (License): Likewise.
3235 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
3237         renameat2: port to RHEL 7 + NFS
3238         * lib/renameat2.c (renameat2) [SYS_renameat2]:
3239         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
3240         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
3242 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3244         renameat2: port to non-renameat platforms
3245         Problem reported for MSVC-2015 by Gisle Vanem in:
3246         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
3247         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
3248         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
3250 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3252         manywarnings: port to 32-bit GCC bug
3253         Problem reported by Pino Toscano in:
3254         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
3255         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
3256         not 2**63 - 1, to work around the following GCC bug:
3257         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
3259 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
3261         backupfile: new function to validate backup suffix
3262         * lib/backupfile.c (set_simple_backup_suffix): New function.
3263         (backupfile_internal): Use it.
3265         canonicalize: fix EOVERFLOW commentary
3266         Problem reported by Bruno Haible in:
3267         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
3268         * lib/canonicalize.c (canonicalize_filename_mode):
3269         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
3271         Don't interpret EOVERFLOW to mean nonexistence
3272         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
3273         may be EOVERFLOW; this is likely more useful than reporting the
3274         stat errno.
3275         * lib/glob.c (link_stat): Rename from link_exists2_p and
3276         return -1/0 instead of 0/1.  Caller changed.
3277         * lib/glob.c (link_exists_p):
3278         * lib/renameat2.c (rename_noreplace, renameat2):
3279         * lib/tempname.c (try_nocreate):
3280         If errno == EOVERFLOW then the directory entry exists, so do not
3281         act as if it does not exist.
3283         backup-rename: new module
3284         It is like backupfile, except it avoids some race conditions,
3285         and it does not output to stderr or exit.
3286         * MODULES.html.sh: Add backup-rename.
3287         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
3288         * modules/backup-rename: New files.
3289         * lib/backupfile.c: Turn this into an internals file, which
3290         contains code common to backupfile and backup_rename.  Include
3291         backupfile-internal.h instead of backupfile.h.  Do not include
3292         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
3293         renameat2.h and fcntl.h.
3294         (BACKUP_NOMEM): New constant.
3295         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
3296         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
3297         (backupfile_internal): Rename from find_backup_file_name.
3298         Support new arg RENAME.
3299         (backup_args, backup_types, get_version, xget_version):
3300         Move to lib/backup-find.c.
3301         * lib/backupfile.h (backup_file_rename): New decl.
3302         * modules/backupfile (Files): Add lib/backup-internal.h,
3303         lib/backup-find.c.
3304         (Depends-on): Add dirfd, fcntl, renameat2.
3305         (lib_SOURCES): Add backup-find.c.
3307         renameat2: port better to older Solaris
3308         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
3309         Add goto to use a label, to silence picky compilers.
3311         fts-tests: port to gcc -Wwrite-strings
3312         * tests/test-fts.c (base, base_d): New static vars.
3313         (argv, remove_tree, main): Use them.
3315 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
3317         relocatable-lib{,-lgpl}: improve documentation
3318         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
3319         Various other updates.
3321 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
3322             Bruno Haible  <bruno@clisp.org>
3324         relocatable-lib{,-lgpl}: add Valgrind suppressions
3325         * lib/relocatable.valgrind: New file.
3326         * modules/relocatable-lib (Files): Add relocatable.valgrind.
3327         * modules/relocatable-lib-lgpl: Likewise.
3329 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
3331         relocatable: Make the license on the sources the GPL.
3332         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
3333         LGPL, which was a special case so that the relocatable source files
3334         could be used without gnulib-tool, to GPL. They can still be used under
3335         the LGPL, using the --lgpl option to gnulib-tool.
3337 2017-07-30  Bruno Haible  <bruno@clisp.org>
3339         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
3340         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
3341         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
3342         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
3343         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
3345 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
3347         faccessat: document AT_SYMLINK_NOFOLLOW issue
3348         * doc/posix-functions/faccessat.texi: Modernize platform list.
3349         Document AT_SYMLINK_NOFOLLOW limitation.
3351         renameat2: port to Solaris 10
3352         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
3353         with AT_SYMLINK_NOFOLLOW (which is not portable).
3354         (renameat): Undef before using, to avoid endless recursion when
3355         the replacement renameat calls renameat2 which calls the
3356         replacement renameat.
3357         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
3358         * modules/renameat2 (Depends-on): Remove faccessat.
3359         * modules/renameat-tests (test_renameat_LDADD):
3360         * modules/renameat2-tests (test_renameat2_LDADD):
3361         Remove $(LIB_EACCESS).
3363         renameat2: new module
3364         Although the Linux syscall renameat2 is not in glibc (yet?), it is
3365         useful to have access to its RENAME_NOREPLACE flag.
3366         * MODULES.html.sh (func_all_modules): Add renameat2.
3367         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
3368         * modules/renameat2-tests, tests/test-renameat2.c: New files.
3369         * lib/renameat.c (renameat): Move most of the implementation
3370         to renameat2, and just call renameat2.
3371         * modules/renameat (Files): Remove lib/at-func2.c.
3372         (Depends-on): Depend only on renameat2.
3373         (Include): Remove <fcntl.h>.
3374         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
3375         since renameat (via renameat2) might use faccessat.
3377 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
3379         vc-list-files: Adjust the script to support git worktrees
3380         * build-aux/vc-list-files: Require existence, not directory.
3382 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
3384         doc: bring MODULES.html.sh up to date
3385         Somehow a few months ago we stopped updating MODULES.html.sh.
3386         I don’t recall explicitly deciding this, so I updated it now.
3387         Alternatively I suppose we could remove it.
3388         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
3389         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
3390         truncate, utime, utime-h, windows-stat-inodes,
3391         windows-stat-override, windows-stat-timespec, year2038.  Sort.
3393 2017-07-26  Jim Meyering  <meyering@fb.com>
3395         fprintftime: fix build-break caused by recent renaming
3396         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
3397         "strftime.c".
3398         * modules/fprintftime: Depend directly on nstrftime.
3400 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
3402         regex: work with GCC7's -Werror=implicit-fallthrough=
3403         * lib/regex_internal.h (FALLTHROUGH): New macro.
3404         * lib/regcomp.c (peek_token_bracket, parse_expression):
3405         * lib/regexec.c (check_node_accept): Use it.
3407 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3409         fts: simplify fts_build
3410         * lib/fts.c (fts_build): Simplify, and be lazier about
3411         calling leaf_optimization.
3413         fts: three levels of leaf optimization
3414         * lib/fts.c (enum leaf_optimization): New type with three values.
3415         (S_MAGIC_AFS): New macro.  Sort them.
3416         (leaf_optimization): Rename from leaf_optimization_applies, and
3417         return enum leaf_optimization instead of bool.  All uses changed.
3418         Add cases for unknown type and for AFS.
3419         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
3421         fts: cache dirent_inode_sort_may_be_useful too
3422         * lib/fts.c (struct dev_type): New struct.
3423         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
3424         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
3425         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
3426         Now takes FTSENT const *, not int.  All uses changed.  Use
3427         filesystem_type to cache.
3428         (link_count_optimize_ok): Remove.  Caller changed to use
3429         leaf_optimization_applies, which now uses shared cache.
3431         fts: introduce MIN_DIR_NLINK
3432         * lib/fts.c (MIN_DIR_NLINK): New constant.
3433         Use it instead of 2, whenever we are talking about link counts.
3435         fts: nlink_t signedness fixups
3436         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
3437         so that root need not be a special case later.
3438         (fts_read): Remove now-redundant test for fts_level.
3439         Do not assume that nlink_t is signed.
3440         (fts_build): Remove useless decrement of nlinks.
3441         (fts_stat): Avoid unlikely signed integer overflow later, if
3442         nlink_t is signed.
3444         fts-tests: new module
3445         * modules/fts-tests, tests/test-fts.c: New files.
3447 2017-07-23  Bruno Haible  <bruno@clisp.org>
3449         Rename module 'strftime' to 'nstrftime'.
3450         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
3451         * lib/nstrftime.c: Renamed from lib/strftime.c.
3452         * modules/nstrftime: Renamed from modules/strftime.
3453         (Files, Makefile.am): Update.
3454         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
3455         Fix comment.
3456         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
3457         (Files, Makefile.am): Update.
3458         * modules/strftime: New file, an obsolete indirection.
3459         * doc/posix-functions/strftime.texi: Update reference.
3460         * config/srclist.txt: Update info.
3461         * NEWS: Mention the change.
3463 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
3465         malloca: Silence a warning from clang's memory sanitizer.
3466         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
3467         (freea): Use it.
3469 2017-07-18  Bruno Haible  <bruno@clisp.org>
3471         host-cpu-c-abi: Fix detection of MIPS ABI.
3472         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
3473         ABI, not the CPU instruction set.
3475 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
3477         explicit_bzero: new module
3478         The explicit_bzero function has been added to glibc.
3479         This module is intended to supports its use in GNU programs.
3480         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
3481         * m4/explicit_bzero.m4, modules/explicit_bzero:
3482         New files.
3483         * doc/gnulib.texi (Glibc string.h): Link to new doc.
3484         * lib/string.in.h (explicit_bzero): Declare.
3485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
3486         * modules/string (string.h): Substitute its vars.
3488 2017-07-16  Bruno Haible  <bruno@clisp.org>
3490         threadlib: Support static linking.
3491         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
3492         set gl_cv_have_weak to 'no'.
3494 2017-07-16  Bruno Haible  <bruno@clisp.org>
3496         unicase/locale-language: Fix link dependencies.
3497         * modules/unicase/locale-language (Link): New section.
3498         * modules/unicase/locale-language-tests (Makefile.am): Link
3499         test-locale-language program with $(LIBTHREAD).
3501 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
3503         sys_socket: Add support for OpenVMS.
3504         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
3505         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
3507 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
3509         sys_resource: Add support for OpenVMS.
3510         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
3511         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
3513 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
3514             Bruno Haible  <bruno@clisp.org>
3516         math: Add support for OpenVMS.
3517         * lib/math.in.h [__VMS]: Include <fp.h>.
3518         * doc/posix-headers/math.texi: Mention OpenVMS issues.
3520 2017-07-15  Bruno Haible  <bruno@clisp.org>
3522         getdtablesize: Add minimal support for OpenVMS.
3523         Reported by John E. Malmberg <wb8tyw@qsl.net>.
3524         * modules/getdtablesize (Description): Fix.
3525         * lib/getdtablesize.c: Fix comment.
3526         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
3527         getdtablesize() function, even though the test fails.
3528         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
3529         limitation on OpenVMS.
3531 2017-07-13  Bruno Haible  <bruno@clisp.org>
3533         Revisit cross-compilation guesses.
3534         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
3536 2017-07-13  Bruno Haible  <bruno@clisp.org>
3538         Improve cross-compilation guesses for native Windows.
3539         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
3540         Windows.
3541         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
3542         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
3543         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
3544         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
3545         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
3546         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3547         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3548         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3549         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3550         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3551         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3552         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
3553         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
3554         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
3555         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
3556         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
3557         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
3558         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3559         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3560         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
3561         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3562         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3563         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
3564         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
3565         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
3566         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
3567         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3568         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3569         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3570         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
3571         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3572         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
3573         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3574         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
3575         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
3576         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
3577         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
3578         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
3579         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
3580         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3581         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3582         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3583         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
3584         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
3585         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
3586         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
3587         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
3588         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
3589         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
3590         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
3591         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
3592         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
3593         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
3594         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
3595         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
3596         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
3597         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
3598         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
3599         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
3600         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3601         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3602         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
3603         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
3604         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3605         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3606         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3607         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
3608         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
3609         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
3610         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
3611         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
3612         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3613         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3614         * m4/regex.m4 (gl_REGEX): Likewise.
3615         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3616         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
3617         gl_FUNC_REMAINDERF_WORKS): Likewise.
3618         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
3619         gl_FUNC_REMAINDERL_WORKS): Likewise.
3620         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3621         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3622         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3623         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3624         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3625         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3626         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3627         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3628         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
3629         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3630         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
3631         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
3632         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3633         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
3634         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
3635         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3636         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3637         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3638         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
3639         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
3640         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3641         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3642         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3643         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
3644         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3645         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3646         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
3647         Likewise.
3648         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3649         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
3650         Windows. Enable also on Autoconf 2.70.
3651         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3652         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3653         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
3654         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
3655         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3656         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
3657         for native Windows.
3658         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
3659         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
3661 2017-07-13  Bruno Haible  <bruno@clisp.org>
3663         Improve cross-compilation guesses for native Windows.
3664         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
3665         Windows.
3666         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
3667         memchr.m4.
3668         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
3670 2017-07-13  Bruno Haible  <bruno@clisp.org>
3672         Improve cross-compilation guesses for native Windows.
3673         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
3674         native Windows.
3675         (gl_FUNC_FFLUSH): Update accordingly.
3676         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
3677         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
3679 2017-07-11  Bruno Haible  <bruno@clisp.org>
3681         More systematic m4 quoting and indentation.
3682         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
3683         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3684         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
3685         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3686         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3687         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
3688         gl_WINSIZE_IN_PTEM): Likewise.
3689         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
3690         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
3691         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3692         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
3693         Correct indentation.
3694         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3695         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3696         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
3697         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3698         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
3699         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3701 2017-07-10  Bruno Haible  <bruno@clisp.org>
3703         round, roundf: Avoid compiler warning in configure test.
3704         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
3705         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3707 2017-07-10  Bruno Haible  <bruno@clisp.org>
3709         getlogin tests: Avoid #ifdefs when sharing code between modules.
3710         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
3711         * modules/getlogin-tests (Files): Likewise. Remove
3712         tests/test-getlogin_r.c.
3713         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
3714         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
3715         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
3716         getlogin().
3718 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3720         getlogin: don’t assume one name per uid
3721         Problem reported by Wolfgang F. Muthmann (Bug#27640).
3722         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
3723         (ttyname): Remove test.
3724         * modules/getlogin_r-tests (ttyname): Remove test.
3725         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
3726         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
3727         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
3728         getlogin rather than getlogin_r.  This avoids code duplication.
3729         (main): Use isatty and fstat rather than ttyname and stat.
3730         Use getpwnam instead of getpwuid, to be portable to test platforms
3731         that have multiple login names for the same uid.
3733 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
3734             Bruno Haible  <bruno@clisp.org>
3736         glob: Fix more memory leaks.
3737         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
3738         returning.
3739         Reported by Tim Rühsen.
3741 2017-07-10  Bruno Haible  <bruno@clisp.org>
3743         Make sure $host and $host_os are defined when used.
3744         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
3745         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
3746         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
3747         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3748         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3749         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
3750         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
3751         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
3752         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3753         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3754         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
3755         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
3756         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
3757         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
3758         m4_ifdef block.
3760 2017-07-09  Bruno Haible  <bruno@clisp.org>
3762         *printf: Fix cross-compilation guess for Solaris.
3763         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
3764         2010-12-21.
3766 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
3767             Bruno Haible  <bruno@clisp.org>
3769         vasnprintf: port to macOS 10.13
3770         Problem reported by comex in:
3771         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
3772         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
3774 2017-07-06  Bruno Haible  <bruno@clisp.org>
3776         imaxdiv tests: Fix logic.
3777         * tests/test-imaxdiv.c (main): Use == instead of =.
3778         Reported by Coverity.
3780 2017-07-06  Bruno Haible  <bruno@clisp.org>
3782         uninorm/filter: Fix use-after-free bug.
3783         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
3784         sortbuf == filter->sortbuf invariant.
3785         Reported by Coverity.
3787 2017-07-06  Bruno Haible  <bruno@clisp.org>
3789         glob: Fix more memory leaks.
3790         * lib/glob.c (glob): Free dirname before returning.
3791         Reported by Coverity and Tim Rühsen.
3793 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3795         parse-datetime: fix uninit var bug
3796         Reported by Bruno Haible in:
3797         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
3798         * lib/parse-datetime.y (parse_datetime2): Do not use
3799         uninitialized.
3801 2017-07-05  Bruno Haible  <bruno@clisp.org>
3803         doc: Update for MSVC 14.
3804         * doc/posix-headers/*.texi: Add info about MSVC 14.
3805         * doc/posix-functions/*.texi: Likewise.
3806         * doc/pastposix-functions/*.texi: Likewise.
3807         * doc/glibc-headers/*.texi: Likewise.
3808         * doc/glibc-functions/*.texi: Likewise.
3810 2017-07-05  Bruno Haible  <bruno@clisp.org>
3812         sched: Fix build failure on native Windows (regression from 2017-06-19).
3813         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
3815 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
3817         stdioext: Port to OpenVMS.
3818         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
3819         * lib/fpending.c (fpending): Remove non-working VMS specific code.
3820         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
3821         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
3822         * lib/fpurge.c (fpurge): Likewise.
3823         * lib/freadable.c (freadable): Likewise.
3824         * lib/freadahead.c (freadahead): Likewise.
3825         * lib/freading.c (freading): Likewise.
3826         * lib/freadptr.c (freadptr): Likewise.
3827         * lib/freadseek.c (freadseek): Likewise.
3828         * lib/fseeko.c (fseeko): Likewise.
3829         * lib/fseterr.c (fseterr): Likewise.
3830         * lib/fwritable.c (fwriteable): Likewise.
3831         * lib/fwriting.c (fwriting): Likewise.
3833 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
3835         glob: Declare variables at the very start of their scope.
3836         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
3837         its separate scope, so the functions will compile on Haiku.
3839 2017-07-01  Bruno Haible  <bruno@clisp.org>
3841         logbl: Work around a glibc bug on PowerPC64LE.
3842         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
3843         numbers.
3844         * doc/posix-functions/logbl.texi: Update.
3846 2017-06-29  Bruno Haible  <bruno@clisp.org>
3848         stat, fstat: Compile stat-w32.c only on platforms that need it.
3849         Suggested by Paul Eggert.
3850         * modules/stat (configure.ac): Request stat-w32.o only on native
3851         Windows.
3852         * modules/fstat (configure.ac): Likewise.
3854 2017-06-25  Bruno Haible  <bruno@clisp.org>
3856         stat: Improve last change.
3857         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
3859 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
3861         stat: port to xlc 12.01
3862         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
3863         12.01 complains "Compilation unit is empty."
3865 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
3867         xalloc-oversized: port to icc
3868         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
3869         __builtin_mul_overflow if ICC is defined, as this results in
3870         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
3871         20170213.
3873 2017-06-19  Bruno Haible  <bruno@clisp.org>
3875         classpath: Avoid including config.h twice, as it produces warnings.
3876         Reported by John E. Malmberg <wb8tyw@gmail.com>.
3877         * lib/classpath.h: Conditionalize the include of config.h.
3879 2017-06-19  Bruno Haible  <bruno@clisp.org>
3880             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
3882         sched: Fix compilation failure on OpenVMS.
3883         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
3884         test whether <pthread.h> exists and defines struct sched_param.
3885         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
3887 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3889         diffseq: port to GCC 7 with --enable-gcc-warnings
3890         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
3891         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
3892         not complain about big_snake being defined but not used.
3894 2017-06-15  Bruno Haible  <bruno@clisp.org>
3896         gettext-h: Update theoretical condition for use of variable size arrays.
3897         Reported by Paul Eggert.
3898         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
3899         to include the theoretical condition for availability of variable size
3900         arrays, if we could trust the value of __STDC_VERSION__.
3902 2017-06-12  Bruno Haible  <bruno@clisp.org>
3904         Relicense some modules under LGPLv2+.
3905         Daiki Ueno's approval is in
3906         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
3907         * modules/uniwidth/base (License): Change to LGPLv2+.
3908         * modules/uniwidth/width (License): Likewise.
3910 2017-06-11  Bruno Haible  <bruno@clisp.org>
3912         localename: Fix test failure on DragonFly BSD.
3913         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
3914         like FreeBSD.
3916 2017-06-11  Bruno Haible  <bruno@clisp.org>
3918         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
3919         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
3920         * lib/float.in.h: Likewise.
3921         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
3923 2017-06-11  Bruno Haible  <bruno@clisp.org>
3925         gnulib-tool: Clean up after autotools.
3926         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
3927         useless directory left over by the Autotools.
3929 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
3931         getopt-posix: port to glibc 2.25.90
3932         Problem reported by Daniel P. Berrange in:
3933         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
3934         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
3935         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
3936         #undef if __GETOPT_PREFIX is defined.
3938 2017-06-11  Bruno Haible  <bruno@clisp.org>
3940         strtod-obsolete: Fix license.
3941         * modules/strtod-obsolete (License): Change to LGPL.
3943 2017-06-10  Jim Meyering  <meyering@fb.com>
3945         maint: update to work with GCC7's -Werror=implicit-fallthrough=
3946         * lib/savewd.c (FALLTHROUGH): Define.
3947         (savewd_save, savewd_restore): Use this, rather than a comment,
3948         whenever one switch case falls through into the next.
3950 2017-06-08  Bruno Haible  <bruno@clisp.org>
3952         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
3953         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
3954         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
3955         case.
3957 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
3959         doc: remove robots, add prereqs
3960         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
3961         builds.  Simon's robot site does not seem to be up, so remove
3962         mentions of it for now.
3964 2017-06-08  Bruno Haible  <bruno@clisp.org>
3966         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
3967         * gnulib-tool (func_symlink_target): New function, extracted from
3968         func_symlink.
3969         (func_symlink, func_symlink_if_changed): Use it.
3971 2017-06-08  Bruno Haible  <bruno@clisp.org>
3973         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
3974         * gnulib-tool (func_ln_s): Determine cp_src correctly.
3976 2017-06-07  Bruno Haible  <bruno@clisp.org>
3978         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
3979         Reported by John E. Malmberg <wb8tyw@gmail.com> in
3980         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
3981         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
3982         override, pass 2 arguments to getcwd, not 3.
3984 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
3986         same-inode: port better to VMS 8.2 and later
3987         Problem reported by John E. Malmberg in:
3988         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
3989         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
3990         Use the usual POSIX definition.
3991         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
3993 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
3995         error: fix POSIX violation for va_end
3996         Problem reported by Bruno Haible in:
3997         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
3998         * lib/error.c (error_tail): Do not call va_end here.
3999         (error, error_at_line): Call it here instead.
4001 2017-05-28  Bruno Haible  <bruno@clisp.org>
4003         c-strtod: Make it usable in C++ mode.
4004         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
4006 2017-05-25  Jim Meyering  <meyering@fb.com>
4008         quotearg: fix compilation failure due to FALLTHROUGH misuse
4009         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
4010         macro back to /* fall through */ comment.  The macro can apply only
4011         to a following case statement.  Reported by Assaf Gordon.
4013 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
4015         intprops: port to recent icc
4016         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
4017         but does not support __builtin_add_overflow etc.
4018         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
4019         Define to 0.
4021 2017-05-23  Karl Berry  <karl@freefriends.org>
4023         * config/srclist.txt (iconv.m4): sync broken, comment out
4024         until (hopefully) the next gettext release.
4026 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
4028         Remove repeated words in comments.
4030 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
4032         fallthrough: reinstate a FALLTHROUGH instance in quotearg
4033         quotearg.c: Reinstate this instance which is significant
4034         when the if branch is not taken.
4036 2017-05-21  Bruno Haible  <bruno@clisp.org>
4038         gnulib-tool: Add options to create hard links.
4039         * gnulib-tool (func_usage): Document options --hardlink,
4040         --local-hardlink, --more-hardlinks.
4041         (func_symlink): Renamed from func_ln.
4042         (func_symlink_if_changed): Renamed from func_ln_if_changed.
4043         (func_hardlink): New function.
4044         (copymode, lcopymode): New variables.
4045         (symbolic, lsymbolic): Remove variables.
4046         (Options): Implement options --hardlink, --local-hardlink,
4047         --more-hardlinks.
4048         (func_should_link): Renamed from func_should_symlink. Set copyaction.
4049         (func_add_file, func_update_file): Update invocation of
4050         func_should_link. Invoke func_hardlink when appropriate.
4051         (func_import): Update comments.
4052         (func_create_testdir): Update invocation of func_should_link. Invoke
4053         func_hardlink when appropriate.
4054         Finally, invoke 'git update-index --refresh' to mitigate the effects of
4055         the hard links on git.
4057 2017-05-20  Bruno Haible  <bruno@clisp.org>
4059         argp: Simplify bit manipulation.
4060         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
4061         on a signed integer type.
4063 2017-05-20  Bruno Haible  <bruno@clisp.org>
4065         Avoid wrong configure results with gcc -fsanitize=address.
4066         This completes the work done on 2016-02-06 on this topic.
4067         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
4068         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
4069         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4070         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4071         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
4072         returning.
4073         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4074         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
4075         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4076         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4077         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
4078         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4079         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
4080         free allocated memory before returning.
4081         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4082         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
4083         objects before returning.
4084         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
4085         returning.
4087 2017-05-20  Bruno Haible  <bruno@clisp.org>
4089         gnulib-tool: Don't create hard links between gnulib and its testdirs.
4090         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
4092 2017-05-20  Bruno Haible  <bruno@clisp.org>
4094         argp, tsearch tests: Fix file list.
4095         * modules/argp-tests (Files): Add tests/macros.h.
4096         * modules/tsearch-tests (Files): Likewise.
4098 2017-05-20  Bruno Haible  <bruno@clisp.org>
4100         getopt-posix tests: Remove redundant include.
4101         * tests/test-getopt.h: Don't include "macros.h". It's already included
4102         by tests/test-getopt-main.h.
4104 2017-05-19  Jim Meyering  <meyering@fb.com>
4106         dfa: two small simplifications
4107         * lib/dfa.c (build_state): Avoid repeating longer expressions.
4109 2017-05-18  Jim Meyering  <meyering@fb.com>
4111         fallthrough: update for GCC 7/8
4112         * lib/quotearg.c (FALLTHROUGH): New macro.
4113         Use it whenever one switch case falls through into the next,
4114         replacing "/* Fall through */" comments.  This exposed one
4115         instance of an unwarranted "fall through" comment: unwarranted
4116         because it preceded a "goto" label not a case statement.
4117         * lib/freopen-safer.c (freopen_safer): Likewise.
4118         * lib/fts.c (leaf_optimization_applies): Likewise.
4119         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
4120         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
4121         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
4122         tests/macros.h for the definition.
4123         * tests/test-argp.c (group1_parser): Likewise.
4124         * tests/test-getopt.h (getopt_loop): Likewise.
4126 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4128         argp: fix shift bug
4129         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
4130         behavior on shift overflow, caught by gcc -fsanitize=undefined.
4132         argp: fix pointer-subtraction bug
4133         * lib/argp-help.c (hol_append): Don’t subtract pointers to
4134         different arrays, as this can run afoul of -fcheck-pointer-bounds.
4135         See the thread containing Bruno Haible’s report in:
4136         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
4138 2017-05-19  Bruno Haible  <bruno@clisp.org>
4140         printf-posix tests: Avoid test failure with "gcc --coverage".
4141         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4142         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
4143         than 5000000.
4144         * tests/test-fprintf-posix2.c (main): Likewise.
4146 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4148         closeout: don’t close stderr when sanitizing
4149         * NEWS: Document this.
4150         * lib/closeout.c (__has_feature): New macro, if not already defined.
4151         (SANITIZE_ADDRESS): New constant.
4152         (close_stdout): Don’t close stderr if sanitizing addresses.
4154 2017-05-19  Bruno Haible  <bruno@clisp.org>
4156         get-rusage-data tests: Avoid failure on Linux/glibc.
4157         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
4158         on glibc systems.
4160 2017-05-18  Bruno Haible  <bruno@clisp.org>
4162         localename: Include necessary header files on Cygwin.
4163         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
4164         where NL_LOCALE_NAME is defined.
4166 2017-05-18  Bruno Haible  <bruno@clisp.org>
4168         gettext: Update macros from gettext git.
4169         * m4/intldir.m4: Require Autoconf >= 2.60.
4170         * m4/progtest.m4: Fix typos in copyright notice.
4172 2017-05-18  Bruno Haible  <bruno@clisp.org>
4174         copy-file tests: Fix link error (regression from 2017-05-01).
4175         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4176         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
4177         $(LIB_CLOCK_GETTIME).
4179 2017-05-18  Bruno Haible  <bruno@clisp.org>
4181         unicase/special-casing: Fix incompatibility with gperf-3.0.4
4182         (regression from 2017-02-13).
4183         * lib/unicase/special-casing.in.h: Renamed from
4184         lib/unicase/special-casing.h.
4185         * modules/unicase/special-casing (Files): Add
4186         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
4187         (Makefile.am): Add rule for generating unicase/special-casing.h.
4188         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
4189         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
4190         not "special-casing.h".
4191         * lib/unicase/u*.c: Likewise.
4193 2017-05-17  Bruno Haible  <bruno@clisp.org>
4195         README: Don't ask people to read a TeXinfo file.
4196         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4197         * README: Tell people how to read the HTML formatted manual.
4199 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
4201         parse-datetime: Fix memleak
4202         * lib/parse-datetime.y (parse_datetime2): Cleanup on
4203         localtime_rz() failure.
4205 2017-05-16  Bruno Haible  <bruno@clisp.org>
4207         javacomp: Fix handle leak.
4208         Found by Coverity.
4209         * lib/javacomp.c (get_classfile_version): Close fd before returning.
4211 2017-05-16  Bruno Haible  <bruno@clisp.org>
4213         relocate: Make it easier to reclaim allocated memory.
4214         * lib/relocatable.h (relocate2): New declaration/macro.
4215         * lib/relocatable.c (relocate2): New function.
4216         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
4217         relocate2 function.
4218         * lib/localcharset.c (relocate2): Define fallback.
4219         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
4220         allocated memory.
4221         * lib/javaversion.c (relocate2): Define fallback.
4222         (javaexec_version): Invoke relocate2 instead of relocate. Free the
4223         allocated memory.
4225 2017-05-16  Bruno Haible  <bruno@clisp.org>
4227         relocate: Simplify EMX specific code.
4228         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
4229         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
4231 2017-05-16  Bruno Haible  <bruno@clisp.org>
4233         sigpipe tests: Fix file list.
4234         * modules/sigpipe-tests (Files): Add tests/macros.h.
4236 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4238         manywarnings: update for GCC 7
4239         * build-aux/gcc-warning.spec:
4240         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
4241         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
4242         requires a non-comment fallthrough attribute.  This is a bit
4243         cleaner than the comment versions.
4244         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
4245         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
4246         Use it whenever one switch case falls through into the next.
4247         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
4248         Use FALLTHROUGH macro.
4250 2017-05-15  Bruno Haible  <bruno@clisp.org>
4252         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
4253         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
4254         @ALLOCA@, not @LTALLOCA@.
4256 2017-05-15  Bruno Haible  <bruno@clisp.org>
4258         sys_select: Avoid "was expanded before it was required" warning.
4259         * modules/sys_select (configure.ac): Require, not invoke,
4260         gl_HEADER_SYS_SELECT.
4262 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4264         gnulib-tool: improve GNU Make debugging
4265         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
4266         Report autoconf diagnostics when it fails, in the output makefile.
4268 2017-05-14  Bruno Haible  <bruno@clisp.org>
4270         stat-time tests: Improve comment.
4271         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
4273 2017-05-14  Bruno Haible  <bruno@clisp.org>
4275         same-inode: Adapt for windows-stat-inodes.
4276         * lib/same-inode.h: Include <sys/types.h>.
4277         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
4278         * modules/same-inode (Depends-on): Add sys_types.
4280 2017-05-14  Bruno Haible  <bruno@clisp.org>
4282         windows-stat-inodes: New module.
4283         * m4/windows-stat-inodes.m4: New file.
4284         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
4285         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
4286         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
4287         (_GL_WINDOWS_STAT_INODES): New macro.
4288         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
4289         (GetFileInformationByHandleExFunc): New variable.
4290         (initialize): Initialize it.
4291         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
4292         st_ino appropriately.
4293         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
4294         a fallback, because it does not provide st_dev and st_ino values.
4295         * modules/fstat (Depends-on): Add 'verify'.
4296         * modules/windows-stat-inodes: New file.
4297         * doc/windows-stat-inodes.texi: New file.
4298         * doc/gnulib.texi: Include it.
4299         * doc/posix-headers/sys_stat.texi: Mention the new module.
4301 2017-05-14  Bruno Haible  <bruno@clisp.org>
4303         stat-time tests: Workaround for native Windows.
4304         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
4305         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
4306         New variables.
4307         (initialize_filenames): New function.
4308         (main): Invoke it.
4309         (cleanup, prepare_test): Update.
4311 2017-05-14  Bruno Haible  <bruno@clisp.org>
4313         stat-time: Adapt for windows-stat-timespec.
4314         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
4315         entire st_ctim field.
4317 2017-05-13  Jim Meyering  <meyering@fb.com>
4319         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
4320         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
4321         file that uses the assume macro, claiming that verify.h is unused.
4323 2017-05-13  Bruno Haible  <bruno@clisp.org>
4325         Use symbolic values for _WIN32_WINNT.
4326         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
4327         * lib/sethostname.c (_WIN32_WINNT): Likewise.
4329 2017-05-13  Bruno Haible  <bruno@clisp.org>
4331         year2038: New module.
4332         * m4/year2038.m4: New file.
4333         * modules/year2038: New file.
4334         * doc/year2038.texi: New file.
4335         * doc/gnulib.texi: Include it.
4337 2017-05-13  Bruno Haible  <bruno@clisp.org>
4339         largefile: Simplify.
4340         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
4341         of _GL_WINDOWS_64_BIT_ST_SIZE.
4343 2017-05-13  Bruno Haible  <bruno@clisp.org>
4345         largefile: Improve and document.
4346         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
4347         the mingw headers already define 'stat' appropriately.
4348         * modules/largefile (Description): Clarify.
4349         * doc/largefile.texi: New file.
4350         * doc/gnulib.texi: Include it.
4351         * doc/posix-headers/sys_types.texi: Update.
4353 2017-05-13  Bruno Haible  <bruno@clisp.org>
4355         truncate: New module.
4356         * lib/unistd.in.h (truncate): New declaration.
4357         * lib/truncate.c: New file.
4358         * m4/truncate.m4: New file.
4359         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
4360         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
4361         REPLACE_TRUNCATE.
4362         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
4363         HAVE_TRUNCATE, REPLACE_TRUNCATE.
4364         * modules/truncate: New file.
4365         * tests/test-unistd-c++.cc (truncate): Test signature.
4366         * doc/posix-functions/truncate.texi: Mention the new module.
4368         * tests/test-truncate.c: New file.
4369         * modules/truncate-tests: New file.
4371 2017-05-13  Bruno Haible  <bruno@clisp.org>
4373         windows-stat-timespec: New module.
4374         * modules/windows-stat-timespec: New file.
4375         * m4/windows-stat-timespec.m4: New file.
4376         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
4377         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
4378         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
4379         fields st_atim, st_mtim, st_ctim.
4380         (st_atime, st_mtime, st_ctime): Define as macros.
4381         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
4382         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
4383         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
4384         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
4385         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
4386         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
4387         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
4388         FILETIME to 'struct timespec', not 'time_t'.
4389         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
4390         FILETIME to 'struct timespec', not 'time_t'.
4391         * lib/stat-time.h (STAT_TIMESPEC): Define also if
4392         _GL_WINDOWS_STAT_TIMESPEC.
4393         * doc/windows-stat-timespec.texi: New file.
4394         * doc/gnulib.texi: Include it.
4396 2017-05-13  Bruno Haible  <bruno@clisp.org>
4398         windows-stat-override: New module.
4399         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
4400         definition. Define GNULIB_defined_struct_stat.
4401         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
4402         link error if this symbol is used and the corresponding module is not
4403         in use.
4404         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
4405         GNULIB_OVERRIDES_STRUCT_STAT.
4406         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
4407         GNULIB_OVERRIDES_STRUCT_STAT.
4408         * modules/sys_stat (Makefile.am): Substitute
4409         GNULIB_OVERRIDES_STRUCT_STAT.
4410         * modules/windows-stat-override: New file.
4412 2017-05-13  Bruno Haible  <bruno@clisp.org>
4414         fstat: Fix module dependency conditions.
4415         * modules/fstat (Depends-on): Fix typo.
4417 2017-05-13  Bruno Haible  <bruno@clisp.org>
4419         stat, fstat: Complete removal of old native Windows code.
4420         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
4421         * lib/fstat.c: Likewise.
4422         * lib/stat-w32.c: Likewise.
4424 2017-05-13  Bruno Haible  <bruno@clisp.org>
4426         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
4427         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
4429 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4431         getopt-posix: port to mingw
4432         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
4433         Problem reported by Daniel P. Berrage in:
4434         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
4436 2017-05-11  Bruno Haible  <bruno@clisp.org>
4438         gettimeofday: Increase precision on mingw.
4439         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
4440         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
4441         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
4442         GetSystemTimePreciseAsFileTime based implementation always.
4443         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
4444         mingw.
4446 2017-05-11  Bruno Haible  <bruno@clisp.org>
4448         poll: Fix confusion between SOCKETs and FDs on native Windows.
4449         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
4450         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
4452 2017-05-11  Bruno Haible  <bruno@clisp.org>
4454         doc: Clarify doc about socket functions on native Windows.
4455         This reworks doc that was added on 2008-09-29.
4456         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
4457         clearer wording.
4458         * doc/posix-functions/accept.texi: Use clearer wording.
4459         * doc/posix-functions/bind.texi: Likewise.
4460         * doc/posix-functions/connect.texi: Likewise.
4461         * doc/posix-functions/getpeername.texi: Likewise.
4462         * doc/posix-functions/getsockname.texi: Likewise.
4463         * doc/posix-functions/getsockopt.texi: Likewise.
4464         * doc/posix-functions/ioctl.texi: Likewise.
4465         * doc/posix-functions/listen.texi: Likewise.
4466         * doc/posix-functions/recv.texi: Likewise.
4467         * doc/posix-functions/recvfrom.texi: Likewise.
4468         * doc/posix-functions/send.texi: Likewise.
4469         * doc/posix-functions/sendto.texi: Likewise.
4470         * doc/posix-functions/setsockopt.texi: Likewise.
4471         * doc/posix-functions/shutdown.texi: Likewise.
4472         * doc/posix-functions/socket.texi: Likewise.
4474 2017-05-10  Bruno Haible  <bruno@clisp.org>
4476         poll: Fix link error on native Windows.
4477         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
4479 2017-05-10  Bruno Haible  <bruno@clisp.org>
4481         time: Fix missing initialization of HAVE_TIMEZONE_T.
4482         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
4483         here...
4484         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
4485         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
4486         gl_HEADER_SYS_TIME_H_DEFAULTS.
4487         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
4488         (configure.ac): Remove useless quoting.
4490 2017-05-10  Bruno Haible  <bruno@clisp.org>
4492         Implement a way to opt out from MSVC support, part 2.
4493         * modules/msvc-inval (Include): Document recommended idiom.
4494         * modules/msvc-nothrow (Include): Likewise.
4496         Implement a way to opt out from MSVC support.
4497         This is useful for Emacs.
4498         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
4499         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
4500         * lib/error.c: Likewise.
4501         * lib/fcntl.c: Likewise.
4502         * lib/flock.c: Likewise.
4503         * lib/fstat.c: Likewise.
4504         * lib/fsync.c: Likewise.
4505         * lib/ioctl.c: Likewise.
4506         * lib/isapipe.c: Likewise.
4507         * lib/lseek.c: Likewise.
4508         * lib/nonblocking.c: Likewise.
4509         * lib/poll.c: Likewise.
4510         * lib/select.c: Likewise.
4511         * lib/sockets.h: Likewise.
4512         * lib/sockets.c: Likewise.
4513         * lib/stdio-read.c: Likewise.
4514         * lib/stdio-write.c: Likewise.
4515         * lib/utimens.c: Likewise.
4516         * lib/w32sock.h: Likewise.
4517         * lib/w32spawn.h: Likewise.
4518         * tests/test-cloexec.c: Likewise.
4519         * tests/test-dup-safer.c: Likewise.
4520         * tests/test-dup2.c: Likewise.
4521         * tests/test-dup3.c: Likewise.
4522         * tests/test-fcntl.c: Likewise.
4523         * tests/test-pipe.c: Likewise.
4524         * tests/test-pipe2.c: Likewise.
4525         * lib/ftruncate.c: Likewise.
4526         (chsize_nothrow): Renamed from chsize.
4527         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
4528         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
4529         * lib/close.c: Likewise.
4530         * lib/dup.c: Likewise.
4531         * lib/fclose.c: Likewise.
4532         * lib/raise.c: Likewise.
4533         * tests/test-fgetc.c: Likewise.
4534         * tests/test-fputc.c: Likewise.
4535         * tests/test-fread.c: Likewise.
4536         * tests/test-fwrite.c: Likewise.
4537         * lib/getdtablesize.c: Likewise.
4538         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
4539         * lib/isatty.c: Don't include msvc-inval.h if
4540         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
4541         Include <io.h> as an alternative to msvc-nothrow.h.
4542         * lib/read.c: Likewise.
4543         * lib/write.c: Likewise.
4544         * lib/dup2.c: Likewise.
4545         (dup2_nothrow): New function.
4546         (ms_windows_dup2): Use it.
4547         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
4548         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
4549         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
4550         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
4551         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
4552         * m4/read.m4 (gl_FUNC_READ): Likewise.
4553         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
4554         * doc/windows-without-msvc.texi: New file.
4555         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
4556         section.
4558 2017-05-10  Bruno Haible  <bruno@clisp.org>
4560         wait-process: Adjust native Windows support.
4561         * lib/wait-process.c: Use the usual condition for recognizing a native
4562         Windows platform.
4564 2017-05-10  Bruno Haible  <bruno@clisp.org>
4566         doc: New chapter "Native Windows Support".
4567         * doc/gnulib.texi (Native Windows Support): New chapter.
4568         * doc/windows-libtool.texi: Small wording changes.
4569         * doc/windows-sockets.texi: Small wording and formatting changes.
4571 2017-05-10  Bruno Haible  <bruno@clisp.org>
4573         doc: Move section "Library version handling".
4574         * doc/gnulib.texi: Move section "Library version handling"
4575         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
4577 2017-05-10  Bruno Haible  <bruno@clisp.org>
4579         doc: Move section "Running self-tests under valgrind".
4580         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
4581         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
4583 2017-05-10  Bruno Haible  <bruno@clisp.org>
4585         doc: New chapter "Build Infrastructure Modules".
4586         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
4588 2017-05-10  Bruno Haible  <bruno@clisp.org>
4590         Prepare for reordering sections in the manual.
4591         * doc/gnulib.texi: Move several sections to separate files. Include
4592         these files.
4593         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
4594         * doc/obsolete.texi: Likewise.
4595         * doc/extra-tests.texi: Likewise.
4596         * doc/transversal.texi: Likewise.
4597         * doc/namespace.texi: Likewise.
4598         * doc/check-version.texi: Likewise.
4599         * doc/windows-sockets.texi: Likewise.
4600         * doc/windows-libtool.texi: Likewise.
4601         * doc/licenses-texi.texi: Likewise.
4602         * doc/build-automation.texi: Likewise.
4603         * doc/c-locale.texi: Likewise.
4605 2017-05-10  Bruno Haible  <bruno@clisp.org>
4607         Fix instructions how to update manual on www.gnu.org.
4608         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
4610 2017-05-09  Bruno Haible  <bruno@clisp.org>
4612         tzset: Expand comment about TZ problem on native Windows.
4613         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
4614         Paul Eggert.
4615         * lib/ctime.c (rpl_ctime): Likewise.
4616         * lib/localtime.c (rpl_localtime): Likewise.
4617         * lib/mktime.c (mktime): Likewise.
4618         * lib/strftime-fixes.c (rpl_strftime): Likewise.
4619         * lib/wcsftime.c (rpl_wcsftime): Likewise.
4621 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4623         intprops: don’t depend on ‘verify’
4624         Problem reported by Ævar Arnfjörð Bjarmason in:
4625         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
4626         * lib/intprops.h: Do not include verify.h, and move compile-time
4627         checks from here ...
4628         * tests/test-intprops.c (main): ... to here, if they’re not here
4629         already.  Check widths of other standard integer types.
4630         * modules/intprops (Depends-on): Remove ‘verify’.
4632 2017-05-07  Bruno Haible  <bruno@clisp.org>
4634         utimens: On native Windows, support 100ns resolution also if fd < 0.
4635         * lib/utime.in.h: Include <time.h>.
4636         (_gl_utimens_windows): New declaration.
4637         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
4638         (utime): Invoke it.
4639         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
4640         instead of utime.
4641         * modules/utime (Depends-on): Add 'time'.
4643 2017-05-07  Bruno Haible  <bruno@clisp.org>
4645         utimens: Improve error code on native Windows.
4646         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
4647         error code EACCES, not EINVAL.
4649 2017-05-07  Bruno Haible  <bruno@clisp.org>
4651         utime: Handle more Windows error codes.
4652         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
4653         Based on explanations by Billy O'Neal.
4655 2017-05-05  Bruno Haible  <bruno@clisp.org>
4657         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
4658         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
4659         union.
4660         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
4661         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
4662         value of cipher->IV.
4664 2017-05-05  Bruno Haible  <bruno@clisp.org>
4666         wctype-h-c++-tests: Update.
4667         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
4669 2017-05-05  Bruno Haible  <bruno@clisp.org>
4671         wchar-c++-tests: Update.
4672         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
4674 2017-05-05  Bruno Haible  <bruno@clisp.org>
4676         utime-h-c++-tests: New module.
4677         * tests/test-utime-h-c++.cc: New file.
4678         (utime): Declare, missing since 2017-04-30.
4679         * modules/utime-h-c++-tests: New file.
4681 2017-05-05  Bruno Haible  <bruno@clisp.org>
4683         unistd-c++-tests: Update.
4684         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
4685         (read): Declare, missing since 2011-04-15.
4686         (sethostname): Declare, missing since 2011-12-03.
4688 2017-05-05  Bruno Haible  <bruno@clisp.org>
4690         time-c++-tests: Update.
4691         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
4692         (localtime, gmtime): Declare, missing since 2017-04-30.
4693         (ctime): Declare, missing since 2017-04-30.
4694         (strftime): Declare, missing since 2017-04-30.
4695         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
4696         2015-07-24.
4698 2017-05-05  Bruno Haible  <bruno@clisp.org>
4700         sys_resource-c++-tests: New module.
4701         * tests/test-sys_resource-c++.cc: New file.
4702         (getrusage): Declare, missing since 2012-04-13.
4703         * modules/sys_resource-c++-tests: New file.
4705 2017-05-05  Bruno Haible  <bruno@clisp.org>
4707         strings-c++-tests: New module.
4708         * tests/test-strings-c++.cc: New file.
4709         (ffs): Declare, missing since 2011-07-12.
4710         * modules/strings-c++-tests: New file.
4712 2017-05-05  Bruno Haible  <bruno@clisp.org>
4714         string-c++-tests: Update.
4715         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
4716         (ffsll): Declare, missing since 2011-07-15.
4718 2017-05-05  Bruno Haible  <bruno@clisp.org>
4720         stdlib-c++-tests: Update.
4721         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
4722         2011-10-18.
4723         (ptsname_r): Declare, missing since 2011-11-07.
4724         (qsort_r): Declare, missing since 2014-08-29.
4725         (random, srandom, initstate, setstate): Declare, missing since
4726         2012-01-14.
4727         (secure_getenv): Declare, missing since 2013-02-05.
4729 2017-05-05  Bruno Haible  <bruno@clisp.org>
4731         stdio-c++-tests: Update.
4732         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
4734 2017-05-05  Bruno Haible  <bruno@clisp.org>
4736         signal-h-c++-tests: Update.
4737         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
4739 2017-05-05  Bruno Haible  <bruno@clisp.org>
4741         math-c++-tests: Update.
4742         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
4743         (fma): Declare, missing since 2011-10-17.
4744         (fmal): Declare, missing since 2011-10-17.
4746 2017-05-05  Bruno Haible  <bruno@clisp.org>
4748         locale-c++-tests: Update.
4749         * tests/test-locale-c++.cc (localeconv): Declare, missing since
4750         2012-03-25.
4752 2017-05-05  Bruno Haible  <bruno@clisp.org>
4754         inttypes-c++-tests: New module.
4755         * tests/test-inttypes-c++.cc: New file.
4756         (strtoimax): Declare, missing since 2012-01-05.
4757         (strtoumax): Declare, missing since 2012-01-05.
4758         * modules/inttypes-c++-tests: New file.
4760 2017-05-05  Bruno Haible  <bruno@clisp.org>
4762         dirent-c++-tests: Update.
4763         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
4764         (rewinddir): Declare, missing since 2011-09-13.
4765         (dirfd): Declare, missing since 2010-03-08.
4767 2017-05-04  Bruno Haible  <bruno@clisp.org>
4769         argp: Fix mistake in 2017-04-23 commit.
4770         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
4771         assume that strerror_r returns 'int', not 'char *'.
4773 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
4775         argp: Fix typo.
4776         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
4778 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
4780         utimens: port to Emacs + MS-Windows
4781         Skip the new MS-Windows-specific code if Emacs.
4782         * lib/utimens.c [EMACS_CONFIGUATION]:
4783         Avoid new MS-Windows-specific code.
4784         (USE_SETFILETIME): New macro.
4785         (fdutimens): Use it.
4787 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
4789         tzset: update doc for TZ problems on MS-Windows
4790         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
4791         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
4792         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
4793         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
4794         * doc/posix-functions/wcsftime.texi:
4795         Mention some issues with TZ under MS-Windows.
4797 2017-05-01  Bruno Haible  <bruno@clisp.org>
4799         copy-file: Fix build error on mingw.
4800         * modules/copy-file (Depends-on): Add 'close'.
4802 2017-05-01  Bruno Haible  <bruno@clisp.org>
4804         tzset: Work around TZ problem on native Windows.
4805         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
4806         Windows, set REPLACE_TZSET to 1.
4807         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
4808         invoke '_tzset' instead of 'tzset'.
4809         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
4811         * modules/time_rz (Depends-on): Add tzset.
4812         * lib/time_rz.c (tzset): Remove fallback definition.
4813         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
4815 2017-05-01  Bruno Haible  <bruno@clisp.org>
4817         mktime: Fix dependencies.
4818         * modules/mktime (Depends-on): Add 'time'.
4820 2017-05-01  Bruno Haible  <bruno@clisp.org>
4822         New module 'localtime-buffer', split off from module 'gettimeofday'.
4823         * lib/localtime-buffer.h: New file.
4824         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
4825         * lib/time.in.h (tzset): New declaration.
4826         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
4827         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
4828         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
4829         moved to lib/localtime-buffer.c or lib/tzset.c.
4830         * m4/localtime-buffer.m4: New file.
4831         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
4832         HAVE_TZSET, REPLACE_TZSET.
4833         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
4834         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
4835         gl_LOCALTIME_BUFFER_NEEDED.
4836         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
4837         since 2007-01-18.
4838         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
4839         tzset.
4840         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
4841         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
4842         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
4843         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
4844         * modules/localtime-buffer: New file.
4845         * modules/time (Depends-on): Remove 'gettimeofday'.
4846         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
4847         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
4848         * modules/tzset (Description): Enable hyperlink to POSIX spec.
4849         (Files): Add lib/tzset.c.
4850         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
4851         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
4852         gl_TIME_MODULE_INDICATOR.
4853         * modules/gettimeofday (Depends-on): Add localtime-buffer.
4855 2017-05-01  Bruno Haible  <bruno@clisp.org>
4857         copy-file: Preserve sub-second time stamps.
4858         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
4859         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
4860         transport the time stamps from the original file to the destination
4861         file.
4862         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
4863         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
4864         utime-h.
4866 2017-05-01  Bruno Haible  <bruno@clisp.org>
4868         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
4869         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
4870         also on MSVC.
4871         Reported by Eli Zaretskii <eliz@gnu.org>.
4873 2017-05-01  Bruno Haible  <bruno@clisp.org>
4875         wchar: Fix compilation error with the original mingw.org mingw.
4876         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
4877         <stddef.h> instead.
4878         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
4879         gl_WCTYPE_H.
4880         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
4881         gl_TYPE_WINT_T_PREREQ instead.
4882         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
4883         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
4884         Reported by Eli Zaretskii <eliz@gnu.org>.
4886 2017-04-30  Bruno Haible  <bruno@clisp.org>
4888         utimecmp: Add support for native Windows.
4889         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
4891 2017-04-30  Bruno Haible  <bruno@clisp.org>
4893         utimens: Add support for native Windows.
4894         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
4895         (fdutimens): Provide a native Windows implementation, like utime.c with
4896         added tv_nsec support.
4897         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
4898         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
4900 2017-04-30  Bruno Haible  <bruno@clisp.org>
4902         wcsftime: New module.
4903         * lib/wchar.in.h (wcsftime): New declaration.
4904         * lib/wcsftime.c: New file.
4905         * m4/wcsftime.m4: New file.
4906         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
4907         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
4908         HAVE_WCSFTIME, REPLACE_WCSFTIME.
4909         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
4910         HAVE_WCSFTIME, REPLACE_WCSFTIME.
4911         * modules/wcsftime: New file.
4912         * doc/posix-functions/wcsftime.texi: Mention the new module.
4914 2017-04-30  Bruno Haible  <bruno@clisp.org>
4916         strftime-fixes: New module.
4917         * lib/time.in.h (strftime): New declaration.
4918         * lib/strftime-fixes.c: New file.
4919         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
4920         (gl_FUNC_STRFTIME): Remove macro.
4921         * m4/strftime-fixes.m4: New file.
4922         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
4923         REPLACE_STRFTIME.
4924         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
4925         REPLACE_STRFTIME.
4926         * modules/strftime-fixes: New file.
4927         * doc/posix-functions/strftime.texi: Mention the new module.
4929 2017-04-30  Bruno Haible  <bruno@clisp.org>
4931         mktime: Work around TZ problem on native Windows.
4932         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
4933         from the native Windows workaround.
4934         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
4935         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
4936         'guessing no'.
4937         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
4938         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
4939         NEED_MKTIME_WINDOWS.
4940         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
4941         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
4942         NEED_MKTIME_INTERNAL.
4943         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
4944         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
4945         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
4946         not REPLACE_MKTIME.
4947         * doc/posix-functions/mktime.texi: Mention the native Windows
4948         workaround.
4950 2017-04-30  Bruno Haible  <bruno@clisp.org>
4952         localtime: New module.
4953         * lib/time.in.h (localtime): Declare also if requested by module
4954         'localtime'.
4955         * lib/localtime.c: New file.
4956         * m4/localtime.m4: New file.
4957         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
4958         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
4959         * modules/localtime: New file.
4960         * doc/posix-functions/localtime.texi: Mention the new module.
4962 2017-04-30  Bruno Haible  <bruno@clisp.org>
4964         ctime: New module.
4965         * lib/time.in.h (ctime): New declaration.
4966         * lib/ctime.c: New file.
4967         * m4/ctime.m4: New file.
4968         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
4969         REPLACE_CTIME.
4970         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
4971         * modules/ctime: New file.
4972         * doc/posix-functions/ctime.texi: Mention the new module.
4974 2017-04-30  Bruno Haible  <bruno@clisp.org>
4976         gettimeofday: Provide higher resolution on native Windows.
4977         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
4978         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
4979         (initialize): Initialize it.
4980         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
4981         'struct timeval'. Don't use _ftime().
4982         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
4983         <sys/timeb.h> and _ftime.
4985 2017-04-30  Bruno Haible  <bruno@clisp.org>
4987         Document the problem with the Cygwin environment variable TZ.
4988         * doc/posix-functions/tzset.texi: Add note about TZ.
4989         * doc/posix-functions/ctime.texi: Likewise.
4990         * doc/posix-functions/localtime.texi: Likewise.
4991         * doc/posix-functions/mktime.texi: Likewise.
4992         * doc/posix-functions/strftime.texi: Likewise.
4993         * doc/posix-functions/wcsftime.texi: Likewise.
4994         * doc/pastposix-functions/ftime.texi: Likewise.
4996 2017-04-30  Bruno Haible  <bruno@clisp.org>
4998         utime-tests: New module.
4999         * tests/test-utime.c: New file, based on tests/test-utimens.h.
5000         * tests/test-utimens-common.h: Include <sys/stat.h>.
5001         * modules/utime-tests: New file.
5003 2017-04-29  Bruno Haible  <bruno@clisp.org>
5005         utime: New module.
5006         * lib/utime.in.h: Add comment for snippets.
5007         (utime): New declaration.
5008         * lib/utime.c: New file.
5009         * m4/utime.m4: New file.
5010         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
5011         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
5012         REPLACE_UTIME.
5013         * modules/utime-h (Depends-on): Add snippets.
5014         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
5015         Insert snippets.
5016         * modules/utime: New file.
5017         * doc/posix-functions/utime.texi: Mention the new module.
5019 2017-04-29  Bruno Haible  <bruno@clisp.org>
5021         utime-h: Modernize handling of 'struct utimbuf'.
5022         * lib/utime.in.h: Include next <utime.h> if it exists.
5023         (utimbuf): Define to _utimbuf on native Windows.
5024         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
5025         Set UTIME_H on native Windows.
5026         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
5027         * modules/utime-h (Depends-on): Add include_next.
5028         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
5029         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
5031         * lib/utimens.c (utimbuf): Remove fallback definition.
5032         * m4/utimens.m4 (gl_UTIMENS): Don't require
5033         gl_CHECK_TYPE_STRUCT_UTIMBUF.
5034         * m4/utimbuf.m4: Remove file.
5035         * modules/utimens (Files): Remove m4/utimbuf.m4.
5037 2017-04-29  Bruno Haible  <bruno@clisp.org>
5039         Make use of module 'utime-h'.
5040         * modules/copy-file (Depends-on): Add utime-h.
5041         * lib/copy-file.c: Assume that <utime.h> exists.
5042         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
5044         * modules/utimens (Depends-on): Add utime-h.
5045         * lib/utimens.c: Assume that <utime.h> exists.
5047 2017-04-29  Bruno Haible  <bruno@clisp.org>
5049         utime-h: New module.
5050         * m4/utime_h.m4: New file.
5051         * lib/utime.in.h: New file.
5052         * modules/utime-h: New file.
5053         * doc/posix-headers/utime.texi: Mention the new module.
5055         * tests/test-utime-h.c: New file.
5056         * modules/utime-h-tests: New file.
5058 2017-04-30  Bruno Haible  <bruno@clisp.org>
5060         Fix a few typos.
5061         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
5062         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
5063         * doc/posix-functions/fstat.texi: Fix a plural typo.
5064         * doc/posix-functions/stat.texi: Likewise.
5065         * m4/include_next.m4: Update comments.
5067 2017-04-29  Bruno Haible  <bruno@clisp.org>
5069         error: Fix mistake in 2017-04-23 commit.
5070         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
5071         assume that strerror_r returns 'int', not 'char *'.
5073 2017-04-29  Bruno Haible  <bruno@clisp.org>
5075         stat: Fix time_t values and other problems on native Windows platforms.
5076         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
5077         implementations of stat().
5078         * lib/stat.c: Include filename.h instead of dosname.h. Include
5079         malloca.h, stat-w32.h.
5080         (is_unc_root): New function.
5081         (rpl_stat): New implementation for native Windows. Remove
5082         REPLACE_FUNC_STAT_DIR code.
5083         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
5084         Don't define REPLACE_FUNC_STAT_DIR.
5085         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
5086         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
5087         (Depends-on): Remove dosname. Add filename, malloca.
5088         (configure.ac): Also compile lib/stat-w32.c.
5090 2017-04-29  Bruno Haible  <bruno@clisp.org>
5092         fstat: Fix time_t values on native Windows platforms.
5093         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
5094         * lib/stat-w32.h: New file.
5095         * lib/stat-w32.c: New file.
5096         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
5097         stat-w32.h instead.
5098         (fstat_nothrow): Remove function.
5099         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
5100         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
5101         always.
5102         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
5103         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
5104         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
5105         (configure.ac): Also compile lib/stat-w32.c.
5107 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5109         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
5110         Problem reported by Assaf Gordon and Gavin Smith in:
5111         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
5112         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
5113         #define this, too.
5115 2017-04-29  Bruno Haible  <bruno@clisp.org>
5117         strerror_r-posix: Fixes for MSVC 14.
5118         * lib/strerror_r.c: Include <stdarg.h>.
5119         (strerror_r): Provide error messages for errno values 100...140.
5120         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
5122 2017-04-28  Bruno Haible  <bruno@clisp.org>
5124         noreturn: New module.
5125         * lib/noreturn.h: New file.
5126         * modules/noreturn: New file.
5127         * tests/test-noreturn.c: New file.
5128         * modules/noreturn-tests: New file.
5129         * tests/test-noreturn-c++.cc: New file.
5130         * modules/noreturn-c++-tests: New file.
5132 2017-04-27  Bruno Haible  <bruno@clisp.org>
5134         wctype-h: Fix compilation error with the original mingw.org mingw.
5135         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
5136         HAVE_CRTDEFS_H.
5137         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
5138         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
5139         <stddef.h> instead.
5140         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
5142 2017-04-26  Pádraig Brady  <P@draigBrady.com>
5144         nap.h: Fix compilation on non windows platforms
5145         * tests/nap.h: Move misplaced endif.
5147 2017-04-26  Pádraig Brady  <P@draigBrady.com>
5148         and Paul Eggert  <eggert@cs.ucla.edu>
5150         time_rz: fix heap buffer overflow vulnerability
5151         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
5152         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
5153         whether there is enough buffer space available, thus avoiding
5154         the problematic promotion of signed to unsigned causing an invalid
5155         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
5156         the start of the buffer.
5157         * tests/test-parse-datetime.c (main): Add a test case written by
5158         Paul Eggert, which overwrites enough of the heap so that
5159         standard glibc will fail with "free(): invalid pointer"
5160         without the patch applied.
5162 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5164         xalloc: add missing integer overflow check
5165         * lib/xalloc.h (x2nrealloc): Also check for multiplication
5166         overflow when P is null.
5168 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5170         parse-datetime: make it standalone
5171         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
5172         (_GL_ATTRIBUTE_FORMAT): New macro.
5173         These are needed to get './gnulib-tool --test parse-datetime' to work.
5175 2017-04-23  Bruno Haible  <bruno@clisp.org>
5177         nap.h: Port to native Windows.
5178         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
5179         use nap_fd instead. On native Windows, close and reopen nap_fd.
5180         (nap_works): Don't compare the ctimes, because on native Windows, these
5181         are the creation times.
5182         (nap): Update.
5184 2017-04-23  Bruno Haible  <bruno@clisp.org>
5186         nap.h: Fix logic.
5187         * tests/nap.h (nap): Avoid signed integer overflow in loop.
5189 2017-04-23  Bruno Haible  <bruno@clisp.org>
5191         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
5192         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
5193         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
5194         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
5195         * lib/argp-help.c (__argp_failure): Likewise.
5197 2017-04-23  Bruno Haible  <bruno@clisp.org>
5199         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
5200         * m4/strerror_r.m4: Revert changes since 2016-10-16.
5201         * lib/strerror_r.c: Likewise.
5203 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
5205         Target a C99 subset, not a C89 subset
5206         For many years Gnulib has targeted C89 and has resisted using C99
5207         features, as some Gnulib-using programs still wanted to target
5208         C89.  As this no longer seems to be the case, relax the porting
5209         requirements to allow some C99 features.  This is merely a change
5210         to the documentation, to give other Gnulib developers a chance to
5211         weigh in on the topic.
5212         * doc/extern-inline.texi (extern inline):
5213         * doc/gnulib-readme.texi (Portability guidelines):
5214         * doc/gnulib-tool.texi (Initial import):
5215         * doc/gnulib.texi (Header files):
5216         Modernize to talk about C99 and C11 instead of C89 and C99.
5217         * doc/gnulib-readme.texi (Portability guidelines):
5218         Now a section, not merely a subsection, so that it
5219         can be split up.  Modernize a bit.
5220         (C language versions, C99 features assumed)
5221         (C99 features avoided):
5222         New sections.
5224 2017-04-23  Bruno Haible  <bruno@clisp.org>
5226         doc: New section "Modules that modify the way other modules work".
5227         * doc/gnulib.texi (Modules that modify the way other modules work): New
5228         section.
5230 2017-04-23  Bruno Haible  <bruno@clisp.org>
5232         stat-time: Update comments.
5233         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
5234         * tests/test-utimens-common.h: Add reference regarding st_ctime on
5235         Windows.
5237 2017-04-01  Bruno Haible  <bruno@clisp.org>
5239         glob: Fix more memory leaks.
5240         * lib/glob.c (glob): Free allocated memory before returning.
5241         Reported by Coverity via Tim Rühsen.
5243 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5245         poll: improve fast check for out-of-range NFD
5246         * lib/poll.c: Do not include intprops.h.
5247         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
5248         * modules/poll (Depends-on): Remove intprops.
5250         ftoastr: cite a newer paper
5251         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
5252         instead of Loitsch 2010.
5254 2017-04-22  Bruno Haible  <bruno@clisp.org>
5256         poll: Enable argument check also in the Windows implementation.
5257         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
5258         Reported by Paul Eggert.
5260 2017-04-22  Bruno Haible  <bruno@clisp.org>
5262         getlogin_r: Work around bug in Mac OS X 10.12.
5263         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
5264         bug.
5265         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
5266         given size minus 1, call getlogin_r a second time, on a larger buffer.
5267         * modules/getlogin_r (Depends-on): Add malloca.
5268         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
5270 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5272         parse-datetime: fix %z and prefer signed int
5273         %z problem reported by Pádraig Brady in:
5274         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
5275         While fixing it, I decided to prefer signed ints to size_t, as
5276         they are less error-prone (e.g., ubsan catches overflow).
5277         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
5278         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
5279         counts, since signed integers make for better debugging.
5280         (date): Don’t assume %z works in printf formats.
5281         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
5282         sizes of buffers known to be small, e.g., because we’re using snprintf.
5283         (parse_datetime2): Simplify call to debug_mktime_not_ok.
5285 2017-04-22  Bruno Haible  <bruno@clisp.org>
5287         *printf: Work around rounding bug on Mac OS X.
5288         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
5289         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
5290         Mac OS X and FreeBSD.
5291         * doc/glibc-functions/*printf.texi: Likewise.
5293 2017-04-22  Bruno Haible  <bruno@clisp.org>
5295         vasnprintf tests: Avoid warnings.
5296         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
5297         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
5298         test.
5300 2017-04-22  Bruno Haible  <bruno@clisp.org>
5302         sys_file tests: Avoid warning.
5303         * tests/test-sys_file.c (main): Add a default clause to the switch
5304         statement.
5306 2017-04-22  Bruno Haible  <bruno@clisp.org>
5308         sethostname: Update doc.
5309         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
5310         Mac OS X.
5312 2017-04-22  Bruno Haible  <bruno@clisp.org>
5314         quotearg tests: Avoid warnings.
5315         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
5316         false.
5318 2017-04-22  Bruno Haible  <bruno@clisp.org>
5320         poll: Enable argument check.
5321         * lib/poll.c: Include intprops.h.
5322         (poll): Check value of nfd correctly.
5323         * modules/poll (Depends-on): Add intprops.
5325 2017-04-22  Bruno Haible  <bruno@clisp.org>
5327         get-rusage-data: Avoid warnings on Mac OS X.
5328         * lib/get-rusage-data.c: On Mac OS X, don't define
5329         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
5330         (get_rusage_data) [Mac OS X]: Just return 0.
5332 2017-04-22  Bruno Haible  <bruno@clisp.org>
5334         xbinary-io: Fix build error.
5335         * modules/xbinary-io (Depends-on): Add gettext-h.
5336         * lib/xbinary-io.c: Include gettext.h and define _().
5337         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
5338         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
5340 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5342         parse-datetime: overflow and debug cleanups
5343         This long patch was triggered by this bug report from Ruediger Meier:
5344         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
5345         I fixed the bug he noted, then found some others nearby, and then
5346         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
5347         up some of the code to follow GNU standards while I was at it.
5348         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
5349         use c_isdigit.
5350         (EPOCH_YEAR): Remove; unused.
5351         (TM_YEAR_BASE): Now an enum rather than a macro.
5352         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
5353         time zone offset, since timezones now are in terms of seconds and
5354         not minutes.
5355         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
5356         appropriate.  Verify that intmax_t is wide enough.
5357         (time_overflow, time_zone_str): New functions, used to deal
5358         more reliably with overflow.
5359         (dbg_printf): Add printf attribute, to help catch integer width errors.
5360         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
5361         (%union, to_hour, yylex, parse_datetime2):
5362         Use intmax_t instead of long int and/or long_time_t.
5363         All uses changed.
5364         (DBGBUFSIZE): Move earlier.
5365         (relative_time, set_hhmmss, parser_control):
5366         Just use int for nanoseconds and for time zones; that’s wide enough.
5367         (parser_control): Use bool for members like year_seen that can
5368         be booleans instead of counters.  All uses changed.
5369         Remove debug_default_input_timezone; no longer needed.
5370         All uses removed.
5371         (apply_relative_time): Return a bool overflow flag.
5372         All uses changed to check for overflow.
5373         (apply_relative_time, zone, date, relunit, relunit_snumber)
5374         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
5375         Check for integer overflow portably.
5376         (str_days): Use just int for N, as it’s wide enough.
5377         Prefer 2D char arrays to arrays of char * when it looks like
5378         2D is a win on typical platforms.
5379         Prefer snprintf to strncpy/strncat, for simplicity;
5380         all buffers are smaller than INT_MAX so this is safe.
5381         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
5382         (debug_print_current_time): Don’t assume tv_nsec is of type long,
5383         as this is not true on x32.  Output "." before any nanoseconds.
5384         (debug_print_current_time, parse_datetime2):
5385         Output local zones using a more-consistent format.
5386         (debug_print_current_time, date, parse_datetime2):
5387         (main) [TEST]:
5388         Don’t assume time_t is the same width as long.
5389         (print_rel_part): New function, replacing ...
5390         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
5391         (debug_print_relative_time): Use bool for boolean.
5392         (local_zone): dsts_seen now counts only tDST instances.
5393         (date): Fix printf of size_t to use %z.  Do not assume numeric
5394         tokens have negative values merely because the context suggests
5395         a syntax with "-" separating tokens.
5396         (time_zone_hhmm): Return bool success indicator, which checks for
5397         overflow.  Store result into PC->time_zone instead.  All callers
5398         changed.
5399         (tm_year_str): New function.  Return a bool success indicator and
5400         store the result into a buffer.  All callers changed.  Output the
5401         numerically correct string even if adding 1900 to the year would
5402         overflow.
5403         (to_tm_year): New function, replacing the old to_year.  All
5404         callers changed.
5405         (tm_diff): Sync with glibc.
5406         (lookup_word): Use to_uchar instead of doing it by hand.
5407         (TZBUFSIZE): Now local to the only function that needs it.
5408         (debug_strfdatetime): Simplify now that time zones are int seconds.
5409         (debug_strfdate): Work even if tm_year + 1900 would overflow.
5410         (get_effective_timezone): Remove.  All uses removed.
5411         (parse_datetime2): Use fprintf in pieces instead of snprintfing
5412         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
5413         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
5414         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
5415         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
5416         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
5417         * modules/parse-datetime (Depends-on): Add inttypes.
5419 2017-04-21  Bruno Haible  <bruno@clisp.org>
5421         gettext-h: Avoid -Wundef warning.
5422         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
5423         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5424         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
5426 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
5428         error: Avoid "function declaration isn't a prototype" warning.
5429         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
5431 2017-04-21  Bruno Haible  <bruno@clisp.org>
5433         vasnprintf: Fix for MSVC 14.
5434         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
5435         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
5436         of !HAVE_SNPRINTF_RETVAL_C99.
5438 2017-04-21  Bruno Haible  <bruno@clisp.org>
5440         mbrtowc tests: Fix test failures on MSVC 14.
5441         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
5442         behaviour for invalid input.
5444 2017-04-21  Bruno Haible  <bruno@clisp.org>
5446         mbsinit: Fix for MSVC 14.
5447         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
5448         implementation that is in sync with mbrtowc.c. On other platforms, use
5449         an adequate ad-hoc implementation.
5451 2017-04-21  Bruno Haible  <bruno@clisp.org>
5453         Fix test-mbrtowc5.sh failure on native Windows.
5454         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
5455         "C".
5457 2017-04-21  Bruno Haible  <bruno@clisp.org>
5459         Avoid accidental use of native Windows APIs on Cygwin.
5460         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
5461         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
5462         * lib/localename.c (WINDOWS_NATIVE): Likewise.
5464 2017-04-20  Bruno Haible  <bruno@clisp.org>
5466         Remove red warnings from the generated MODULES.html.
5467         * modules/fcntl (Description): Disambiguate function references.
5468         * modules/getcwd-lgpl (Description): Likewise.
5469         * modules/hostent (Description): Likewise.
5470         * modules/servent (Description): Likewise.
5471         * modules/tempname (Description): Likewise.
5473 2017-04-20  Bruno Haible  <bruno@clisp.org>
5475         verify tests: Fix spurious failure with parallel make.
5476         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
5477         EXTRA_PROGRAMS.
5478         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
5479         * tests/test-verify-try.c: New file.
5480         * modules/verify-tests (Files): Add it.
5481         (EXTRA_PROGRAMS): Add test-verify-try.
5482         (MOSTLYCLEANFILES): Update accordingly.
5483         Reported by Adam James Stewart <ajstewart@anl.gov>.
5485 2017-04-18  Bruno Haible  <bruno@clisp.org>
5487         vma-iter: Fix compilation error on Solaris 7.
5488         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
5489         like on IRIX, OSF/1.
5490         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5492 2017-04-18  Bruno Haible  <bruno@clisp.org>
5494         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
5495         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
5496         included.
5497         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
5498         <sys/procfs.h>.
5499         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
5500         <sys/procfs.h> cannot be included.
5501         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5503 2017-04-18  Bruno Haible  <bruno@clisp.org>
5505         getopt-gnu: Add comments.
5506         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
5507         * modules/getopt-gnu (configure.ac): Likewise.
5509 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
5511         regex: port better to Solaris 10
5512         Solaris 10 <locale.h> includes <libintl.h>, which #defines
5513         gettext, and this causes a double #define.
5514         Problem reported by Gavin Smith in:
5515         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
5516         * lib/regex_internal.h (gettext): #undef before #defining.
5518 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
5520         intprops: improve comments
5521         * lib/intprops.h: Improve and shorten commentary.
5522         For the record, if we ever run into a pedantic compiler that
5523         behaves differently from GCC when converting an out-of-range value
5524         to a signed integer, we can work around the problem with something
5525         like the following code, where UCT is the signed counterpart of T
5526         (UCT is sometimes narrower than UT) and all callers are changed
5527         accordingly:
5528         #if __SUNPRO_C <= 0x5120
5529         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
5530            ((t) ((ut) (a) op (ut) (b)))
5531         #else
5532         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
5533            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
5534             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
5535                + TYPE_MINIMUM (t)) \
5536             : (t) (uct) ((ut) (a) op (ut) (b)))
5537         #endif
5539 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
5541         intprops: try to avoid tickling similar bugs
5542         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
5543         needs to be the same width as T; it can be wider.
5544         Change callers so that UT is at least as wide as unsigned int,
5545         as I suspect that this is less likely to run into compiler bugs.
5547         intprops: port to Oracle Studio 12.3 x86
5548         Problem reported by Gavin Smith in:
5549         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
5550         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
5551         Convert unsigned to signed via the usual rather than the standard way,
5552         to avoid a compiler bug in Oracle Studio 12.3 x86.
5554 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5556         getopt: prefer - to _ in new file names
5557         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
5558         * lib/getopt-core.h: Rename from lib/getopt_core.h.
5559         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
5560         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
5561         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
5562         All uses changed.
5564         getopt: port recent getopt changes to macOS
5565         Problem reported by Harald Maier (Bug#26398).
5566         The macOS C compiler uses __nonnull for its own purposes and that
5567         clashes with glibc's __nonnull.
5568         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
5569         * lib/getopt_cdefs.in.h (__nonnull): Remove.
5570         * lib/getopt_core.h (getopt):
5571         * lib/getopt_ext.h (getopt_long, getopt_long_only):
5572         Use _GL_ARG_NONNULL, not __nonnull.
5573         * lib/unistd.in.h: Move snippet hooks to before where the getopt
5574         .h files are included, so that _GL_ARG_NONNULL is defined in time.
5575         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
5576         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
5578 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5580         getopt-gnu: omit some duplicate code
5581         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
5582         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
5583         gnulib-tool already does this.
5584         * modules/getopt-gnu (configure.ac): Omit code duplicated from
5585         getopt-posix, which we depend on.
5587         getopt-posix: use angle-bracket include
5588         * lib/getopt1.c: Include <config.h>, not "config.h".
5590 2017-04-06  Zack Weinberg  <zackw@panix.com>
5592         getopt: annotate files with relationship to glibc
5594         As the final act in this patchset, adjust the message at the top of
5595         each file to indicate which files are synced with glibc.  (This has
5596         already been done for most of the headers.)
5598         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
5599         Mention in top-of-file boilerplate that these files are shared
5600         between glibc and gnulib.
5603         getopt: split up getopt.in.h and eliminate __need_getopt
5605         Over in glibc, all of the __need macros are being phased out in favor
5606         of small headers that declare only the necessary components, as this
5607         is much simpler and less prone to bugs.  As getopt is shared with
5608         glibc, gnulib needs to do the same for __need_getopt.
5610         __need_getopt is misnamed; what it really means is "we want only the
5611         getopt features specified in POSIX, not the GNU extensions".  glibc
5612         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
5613         these files can be shared verbatim with gnulib.  The portability
5614         wrapper, on the other hand, they have renounced altogether; glibc's
5615         getopt.h will no longer be shared with gnulib at all.  In exchange,
5616         certain glibc-specific quirks (having to do with __posix_getopt) no
5617         longer need appear in gnulib's headers at all.
5619         This patch merges getopt_core.h and getopt_ext.h from glibc, and
5620         splits up the current gnulib-side portability wrapper into three
5621         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
5622         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
5623         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
5624         unistd.in.h just use them.  All new files are clearly marked with
5625         whether they are shared with glibc.
5627         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
5628         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
5629         with glibc, and ...
5630         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
5631         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
5632         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
5633         instead of defining __need_getopt and including the full getopt.h.
5635         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
5636         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
5637         * modules/getopt-posix (Files): Add new headers and sort list.
5638         (Depends-on): No longer need snippet/arg-nonnull.
5639         (Makefile.am): Generate getopt_cdefs.h.
5642         getopt: better handling of ambiguous options
5644         glibc's getopt uses alloca to construct a linked list of possibilities
5645         for an "ambiguous" long option.  In gnulib, malloc should be used
5646         instead.  Providing for both cases complicates things a fair bit.
5648         This patch rewrites ambiguous-option handling to use a boolean vector
5649         instead of a linked list.  There is then only one allocation that
5650         might need freeing; in glibc it can honor __libc_use_alloca as usual,
5651         and in gnulib we define __libc_use_alloca to always be false, so we
5652         don't need ifdefs in the middle of the function.  This should also be
5653         slightly more efficient in the normal case of long options being fully
5654         spelled out -- I think most people aren't even aware they _can_
5655         sometimes abbreviate long options.
5657         One interesting consequence is that the list of possibilities is now
5658         printed in exactly the order they appear in the list of long options,
5659         instead of the first possibility being shuffled to the end.
5661         (The patch looks bigger than it really is because there's a fair bit
5662         of reindentation and code rearrangement.)
5664         * lib/getopt.c: When used standalone, define __libc_use_alloca
5665         as always false and alloca to abort if called.
5666         (process_long_option): Rewrite handling of ambiguous long options
5667         to use a single boolean vector, not a linked list; use
5668         __libc_use_alloca to decide whether to allocate this using alloca.
5671         getopt: refactor long-option handling
5673         There were two copies of the bulk of the code to handle long options.
5674         Now there is only one.
5676         This change temporarily removes the logic to avoid using alloca when
5677         standalone; the next patch in the series will restore it.
5679         * lib/getopt.c (process_long_option): New function split out
5680         from _getopt_internal_r.
5681         (_getopt_internal_r): Replace both copies of the long-option
5682         processing code with calls to process_long_option.
5685         getopt: tidy up _getopt_initialize a bit
5687         _getopt_data.__posixly_correct is completely redundant to
5688         _getopt_data.__ordering, and some work that logically belongs in
5689         _getopt_initialize was being done by _getopt_internal_r, making the
5690         code harder to understand.
5692         As a side effect, getenv will no longer be called if the first
5693         character of the options string is '+' or '-', which is probably a
5694         Good Thing.  (Perhaps we should have a flag character that
5695         specifically asks for the permutation behavior?)
5697         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
5698         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
5699         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
5702         getopt: merge from glibc: repetition reduction
5704         The definitions of the entry point functions 'getopt' and
5705         '__posix_getopt' can be made substantially less repetitive with a
5706         helper macro.
5708         While I was merging the const-correctness changes from gnulib into
5709         glibc I noticed there are still some unnecessary casts in
5710         _getopt_internal_r.
5712         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
5713         a macro.  Consistently cast 'argv' to 'char **' when calling
5714         _getopt_internal.
5715         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
5718         getopt: clean up error reporting
5720         getopt can print a whole bunch of error messages, and when used
5721         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
5722         cancellation point and getopt isn't, and also applying fprintf to a
5723         stream in wide-character mode is not allowed.  So every single error
5724         reporting case has an #ifdef _LIBC block in which it calls internal
5725         libc functions instead.  The counterpart patch series in glibc makes
5726         it possible to simplify all of that down to a set of #defines at the
5727         top of the file; core code is written as if it is safe to just call
5728         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
5729         call any *other* stdio functions.)
5731         * lib/getopt.c: When _LIBC is defined, define fprintf to
5732         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
5733         to _IO_funlockfile.  When neither _LIBC nor
5734         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
5735         funlockfile as no-ops.
5736         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
5737         standalone error-printing code can now be used for libc as well.
5738         Add an flockfile/funlockfile pair around one case where the error
5739         message is printed in several chunks.  Don't use fputc.
5742         getopt: fix fencepost error in ambiguous-W-option handling
5744         getopt_long contains an undocumented (AFAICT) feature in which, if you
5745         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
5746         treated as equivalent to '--foo'.  This is implemented with a partial
5747         second copy of the code for handling long options, and that code
5748         increments optind one too many times when recovering from an ambiguous
5749         abbreviated option, which can cause the main loop to walk past the end
5750         of argv and crash.
5752         I discovered this while writing a test case that tries to exercise all
5753         of getopt's error reporting paths; I wouldn't be surprised to learn
5754         that this feature is never used by real applications.
5756         * lib/getopt.c (_getopt_internal_r): Don't increment
5757         d->optind a second time when reporting ambiguous -W options.
5760         getopt: clean up getopt.c and getopt1.c file headers
5762         In getopt.c, there is no need to include wchar.h at all, and it is
5763         safe nowadays to assume that stdlib.h does declare getenv (several
5764         other gnulib modules make this assumption).
5766         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
5767         by using "" inclusions consistently, and there is no actual need to
5768         include stdlib.h (except in the #ifdef TEST block, where it should be
5769         unconditional), nor to provide a backup definition of NULL at all.
5771         * lib/getopt1.c: Simplify #ifdeffage at top of file.
5772         Move inclusion of stdlib.h to #ifdef TEST block and make
5773         unconditional.  Do not define NULL.
5774         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
5775         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
5776         * modules/getopt-gnu, modules/getopt-posix: Don't call
5777         gl_PREREQ_GETENV.
5780         getopt: harmonize comments with glibc
5782         The comments explaining how the behavior of 'getopt' varies depending
5783         on whether it's the standalone version and whether there are special
5784         characters at the beginning of the options string were inconsistent
5785         between gnulib and glibc, and also out of sync with the code.
5787         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
5790         getopt: remove USE_NONOPTION_FLAGS
5792         getopt includes code to parse an environment variable named
5793         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
5794         in decimal); but all of it has been #ifdefed out since 2001, with no
5795         official way to turn it back on.
5797         According to commentary in glibc's config.h.in, bash version 2.0
5798         set this environment variable to indicate argv elements that were
5799         the result of glob expansion and therefore should not be treated
5800         as options, but the feature was "disabled later" because "it
5801         caused problems".  According to bash's CHANGES file, "later" was
5802         release 2.01; it gives no more detail about what the problems
5803         were.
5805         Version 2.0 of bash was released on the last day of 1996, and version
5806         2.01 in June of 1997.  Twenty years later, I think it is safe to
5807         assume that this environment variable isn't coming back.
5809         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
5810         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
5811         __libc_argc and __libc_argv externs, which were only used by
5812         #ifdef USE_NONOPTION_FLAGS blocks.
5815         getopt: tabify, in preparation for merge with glibc
5817         glibc sticks to the GNU default of indenting with a mix of
5818         8-column tabs and spaces; make the gnulib copy match.
5820         getopt.h is not included because it is *not* going to be merged in its
5821         present form.
5823         * getopt.c, getopt1.c, getopt_int.h: Tabify.
5825 2017-04-02  Bruno Haible  <bruno@clisp.org>
5827         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
5828         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
5829         like it was done in modules/relocatable-lib on 2011-05-21 and in
5830         modules/relocatable-prog on 2011-08-15.
5831         Reported by Reuben Thomas <rrt@sc3d.org>.
5833 2017-03-31  Bruno Haible  <bruno@clisp.org>
5835         glob: Fix invalid free() call.
5836         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
5837         static storage to home_dir.
5838         Reported by Coverity via Tim Rühsen.
5840 2017-03-31  Bruno Haible  <bruno@clisp.org>
5842         glob: Fix memory leaks.
5843         * lib/glob.c (glob): Free allocated memory before returning.
5844         Reported by Coverity via Tim Rühsen.
5846 2017-03-31  Bruno Haible  <bruno@clisp.org>
5848         md5, sha1, sha256, sha512: Add comments regarding correctness.
5849         * lib/md5.h (buflen): Add comments regarding range.
5850         * lib/sha1.h (buflen): Likewise.
5851         * lib/sha256.h (buflen): Likewise.
5852         * lib/sha512.h (buflen): Likewise.
5853         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
5854         * lib/sha1.c (sha1_process_bytes): Likewise.
5855         * lib/sha256.c (sha256_process_bytes): Likewise.
5856         * lib/sha512.c (sha512_process_bytes): Likewise.
5857         Reported by Coverity via Tim Rühsen.
5859 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
5861         getopt: merge from glibc
5862         This does not change anything substantial; it merely simplifies
5863         hypothetical merges back to glibc.
5864         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
5865         Change copyright notice to match what is in glibc.
5866         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
5867         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
5868         __open_memstream rather than open_memstream and __glibc_likely
5869         instead of __builtin_expect.
5870         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
5872 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
5874         dfa: make [0-9] faster in non-C locales
5875         Problem reported by John P. Linderman (Bug#26193).
5876         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
5877         If both ends of the range are ASCII digits, do not worry about
5878         multi-character collating sequences and the like.  Be consistent
5879         about using isalpha as a precondition for setbit_case_fold_c.
5881 2017-03-19  Bruno Haible  <bruno@clisp.org>
5883         lock: Fix compilation error with HP-UX IA64 cc.
5884         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
5885         weak on non-glibc platforms.
5887 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5889         stdalign: tweak version# and test for HP-UX IA64
5890         Problems reported by Bruno Haible in:
5891         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
5892         * lib/stdalign.in.h (_Alignas):
5893         * m4/stdalign.m4 (gl_STDALIGN_H):
5894         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
5895         used octal (as that is how they document it), but it is decimal in
5896         practice now and the ancient implementations no longer matter.
5897         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
5899 2017-03-19  Bruno Haible  <bruno@clisp.org>
5901         vma-iter: Add support for Solaris.
5902         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
5903         approach.
5904         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
5905         * lib/get-rusage-as.c: Update comment about Solaris.
5906         * lib/get-rusage-data.c: Likewise.
5908 2017-03-19  Bruno Haible  <bruno@clisp.org>
5910         vma-iter: Prefer HP-UX specific API on HP-UX.
5911         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
5912         * lib/vma-iter.h: Update.
5913         Just in case HP-UX ever implements mquery().
5915 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
5917         stdalign: restore previous behavior for HP-UX IA64
5918         See Bruno Haible's email in:
5919         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
5920         which cites p 150 of a manual saying that 'aligned' works on Itanium.
5921         * lib/stdalign.in.h (_Alignas):
5922         Assume the '061200' applies to Itanium, not to PA-RISC.
5923         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
5925 2017-03-17  Bruno Haible  <bruno@clisp.org>
5927         stat-time, timespec: Support use of the header files in C++ mode.
5928         * lib/stat-time.h: Add "C" linkage declaration.
5929         * lib/timespec.h: Likewise.
5931 2017-03-17  Bruno Haible  <bruno@clisp.org>
5933         stdalign: Make it work with HP-UX cc.
5934         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
5935         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
5936         for HP-UX cc.
5938 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
5940         flexmember: try to detect HP-UX 11.31 cc bug
5941         Problem reported by Bruno Haible in:
5942         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
5943         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5944         Attempt to detect bug in HP-UX 11.31 cc.
5946 2017-03-16  Bruno Haible  <bruno@clisp.org>
5948         stdint: Fix test compilation failure with HP-UX 11 cc.
5949         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
5950         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
5951         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
5952         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
5954 2017-03-14  Bruno Haible  <bruno@clisp.org>
5956         gnulib-tool: Don't produce a tests directory with only snippet .h files.
5957         * gnulib-tool (func_modules_transitive_closure_separately): If
5958         testsrelated_modules ends up with no "real" modules, aside from
5959         modules with applicability 'all', set it to empty.
5961 2017-03-14  Bruno Haible  <bruno@clisp.org>
5963         vma-iter: Add support for HP-UX.
5964         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
5965         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
5966         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
5967         * lib/get-rusage-as.c: Update comment about HP-UX.
5968         * lib/get-rusage-data.c: Likewise.
5969         (get_rusage_data): Use get_rusage_data_via_setrlimit.
5971 2017-03-14  Bruno Haible  <bruno@clisp.org>
5973         limits-h: Make it work with HP-UX cc.
5974         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
5975         defined.
5977 2017-03-14  Bruno Haible  <bruno@clisp.org>
5979         Fix test failures on DragonFlyBSD.
5980         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
5981         * tests/test-select.h (test_bad_fd): Likewise.
5982         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
5984 2017-03-14  Bruno Haible  <bruno@clisp.org>
5986         freadahead: Silence warning on DragonFlyBSD.
5987         * lib/freadahead.c (__sreadahead): Declare ourselves.
5989 2017-03-14  Bruno Haible  <bruno@clisp.org>
5991         vma-iter: Add comment about AIX.
5992         * lib/vma-iter.c: Add comment about why this module is not implemented
5993         on AIX.
5995 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
5997         snippets: move unadjusted snippet sources to lib
5998         Problem reported by Michal Privoznik in:
5999         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
6000         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
6001         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
6002         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
6003         * lib/unused-parameter.h: Rename from
6004         build-aux/snippet/unused-parameter.h.
6005         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
6006         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
6007         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
6008         * modules/snippet/c++defs (Files:, CXXDEFS_H):
6009         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
6010         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
6011         Adjust to file renamings.
6013 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
6015         gnulib-tool: don't automatically distribute files from top/
6016         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
6017         not distribute top/README-release by default, don't distribute files
6018         from top/ unconditionally.
6019         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
6020         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
6022 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
6024         gnulib-tool: fix typo in comment output
6025         * gnulib-tool (func_import): Fix typo with previous change.
6027         snippets: work around GNU Make 3.82 VPATH
6028         When using 'gnulib-tool --gnu-make' on Emacs, and building
6029         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
6030         an out-of-source (VPATH) build failed because the sans-copyright
6031         snippet file was not built before the file that used it.
6032         Presumably this is some sort of VPATH thing.  Work around the
6033         problem by using the original snippet, i.e., don’t bother to
6034         remove its copyright notice.
6035         * modules/snippet/_Noreturn, modules/snippet/link-warning:
6036         Don’t assume Automake in comments.  Omit long-incorrect comment.
6037         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
6038         (MOSTLYCLEANFILES):
6039         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
6040         (MOSTLYCLEANFILES):
6041         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
6042         (MOSTLYCLEANFILES):
6043         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
6044         (MOSTLYCLEANFILES):
6045         Remove.
6046         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
6047         * modules/snippet/c++defs (CXXDEFS_H):
6048         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
6049         * modules/snippet/warn-on-use (WARN_ON_USE_H):
6050         Don’t bother to remove the copyright notice; just use the
6051         original snippet as-is.
6053 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
6055         gnulib-tool: minor --gnu-make fixups
6056         * gnulib-tool (func_emit_lib_Makefile_am):
6057         Remove useless code that was a blind alley during implementation.
6058         Problem reported by Thien-Thi Nguyen in:
6059         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
6060         (func_import): Note the "--gnu-make" option in the output comment.
6062 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
6064         gnulib-tool: new option --gnu-make
6065         This is for applications like GNU Emacs that use GNU Make
6066         features instead of Automake.
6067         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
6068         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
6069         Do not assume Automake.
6070         * gnulib-tool (func_determine_path_separator)
6071         (func_modules_transitive_closure, func_update_file)
6072         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
6073         (func_import): Add support for --gnu-make.
6075 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
6077         gnulib-common.m4: avoid aclocal.m4 bloat
6078         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
6079         Hide AM_PROG_AR from aclocal, so that aclocal does not
6080         install irrelevant macro definitions into aclocal.m4.
6082 2017-03-10  Bruno Haible  <bruno@clisp.org>
6084         vma-iter: Let callers know about error.
6085         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
6086         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
6088 2017-03-05  Bruno Haible  <bruno@clisp.org>
6090         Fix value of LD for 64-bit compilers on AIX.
6091         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
6092         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
6094 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
6096         dtotimespec: simplify
6097         * lib/dtotimespec.c (dtotimespec): Simplify.
6099 2017-03-04  Bruno Haible  <bruno@clisp.org>
6101         test-calloc-gnu: Reenable test also for GCC 7.
6102         * tests/test-calloc-gnu.c (eight): New function.
6103         (main): Don't skip test; use eight() instead.
6105 2017-03-04  Jim Meyering  <meyering@fb.com>
6107         test-calloc-gnu: port to GCC7
6108         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
6109         that attempts to calloc more than SIZE_MAX bytes, because GCC7
6110         and newer would detect that at compilation time.
6112 2017-03-04  Bruno Haible  <bruno@clisp.org>
6114         tests: Avoid compiler warning about uses of null_ptr.
6115         * tests/null-ptr.h: New file.
6116         * tests/test-canonicalize.c: Include null-ptr.h.
6117         (null_ptr): Remove function.
6118         * tests/test-canonicalize-lgpl.c: Likewise.
6119         * tests/test-memmem.c: Likewise.
6120         * tests/test-ptsname_r.c: Likewise.
6121         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
6122         * modules/canonicalize-lgpl-tests: Likewise.
6123         * modules/memmem-tests: Likewise.
6124         * modules/ptsname_r-tests: Likewise.
6125         Reported by Jim Meyering.
6127 2017-03-03  Bruno Haible  <bruno@clisp.org>
6129         doc: Mention Mac OS X deficiencies regarding semaphores.
6130         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
6131         * doc/posix-functions/sem_destroy.texi: Likewise.
6132         * doc/posix-functions/sem_getvalue.texi: Likewise.
6134 2017-03-03  Bruno Haible  <bruno@clisp.org>
6136         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
6137         Reported by Assaf Gordon <assafgordon@gmail.com> via
6138         Pádraig Brady <P@draigBrady.com>.
6139         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
6140         semaphores.
6141         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
6142         (atomic_int_semaphore): New macro.
6144 2017-02-28  Bruno Haible  <bruno@clisp.org>
6146         perror tests: Tweak for z/OS.
6147         Reported by Daniel Richard G. <skunk@iskunk.org>.
6148         * tests/test-perror.sh: Don't fail z/OS style perror output.
6150 2017-02-26  Bruno Haible  <bruno@clisp.org>
6152         nproc: Refactor large function.
6153         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
6154         from num_processors.
6155         (num_processors): In this function, only deal with OMP.
6157 2017-02-26  Pádraig Brady  <P@draigBrady.com>
6159         nproc: adjust handling of OpenMP environment variables
6160         to match the return value from omp_get_num_threads(), i.e.:
6161          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
6162          - Treat 0 as an invalid value and ignore
6163         Also remove the call to omp_get_num_threads() because
6164         it's ineffective without the omp pragmas in place.
6165         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
6166         so that it can be ignored.
6167         (num_processors): Honor OMP_THREAD_LIMIT even without
6168         OMP_NUM_THREADS being set.  Also fix a typo in the environment
6169         variable being checked, from the previous recent commit.
6171 2017-02-26  Pádraig Brady  <P@draigBrady.com>
6173         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
6174         * lib/nproc.c (parse_omp_threads): A new function refactored
6175         from num_processors() to support parsing both of the
6176         above environment variables.
6177         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
6178         to accurately reflect the current OpenMP nesting level.
6179         Also support the OMP_THREAD_LIMIT environment variable
6180         to limit the max value determined from OMP_NUM_THREADS.
6181         * modules/nproc: Depend on minmax header.
6182         Suggested by Oliver Heimlich.
6184 2017-02-25  Bruno Haible  <bruno@clisp.org>
6186         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
6187         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
6189 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6191         ftoastr: port to -Wdouble-promotion
6192         Work around -Wdouble-promotion false alarm in recent GCCs.
6193         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
6194         (ftoastr_snprintf, FTOASTR): Use it.
6196 2017-02-21  Bruno Haible  <bruno@clisp.org>
6198         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
6199         Reported by Rene Saavedra <rennes@openmailbox.org> in
6200         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
6201         * lib/glthread/lock.h: On glibc systems without
6202         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
6203         implementation of rwlocks.
6204         * lib/glthread/lock.c: Likewise.
6206 2017-02-20  Bruno Haible  <bruno@clisp.org>
6208         lock tests: Fix build failure on z/OS.
6209         Reported by Daniel Richard G. <skunk@iskunk.org>.
6210         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
6211         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
6212         exist.
6214 2017-02-19  Bruno Haible  <bruno@clisp.org>
6216         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
6217         This helps when CC=clang.
6218         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
6219         of /usr/bin/gcc.
6221         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
6222         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
6224 2017-02-19  Bruno Haible  <bruno@clisp.org>
6226         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
6227         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
6228         --with-tests --single-configure is specified.
6230 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
6232         users.txt: Update links, use HTTPS where possible
6233         * users.txt: Updated to HTTPS where possible,
6234         fixed some links to new locations.
6236 2017-02-16  Bruno Haible  <bruno@clisp.org>
6238         xbinary-io: Fix inlining.
6239         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
6241 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6243         xbinary-io: rename from xsetmode
6244         This patch is taken from suggestions by Bruno Haible in:
6245         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
6246         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
6247         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
6248         not ENOTTY, when it is an inappropriate device.
6249         * lib/binary-io.h (SET_BINARY): Resurrect.
6250         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
6251         (xset_binary_mode_error): Rename from xsetmode_error.
6252         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
6253         (xset_binary_mode): Rename from xsetmode.
6254         All uses changed.
6255         * modules/xbinary-io: Rename from modules/xsetmode.
6256         Update file names.
6257         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
6258         * NEWS: Update to match revised behavior.
6260 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6262         tests: Adjust to recent SET_BINARY change
6263         * tests/test-binary-io.c (main):
6264         * tests/test-binary-io.sh: Remove test for SET_BINARY.
6265         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
6266         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
6267         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
6269         xsetmode: new module
6270         This is to fix a problem noted by Eric Blake.
6271         Code was using xfreopen to change files to binary mode, but this
6272         fails for stdout when in append mode.  Such code should use
6273         xsetmode instead.
6274         * NEWS: Document incompatible changes to binary-io module.
6275         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
6276         New function.
6277         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
6278         (set_binary_mode): New function, which also checks for tty.
6279         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
6281 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
6283         headers: fix begin-end typos
6284         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
6285         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
6287         selinux-h: port to PGI 16.10
6288         * lib/se-selinux.in.h: Don't assume that include_next skips over
6289         duplicate -I DIR options.
6291         argp: port to PGI 16.10
6292         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
6294 2017-02-13  Darshit Shah  <darnir@gnu.org>
6296         unicase: Update function protoype to match definition.
6297         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
6298         uses 'size_t' as the datatype for the 'len' parameter in the functions
6299         it generates. Update the prototype specified here to match the newly
6300         generated function.
6302 2017-02-12  Bruno Haible  <bruno@clisp.org>
6304         times test: Avoid gcc warnings on Linux/x32.
6305         * tests/test-times.c (main): Really cast printf arguments from clock_t
6306         to 'long int'.
6308 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6310         glob: port better to emscripten
6311         Problem reported by Bruno Haible in:
6312         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
6313         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
6315 2017-02-11  Bruno Haible  <bruno@clisp.org>
6317         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
6318         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
6319         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
6320         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
6321         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
6322         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
6323         Distinguish hppa64 from hppa.
6325 2017-02-10  Bruno Haible  <bruno@clisp.org>
6327         search: Don't assume that tsearch() exists if 'VISIT' is defined.
6328         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
6329         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
6330         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
6332 2017-02-09  Bruno Haible  <bruno@clisp.org>
6334         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
6335         * doc/gnulib.texi (Libtool and Windows): Recommend
6336         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
6337         Reported by Reuben Thomas <rrt@sc3d.org>.
6339 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6341         stddef-tests: port to SIZE_MAX <= INT_MAX
6342         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
6343         Do not assume that INT_MAX < SIZE_MAX.
6345 2017-02-01  Bruno Haible  <bruno@clisp.org>
6347         lock tests: Fix link error.
6348         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
6349         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6351 2017-01-31  Bruno Haible  <bruno@clisp.org>
6353         lock: Fix link error (regression from 2017-01-05).
6354         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
6355         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
6356         pthread_rwlockattr_destroy weak.
6357         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6359 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6361         Port to PGI 16.10 x86-64
6362         This patch fixes one real bug in gl_anylinked_list2.h, along with
6363         some minor glitches that are not bugs.  It does not silence PGI’s
6364         thousands of bogus warnings when compiling test-intprops.c.
6365         Fortunately, the warnings do not cause a failure.
6366         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
6367         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
6368         My goodness, PGI goes back a long ways - this predates C89!
6369         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
6370         For example, ASYNCSAFE (const void *) should expand to
6371         ‘const void *volatile’, not to ‘volatile const void *’.
6372         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
6373         * lib/verify.h (verify) [!__GNUC__]:
6374         Use shorter albeit meaningless string to bypass silly compiler limits.
6375         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
6376         * tests/nan.h (NaNf, NaNd, NaNl):
6377         Use static functions to avoid misguided compiler diagnostics.
6378         Is there some reason we don’t use static functions on all platforms?
6380 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
6382         parse-datetime: handle timezones reentrantly
6383         This API change was prompted by a report by Pádraig Brady in:
6384         https://bug.debian.org/851934#10
6385         To help fix the bug, make parse_datetime2 more reentrant.
6386         * NEWS: Document this incompatible change.
6387         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
6388         Add two arguments, the timezone and the timezone name.
6389         All callers changed.  If TZ="..." is specified, use it for
6390         calculating defaults.
6391         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
6392         this code should be usable in a library.
6393         (mktime_ok, get_effective_timezone):
6394         Accept timezone arg too.  All callers changed.
6395         (get_tz): Remove.
6396         (get_effective_timezone): Check for failures.
6398 2017-01-20  Eric Blake  <eblake@redhat.com>
6400         localename: port to cygwin 2.6
6401         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
6402         Cygwin.
6403         * modules/localename (Depends-on): Add extensions, since
6404         NL_LOCALE_NAME() is not visible without it.
6406 2017-01-17  Pádraig Brady  <P@draigBrady.com>
6408         parse-datetime: fix dependence on AC_PROG_SED
6409         * modules/parse-datetime: Use `sed` directly like all other modules.
6410         Reported by J William Piggott
6412 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
6414         intprops: update doc URLs
6415         * doc/intprops.texi (Integer Range Overflow): Update URLs.
6417 2017-01-16  Bruno Haible  <bruno@clisp.org>
6419         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
6420         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
6421         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
6422         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
6423         distinguish s390 and s390x.
6424         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
6425         * NEWS: Mention the change regarding 'armel'.
6427 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
6429         localeinfo: case_folded_counterparts and WEOF
6430         * NEWS: Document this.
6431         * lib/localeinfo.c (case_folded_counterparts):
6432         First arg is now wint_t, not wchar_t.  This generalizes the
6433         function to also work on WEOF, where it returns 0.
6435         dfa: port to gcc -fsanitize=undefined
6436         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
6437         as this runs afoul of gcc -fsanitize=undefined.
6439 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
6441         strftime: %z is -00 if unknown
6442         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
6443         the caller's responsibility to set 'negative_number'.  All uses changed.
6444         (__strftime_internal): Put '-' before a zero UTC offset if the time
6445         zone abbreviation starts with "-", which is the recently-introduced
6446         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
6447         * tests/test-strftime.c: Test for this.
6449 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6451         dfa: port to older GCC
6452         Problem reported by Assaf Gordon in:
6453         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
6454         * modules/c99: New module.  This merely attempts to use the latest
6455         C version, which should be enough to solve this particular problem.
6456         The idea is to document which Gnulib modules assume C99 or later.
6457         * modules/dfa (Depends-on): Add it.
6459 2017-01-10  Bruno Haible  <bruno@clisp.org>
6461         Update DEPENDENCIES.
6462         * DEPENDENCIES: List only https URLs. Update recommended version for
6463         autoconf, automake, gperf.
6465 2017-01-10  Jim Meyering  <meyering@fb.com>
6467         maint.mk: enforce spelling of "timestamp" (i.e., no space)
6468         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
6469         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
6471 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6473         dfa: minor simplification with emptyset
6474         * lib/dfa.c (build_state): Simplify by using emptyset.
6476 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6478         dfa: shrink constraints from 4 bits to 3
6479         * lib/dfa.c (newline_constraint, letter_constraint)
6480         (other_constraint, prev_newline_dependent)
6481         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
6482         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
6483         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
6484         Constraints need only 3 bits, not 4.  Using smaller integers
6485         shrinks the code a bit and makes grep a tad faster on x86-64.
6487         dfa: omit unnecessary ptrdiff_t check
6488         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
6489         overflow, since xnmalloc does that now.
6491         dfa: omit unnecessary allocation
6492         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
6493         an all-zero follow set works just fine.
6495         dfa: omit unused local
6496         * lib/dfa.c (build_state): Fix up recent change.
6498         maint: remove stray .texi files
6499         Although these were superseded by other files like
6500         doc/posix-functions/ctime.texi, the old files were not removed.
6501         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
6503 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
6505         getprogname: fix port to IRIX
6506         * lib/getprogname.c (getprogname) [__sgi]:
6507         Don't dump core if malloc returns NULL.
6509         dfa: fix reallocation bug when matching newlines
6510         Problem reported for sed by S. Gilles (Bug#25390).
6511         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
6512         (dfastate): Reallocate before moving any newline transition ...
6513         (build_state): ... instead of reallocating here, where it is too late.
6515 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
6517         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
6518         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
6520 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
6522         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
6523         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
6525 2017-01-07  Bruno Haible  <bruno@clisp.org>
6527         stdioext: Port to Minix 3.2 and newer.
6528         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
6529         * lib/fseeko.c (fseeko): Likewise.
6530         Reported by Nelson Beebe via Paul Eggert.
6532 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6534         getprogname: port to IRIX
6535         * lib/getprogname.c (getprogname): Port to IRIX.
6536         Based on an idea by Bastien Roucariès at:
6537         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
6538         via code from Bruno Haible at:
6539         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
6541         localename-tests: port to NetBSD 7
6542         Problem reported by Nelson H. F. Beebe.
6543         * tests/test-localename.c:
6544         Test newlocale and uselocale only if both exist.
6546         glob, intprops, xalloc: work around Clang bug
6547         Work around LLVM bug 16404, which is still not fixed.
6548         https://llvm.org/bugs/show_bug.cgi?id=16404
6549         Problem reported by Nelson H. F. Beebe.
6550         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
6551         Remove.
6552         * lib/glob.c (size_add_wrapv):
6553         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
6554         * lib/xalloc-oversized.h (xalloc_oversized):
6555         Do not use overflow builtins if Clang.
6557         dfa: fix 'return' typo
6558         Problem reported by Nelson H. F. Beebe.
6559         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
6561 2017-01-05  Pádraig Brady  <P@draigBrady.com>
6563         parse-datetime: fix generated paths for coverage files
6564         * modules/parse-datetime: Adjust the paths for parse-datetime.y
6565         within parse-datetime.c, so that gcc generates appropriate .gcno
6566         files, allowing lcov to proceed without error.  Previously it
6567         would error trying to find "lib/lib/parse-datetime.y".
6569 2017-01-05  Pádraig Brady  <P@draigBrady.com>
6571         maint.mk: support parallel execution of coverage
6572         * top/maint.mk (coverage): Run dependencies serially,
6573         thus supporting parallel processing of each one,
6574         particularly build-coverage, which builds and runs tests.
6576 2017-01-05  Bruno Haible  <bruno@clisp.org>
6578         lock tests: Prefer semaphore over mutex.
6579         * tests/test-lock.c (USE_SEMAPHORE): New constant.
6580         (struct atomic_int, init_atomic_int, get_atomic_int_value,
6581         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
6582         Suggested by Torvald Riegel <triegel@redhat.com>.
6584 2017-01-05  Bruno Haible  <bruno@clisp.org>
6586         lock: Provide guarantee to avoid writer starvation for rwlocks.
6587         The rationale is: 1) Read-preferring read-write locks are prone to
6588         writer starvation if the number of reader threads multiplied by the
6589         percentage of time they have the lock held is too high. 2) Write-
6590         preferring read-write locks are the only reliable way to avoid this.
6591         3) There have been reports of 'test-lock' hanging on glibc systems
6592         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
6593         and glibc indeed implements read-preferring rwlocks by default, see
6594         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
6595         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
6596         * m4/pthread_rwlock_rdlock.m4: New file.
6597         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
6598         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
6599         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
6600         of rwlock initialization on glibc systems without
6601         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
6602         of rwlocks altogether on non-glibc systems without
6603         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
6604         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
6605         * lib/glthread/lock.c [USE_POSIX_THREADS]
6606         (glthread_rwlock_init_for_glibc): New function.
6607         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
6608         comment.
6609         [USE_PTH_THREADS]: New implementation of rwlocks.
6610         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
6611         readers.
6612         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
6613         (Depends-on): Add 'extensions'.
6614         * tests/test-rwlock1.c: New file.
6615         * lock-tests (Files): Add it.
6616         (Depends-on): Add usleep.
6617         (Makefile.am): Add test-rwlock1 to the tests.
6619 2017-01-05  Bruno Haible  <bruno@clisp.org>
6621         thread: Fix pth port.
6622         * lib/glthread/thread.h (pth_init): Declare weak.
6623         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
6624         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
6625         function.
6627 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
6629         parse-datetime: fix debug message on lone year number
6630         Input dates such as
6631           date -d "Apr 11 22:59:00 2011"
6632         are parsed as date (Apr 11, with default year 2016), then time, then a
6633         number (2011). Based on the combination of previously seen tokens,
6634         'digits_to_date_time' determines 2011 to be a year value.
6635         This fixes the debug messages to correctly show the updated year.
6636         Before:
6637             $ date --debug -d 'Apr 11 22:59:00 2011'
6638             date: parsed date part: (Y-M-D) 2016-04-11
6639             date: parsed time part: 22:59:00
6640             date: parsed number part: today/this/now
6641         After:
6642             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
6643             date: parsed date part: (Y-M-D) 2016-04-11
6644             date: parsed time part: 22:59:00
6645             date: parsed number part: year: 2011
6646         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
6647         'debug_year_seen' member fields.
6648         (digits_to_date_time): Update 'year_seen' as needed.
6649         (debug_print_current_time): Inform about year updates.
6650         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
6652         parse-datetime: fix local timezone debug messages
6653         "Local timezones" are strings that affect only DST relative to the
6654         default timezone. The debug messages in parse-datetime.y printed
6655         wrong information when encountering local timezones.
6656         Examples:
6657         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
6658              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
6659              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
6660         When the default timezone relates to the zone strings, EET/EEST are
6661         parsed as local timezones (tLOCAL_ZONE), and only change the DST
6662         value (0/1, respectively):
6663              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
6664              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
6665         * lib/parse-datetime.y (debug_print_current_time): If local timezone
6666         was seen, inform about DST change, don't print actual timezone.
6667         (debug_strfdatetime): If local timezone was seen, use default timezone
6668         (and adjust as needed) instead of using incorrect timezone.
6669         (parse_datetime2): Use correct time-zone source string, and adjust
6670         default timezone as needed.
6672         parse-datetime: add debug warning about DST changes
6673         Incorrect date arithmetic due to daylight saving time (DST) are a
6674         common (false) bug report in coreutils.
6675         Detect two such cases and print a warning:
6676         1. year/month/day adjustments (performed on 'struct tm'),
6677            where 'mktime' returns a different isdst value.
6678         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
6679            where the result of 'localtime(3)' on the value will return a
6680            different isdst value.
6681         Note: DST changes could be harmless or unnoticeable.
6682         Examples (with 'TZ=America/New_York'):
6683         Unnoticeable: result is 2016-Dec-14
6684            $ date -d '2016-06-15 EDT + 6 months' +%b
6685            Dec
6686         Unnoticeable: result is 2016-Dec-15 11:00:00
6687            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
6688            2016-12-15
6689         This is unexpected:
6690            $ date -d '2016-06-01 EDT + 6 months' +%F
6691            2016-11-30
6692         The new debug warnings will show:
6693            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
6694            ...
6695            date: warning: daylight saving time changed after date adjustment
6696            ...
6697         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
6698         print an appropriate warning message.
6700         parse-datetime: add debug warning about date arithmetic
6701         Date arithmetic are done directly on the fields of 'struct tm',
6702         which can result in invalid dates. Normalization with 'mktime(3)'
6703         will then produce a different date - which might cause unexpected
6704         results.
6705         Examples:
6706           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
6707           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
6708         Note that date normalization is not inherently wrong and not rejected,
6709         as it has legitimate uses:
6710           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
6711         If the user asked to adjust months but 'mday' changed,
6712         or user asked to adjust years but 'month' changed - warn about it.
6713             $ ./src/date --debug -d '2016-10-31 - 1 month'
6714             ...
6715             date: warning: when adding relative months/years, \
6716                            it is recommended to specify the 15th of the month
6717             ...
6718             date: warning: month/year adjustment resulted in shifted dates:
6719             date:      adjusted Y M D: 2016 09 31
6720             date:    normalized Y M D: 2010 10 01
6721             ...
6722         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
6723         a warning message. Improve recommendation of when to use 15 of the
6724         month or noon for date arithmetic.
6726         parse-datetime: fix debug message of relative part after timezone
6727         Relative part (e.g '+8 days') after a timezone string was not
6728         reported (was only reported after a timezone number). Due to the
6729         parser's structure, timezone strings with numbers were handled
6730         separately.
6731         before:
6732              # Timezone number + relative part: OK
6733              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
6734              ...
6735              date: parsed relative part: -8 day(s)
6736              # Timezone string + relative part: missing
6737              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
6738              [ missing message ]
6739         After: messages are printed in both cases.
6740         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
6742         parse-datetime: fix incorrect debug message on lone number
6743         A lone number is an absolute value, not a relative time part.
6744         before:
6745            $ date --debug -d '20130101'
6746            date: parsed number part: today/this/now
6747         After:
6748            $ ./src/date --debug -d '20130101'
6749            date: parsed number part: (Y-M-D) 2013-01-01
6750         * lib/parse-datetime.y ('item'/'number' tokens): Call
6751         'debug_print_current_time' instead of 'debug_print_relative_time'.
6753 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
6755         doc: modernize for C11 etc.
6756         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
6757         for C11, MinGW, etc.  This responds to Paul Smith's question in:
6758         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
6760         dfa: prefer functions to FETCH_WC macro
6761         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
6762         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
6763         wint_t result into DFA->lex.wctok instead of to a separate arg.
6764         All callers changed.  Move more local decls closer to where
6765         they're used.
6767         dfa: narrow more local var scopes
6768         * lib/dfa.c: Move more local decls to be more local.
6770         dfa: remove duplicate assignment
6771         Problem reported by Bruno Haible in:
6772         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
6773         * lib/dfa.c (parse_bracket_exp): Simplify.
6775 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
6777         dfa: simplify constraint-dependency checking
6778         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
6779         (prev_other_constraint): Remove.
6780         (prev_newline_dependent, prev_letter_dependent):
6781         Simplify, to avoid an unnecessary bitwise AND operation.
6783         dfa: prefer functions and constants to macros
6784         * lib/dfa.c: Prefer constants to macros where either will do.
6785         (streq, isasciidigit, newline_constraint)
6786         (letter_constraint, other_constraint, succeeds_in_context)
6787         (prev_newline_constraint, prev_letter_constraint)
6788         (prev_other_constraint, prev_newline_dependent)
6789         (prev_letter_dependent, accepting, accepts_in_context):
6790         Now static functions instead of function-like macros.
6791         Use lower-case names accordingly.  All uses changed.
6793         dfa: narrow more local var scopes
6794         * lib/dfa.c: Move some more local decls down to nearer where
6795         they're needed.
6797 2016-12-31  Jim Meyering  <meyering@fb.com>
6799         dfa: narrow the scope of many local variables
6800         * lib/dfa.c: Now that we are no longer constrained to c89, move
6801         declarations of many variables (often indices) "down" into the
6802         scope(s) where used or to the point of definition.  This is a
6803         no-semantic-change diff.
6805 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
6807         version-etc: new year
6808         * build-aux/gendocs.sh (version):
6809         * doc/gendocs_template:
6810         * doc/gendocs_template_min:
6811         * doc/gnulib.texi:
6812         * lib/version-etc.c (COPYRIGHT_YEAR):
6813         Update copyright dates by hand in templates and the like.
6814         * all files: Run 'make update-copyright'.
6816 2016-12-31  Eric Blake  <eblake@redhat.com>
6818         do-release-commit-and-tag: avoid shell syntax error
6819         * build-aux/do-release-commit-and-tag (curr_br): $branch can
6820         contain spaces when rebasing.
6822         maint.mk: hoist gnulib_dir definition earlier
6823         * top/maint.mk (gnulib_dir): Move near top of file.
6825 2016-12-31  Jim Meyering  <meyering@fb.com>
6827         maint.mk: do not always evaluate intprops-related shell
6828         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
6829         using gnulib_dir undefined (gnulib_dir is defined later in the
6830         file, which will be fixed separately), and besides, there is no
6831         need to incur the cost of this shell invocation for every single
6832         use of this .mk file.  Reported by Eric Blake in
6833         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
6835 2016-12-30  Jim Meyering  <meyering@fb.com>
6837         maint.mk: improve sc_prohibit_intprops_without_use
6838         * top/maint.mk (_intprops_names): Don't hard-code the list of
6839         symbol names.  Instead, derive it on the fly.
6841 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
6843         dfa: shorten sbit, success
6844         * lib/dfa.c (struct regex_syntax.sbit):
6845         (struct dfa.success): Use char, not int, for array elements, since
6846         they are all in the range 0..7.
6848         dfa: simplify multibyte_prop etc.
6849         This follows up on a change made when dfa.c was in grep, namely grep
6850         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
6851         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
6852         That earlier simplification allows for some more simplification
6853         and trimming down here.
6854         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
6855         (struct lexer_state): New mamber brack.
6856         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
6857         since they must be in the range 0..3 now.
6858         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
6859         the brack member now supersedes them.
6860         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
6861         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
6862         (dfaparse): Remove unnecessary initializations of already-0 storage.
6863         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
6864         (dfassbuild): No need to clear sup->mbcsets.
6866         dfa: minor performance tweak
6867         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
6869         dfa: wrap charclass inside a struct
6870         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
6871         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
6872         about 5% faster, where list.txt is generated by 'aspell dump
6873         master | head -n 100000 >list.txt'.  See Bug#22239.
6874         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
6875         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
6876         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
6877         Adjust to this, e.g., by using charclass * rather than charclass.
6878         All callers changed as needed.
6879         (copyset): Remove.  All uses changed to simple assignment.
6880         (parse_bracket_exp): Use zeroset instead of memset.
6882 2016-12-30  Jim Meyering  <meyering@fb.com>
6884         maint.mk: update list of intprops.h symbol names
6885         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
6886         This avoids a false failure of the sc_prohibit_intprops_without_use
6887         rule in grep.
6889 2016-12-29  Eric Blake  <eblake@redhat.com>
6891         getopt: fix parallel test failure
6892         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
6893         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
6894         * tests/test-getopt-main.h (main): Use different file names
6895         in case test-getopt-gnu and test-getopt-posix run in parallel.
6897 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6899         xalloc: x2nrealloc check for ptrdiff_t overflow
6900         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
6901         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
6903 2016-12-24  Bruno Haible  <bruno@clisp.org>
6905         lock test: Fix performance problem on multi-core machines.
6906         * tests/test-lock.c (USE_VOLATILE): New macro.
6907         (struct atomic_int): New type.
6908         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
6909         functions.
6910         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
6911         as 'struct atomic_int'.
6912         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
6913         reclock_checker_thread, test_recursive_lock): Use the new functions.
6914         Reported by Eric Blake in
6915         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
6916         and by Pádraig Brady in
6917         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
6919 2016-12-19  Bruno Haible  <bruno@clisp.org>
6921         vma-iter: Fix endless loop on 64-bit Windows.
6922         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
6923         'unsigned long'.
6925 2016-12-19  Bruno Haible  <bruno@clisp.org>
6927         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
6928         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
6929         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
6930         Invoke gt_TYPE_WINT_T instead.
6931         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
6932         * modules/stdint (Files): Add m4/wint_t.m4.
6933         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
6934         * modules/wctype-h (Makefile.am): Likewise.
6935         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
6936         not only on MSVC.
6937         * lib/wctype.in.h (wint_t): Likewise.
6939 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6941         getopt-posix-tests: fix Makefile typo
6942         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
6943         Fix typo: the last ‘_’ was missing in the name.
6944         I suspect that the typo explains this build failure:
6945         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
6946         although I can’t reproduce the problem on Solaris 10 sparc.
6948 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6950         dfa: improve worst-case 'replace' performance
6951         See my note in Bug#22357#71.
6952         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
6953         (merge_constrained): New function, which is like
6954         the old 'merge' function, except with a new argument C2.
6955         Simplify the body by avoiding the need for different sections
6956         of code depending on whether one input is exhausted.
6957         (merge): Use the new function.
6958         (delete): Return the constraint of the deleted position,
6959         not the entire position.  Caller changed.
6960         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
6962 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6964         dfa: performance improvement for removal of epsilon closure
6965         See Bug#22357#32.
6966         * lib/dfa.c (delete): Use binary search to find deleted index.
6967         (replace): New function.  It replaces a position with the followed set.
6968         (epsclosure): Replace it with a new algorithm.  Update caller.
6970 2016-12-18  Bruno Haible  <bruno@clisp.org>
6972         Split tests for getopt-posix and getopt-gnu.
6973         * tests/test-getopt-posix.c: New file.
6974         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
6975         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
6976         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
6977         GNULIB_TEST_GETOPT_GNU.
6978         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
6979         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
6980         (Makefile.am): Test test-getopt-posix instead of test-getopt.
6981         * modules/getopt-gnu-tests: New file.
6982         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
6984 2016-12-18  Bruno Haible  <bruno@clisp.org>
6986         posix-modules: Add options for specific platforms.
6987         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
6988         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
6989         Invoke func_tmpdir. Filter out the excludes.
6991 2016-12-18  Bruno Haible  <bruno@clisp.org>
6993         getopt: Fix link error for users of getopt() in <unistd.h>.
6994         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
6995         __need_getopt is defined. Undefine all macros before defining them.
6996         * modules/getopt (Include): Clarify that including <unistd.h> is also
6997         OK.
6998         * tests/test-getopt.c: Add comment.
7000 2016-12-17  Bruno Haible  <bruno@clisp.org>
7002         getaddrinfo tests: Avoid compilation error on MSVC.
7003         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
7004         getaddrinfo on native Windows.
7006 2016-12-17  Bruno Haible  <bruno@clisp.org>
7008         getlogin, getlogin_r: Fix link errors on MSVC.
7009         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
7010         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
7011         (Link): New section.
7012         * modules/getlogin_r (Files): Add m4/getlogin.m4.
7013         (configure.ac): Require gl_LIB_GETLOGIN.
7014         (Link): New section.
7015         * NEWS: Mention the new link requirements.
7016         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
7017         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
7019 2016-12-17  Bruno Haible  <bruno@clisp.org>
7021         Un-deprecate the 'progname' module.
7022         * NEWS: Describe the appropriate use-cases of 'progname' versus
7023         'getprogname'. Based on discussion summary at
7024         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
7026 2016-12-17  Bruno Haible  <bruno@clisp.org>
7028         Reorganize NEWS a bit.
7029         * NEWS: Move some not so important changes away from section
7030         "Important Notes".
7032 2016-12-17  Bruno Haible  <bruno@clisp.org>
7034         tanhf: Avoid redefinition error on MSVC.
7035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
7036         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
7037         may be defined as an inline function.
7038         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
7039         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
7041 2016-12-17  Bruno Haible  <bruno@clisp.org>
7043         tanf: Avoid redefinition error on MSVC.
7044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
7045         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
7046         may be defined as an inline function.
7047         * modules/math (Makefile.am): Substitute REPLACE_TANF.
7048         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
7050 2016-12-17  Bruno Haible  <bruno@clisp.org>
7052         sqrtf: Avoid redefinition error on MSVC.
7053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
7054         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
7055         may be defined as an inline function.
7056         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
7057         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
7059 2016-12-17  Bruno Haible  <bruno@clisp.org>
7061         sinhf: Avoid redefinition error on MSVC.
7062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
7063         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
7064         may be defined as an inline function.
7065         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
7066         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
7068 2016-12-17  Bruno Haible  <bruno@clisp.org>
7070         sinf: Avoid redefinition error on MSVC.
7071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
7072         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
7073         may be defined as an inline function.
7074         * modules/math (Makefile.am): Substitute REPLACE_SINF.
7075         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
7077 2016-12-17  Bruno Haible  <bruno@clisp.org>
7079         logf: Avoid redefinition error on MSVC.
7080         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
7081         may be defined as an inline function.
7083 2016-12-17  Bruno Haible  <bruno@clisp.org>
7085         log10l: Avoid redefinition error on MSVC.
7086         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
7087         may be defined as an inline function.
7089 2016-12-17  Bruno Haible  <bruno@clisp.org>
7091         log10f: Avoid redefinition error on MSVC.
7092         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
7093         may be defined as an inline function.
7095 2016-12-17  Bruno Haible  <bruno@clisp.org>
7097         hypotl: Avoid redefinition error on MSVC.
7098         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
7099         may be defined as an inline function.
7101 2016-12-17  Bruno Haible  <bruno@clisp.org>
7103         hypotf: Avoid redefinition error on MSVC.
7104         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
7105         may be defined as an inline function.
7107 2016-12-17  Bruno Haible  <bruno@clisp.org>
7109         fmodl: Avoid redefinition error on MSVC.
7110         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
7111         may be defined as an inline function.
7113 2016-12-17  Bruno Haible  <bruno@clisp.org>
7115         fmodf: Avoid redefinition error on MSVC.
7116         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
7117         may be defined as an inline function.
7119 2016-12-17  Bruno Haible  <bruno@clisp.org>
7121         expf: Avoid redefinition error on MSVC.
7122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
7123         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
7124         may be defined as an inline function.
7125         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
7126         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
7128 2016-12-17  Bruno Haible  <bruno@clisp.org>
7130         coshf: Avoid redefinition error on MSVC.
7131         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
7132         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
7133         may be defined as an inline function.
7134         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
7135         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
7137 2016-12-17  Bruno Haible  <bruno@clisp.org>
7139         cosf: Avoid redefinition error on MSVC.
7140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
7141         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
7142         may be defined as an inline function.
7143         * modules/math (Makefile.am): Substitute REPLACE_COSF.
7144         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
7146 2016-12-17  Bruno Haible  <bruno@clisp.org>
7148         atan2f: Avoid redefinition error on MSVC.
7149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
7150         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
7151         may be defined as an inline function.
7152         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
7153         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
7155 2016-12-17  Bruno Haible  <bruno@clisp.org>
7157         atanf: Avoid redefinition error on MSVC.
7158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
7159         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
7160         may be defined as an inline function.
7161         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
7162         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
7164 2016-12-17  Bruno Haible  <bruno@clisp.org>
7166         asinf: Avoid redefinition error on MSVC.
7167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
7168         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
7169         may be defined as an inline function.
7170         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
7171         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
7173 2016-12-17  Bruno Haible  <bruno@clisp.org>
7175         acosf: Avoid redefinition error on MSVC.
7176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
7177         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
7178         may be defined as an inline function.
7179         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
7180         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
7182 2016-12-17  Bruno Haible  <bruno@clisp.org>
7184         Avoid redefinition errors on MSVC.
7185         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
7186         the function may be defined as an inline function.
7187         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
7188         the function may be defined as an inline function.
7190 2016-12-17  Bruno Haible  <bruno@clisp.org>
7192         Avoid redefinition errors on MSVC.
7193         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
7194         * lib/unistd.in.h: Include <stdio.h> when necessary.
7196 2016-12-17  Bruno Haible  <bruno@clisp.org>
7198         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
7199         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
7200         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
7201         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
7202         WINT_MAX.
7204 2016-12-17  Bruno Haible  <bruno@clisp.org>
7206         Avoid autoconf warning.
7207         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
7208         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
7210 2016-12-17  Bruno Haible  <bruno@clisp.org>
7212         fpending: Revert workaround against Emacs bug.
7213         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
7214         The Emacs bug is fixed by Eli Zaretskii in
7215         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
7217 2016-12-17  Bruno Haible  <bruno@clisp.org>
7219         getlogin_r tests: Port to mingw.
7220         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
7221         regression introduced on 2014-05-19.
7223 2016-12-17  Bruno Haible  <bruno@clisp.org>
7225         getlogin: Port to newer mingw.
7226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
7227         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
7228         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
7229         HAVE_GETLOGIN.
7230         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
7231         HAVE_GETLOGIN.
7232         * doc/posix-functions/getlogin.texi: Mention the issue.
7233         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
7234         regression introduced on 2014-05-14.
7236 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7238         builtin-expect: improve port to IBM XL C
7239         Problem reported for z/OS by Daniel Richard G. in:
7240         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
7241         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
7242         Test for <builtins.h> directly.
7244         builtin-expect: port to IBM XL C
7245         Problem reported for z/OS by Daniel Richard G. in:
7246         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
7247         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
7248         Also allow __builtin_expect defined via a standard include file.
7250         regex: fix dependency
7251         Problem reported by Bruno Haible in:
7252         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
7253         * modules/regex: Depend on builtin-expect.
7255         builtin-expect: new module
7256         Fix fnmatch to use it.
7257         Problem reported for z/OS by Daniel Richard G.
7258         * lib/fnmatch.c (__builtin_expect):
7259         * lib/glob.c (__builtin_expect):
7260         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
7261         * lib/memmem.c (__builtin_expect) [!_LIBC]:
7262         * lib/scandir.c (__builtin_expect):
7263         * lib/strstr.c (__builtin_expect) [!_LIBC]:
7264         Remove macro; config.h now does this.
7265         * lib/gl_anytreehash_list1.h (add_to_bucket):
7266         * lib/regex_internal.h (BE):
7267         Assume __builtin_expect.
7268         * m4/builtin-expect.m4, modules/builtin-expect: New files.
7269         * modules/avltreehash-list, modules/fnmatch, modules/glob:
7270         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
7271         * modules/scandir, modules/strstr-simple:
7272         Depend on builtin-expect.
7274 2016-12-15  Bruno Haible  <bruno@clisp.org>
7276         init.sh: Add possibility to not delete temporary files.
7277         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
7278         to yes, don't erase the temporary directory.
7280 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7282         regex: fix integer-overflow bug in never-used code
7283         Problem reported by Clément Pit–Claudel in:
7284         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
7285         * lib/regex_internal.h: Include intprops.h.
7286         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
7287         behavior on integer overflow.
7288         * modules/regex (Depends-on): Add intprops.
7290         fpending: fix port to MinGW on Emacs
7291         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
7292         Problem reported by Eli Zaretskii in:
7293         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
7294         Is Plan 9 still a valid porting target, anyway?
7296 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7298         safe-alloc: use xalloc-oversized
7299         * lib/safe-alloc.c: Include xalloc-oversized.h.
7300         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
7301         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
7303         xalloc: do not exceed PTRDIFF_MAX
7304         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
7305         xalloc_oversized check, since objects larger than PTRDIFF_MAX
7306         bytes have pointer-subtraction problems.
7308         malloca: do not exceed PTRDIFF_MAX
7309         * lib/malloca.h: Include xalloc-oversized.
7310         (nmalloca): Use xalloc_oversized instead of rolling our own.
7311         * modules/malloca (Depends-on):
7312         * modules/relocatable-prog-wrapper (Depends-on):
7313         Add xalloc-oversized.
7315         quotearg: pacify GCC better
7316         * modules/quotearg (Depends-on): Add minmax, stdint.
7317         * lib/quotearg.c: Include minmax.h, stdint.h.
7318         (nslots): Now int, as there seems little point to going to extra
7319         work merely to support the INT_MAX slot, which nobody ever uses.
7320         (quotearg_n_options): Redo size-overflow checks to pacify GCC
7321         and to catch (mostly-theoretical) ptrdiff_t problems too.
7322         This can be done via one comparison.
7324 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
7326         xalloc-oversized: check for PTRDIFF_MAX too
7327         This avoids undefined behavior when subtracting pointers to
7328         objects containing more than PTRDIFF_MAX bytes.
7329         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
7330         Also return 1 if the result would exceed PTRDIFF_MAX>
7331         * modules/xalloc-oversized (Depends-on):
7332         Add stdint.
7334         dfa: fix glitches in previous commit
7335         Sorry, I don't know how I managed to commit the wrong version.
7336         * lib/dfa.c (MIN): Move up.
7337         (xpalloc): Now static.
7339         dfa: fix some unlikely integer overflows
7340         I found these while reviewing the recent Coverity-related fix.
7341         This patch changes part of dfa.c to prefer ptrdiff_t instead of
7342         size_t for object counts.  Using ptrdiff_t is the style typically
7343         used in Emacs; although it wastes a sign bit as sizes can never be
7344         negative, it makes -fsanitize=undefined more likely to catch
7345         integer overflows in index calculation, and nowadays the upside is
7346         typically more important than the downside.  Although perhaps the
7347         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
7348         of dfa.c already does, since it uses state_num which is signed),
7349         that is a bigger change and is not needed to fix the bugs I found.
7350         * lib/dfa.c: Include stdint.h and intprops.h.
7351         (TOKEN_MAX): New macro.
7352         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
7353         (charclass_index, parse_bracket_exp, addtok, insert, merge)
7354         (realloc_trans_if_necessary, free_mbdata):
7355         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
7356         This is safe because xpalloc checks that the sizes do not exceed
7357         either SIZE_MAX or PTRDIFF_MAX.
7358         (xpalloc): New function, mostly taken from Emacs.
7359         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
7360         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
7361         (charclass_index): Check for integer overflow in computing
7362         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
7363         added to it later.
7364         (alloc_position_set): Check for integer overflow.  On typical
7365         platforms this check has zero overhead, since the constant
7366         expression is false.
7367         (realloc_trans_if_necessary):
7368         Remove assertion, which I hope Coverity no longer needs.
7370         * modules/dfa (Depends-on): Add intprops, stdint.
7372 2016-12-12  Jim Meyering  <meyering@fb.com>
7374         dfa: add an assertion to avoid coverity false positive
7375         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
7376         warned that "newalloc1 - 2" could overflow.
7378 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
7380         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
7381         * dfa.h (DFA_CASE_FOLD): Remove.
7382         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
7384 2016-12-13  John W. Eaton  <gnu@jweaton.org>
7386         link: fix test to declare use of rename()
7387         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
7388         -Werror=implicit-function-declaration
7390 2016-12-12  Bruno Haible  <bruno@clisp.org>
7392         fpending: Port to native Windows with MSVC.
7393         * lib/fpending.c: Include stdio-impl.h.
7394         (__fpending): Include all known implementations. Err out if it's not
7395         ported.
7396         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
7397         * modules/fpending (Files): Add lib/stdio-impl.h.
7398         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
7400 2016-12-12  Bruno Haible  <bruno@clisp.org>
7402         stdioext: Port to native Windows with MSVC.
7403         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
7404         (struct _gl_real_FILE): New type.
7405         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
7406         Windows.
7407         * lib/fbufmode.c (fbufmode): Add code for native Windows.
7408         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
7409         other SystemV derived implementations.
7410         * lib/fpurge.c (fpurge): Likewise.
7411         * lib/freadable.c (freadable): Likewise.
7412         * lib/freadahead.c (freadahead): Likewise.
7413         * lib/freading.c (freading): Likewise.
7414         * lib/freadptr.c (freadptr): Likewise.
7415         * lib/freadseek.c (freadptrinc): Likewise.
7416         * lib/fseeko.c (fseeko): Likewise.
7417         * lib/fseterr.c (fseterr): Likewise.
7418         * lib/fwritable.c (fwritable): Likewise.
7419         * lib/fwriting.c (fwriting): Likewise.
7420         Reported by Gisle Vanem <gvanem@yahoo.no>.
7422 2016-12-11  Jim Meyering  <meyering@fb.com>
7424         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
7425         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
7426         to work with most shells, but not with the one provided by many
7427         Solaris 10 systems, so running configure with such a /bin/sh evokes
7428         e.g., "./configure: syntax error at line 33602: `(' unexpected".
7429         Reported by Assaf Gordon in
7430         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
7432 2016-12-10  Bruno Haible  <bruno@clisp.org>
7434         threadlib: Optimize out runtime test on Solaris >= 10.
7435         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
7436         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
7437         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
7439 2016-12-10  Bruno Haible  <bruno@clisp.org>
7441         stdint: Update doc about Solaris 9.
7442         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
7444 2016-12-09  Bruno Haible  <bruno@clisp.org>
7446         c-ctype tests: Fix link error on Solaris 9.
7447         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
7448         Reported at <https://savannah.gnu.org/bugs/?46827>.
7450 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
7452         dfa: fix performance bug that recomputes trans
7453         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
7454         25 on-demand changes.  The bug caused build_state to reset all
7455         d->trans elements to -2 even when d->trans was already non-null.
7456         Use C99 style decls after statements in this function.
7458         same-inode: port to MinGW
7459         Here st_ino is always 0, so change the definition of SAME_INODE so
7460         that 1 means the two files are the same, 0 with st_ino != 0 means
7461         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
7462         reported by Bruno Haible (Bug#25146).
7463         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
7464         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
7466 2016-12-04  Bruno Haible  <bruno@clisp.org>
7468         javacomp-script: Support Java 7 and 8.
7469         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
7470         target-version 1.7, 1.8.
7472 2016-12-02  Daiki Ueno  <ueno@gnu.org>
7474         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
7475         GPLv2" rewriting.
7477 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
7479         * gnulib-tool (func_import): Adhere to the license guideline when
7480         rewriting the license text to "LGPLv3+ or GPLv2":
7481         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
7483 2016-12-02  Bruno Haible  <bruno@clisp.org>
7485         localcharset: Avoid theoretical buffer overrun.
7486         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
7487         return value from setlocale if it would lead to a buffer overrun.
7489 2016-12-01  Bruno Haible  <bruno@clisp.org>
7491         Relicense some modules under LGPLv2+.
7492         Kevin Cernekee's approval is in
7493         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
7494         * modules/fseterr (License): Change to LGPLv2+.
7495         * modules/mbchar (License): Likewise.
7496         * modules/mbiter (License): Likewise.
7497         * modules/mbsnlen (License): Likewise.
7498         * modules/wcwidth (License): Likewise.
7500 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
7502         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
7503         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
7504         OS/2 kLIBC.
7506 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
7508         alphasort, scandir: Port to OS/2 kLIBC
7509         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
7510         declaration.
7511         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
7513 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
7515         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
7516         * lib/relocatable.c (relocate): Do not touch pathname if it is started
7517         with '/@unixroot'.
7519 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
7521         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
7522         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
7523         OS/2 kLIBC unless TCPV40HDRS is defined.
7525 2016-11-29  Jim Meyering  <meyering@fb.com>
7527         dfa: avoid new infinite loop
7528         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
7529         * lib/dfa.c (dfastate): When constructing a new state table, we could
7530         initially declare that we had found a match, and later find that
7531         constraints eliminate that possibility, yet continue to use the
7532         now stale "matched" indicator.  That would lead to an infinite loop.
7533         The solution is to update "matched" when necessary.
7534         Introduced by commit v0.1-983-g403adf1.
7536 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7538         dfa: avoid match middle in multibyte character
7539         * lib/dfa.c (transit_state): If fails in matching single byte characters
7540         on a state including period expression in non-UTF8 multibyte locales,
7541         skip trailing bytes.
7542         (dfa_supported): Revert previous change.
7544 2016-11-27  Jim Meyering  <meyering@fb.com>
7546         dfa: avoid false match in non-UTF8 multibyte locales
7547         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
7548         as "not supported" so that callers will resort to using regex-based
7549         matcher.  This will surely hurt performance, but correctness trumps
7550         performance here, and the affected locales are less and less relevant,
7551         these days.  See grep's bug report https://bugs.gnu.org/24975.
7553 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
7555         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
7556         * lib/ptsname_r.c: Include the appropriate headers.
7557         [__sun]: Delete sys/sysmacros.h include.
7558         [_AIX || __osf__]: Likewise.
7559         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
7561 2016-11-27  Pádraig Brady  <P@draigBrady.com>
7563         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
7564         * lib/md4.c (md4_process_bytes): The existing define is made internal
7565         in recent versions of glibc, so also use this new public define.
7566         * lib/md5.c (md5_process_bytes): Likewise.
7567         * lib/sha1.c (sha1_process_bytes): Likewise.
7568         * lib/sha256.c (sha256_process_bytes): Likewise.
7569         * lib/sha512.c (sha512_process_bytes): Likewise.
7571 2016-11-27  Pádraig Brady  <P@draigBrady.com>
7573         maint: use a more standard return from mbrtowc test
7574         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
7575         from the test program as this often indicates an
7576         unhandled case in the test program.
7577         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
7578         (gl_MBRTOWC_SANITYCHECK): Likewise.
7579         (gl_MBRTOWC_NULL_ARG2): Likewise.
7580         (gl_MBRTOWC_NUL_RETVAL): Likewise.
7582 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
7584         freopen: work around glibc bug with closed fd
7585         Work around glibc bug#15589, where freopen mishandles the case
7586         where stdin etc. are already closed.
7587         * doc/posix-functions/freopen.texi (freopen): Document the bug.
7588         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
7589         instead of __need_FILE, as the latter does not work with glibc.
7590         Include <fcntl.h>, for open flags.
7591         (rpl_freopen): Work around glibc bug.
7592         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
7593         * modules/freopen (Depends-on): Add fcntl-h.
7594         * tests/test-freopen.c (main): Test for bug.
7596 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7598         fnmatch: fix typo introduced on 2016-08-17
7599         This fixes the port to non-GCC compilers that lack __builtin_expect.
7600         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
7602         dfa: simplify with new function fillset
7603         * lib/dfa.c (fillset): New function.
7604         Use it for clarity when applicable.
7606         dfa: fix glitches with on-demand states
7607         Also, adjust commentary to better match new code.
7608         Some of these glitches predate the recent change.
7609         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
7610         only non-initial states.
7611         (dfastate): Rename locals to better match new roles.
7612         Move them into nested scopes if this is easy.
7613         Omit unnecessary calls to zeroset.
7614         Simplify test for whether to throw in the positions of state 0.
7615         Omit C99-ism (decl after statement) since Gawk still wants C89.
7616         (build_state): Omit unnecessary test and assignment.
7617         Fix some confusion that counted transition tables inaccurately
7618         and could cause a memory leak.
7619         (dfaexec_main): Redo to make it clearer to the compiler that
7620         -1 and -2 are the only negative state numbers here.
7622 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7624         dfa: addition of new state on demand
7625         * src/dfa.c (dfastate): Add argument UC, the current input character.
7626         Fill only a group including the character in transition table.
7627         (realloc_trans_if_necessary): Add the dummy state which means that a
7628         transition table is assigned but the next state is not assigned.
7629         (build_state): Return the next state.  All callers updated.
7630         (transit_state_singlebyte): If we get the dummy state,
7631         fill the transition table.
7632         (dfaexec_main): Handle the dummy state.
7633         (free_mbdata, dfafree): Consider the dummy state.
7635 2016-11-24  Daiki Ueno  <ueno@gnu.org>
7637         srclist: sync with released gettext
7638         * config/srclist.txt: Set "release" option to the files under
7639         $GETTEXT.
7641 2016-11-24  Daiki Ueno  <ueno@gnu.org>
7643         srclist: add "release" option
7644         * config/srclist.txt: Change the format so that the first column
7645         of each line points to the top-level directory of the source
7646         archive.
7647         * config/srclist-update: Accept "release" option that checks files
7648         from the most recently tagged revision in the source archive.
7650 2016-11-21  Bruno Haible  <bruno@clisp.org>
7652         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
7653         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
7654         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
7655         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
7656         Inline and remove member function 'rpl ()' of the wrapper struct.
7658 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
7660         dfa: fix logic typo
7661         Problem reported by Stephane Chazelas (Bug#24973).
7662         * lib/dfa.c (using_simple_locale): Fix typo that caused some
7663         non-simple locales like fr_FR to be treated as simple.
7665 2016-11-20  Jim Meyering  <meyering@fb.com>
7667         fix test driver leaks: exclude, malloc, realloc
7668         * tests/test-exclude.c (main): Fix trivial leak.
7669         * tests/test-malloc-gnu.c (main): Likewise.
7670         * tests/test-realloc-gnu.c (main): Likewise.
7671         With these changes, grep's tests are now leak free.
7672         I.e., running them with ASAN elicits no failure:
7673           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
7674             AM_LDFLAGS='-fsanitize=address -static-libasan' check
7676 2016-11-11  Bruno Haible  <bruno@clisp.org>
7678         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
7679         * modules/libunistring: (License): Change from LGPL to
7680         "LGPLv3+ or GPLv2".
7681         * modules/libunistring-optional: Likewise.
7682         * modules/unicase/*: Likewise.
7683         * modules/uniconv/*: Likewise.
7684         * modules/unictype/*: Likewise.
7685         * modules/unigbrk/*: Likewise.
7686         * modules/unilbrk/*: Likewise.
7687         * modules/uniname/*: Likewise.
7688         * modules/uninorm/*: Likewise.
7689         * modules/unistdio/*: Likewise.
7690         * modules/unistr/*: Likewise.
7691         * modules/uniwbrk/*: Likewise.
7692         * modules/uniwidth/*: Likewise.
7694 2016-11-12  Bruno Haible  <bruno@clisp.org>
7696         Relicense some modules under LGPLv2+.
7697         Paul Eggert's approval is in
7698         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
7699         Eric Blake's approval is in
7700         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
7701         Ludovic Courtès's approval is in
7702         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
7703         * modules/isnand-nolibm (License): Change to LGPLv2+.
7704         * modules/isnanf-nolibm (License): Likewise.
7705         * modules/isnanl-nolibm (License): Likewise.
7707 2016-11-19  Bruno Haible  <bruno@clisp.org>
7709         Relicense some modules under LGPLv2+.
7710         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
7711         modules/vasnprintf.
7712         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
7713         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
7714         All other significant changes to the files in lib/ of these modules
7715         are from me.
7716         * modules/memcmp2 (License): Change to LGPLv2+.
7717         * modules/amemxfrm (License): Likewise.
7718         * modules/fpieee (License): Likewise.
7719         * modules/fpucw (License): Likewise.
7720         * modules/frexp-nolibm (License): Likewise.
7721         * modules/frexpl-nolibm (License): Likewise.
7722         * modules/printf-frexp (License): Likewise.
7723         * modules/printf-frexpl (License): Likewise.
7724         * modules/printf-safe (License): Likewise.
7725         * modules/signbit (License): Likewise.
7727 2016-11-17  Bruno Haible  <bruno@clisp.org>
7729         Enable Unicode decoder safety unconditionally.
7730         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
7731         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
7732         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
7733         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
7734         * lib/unistr/u8-prev.c (u8_prev): Likewise.
7735         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
7736         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
7737         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
7738         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
7739         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
7740         * lib/unistr/u16-prev.c (u16_prev): Likewise.
7741         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
7742         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
7743         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
7744         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
7745         * lib/unistr/u32-prev.c (u32_prev): Likewise.
7746         * lib/unistr/u32-next.c (u32_next): Likewise.
7747         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
7748         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
7749         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
7750         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
7751         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
7752         CONFIG_UNICODE_SAFETY tests unconditionally.
7753         * tests/unistr/test-u32-mblen.c (main): Likewise.
7754         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
7755         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
7756         * tests/unistr/test-u32-next.c (main): Likewise.
7757         * tests/unistr/test-u32-strmblen.c (main): Likewise.
7758         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
7759         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
7760         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
7761         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
7762         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
7763         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
7764         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
7765         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
7766         * lib/unistr/u16-check.c (u16_check): Update comment.
7767         * NEWS: Mention the changes that callers should be aware of.
7769 2016-11-19  Bruno Haible  <bruno@clisp.org>
7771         relocatable-prog-wrapper: Fix breakage on Cygwin.
7772         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
7773         (Depends-on): Remove intprops.
7774         * lib/relocwrapper.c: Update dependency tree.
7775         (strerror): Undefine.
7776         * build-aux/install-reloc (func_create_wrapper): Do not compile
7777         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
7779 2016-11-19  Bruno Haible  <bruno@clisp.org>
7781         strerror: Make it compile in C++ mode.
7782         * lib/strerror.c (strerror): Ignore the return value of memcpy().
7784 2016-11-15  Pedro Alves  <palves@redhat.com>
7786         sys_time: add gnulib::timeval for C++
7787         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
7788         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
7789         timeval macro.
7791 2016-11-14  Pedro Alves  <palves@redhat.com>
7793         snippet/c++defs: fix real-floating arg functions in C++ mode
7794         Also, define isfinite, isinf, isnan, signbit in the gnulib
7795         namespace instead of in the global namespace.
7796         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
7797         (_GL_END_NAMESPACE): New.
7798         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
7799         (isfinite, isinf, isnan, signbit) [__cplusplus &&
7800         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
7801         instead of in the global namespace.
7802         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
7803         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
7804         of in the global namespace.
7806 2016-11-13  Jim Meyering  <meyering@fb.com>
7808         strftime: don't use __THROW
7809         Each use of __THROW would provoke this from gcc-7-to-be:
7811           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
7812             on unit local functions [-Wattributes]
7813           static int iso_week_days (int, int) __THROW;
7814           ^~~~~~
7815         * lib/strftime.c (__THROW): Don't define.
7816         Remove each use of __THROW.
7817         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
7818         (tm_diff, iso_week_days, __strftime_internal): Likewise.
7820 2016-11-14  Paul Eggert  <eggert@union>
7822         obstack: port to gcc -fcheck-pointer-bounds
7823         Problem found by 'make check' failure on bleeding-edge coreutils
7824         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
7825         6.2.0-5ubuntu12), configured via "./configure
7826         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
7827         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
7828         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
7829         New macro, copied from fts_.h.
7830         (struct _obstack_chunk.contents): Use it.
7832 2016-11-14  Eric Blake  <eblake@redhat.com>
7834         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
7835         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
7836         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
7838 2016-11-14  Pádraig Brady  <P@draigBrady.com>
7840         strptime: fix compile error in recent change
7841         * lib/strptime.c (__strptime_internal): Fix ported code.
7843 2016-11-11  Bruno Haible  <bruno@clisp.org>
7845         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
7846         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
7847         (func_import): Extend determination of license_incompatibilities.
7848         (func_create_testdir): Extend table of license compatibility. Handle
7849         also the licenses GPLv3+, GPL, LGPLv3+.
7851 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
7853         strftime: tune %q
7854         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
7856         Merge strftime.c changes from glibc
7857         This incorporates:
7858         2007-10-16 [BZ #5184] Add tzset_called argument
7859         2008-06-13 [BZ #6612] pass reference to tzset_called around
7860         2009-10-30 Implement Burmese language locale for Myanmar
7861         2010-01-09 Add support for XPG7 testing
7862         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
7863         2015-10-20 Convert miscellaneous function definitions to prototype style
7864         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
7865         it anyway and this lessens the difference between gnulib and glibc.
7866         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
7867         (__THROW): Define if standard headers do not.
7868         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
7869         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
7870         Declare with __THROW.
7871         (__strftime_internal): Rename from strftime_case_. Add arg for
7872         whether tzset is called.  All uses changed.  Call tzset at most
7873         once.  Allow %OC, for Burmese.
7874         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
7875         Don't assume values are in range.
7877 2016-11-12  Eric Blake  <eblake@redhat.com>
7879         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
7880         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
7881         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
7882         different value.
7884 2006-11-12  Pedro Alves  <palves@redhat.com>
7886         Fix gnulib C++ namespace support and std::frexp
7887         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
7888         _GL_CXXALIASWARN.
7890 2006-11-12  Pedro Alves  <palves@redhat.com>
7892         GNULIB_NAMESPACE::func need not pull in rpl_func
7893         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
7894         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
7895         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
7896         struct instead of a function pointer.
7898 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
7900         manywarnings: fix -Wno-missing-field-initializers detection
7901         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
7902         to be independent of -Wunused-variable.  I.E. ensure the latter
7903         warning doesn't occur so that detection of the former is accurate.
7905 2016-11-05  Pádraig Brady  <pbrady@fb.com>
7907         strftime,strptime: support %q to represent the quarter
7908         * lib/strftime.c (strftime_case_): Add %q case.
7909         * lib/strptime.c (__strptime_internal): Likewise.
7910         * tests/test-strftime.c (quarter_test): A new test case.
7912 2016-11-03  Eric Blake  <eblake@redhat.com>
7914         bootstrap: Fix get_version() for AIX 5.3
7915         * build-aux/bootstrap (get_version): Factor out sed script, since
7916         indented comments choke AIX 5.3 sed.
7917         Reported-by: Michael Felt <aixtools@gmail.com>
7919 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
7921         intprops: port to older XL C
7922         Problem reported by Alexander Samoilov in:
7923         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
7924         http://savannah.nongnu.org/bugs/?49448
7925         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
7926         Define to 1 only for XL C 12.1 or later, since this bug
7927         occurs in XL C for AIX 6.0 but not in 12.1.
7929 2016-11-02  Pádraig Brady  <P@draigBrady.com>
7931         backupfile: initialize default suffix within the implementation
7932         * lib/backupfile.c (find_backup_file_name): Initialize the
7933         global variable here, to simplify usage, and to only call
7934         getenv() when needed.
7936 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7938         futimens: remove FIXME for old Linux kernels
7939         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
7940         this in 2012" FIXME, like that for utimensat.
7942         utimensat: remove FIXME for old Linux kernels
7943         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
7944         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
7945         this in 2012" FIXME, by assuming the file system bug is absent
7946         unless demonstrated to be present.  We no longer need to worry
7947         about Linux kernel 2.6.32 when building with newer kernels.
7949 2016-10-16  Bruno Haible  <bruno@clisp.org>
7951         qsort_r: Fix macrology for platforms that lack the function.
7952         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
7953         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
7954         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
7955         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
7956         not exist.
7957         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
7958         the function exists.
7959         * modules/qsort_r: Add comments.
7961 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7963         sys_types: fix Texinfo typos
7964         * doc/glibc-functions/gnu_dev_major.texi:
7965         * doc/glibc-functions/gnu_dev_makedev.texi:
7966         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
7968 2016-10-26  John David Anglin  <dave.anglin@bell.net>
7970         getprogname: port to HP-UX
7971         See Bug#24805.
7972         * lib/getprogname.c (getprogname) [__hpux]: Port.
7973         * tests/test-getprogname.c (STREQ) [__hpux]:
7974         Special-case for HP-UX limitations on program name length.
7976 2016-10-20  Bruno Haible  <bruno@clisp.org>
7978         Update doc about target platforms.
7979         * doc/gnulib-intro.texi (Target Platforms): Update list.
7981 2016-10-15  Bruno Haible  <bruno@clisp.org>
7983         opendir, readdir, closedir: Relicense under LGPLv2+.
7984         * modules/opendir (License): Change to LGPLv2+.
7985         * modules/readdir (License): Likewise.
7986         * modules/closedir (License): Likewise.
7988 2016-10-16  Bruno Haible  <bruno@clisp.org>
7990         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
7991         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
7992         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
7993         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
7994         HAVE_DECL_STRERROR_R.
7996 2016-10-16  Bruno Haible  <bruno@clisp.org>
7998         Make the 'argp' module work without the 'error' module.
7999         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
8001 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
8003         diffseq: restore TOO_EXPENSIVE heuristic
8004         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
8005         (Bug#24715).  The simplest solution is to restore the
8006         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
8007         using a higher threshold to avoid Bug#16848 on smaller files.
8008         * lib/diffseq.h (struct context): Restore member too_expensive.
8009         (struct partition): Restore members lo_minimal, hi_minimal.
8010         (diag, compareseq): Restore arg find_minimal.  All uses changed.
8011         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
8012         1993 to make 'diff' run faster (but not as well) on large inputs,
8013         but use a threshold of 4096 instead of the old 256.
8014         * lib/fstrcmp.c (strcmp_bounded):
8015         * lib/git-merge-changelog.c (compute_differences):
8016         Adjust to diffseq.h changes.
8018 2016-10-22  Bruno Haible  <bruno@clisp.org>
8020         iconv: Avoid compilation error when bootstrapping GNU libiconv.
8021         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
8022         declaration yet, define ICONV_CONST to empty.
8024 2016-10-15  Bruno Haible  <bruno@clisp.org>
8026         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
8027         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
8028         module.
8030 2016-10-16  Bruno Haible  <bruno@clisp.org>
8032         system-quote tests: Avoid compiler warning on AIX.
8033         * tests/test-system-quote-child.c (fopen): Redefine like the system's
8034         <stdio.h> does.
8036 2016-10-16  Bruno Haible  <bruno@clisp.org>
8038         Fix some "gcc -Wall" warnings.
8039         * tests/test-ffsl.c (main): Use variable x, not i.
8040         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
8041         freopen.
8042         * tests/test-sethostname1.c (main): Explicitly ignore the return value
8043         of sethostname.
8045 2016-10-16  Bruno Haible  <bruno@clisp.org>
8047         gnulib-tool: Make --create-testdir on all modules work again.
8048         * gnulib-tool (func_create_testdir): Don't include the
8049         non-recursive-gnulib-prefix-hack module.
8051 2016-10-21  Daiki Ueno  <ueno@gnu.org>
8053         libunistring: change the maintainer to 'all'
8054         * modules/gen-uni-tables, modules/libunistring:
8055         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
8056         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
8057         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
8058         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
8059         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
8060         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
8061         * modules/uniwidth/*: Change the maintainer to 'all'.
8063 2016-10-16  Bruno Haible  <bruno@clisp.org>
8065         Simplify "configure: checking ..." messages.
8066         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
8067         AC_MSG_NOTICE.
8068         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
8070 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
8072         quotearg-tests: pacify gcc -Wall
8073         Problem reported by Bruno Haible in:
8074         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
8075         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
8076         * tests/test-quotearg.h: ... from here.
8078 2016-10-20  Pádraig Brady  <P@draigBrady.com>
8080         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
8081         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
8082         Needed on Centos <= 4.
8084 2016-10-20  Jim Meyering  <meyering@fb.com>
8086         printf.m4: fix a bug in detecting printf %j support
8087         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
8088         uintmax_t is defined in neither stdint.h nor inttypes.h.
8089         Before, this macro might have mistakenly set
8090         gl_cv_func_printf_sizes_c99=yes on such a system.
8091         Spotted by Zev Weiss.
8093 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
8095         sched: substitute HAVE_SYS_CDEFS_H too
8096         Problem reported by Tom G. Christensen in:
8097         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
8098         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
8099         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
8101 2016-10-19  Pádraig Brady  <P@draigBrady.com>
8103         quotearg: never write beyond the returned length
8104         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
8105         scan of the string when we initially encounter a single quote when
8106         shell quoting, so that if we then switch to a more concise quoting method
8107         we will not have written beyond that returned length.
8108         This is significant for sh-quote, which has separate routines
8109         to determine the length and do the actual quoting.
8110         * tests/test-quotearg.h: Reinstate the buffer bounds checking
8111         now that we never write more than the returned length.
8113 2016-10-18  Bruno Haible  <bruno@clisp.org>
8115         getprogname tests: Avoid failure in packages that use libtool.
8116         * tests/test-getprogname.c (main): Strip "lt-" prefix.
8117         Based on a patch by Jim Meyering.
8119 2016-10-16  Bruno Haible  <bruno@clisp.org>
8121         getprogname: Fix test failure on Cygwin. Comments.
8122         * lib/getprogname.h: Add comments.
8123         * lib/getprogname.c: Add comments. Fix #elif indentation.
8124         * tests/test-getprogname.c (main): On Cygwin, expect a result without
8125         ".exe" suffix.
8127 2016-10-16  Bruno Haible  <bruno@clisp.org>
8129         Make sure the libunistring detection rejects older versions with a
8130         known bug.
8131         * modules/unistr/u8-strtok (configure.ac): Bump required version.
8132         * modules/unistr/u16-strtok (configure.ac): Likewise.
8133         * modules/unistr/u32-strtok (configure.ac): Likewise.
8135 2016-10-18  Bruno Haible  <bruno@clisp.org>
8137         sh-quote, system-quote: revert regression of unit test.
8138         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
8139         * tests/test-system-quote-main.c (check_one): Likewise.
8141 2016-10-16  Pádraig Brady  <P@draigBrady.com>
8143         quotearg: fix stale tests
8144         * tests/test-quotearg.c [locale_results]: Add the missing str7
8145         entries to the expected results.
8146         * tests/test-system-quote-main.c (check_one): Don't enforce that we
8147         don't write beyond the returned length, since that's no longer the
8148         case if we switch to a more concise quoting style.
8149         * tests/test-sh-quote.c (check_one): Likewise.
8150         (main): Adjust for the new more concise quoting style.
8151         Reported by Bruno Haible.
8153 2016-10-16  Jim Meyering  <meyering@fb.com>
8155         non-recursive-gnulib-prefix-hack: fix inconsequential typo
8156         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
8157         to "$1".  This macro is always invoked with $1 == lib.
8158         Spotted by Bruno Haible
8160 2016-10-16  Bruno Haible  <bruno@clisp.org>
8162         Fix a test crash.
8163         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
8164         fails.
8166 2016-10-16  Pádraig Brady  <P@draigBrady.com>
8168         test-limits-h: suppress -Woverlength-strings
8169         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
8171 2016-10-15  Bruno Haible  <bruno@clisp.org>
8173         gettime, timespec, utimens: Relicense under LGPL.
8174         * modules/gettime (License): Change to LGPL.
8175         * modules/timespec (License): Likewise.
8176         * modules/utimens (License): Likewise.
8178 2016-10-14  Bruno Haible  <bruno@clisp.org>
8179             Pádraig Brady  <P@draigBrady.com>
8181         canonicalize-lgpl: Support the case path_max > INT_MAX.
8182         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
8183         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
8185 2016-10-13  Jim Meyering  <meyering@fb.com>
8187         getprogname: IBM z/OS: avoid NULL-dereference
8188         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
8189         upon strdup failure.
8191 2016-10-12  Jim Meyering  <meyering@fb.com>
8193         test-stdint: use _GL_VERIFY rather than "verify" for some tests
8194         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
8195         and an abbreviated diagnostic rather than verify with the full one,
8196         because the full-length strings would evoke warnings from gcc with
8197         -Woverlength-strings.
8199 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8201         stdint: port SIZE_MAX to glibc s390
8202         Problem reported by Eric Blake in:
8203         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
8204         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
8205         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
8206         correct type, if possible.
8208 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
8210         getprogname: port to IBM z/OS
8211         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
8213 2016-10-11  Jim Meyering  <meyering@fb.com>
8215         maint: remove stray space after "." in AC_DEFINE comment.
8216         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
8217         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8219 2016-10-05  Jim Meyering  <meyering@fb.com>
8221         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
8222         * lib/long-options.c (parse_long_options): Add a break statement
8223         to avoid this new warning/failure:
8224         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
8225           --create-testdir --dir=/t/x --with-tests --test long-options
8226         ../../gllib/long-options.c: In function 'parse_long_options':
8227         ../../gllib/long-options.c:66:12: error: this statement may \
8228           fall through [-Werror=implicit-fallthrough]
8229                    (*usage_func) (EXIT_SUCCESS);
8230                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
8232 2016-10-05  Jim Meyering  <meyering@fb.com>
8234         utimecmp: avoid new GCC 7 warning from -Wbool-operation
8235         Testing this module would fail when using GCC 7 like this:
8236         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
8237           --dir=/tmp/x --with-tests --test utimecmp
8238         ../../gllib/utimecmp.c: In function ‘utimecmp’:
8239         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
8240           [-Werror=bool-operation]
8241                          time_t s = src_s & ~ (res == 2 * BILLION);
8242                                             ^
8243         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
8244           [-Werror=bool-operation]
8245                src_s &= ~ (res == 2 * BILLION);
8246                         ^
8247         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
8248         Instead, make it explicit that we intend to apply it to 0 or 1.
8250 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
8252         dfa: save memory for states
8253         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
8254         states if dfa has a lot of caches.
8256 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
8258         wchar, wctype-h: fix for MinGW 3.22.2
8259         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
8260         special invocation, to fix issues with MinGW 3.22.2 wchar.h
8261         when included from <string.h>.
8262         * lib/wctype.in.h [__MINGW32__]: Add special invocation
8263         convention for MinGW 3.22.2, to solve issues with their
8264         wctype.h when included from <ctype.h>.
8266 2016-10-05  Jim Meyering  <meyering@fb.com>
8268         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
8269         * lib/long-options.c (parse_long_options): Add a break statement
8270         to avoid this new warning/failure:
8271         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
8272           --create-testdir --dir=/t/x --with-tests --test long-options
8273         ../../gllib/long-options.c: In function ‘parse_long_options’:
8274         ../../gllib/long-options.c:66:12: error: this statement may \
8275           fall through [-Werror=implicit-fallthrough]
8276                    (*usage_func) (EXIT_SUCCESS);
8277                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
8279         utimecmp: avoid new GCC 7 warning from -Wbool-operation
8280         Testing this module would fail when using GCC 7 like this:
8281         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
8282           --dir=/tmp/x --with-tests --test utimecmp
8283         ../../gllib/utimecmp.c: In function ‘utimecmp’:
8284         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
8285           [-Werror=bool-operation]
8286                          time_t s = src_s & ~ (res == 2 * BILLION);
8287                                             ^
8288         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
8289           [-Werror=bool-operation]
8290                src_s &= ~ (res == 2 * BILLION);
8291                         ^
8292         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
8293         Instead, make it explicit that we intend to apply it to 0 or 1.
8295 2016-10-03  Pádraig Brady  <P@draigBrady.com>
8297         quotearg: minimize shell quoting using double quotes
8298         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
8299         quote in encountered then use double quotes (c style quoting)
8300         when possible, as it simplifies the quoting.
8301         * tests/test-quotearg-simple.c: Add test cases.
8302         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
8303         for the fact we now may write beyond the returned length.
8305 2016-10-02  Jim Meyering  <meyering@fb.com>
8307         vasnprintf.c: avoid spurious warning from GCC 7
8308         The presence of cpp directives renders this "FALLTHROUGH" comment
8309         ineffective, so does not suppress the -Wimplicit-fallthrough warning
8310         from GCC 7 built from git on 2016-10-02.
8311         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
8312         directives, so that it takes effect once again.  This is clearly
8313         not a proper change, and I will revert it once this bug is fixed:
8314         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
8316 2016-10-01  Jim Meyering  <meyering@fb.com>
8318         getprogname: correct the test for a __progname variable
8319         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
8320         and AC_LINK_IFELSE to check for a global __progname.  If found,
8321         define HAVE_VAR___PROGNAME.
8322         * lib/getprogname.c (getprogname): Reflect the new name of the
8323         feature- checked preprocessor symbol:
8324         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
8326 2016-09-28  Jim Meyering  <meyering@fb.com>
8328         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
8329         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
8330         fall-through case with a /* fallthrough */ comment.
8332         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
8333         * lib/dfa.c (dfassbuild): Mark the end of this case with a
8334         /* fallthrough */ comment.
8336         getprogname: avoid __progname vs program_invocation_short_name pitfall
8337         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
8338         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
8339         not with Fedora 24's glibc-2.23.1-10.
8340         * lib/getprogname.c (__progname): Move this declaration down...
8341         (getprogname): ... into the #elif block where used, and make it
8342         explicitly "extern".
8344         getprogname: port to OpenBSD 5.1
8345         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
8346         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
8347         * modules/getprogname (configure.ac): Move most of this code...
8348         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
8349         increment serial number, and add a test for __progname.
8350         https://bugs.gnu.org/24562
8351         Reported by Nelson H. F. Beebe.
8353 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8355         sched: port to GCC 6.2.1 on macOS Sierra
8356         Problem reported by Denis Davydov in:
8357         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
8358         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
8359         Include <sys/cdefs.h> before <sched.h>.
8360         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
8361         so that we needn’t worry about the sched.h include bug here.
8362         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
8363         and include it before <sched.h> if it exists, when
8364         checking for <sched.h>.
8366         tests/init.sh: port Alpine fix to AIX 7.1
8367         * tests/init.sh (compare_): When attempting to use diff -U3,
8368         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
8369         diff -u not outputting a space after leading '+', as the users
8370         of 'compare' should not be that picky about its output format.
8371         In the AIX 7.1 case, return with diff exit status (or with 2 if
8372         trouble), instead of some random nonzero exit status.
8373         * tests/test-init.sh (test_compare): Remove space after leading
8374         '+', so that AIX 7.1 'diff' passes the test.
8376 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8378         nl_langinfo: pacify GCC
8379         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
8380         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
8382         stdint: also set GL_GENERATE_LIMITS_H
8383         Problem reported by Jim Meyering in:
8384         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
8385         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
8387         limits-h, stdint: Don't assume extensions, fix typo
8388         * m4/limits-h.m4 (gl_LIMITS_H):
8389         * m4/stdint.m4 (gl_STDINT_H):
8390         Don't assume AC_USE_SYSTEM_EXTENSIONS.
8391         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
8392         reported by Jim Meyering in:
8393         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
8395 2016-09-21  Jim Meyering  <meyering@fb.com>
8397         getprogname: port to AIX
8398         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
8399         and strdup to obtain a short program name string.  Using code from
8400         Bruno Haible and an idea from Bastien ROUCARIÈS, in
8401         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
8402         Assaf Gordon reported that this new file would fail to compile on
8403         AIX-7.1 32bit.
8405 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
8407         extensions: fix typo in comment
8408         * m4/extensions.m4: Sync from Autoconf master.
8410         stdint: support new _WIDTH macros
8411         * doc/posix-headers/stdint.texi: Document this.
8412         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
8413         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
8414         support for INTMAX_WIDTH, etc. as well as for support for just C99.
8415         * modules/stdint (Depends-on): Add limits-h.
8416         (Makefile.am): Substitute HAVE_C99_STDINT_H.
8417         * modules/stdint-tests (Depends-on): Add extensions, so that
8418         INTMAX_MAX etc. are defined.
8419         * tests/test-stdint.c: Verify the new macros.
8421         limits-h: new module
8422         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
8423         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
8424         * doc/posix-headers/limits.texi: Document new module.
8425         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
8426         * modules/limit-h-tests, tests/test-limits-h.c: New files.
8428         stdio: don't redefine __USE_MINGW_ANSI_STDIO
8429         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
8430         if it is already defined.  Apparently GNU Emacs relies on this.  See:
8431         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
8433 2016-09-15  Eric Blake  <eblake@redhat.com>
8435         sys_types: avoid glibc 2.25 warnings about major()
8436         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
8437         older autoconf.
8438         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
8439         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
8440         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
8441         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
8443         mountlist: include sysmacros.h for glibc
8444         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
8445         AC_HEADER_MAJOR.
8446         * lib/mountlist.c (includes): Use correct headers.
8448 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
8450         extensions: port to more ISO C TSes
8451         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
8452         master, to add support for more recent ISO C TRs and TSes.
8454 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8456         intprops: new macro TYPE_WIDTH
8457         * lib/intprops.h (TYPE_WIDTH): New macro.
8458         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
8459         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
8460         * lib/parse-datetime.y (parse_datetime2):
8461         Use it.
8463         extensions: port to recent ISO C TRs
8464         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8465         Sync from Autoconf master, to add support for recent ISO C TRs.
8466         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
8467         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
8468         the MinGW option is not an extension.
8470 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
8472         dfa: port to Solaris 9
8473         Problems reported by Tom G. Christensen in:
8474         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
8475         * modules/dfa (Depends-on): Add isblank.
8476         * modules/dfa-tests (dfa_match_aux_LDADD):
8477         Rename from test_stat_LDADD, to fix typo.
8478         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
8480 2016-09-10  Jim Meyering  <meyering@fb.com>
8482         strverscmp: avoid link failure on OS X
8483         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
8484         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
8486 2016-08-16  Jim Meyering  <meyering@fb.com>
8488         dfa: new module, importing grep's DFA matcher
8489         Since grep's DFA matcher is now being used by two gnulib-enabled
8490         projects, grep and sed, it makes sense to version-control its
8491         sources and unit tests in one place: here.
8492         * modules/dfa: New module.
8493         * modules/dfa-tests: New file.
8494         * lib/dfa.c: New file, from grep.
8495         * lib/dfa.h: Likewise.
8496         * lib/localeinfo.c: Likewise.
8497         * lib/localeinfo.h: Likewise.
8498         * tests/dfa-match-aux.c: Likewise.
8499         * tests/dfa-invalid-char-class.sh: Likewise.
8500         * tests/dfa-match.sh: Likewise, with minor changes.
8501         * MODULES.html.sh (Misc): Add "dfa" to this list.
8503 2016-09-09  Jim Meyering  <meyering@fb.com>
8505         getprogname-tests: don't depend on assert-h
8506         * modules/getprogname-tests (Depends-on): Remove assert-h.
8507         It was not needed, and in fact would cause build failure for
8508         coreutils on some systems.  Reported by Assaf Gordon in https:
8509         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
8511 2016-09-07  Jim Meyering  <meyering@fb.com>
8513         getprogname-tests: work also when EXEEXT is nonempty
8514         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
8515         * tests/test-getprogname.c (main): Use it.
8516         Suggested by Gisle Vanem.
8518 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
8520         getprogname: fix errors in previous change
8521         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
8522         s/program_invocation_name/base/
8523         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
8525 2016-09-08  Pádraig Brady  <P@draigBrady.com>
8527         parse-datetime: restrict debug output to input string
8528         * lib/parse-datetime.y (parse_datetime2): If we parse
8529         all of the input but determine it's invalid, ensure
8530         we don't output the now invalid input pointer.
8531         This issue was seen with `date -d 'now +1'`.
8533 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8535         flexmember: new macro FLEXALIGNOF
8536         * lib/flexmember.h: Include <stddef.h>, for offsetof.
8537         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
8538         this macro.  Update comments.
8540 2016-09-07  Jim Meyering  <meyering@fb.com>
8542         getprogname: port to systems with __argv (mingw, msvc)
8543         * lib/getprogname.c (getprogname): Include "dirname.h" and use
8544         last_component: more general than open coding it with hard-coded "/".
8545         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
8546         * modules/getprogname (Depends-on): Add dirname-lgpl.
8547         (configure.ac): Check for __argv in <stdlib.h>.
8548         * modules/getprogname-tests: New file.
8549         * tests/test-getprogname.c: New file.
8550         Suggested by Gisle Vanem in
8551         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
8553 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8555         flexmember: port better to GCC + valgrind
8556         With a char[] flexible array member in a struct with nontrivial
8557         alignment, GCC-generated code can access past the end of the
8558         array, because GCC assumes there are padding bytes to get the
8559         struct aligned.  So the common idiom of malloc (offsetof (struct
8560         s, m), n) does not properly allocate an n-byte trailing member, as
8561         malloc’s argument should be the next multiple of alignof (struct s).
8562         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
8563         Although C11 apparently permits this GCC optimization (i.e., there
8564         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
8565         See the thread containing:
8566         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
8567         * lib/flexmember.h: New file.
8568         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
8569         * lib/localename.c, lib/time_rz.c:
8570         Include flexmember.h.
8571         * lib/fnmatch_loop.c (struct patternlist):
8572         * lib/localename.c (struct hash_node):
8573         Use FLEXIBLE_ARRAY_MEMBER.
8574         * lib/fnmatch_loop.c (EXT):
8575         * lib/fts.c (fts_alloc):
8576         * lib/glob.c (glob_in_dir):
8577         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
8578         * lib/localename.c (gl_lock_define_initialized):
8579         * lib/time_rz.c (tzalloc):
8580         Use FLEXSIZEOF instead of offsetof.
8581         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8582         Check that the size of the struct can be taken.
8583         * modules/flexmember (Files): Add lib/flexmember.h.
8584         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
8585         Add flexmember.
8587 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8589         getprogname: port to Solaris 10
8590         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
8591         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
8592         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
8594         stdalign: correct mistake in alignof doc
8595         Problem reported by Joseph Myers in:
8596         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
8597         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
8598         alignof(S) where S is a structure containing a flexible array
8599         member.  The Gnulib substitute does not support this, but C11 does.
8601 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8603         main.mk: remove sc_program_name, since there is no more need to
8604         use set_program_name in tools (getprogname is enough for most
8605         of the cases).
8606         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
8607         * top/maint.mk (sc_program_name): Remove.
8609 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8611         Port tests away from progname, since modules that need the
8612         program name already depend on getprogname.
8613         * modules/acl-tests (Depends-on): Remove progname.
8614         * modules/argmatch (Depends-on): Likewise.
8615         * modules/argmatch-tests (Depends-on): Likewise.
8616         * modules/argp-tests (Depends-on): Likewise.
8617         * modules/argp-version-etc-tests (Depends-on): Likewise.
8618         * modules/array-list-tests (Depends-on): Likewise.
8619         * modules/array-oset-tests (Depends-on): Likewise.
8620         * modules/avltree-list-tests (Depends-on): Likewise.
8621         * modules/avltree-oset-tests (Depends-on): Likewise.
8622         * modules/avltreehash-list-tests (Depends-on): Likewise.
8623         * modules/carray-list-tests (Depends-on): Likewise.
8624         * modules/copy-file-tests (Depends-on): Likewise.
8625         * modules/exclude-tests (Depends-on): Likewise.
8626         * modules/fchownat-tests (Depends-on): Likewise.
8627         * modules/fdopendir-tests (Depends-on): Likewise.
8628         * modules/filenamecat-tests (Depends-on): Likewise.
8629         * modules/fstatat-tests (Depends-on): Likewise.
8630         * modules/fstrcmp-tests (Depends-on): Likewise.
8631         * modules/linked-list-tests (Depends-on): Likewise.
8632         * modules/linkedhash-list-tests (Depends-on): Likewise.
8633         * modules/mkdirat-tests (Depends-on): Likewise.
8634         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
8635         * modules/nonblocking-socket-tests (Depends-on): Likewise.
8636         * modules/obstack-printf-tests (Depends-on): Likewise.
8637         * modules/openat-tests (Depends-on): Likewise.
8638         * modules/parse-datetime-tests (Depends-on): Likewise.
8639         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
8640         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
8641         * modules/quotearg-simple-tests (Depends-on): Likewise.
8642         * modules/quotearg-tests (Depends-on): Likewise.
8643         * modules/rbtree-list-tests (Depends-on): Likewise.
8644         * modules/rbtree-oset-tests (Depends-on): Likewise.
8645         * modules/rbtreehash-list-tests (Depends-on): Likewise.
8646         * modules/spawn-pipe-tests (Depends-on): Likewise.
8647         * modules/system-quote-tests (Depends-on): Likewise.
8648         * modules/uniname/uniname-tests (Depends-on): Likewise.
8649         * modules/uninorm/nfc-tests (Depends-on): Likewise.
8650         * modules/uninorm/nfd-tests (Depends-on): Likewise.
8651         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
8652         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
8653         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
8654         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
8655         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
8656         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
8657         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
8658         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
8659         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
8660         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
8661         * modules/unlinkat-tests (Depends-on): Likewise.
8662         * modules/version-etc-tests (Depends-on): Likewise.
8663         * modules/xalloc-die-tests (Depends-on): Likewise.
8664         * modules/xmemdup0-tests (Depends-on): Likewise.
8665         * modules/xprintf-posix-tests (Depends-on): Likewise.
8666         * modules/xvasprintf-tests (Depends-on): Likewise.
8667         * tests/test-argmatch.c: Do not include progname.h.
8668         (main) Stop calling set_program_name.
8669         * tests/test-argp-version-etc.c: Likewise.
8670         * tests/test-argp.c: Likewise.
8671         * tests/test-argv-iter.c: Likewise.
8672         * tests/test-array_list.c: Likewise.
8673         * tests/test-array_oset.c: Likewise.
8674         * tests/test-avltree_list.c: Likewise.
8675         * tests/test-avltree_oset.c: Likewise.
8676         * tests/test-avltreehash_list.c: Likewise.
8677         * tests/test-carray_list.c: Likewise.
8678         * tests/test-copy-acl.c: Likewise.
8679         * tests/test-copy-file.c: Likewise.
8680         * tests/test-exclude.c: Likewise.
8681         * tests/test-fchownat.c: Likewise.
8682         * tests/test-fdopendir.c: Likewise.
8683         * tests/test-filenamecat.c: Likewise.
8684         * tests/test-fstatat.c: Likewise.
8685         * tests/test-fstrcmp.c: Likewise.
8686         * tests/test-linked_list.c: Likewise.
8687         * tests/test-linkedhash_list.c: Likewise.
8688         * tests/test-mkdirat.c: Likewise.
8689         * tests/test-nonblocking-pipe-main.c: Likewise.
8690         * tests/test-nonblocking-socket-main.c: Likewise.
8691         * tests/test-obstack-printf.c: Likewise.
8692         * tests/test-openat.c: Likewise.
8693         * tests/test-parse-datetime.c: Likewise.
8694         * tests/test-pipe-filter-gi1.c: Likewise.
8695         * tests/test-pipe-filter-gi2-main.c: Likewise.
8696         * tests/test-pipe-filter-ii1.c: Likewise.
8697         * tests/test-pipe-filter-ii2-main.c: Likewise.
8698         * tests/test-quotearg-simple.c: Likewise.
8699         * tests/test-quotearg.c: Likewise.
8700         * tests/test-rbtree_list.c: Likewise.
8701         * tests/test-rbtree_oset.c: Likewise.
8702         * tests/test-rbtreehash_list.c: Likewise.
8703         * tests/test-sameacls.c: Likewise.
8704         * tests/test-set-mode-acl.c: Likewise.
8705         * tests/test-spawn-pipe-main.c: Likewise.
8706         * tests/test-system-quote-main.c: Likewise.
8707         * tests/test-unlinkat.c: Likewise.
8708         * tests/test-version-etc.c: Likewise.
8709         * tests/test-xalloc-die.c: Likewise.
8710         * tests/test-xfprintf-posix.c: Likewise.
8711         * tests/test-xmemdup0.c: Likewise.
8712         * tests/test-xprintf-posix.c: Likewise.
8713         * tests/test-xvasprintf.c: Likewise.
8714         * tests/uniname/test-uninames.c: Likewise.
8715         * tests/uninorm/test-u32-nfc-big.c: Likewise.
8716         * tests/uninorm/test-u32-nfd-big.c: Likewise.
8717         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
8718         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
8719         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
8720         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
8721         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
8722         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
8723         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
8724         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
8725         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
8726         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
8727         * tests/test-c-stack.c: (program_name): Do not define.
8728         (main): Do not set program_name.
8729         * tests/test-closein.c: Likewise.
8730         * tests/test-xstrtol.c: Likewise.
8731         * tests/test-yesno.c: Likewise.
8733 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8735         Port modules to use getprogname explicitly, instead of requiring
8736         progname to be used (or program_name to be provided).
8737         * lib/argmatch.c: Do not include progname.h.
8738         [TEST] (program_name): Do not define.
8739         [TEST] (main): Call getprogname instead of using program_name.
8740         * lib/c-stack.c: Do not include progname.h.
8741         (program_name): Do not define.
8742         (die): Call getprogname instead of using program_name.
8743         * lib/chdir-long.c: Do not include progname.h.
8744         [TEST_CHDIR] (main): Do not set program_name.
8745         * lib/error.c [!_LIBC]: Include progname.h.
8746         [!_LIBC] (program_name): Define using getprogname.
8747         * lib/euidaccess.c: Do not include progname.h.
8748         [TEST] (main): Do not set program_name.
8749         * lib/git-merge-changelog.c: Include getprogname.h instead of
8750         progname.h.
8751         (usage): Call getprogname instead of using program_name.
8752         (main): Likewise.  Stop calling set_program_name.
8753         * lib/group-member.c: Do not include progname.h.
8754         [TEST] (main): Do not set program_name.
8755         * modules/argmatch (Depends-on): Add getprogname.
8756         * modules/c-stack (Depends-on): Likewise.
8757         * modules/error (Depends-on): Likewise.
8758         * modules/git-merge-changelog (Depends-on): Likewise.
8759         Also remove progname.
8761 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
8763         * NEWS: Document the deprecation of the 'progname' module.
8765 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8767         getprogname: new module
8768         This provides a LGPL module for getting the name of the current
8769         program, using the same API found on *BSD systems.
8770         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
8771         * modules/getprogname: New files.
8772         * MODULES.html.sh (Misc): Add getprogname.
8774 2016-09-02  Jim Meyering  <meyering@fb.com>
8776         manywarnings: add -fno-common
8777         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
8778         to the list.  Quoting the manual, "Compiling with -fno-common is
8779         useful on targets for which it provides better performance, or if
8780         you wish to verify that the program will work on other systems that
8781         always treat uninitialized variable declarations this way [putting
8782         it in the data section]."  If diffutils had been using this sooner,
8783         it would have prevented this duplicate declaration issue:
8784         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
8786 2016-08-31  Simon Josefsson  <simon@josefsson.org>
8788         parse-datetime: Fix typo.
8789         * lib/parse-datetime.y (parse_datetime2): Fix typo.
8791 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
8793         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
8794         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
8795         GCC 5 and 6 that have __builtin_sub_overflow but not
8796         __builtin_sub_overflow_p.  With the recent changes, these
8797         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
8798         implementation than with INT_SUBTRACT_OVERFLOW implementation,
8799         since the former needs just one runtime comparison whereas the
8800         latter needs two.
8802         strverscmp: sync with glibc
8803         Although this doesn't exactly synchronize with glibc
8804         byte-for-byte, it makes the code behave the same as glibc.
8805         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
8806         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
8807         difference shouldn't matter in practical use.  All uses changed
8808         back to isdigit.
8809         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
8810         (next_state): Now unsigned char array; redo elements.
8811         (result_type): Now signed char array; redo elements.
8812         (__strverscmp): Fix glibc bug 9913 by using new states.
8813         * tests/test-strverscmp.c (main): Test glibc bug 9913.
8815 2016-08-29  Jim Meyering  <meyering@fb.com>
8817         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
8818         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
8819         similarly to how it was done to intprops.h.
8821 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
8823         intprops.h: port recent changes to GCC 6.2.0
8824         * lib/intprops.h (__has_builtin): Move earlier.
8825         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
8826         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
8827         the last argument can be null.  All uses changed.
8828         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
8829         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
8830         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
8831         and it's not clear which GCC versions it works for.
8832         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
8833         its definiens.
8835         intprops.h: use __typeof__ with GCC 7
8836         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
8837         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
8838         This avoids computing the expression's value (which might overflow!).
8840 2016-08-29  Jim Meyering  <meyering@fb.com>
8842         intprops.h, xalloc-oversized.h: work with gcc 7
8843         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
8844         __builtin_mul_overflow each accept a NULL pointer as the third
8845         argument.  However in gcc 7, that is no longer accepted.
8846         Instead, one must use the "_p"-suffixed names, with which, the
8847         third parameter is no longer a pointer.
8848         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
8849         the definition: not true for gcc 7 and subsequent.
8850         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
8851         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
8852         Provide new definitions for gcc 7 and subsequent.
8853         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
8854         that works with gcc-7.
8856         intprops.h: fix missing-backslash problems
8857         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
8858         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
8860 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8862         intprops: fix paren typo on old platforms
8863         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
8864         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
8865         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
8866         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
8867         && !defined LLONG_MAX]:
8868         Remove stray paren.
8870         intprops: port to OpenVMS
8871         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
8872         * doc/posix-headers/limits.texi: Document the problem.
8873         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
8874         Define if not already defined.
8876 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
8878         parse-datetime: improve debug implementation
8879         Follow-up to commit 12ad79069 ("add optional debug printing").
8880         Improve parse-datetime's debug implementation: remove macros,
8881         replace global debug flag variable with a function parameter,
8882         use nstrftime for formatting.
8883         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
8884         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
8885         (parse_datetime2): New function, accepts 'flags' parameter, supporting
8886         debug flag. Existing interface 'parse_datetime' left unmodified.
8887         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
8888         (struct parser_control): add 'parse_datetime_debug' member variable.
8889         (parse_datetime): Call new function 'parse_datetime2' without debug.
8890         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
8891         pc.parse_datetime_debug variable as needed.
8892         (to_year): Accept new flags parameter, instead of using global variable.
8893         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
8894         use struct 'debug' variable instead of global variable.
8895         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
8896         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
8897         correspnding functions directly instead of using macros.
8898         * modules/parse-datetime: Add gnulib's strftime module.
8900 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
8902         c-strcase-tests: port to EBCDIC
8903         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
8904         which assume ASCII encoding semantics to run only in ASCII
8905         mode, as they fail in EBCDIC.
8907         sigpipe-tests: fix typo
8908         * tests/test-sigpipe.sh: C, not B.
8910 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
8912         canonicalize-lgpl: fix errno after malloca fails
8913         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
8914         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
8915         * lib/canonicalize-lgpl.c (__realpath):
8916         Don't assume malloca sets errno on failure.
8918 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8920         strtod: port errno handling to z/OS
8921         * lib/strtod.c (strtod): Save and restore errno more reliably.
8923 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
8925         strtod: port to z/OS
8926         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
8927         implementation.
8929 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8931         strtod: port to z/OS
8932         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
8933         implementation.
8935         regex, string: rename to avoid '__string'
8936         * lib/regex.h, lib/string.in.h: Do not use the identifier
8937         '__string', as it is effectively reserved by string.h on z/OS.
8939         c-strcase-tests, wcwidth-tests: depend on c-ctype
8940         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
8941         Add c-ctype.
8943 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
8945         thread: port to z/OS
8946         * lib/glthread/thread.c, lib/glthread/thread.h:
8947         Rudimentary gl_thread support for z/OS.
8949         maint: port tests to z/OS errno behavior
8950         * tests/test-nonblocking-reader.h:
8951         * tests/test-nonblocking-writer.h:
8952         Accommodate z/OS errno code preferences. (I believe this should
8953         still be within spec; IBM is good at following the letter if not
8954         the spirit of such things.)
8956         maint: preprocessor changes to support z/OS
8957         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
8958         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
8959         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
8960         * tests/test-nonblocking-pipe.h:
8962         fclose, strstr-simple, wchar: port to z/OS
8963         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
8964         Changes to the Autoconf M4 code to support z/OS.  Note that
8965         fclose() is broken in a different way on z/OS than it is on other
8966         systems, thus the special-case in fclose.m4.
8968         iconv_open-utf-tests, iconv-tests: port to EBCDIC
8969         * tests/test-iconv-utf.c, tests/test-iconv.c:
8970         Added appropriately conditional #pragmas so that the test strings
8971         in test-iconv-utf.c are correctly interpreted in ASCII instead of
8972         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
8973         addressed in a more portable way by simply rewriting all the ASCII
8974         literal characters as octal escapes, but then you would lose the
8975         partial readability that the strings have now. Also, iconv_open()
8976         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
8978         c-strcase-tests, wcwidth-tests: port to EBCDIC
8979         * tests/test-c-strcasecmp.c: Include c-ctype.h.
8980         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
8981         * tests/test-wcwidth.c: Likewise.
8983 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8985         stdbool: don't require _Bool for C++
8986         Problem reported by David Seifert in:
8987         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
8988         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
8989         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
8990         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
8991         stricter about checking that bool and _Bool are compatible in C.
8993 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
8995         getdelim: remove dependency on realloc-posix
8996         * lib/canonicalize-lgpl.c (alloc_failed)
8997         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
8998         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
8999         Use __set_errno where needed, for consistency.
9000         * lib/getdelim.c (alloc_failed): New function.
9001         (getdelim): Use it.
9003 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
9005         parse-datetime: add optional debug printing
9006         Print parsing information, warnings, and errors to stderr.
9007         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
9008         * lib/parse-datetime.y:
9009         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
9010         (PROGRESS*): Same as DEBUG, for progress reporting.
9011         (dbg_printf): Print message to stderr, with 'date' prefix.
9012         (struct parser_control): Add 'debug_*_seen' variables.
9013         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
9014         (debug_print_current_time, debug_print_relateive_time): Prints the
9015         current/relative date/time value of parser_control.
9016         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
9017         (to_year): Warn about 2-digit year parsing.
9018         (yylex):   Warn about unrecognized words.
9019         (get_effective_timezone): Returns current timezone in minutes.
9020         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
9021         clearly and unambigiously as possible.
9022         (debug_mktime_not_ok): Print detailed information about failed
9023         date/time values.
9024         (parse_datetime): Add DEBUG messages for failures, warnings. Add
9025         PROGRESS messages for status messages.
9026         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
9028 2016-08-06  Jim Meyering  <meyering@fb.com>
9030         tests/init.sh: exclude dash with bad "local" semantics
9031         * tests/init.sh (gl_shell_test_script_): Add a function to
9032         eliminate a shell like "dash" (unlike bash, zsh) that has
9033         surprising/risky "local var='...'" semantics.  Inspired by
9034         the problem and discussion in https://bugs.gnu.org/24116#11.
9036 2016-08-02  Ján Tomko  <jtomko@redhat.com>
9038         maint.mk: expand the prohibit_doubled_word regex
9039         This check has a static list of words that are checked for
9040         repetitions.  Expand it before running the perl script to
9041         avoid using expensive captures.  This decreases the cost
9042         for libvirt from 1.66s to 0.66s.
9043         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
9044         (sc_prohibit_doubled_word): Use it.
9046 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9048         useless-if-before-free: skip non-matching lines early
9049         * build-aux/useless-if-before-free: First match each line with the
9050         simple/quick /\bif\b/ and reject if there is no match. This often
9051         saves the cost of the much more involved regular expression.
9052         For libvirt, this decreases the cost from 1.44s to 1.02s.
9054 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9056         maint.mk: speed up sc_po_check
9057         sc_po_check would skip files based on their names, or on the
9058         existence of files with derived names. Rewrite it to use perl
9059         instead of shell to make the check faster.
9060         * top/maint.mk (perl_translatable_files_list_): Define.
9061         (sc_po_check): Use it.
9063 2016-07-30  Ján Tomko  <jtomko@redhat.com>
9065         maint.mk: speed up require_config_h_first
9066         Instead of spawning three processes per file,
9067         rewrite the check in perl and run it once for all the files.
9068         * top/maint.mk (perl_config_h_first_): Define.
9069         (sc_require_config_h_first): Use it in place of shell code.
9071 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9073         maint.mk: speed up sc_po_check
9074         sc_po_check would skip files based on their names, or on the
9075         existence of files with derived names. Rewrite it to use perl
9076         instead of shell to make the check faster.
9077         * top/maint.mk (perl_translatable_files_list_): Define.
9078         (sc_po_check): Use it.
9080 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
9082         obstack: pacify GCC 6 with -Wnull-dereference
9083         Problem reported by Assaf Gordon in:
9084         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
9085         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
9086         Declare with __attribute_noreturn__.
9087         * lib/obstack.h (__attribute_noreturn__): New macro.
9089 2016-07-13  Eric Blake  <eblake@redhat.com>
9091         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
9092         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
9093         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
9095 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
9097         doc: mention glibc SSIZE_MAX buglet
9098         * doc/posix-headers/limits.texi (limits.h): Document the bug.
9100 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
9102         printf-posix: Fix mingw build
9103         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
9104         expression for detecting C symbol prefixes but forgot to qoute square
9105         brackets in the command line arguments for grep.  That way when
9106         building with mingw the condition was false although it ought to be
9107         true instead.  In particular scenarios this led to the following
9108         compile error:
9110             Cannot export rpl_printf: symbol not found
9111             Cannot export rpl_scanf: symbol not found
9112             collect2: error: ld returned 1 exit status
9114         Fix this by properly quoting square brackets.
9116 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
9118         mktime: call tzset as per POSIX
9119         Problem reported by Ludovic Courtès in:
9120         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
9121         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
9122         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
9124 2016-06-26  Pádraig Brady  <P@draigBrady.com>
9126         fts: handle readdir() errors
9127         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
9128         but also upon error when it will also set errno.  Therefore
9129         flag the error case from readdir().  We treat the case where
9130         no items are read the same as if the dir can't be accessed,
9131         i.e. by setting fts_errno to FTS_DNR.
9133 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
9135         intprops: port better to GCC 7
9136         GCC 7 __builtin_add_overflow supports a new usage form, where the
9137         last argument is a null pointer, and which merely returns 1 if an
9138         overflow would occur.  This is a constant expression if all
9139         arguments are constants, and should generate faster code when code
9140         needs to be generated.
9141         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
9142         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
9143         Use builtin operations if available.
9144         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
9145         operations are available, as it's almost surely faster.
9147 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9149         intprops-test: port to GCC 6
9150         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
9151         since the bug is not fixed in GCC 6.1.
9153 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9155         xalloc-oversized: port to GCC 7; fewer warnings
9156         GCC 7 will have a better way to deal with integer overflow.
9157         Plus, fix a warnings problem reported by Tim Ruehsen in:
9158         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
9159         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
9160         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
9161         For GCC 5, use __xalloc_oversized if both args are constants,
9162         or if pedantic.
9164 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
9166         regex: port to Sun C
9167         Reported by Daiki Ueno.
9168         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
9169         __restrict, in prototype.  This fixes a problem I introduced in
9170         the 2016-02-19 merge from glibc.
9172 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
9174         stdbool: Restore __bool_true_false_are_defined check
9175         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
9176         __bool_true_false_are_defined is still defined, even with C++11.
9178 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
9180         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
9181         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
9183 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
9185         Use GCC_LINT, not lint
9186         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
9187         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
9188         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
9189         Document problem with lint and _Noreturn.
9190         * lib/diffseq.h (IF_LINT, IF_LINT2):
9191         * lib/fts.c (sccsid):
9192         * lib/getndelim2.c (IF_LINT):
9193         * lib/gl_anylinked_list2.h (gl_linked_iterator)
9194         (gl_linked_iterator_from_to):
9195         * lib/gl_anytree_list2.h (gl_tree_iterator)
9196         (gl_tree_iterator_from_to):
9197         * lib/gl_anytree_oset.h (gl_tree_iterator):
9198         * lib/gl_array_list.c (gl_array_iterator)
9199         (gl_array_iterator_from_to):
9200         * lib/gl_array_oset.c (gl_array_iterator):
9201         * lib/gl_carray_list.c (gl_carray_iterator)
9202         (gl_carray_iterator_from_to):
9203         * lib/idcache.c:
9204         * lib/inet_ntop.c (IF_LINT):
9205         * lib/regcomp.c (build_charclass_op, create_tree):
9206         * lib/regex_internal.c (re_acquire_state)
9207         (re_acquire_state_context):
9208         * lib/trigl.c (rcsid):
9209         * lib/trim.c (IF_LINT):
9210         * lib/vasnprintf.c (IF_LINT):
9211         * lib/verify.h (assume):
9212         Treat GCC_LINT like lint.
9214 2016-05-29  Bruno Haible  <bruno@clisp.org>
9216         secure_getenv: Port to many more platforms.
9217         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
9218         functions.
9219         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
9220         for non-BSD Unix platforms and for native Windows.
9221         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
9222         Prompted by a request from Nikos Mavrogiannopoulos.
9224 2016-05-27  Eric Blake  <eblake@redhat.com>
9226         canonicalize: Fix broken probe for realpath.
9227         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
9228         in logic introduced in 54615b95.
9230 2016-05-26  Eric Blake  <eblake@redhat.com>
9232         unsetenv: relax to LGPLv2+
9233         * modules/unsetenv (License): Match setenv license.
9235 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
9237         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
9238         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
9239         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
9240         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
9241         (commonarg, dirargs, dirs, infoarg, generate_ascii)
9242         (generate_html, generate_info, generate_tex, outdir)
9243         (source_extra, split, srcfile, texarg): Move above 'version'.
9244         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
9246 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9248         manywarnings: update for GCC 6.1
9249         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
9250         Add GCC 6.1 options that apply to C.
9251         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
9252         do not apply to C, are obsolescent, etc.
9254 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
9256         glob: size_t overflow checks
9257         * lib/glob.c (__has_builtin): New macro.
9258         (size_add_wrapv, glob_use_alloca): New static functions.
9259         (glob, glob_in_dir): Check for size_t overflow in several places,
9260         and fix some size_t checks that were not quite right.
9262         glob: don't assume INT_MAX < SIZE_MAX
9263         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
9264         latter is not portable to (probably theoretical) hosts where
9265         SIZE_MAX <= INT_MAX.
9267 2016-05-09  Bruno Haible  <bruno@clisp.org>
9269         Fix undefined behaviour in gettext.h.
9270         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
9271         pointer's value after the storage it points to has been freed.
9272         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
9273         Spotted by Coverity.
9275 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
9277         git-version-gen: avoid undefined shift
9278         Problem reported by Mosè Giordano in:
9279         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
9280         * build-aux/git-version-gen: Avoid undefined behavior if invoked
9281         with --prefix or --fallback but without a later argument.  While
9282         we're at it, omit unnecessary quotes.
9284 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
9286         glob: merge glibc changes into lib/glob.c
9287         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
9288         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
9289         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
9290           struct dirent [BZ #19779]
9291         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
9292           callback gl_readdir
9293         2015-10-20 Convert miscellaneous function definitions to prototype style
9294         2015-10-20 Convert 113 more function definitions to prototype style
9295           (files with assertions)
9296         2015-06-12 Fix getlogin_r namespace (bug 18527).
9297         2014-02-10 Use glibc_likely instead __builtin_expect.
9298         2013-10-20 When glob pattern contains a trailing slash match only
9299           directories. Fixes bug 10278.
9300         2013-09-04 glob: silence -Wattribute warnings
9301         2013-06-07 Avoid use of "register" as optimization hint.
9302         2012-09-25 Use size_t instead of int for internal variables in glob
9303           (bug 14621)
9304         2011-07-20 Check for overflows in expressions
9305         2011-05-28 Remove unused variable
9306         2011-05-22 Add a few more alloca size checks
9307         2010-03-27 Whitespace fixes
9308         2010-03-27 Fix one more issue with the glob patch
9309         2010-03-24 Fix glob with empty pattern
9310         2008-05-27 Remove useless more "if" tests before "free"
9311         * modules/glob (Depends-on): Add stdint.
9313 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
9315         mktime: port to stricter signed overflow checking
9316         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
9317         (long_int): Require width for INT_MAX * 3 * (seconds per year),
9318         instead of merely for INT_MAX * 2.  In practice platforms that
9319         do the latter also do the former.
9320         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
9321         (shr): New static function, replacing SHR.  All uses changed.
9322         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
9323         and TIME_T_MAX.  All uses changed.
9324         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9325         Use long_int, not time_t.
9326         (long_int_avg): New static function, replacing time_t_avg.
9327         All uses changed.  Round toward positive infinity, as that
9328         generates slightly better code.
9329         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
9330         by INT_ADD_WRAPV.
9331         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
9332         (convert_time): New static function.
9333         (ranged_convert): Use it
9334         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
9335         Use simpler test for loop exit.
9336         (__mktime_internal): Store negative of guessed offset, to simplify
9337         overflow checking.  Remove no-longer-needed test for small time_t
9338         overflows.
9340         mktime: speed up DEBUG_MKTIME benchmarks
9341         Call tzset just once, at the start, rather than for every test
9342         case.  This lets us measure the CPU cost of mktime as opposed to
9343         that of tzset.  This is relevant when TZ is not set and glibc is
9344         being used.  This speeds up tests by a factor of 40 on my Fedora
9345         23 x86-64 platform.
9346         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
9347         to call tzset and as a sanity check.  Later on, use localtime_r
9348         instead of localtime.
9350         mktime: resurrect DEBUG_MKTIME testing
9351         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
9352         Include <string.h>, for strcmp.
9354         mktime: simplify DEBUG_MKTIME
9355         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
9356         Simplify later usage accordingly.
9358         Port mktime_internal offset to unsigned time_t
9359         This avoids some assumptions about wraparound arithmetic on
9360         signed integer overflow.
9361         * lib/mktime-internal.h (mktime_offset_t): New type.
9362         (mktime_internal): Use it in decl.
9363         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
9365         * lib/mktime.c (__mktime_internal, localtime_offset):
9366         * lib/timegm.c (timegm): Use it.
9367         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
9368         (gl_FUNC_MKTIME): Require it.
9370 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
9372         xstrtol: prohibit monstrosities like "1bB"
9373         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
9374         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
9375         "B" only if the first suffix needs a base.
9376         * tests/test-xstrtol.sh: Test this.
9378 2016-04-21  Pádraig Brady  <P@draigBrady.com>
9380         xstrtod: reinstate setting of *result upon ERANGE
9381         * lib/xstrtod.c (XSTRTOD): The user may decide to use
9382         the returned limits upon ERANGE, so allow and document that.
9384 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
9386         xstrtod: modify *result only if no errors
9387         * lib/xstrtod.c (XSTRTOD).
9389 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
9391         btowc: document problems in C locale
9392         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
9393         with mbrtowc.  See: http://bugs.gnu.org/23269#32
9395 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
9397         mktime: improve integer overflow checking
9398         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
9399         (WRAPV): Remove; no longer needed.
9400         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
9401         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
9402         Remove.  Use intprops.h defns instead.
9403         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
9404         Use bool for Boolean, for clarity.
9405         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
9406         detect integer overflow.
9407         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
9409         intprops: check two's complement assumption
9410         Suggested by Eric Blake in:
9411         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
9412         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
9413         short, int, long, and (if available) long long are two's complement.
9414         * modules/intprops (Depends-on): Add 'verify'.
9416         intprops, mktime, strtol: assume two's complement
9417         These macros were not portable to every conforming C11 ones'
9418         complement platform.  It's not worth the hassle of porting to some
9419         platforms that use ones' complement or signed magnitude, as such
9420         platforms are almost purely theoretical nowadays and porting even
9421         to some of them makes the code harder to review for little
9422         practical benefit.  Problem reported by Florian Weimer in:
9423         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
9424         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
9425         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
9426         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
9427         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
9428         (TYPE_SIGNED_MAGNITUDE):
9429         Remove.  All uses rewritten to assume two's complement, which is
9430         all we can reasonably test nowadays anyway.
9431         * top/maint.mk (_intprops_names): Remove the removed macros.
9433 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
9435         stdint: port to strict C11 left shift
9436         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
9437         Pacify clang -Wshift-negative-value, which should be an issue only
9438         on clang setups where stdint.h does not conform to C11 or to C++11.
9439         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
9441 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
9443         mbrtowc: work around glibc bug#19932
9444         Fix mbrtowc so that it never returns -1 in the C locale,
9445         as this conflicts with a future version of POSIX
9446         http://austingroupbugs.net/view.php?id=663#c2738
9447         and causes problems with GNU grep: http://bugs.gnu.org/23234
9448         See glibc bug 19932:
9449         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
9450         * doc/posix-functions/mbrlen.texi (mbrlen):
9451         * doc/posix-functions/mbrtowc.texi (mbrtowc):
9452         Document the glibc bug.
9453         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
9454         Include hard-locale.h, locale.h.
9455         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
9456         if the bug is possible.
9457         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
9458         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
9459         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
9460         * modules/mbrtowc (Depends-on): Add hard-locale.
9461         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
9462         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
9463         * tests/test-mbrtowc5.sh: New file.
9465 2016-04-03  Pedro Alves  <palves@redhat.com>
9467         stdint: detect good enough pre-C++11 stdint.h in C++ mode
9468         When gnulib is configured in C++ mode for a system with a working C99
9469         implementation of stdint.h that predates C++11, gnulib ends up
9470         substituting stdint.h anyway.  This works on most targets, but on e.g.,
9471         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
9472         MinGW is LLP64.  Instead of trying to detect the right types, detect
9473         good-enough-pre-C++11 stdint.h and in such case define
9474         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
9475         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
9476         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
9477         conforms to C99.  If it does, check whether it hides symbols
9478         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
9479         does, define those macros in config.h.
9481 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
9483         argp: merge changes from glibc
9484         Among other things, this should fix problems found by a Coverity
9485         scan and reported by Andrei Borzenkov:
9486         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
9487         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
9488         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
9489         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
9490         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
9491         * lib/argp.h:
9492         Merge changes from glibc.
9493         * tests/test-argp-2.sh: Adjust to match new behavior.
9495 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
9497         stddef: support configuring with g++
9498         Problem reported by Ángel González in:
9499         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
9500         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
9501         Do not define if _GCC_MAX_ALIGN_T is defined.
9503 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
9505         test-framework-sh: minor cleanups
9506         * tests/init.sh (testdir_prefix_): Output a trailing newline,
9507         since strictly speaking POSIX requires this.
9508         (setup_): Do not use the variable 'fail', as that makes the
9509         trace output harder to read ('fail' is typically used by
9510         tests to mean the test failed).  Treat // portably.
9511         Check that new directory is not merely a sibling of the tmp dir.
9512         Avoid unnecessary invocation of tr.
9514         test-framework-sh: revert port to NetBSD 7.0
9515         It was a false alarm; I misinterpreted Assaf Gordon's report.
9516         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
9517         Restore.
9518         (test_dir_): Adjust to mktempd_ change.
9519         (mktempd_): Restore 2nd arg.  Use -t again.
9520         (base_template_, template_, nx_): Resurrect old code.
9522         Port better to Alpine Linux
9523         Its diff implementation does not support -c, but does support -U3.
9524         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
9525         * tests/init.sh (diff_opt_): New var.
9526         (compare_): Prefer diff -U3 to diff -c to plain diff.
9528 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9530         test-framework-sh: port to NetBSD 7.0
9531         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
9532         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
9533         Remove.  All uses removed.
9534         (test_dir_): Adjust to mktempd_ change.
9535         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
9536         (base_template_, template_, nx_): Simplify by hardcoding.
9538 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
9540         gitlog-to-changelog: suppress ignored chatter
9541         * build-aux/gitlog-to-changelog: Do not warn about skipping
9542         an SHA if it would have been ignored anyway.
9544 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
9546         setlocale: add "sv" to Windows language table
9547         * lib/setlocale.c (language_table) [W32]: Add "sv".
9548         Reported in <https://savannah.gnu.org/bugs/?44588>.
9550 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
9552         sys_select: port to new Cygwin
9553         Problem reported by Ken Brown in:
9554         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
9555         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
9556         diagnostics.
9558 2016-03-17  Jim Meyering  <meyering@fb.com>
9560         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
9561         * tests/test-userspec.c (main): Remove unnecessary braces and fix
9562         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
9563           test-userspec.c:176:9: error: statement is indented as if it were \
9564             guarded by... [-Werror=misleading-indentation]
9565                    {
9566                    ^
9567           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
9568                  if (!diag && !T[i].result)
9569                  ^~
9571 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
9573         time_rz: port to clang -Wunused-const-variable
9574         * lib/time_rz.c (TZ): Remove.  All uses removed.
9576         std-gnu11: improve clang support
9577         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
9578         2016-03-15 Also try clang
9579         2016-03-15 Port C11 and C++11 testing to clang
9581         select: port more to Intel 2016.1.150 compiler
9582         Problem reported by Balázs Hajgató in:
9583         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
9584         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
9586 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
9588         select: try to port to 2016.1.150 compiler
9589         Problem reported by Balázs Hajgató in:
9590         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
9591         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
9592         POSIX specifies 'restrict'.
9594 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
9596         localename-tests: memory allocation fixes
9597         * tests/test-localename.c (test_locale_name)
9598         (test_locale_name_thread): Don't call freelocale on a locale
9599         that was the base of a successful newlocale, as that
9600         results in a double free.  Problem reported by Assaf Gordon.
9601         (test_locale_name_thread): Free saved names after use, to pacify
9602         gcc -fsanitize=address.
9604 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
9606         intprops: make .h file license match module
9607         * lib/intprops.h: Change the license wording to match glibc format.
9608         This is what is in modules/intprops anyway.  See:
9609         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
9611 2016-03-08  Eric Blake  <eblake@redhat.com>
9613         acl: fix missing return on Cygwin
9614         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
9615         fall off end of function. Fixes http://bugs.gnu.org/22949
9617 2016-03-05  Bruno Haible  <bruno@clisp.org>
9619         extern-inline: port to PGI CC
9620         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
9621         keyword 'inline'.
9622         Reported by Adam James Stewart in:
9623         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
9625 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9627         signbit: port back to pre-C++11 GCC
9628         * lib/math.in.h (signbit): Do previous change only if
9629         __cplusplus < 201103.  See Jonathan Wakely in:
9630         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
9632 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
9634         mountlist: recognize autofs-mounted remote file systems, too
9635         Originally reported at: https://bugzilla.redhat.com/1309247
9636         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
9637         "-hosts" because it is used by autofs to mount remote file systems.
9639 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9641         signbit: port to C++ with GCC 6
9642         * lib/math.in.h (signbit) [__cplusplus]:
9643         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
9644         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
9646         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
9648         regex: make it closer to libc
9649         Make Idx a signed type, rather than possibly unsigned.
9650         The unsignedness was not really buying us anything, since the code
9651         overflows for other reasons before getting to PTRDIFF_MAX.  Making
9652         it signed allows us to use -1 and -2 with abandon, like libc does,
9653         thus lessening the number of differences between gnulib and libc.
9654         Also, it should help avoid gratuitous warnings like the one
9655         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
9656         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
9659         regex: merge patches from libc
9661         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
9662         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
9663         Convert miscellaneous function definitions to prototype style.
9664         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
9665         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
9666         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
9667         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
9668         (re_search_internal):
9669         Convert to prototype-style function definition.
9670         Use internal_function for internal functions.
9672 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
9674         stdalign: port to older HP and IBM cc
9675         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
9676         C compilers, by checking their version numbers.  These version
9677         numbers appear in MariaDB and in Qt code that dates way back and
9678         that conditiionally uses the 'aligned' attribute.
9680 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9682         stdalign: port to clang 3.7.0
9683         Problem reported by Herbert J. Skuhra in:
9684         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
9685         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
9686         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
9687         https://llvm.org/bugs/show_bug.cgi?id=26547
9689 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9691         readdir_r: now obsolescent
9692         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
9693         * lib/mountlist.c (read_file_system_list): Add a FIXME.
9695 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9697         misc: port better to gcc -fsanitize=address
9698         Without these patches, ./configure CFLAGS='-fsanitize=address'
9699         would compute incorrect values.  This patch fixes some (but not all)
9700         test failures with recent glibc, with this configuration.
9701         * m4/acl.m4 (gl_ACL_GET_FILE):
9702         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
9703         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
9704         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
9705         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
9706         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
9707         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
9708         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
9709         * m4/getline.m4 (gl_FUNC_GETLINE):
9710         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
9711         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
9712         * m4/regex.m4 (gl_REGEX):
9713         * m4/strndup.m4 (gl_FUNC_STRNDUP):
9714         * tests/test-calloc-gnu.c (main):
9715         * tests/test-duplocale.c (main):
9716         * tests/test-getgroups.c (main):
9717         * tests/test-getline.c (main):
9718         * tests/test-inttostr.c (main):
9719         * tests/test-localename.c (test_locale_name)
9720         (test_locale_name_thread, test_locale_name_environ)
9721         (test_locale_name_default):
9722         * tests/test-regex.c (main):
9723         * tests/test-setlocale1.c (main):
9724         * tests/test-stat.h (test_stat_func):
9725         Free heap-allocated storage before exiting.
9726         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
9727         Don't match *_foo symbols inserted by AddressSanitizer.
9728         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
9730 2016-02-02  Jim Meyering  <meyering@fb.com>
9732         verify-tests: also remove stray test-verify.Tpo
9733         * modules/verify-tests (Makefile.am): Arrange for "make clean"
9734         to remove the test-verify.Tpo file that is left behind by
9735         the automake-generated rule upon compilation failure.
9736         Otherwise, that .Tpo file would cause a failed "make distcheck"
9737         at least for grep.
9739 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
9741         std-gnu11: new module
9742         This makes it easier for applications to prefer C11 and C++11
9743         to older variants, when compiling C and C++ code.
9744         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
9745         a nontrivial chunk of GPLed Autoconf source code.
9746         * COPYING: Mention the m4/*.m4 copyright situation.
9747         * MODULES.html.sh (std-gnu11): New module.
9748         * m4/std-gnu11.m4, modules/std-gnu11: New files.
9750 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9752         get-permissions, strftime: fix grammar in comments
9753         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
9754         some grammar fixes Alan Mackenzie made to GNU Emacs.
9756 2016-01-25  Daiki Ueno  <ueno@gnu.org>
9758         gettext: mark as obsolete
9759         Suggested by Paul Eggert in:
9760         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
9761         * modules/gettext (Status): Mark as obsolete.
9762         (Notice): Suggest to use 'gettext-h' instead.
9763         * modules/gettext-h (Description): Suggest GNU gettext, instead of
9764         the 'gettext' module.
9766 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
9768         gnulib-tool: don't give up on ln -s so easily
9769         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
9770         because an earlier one failed.  The targets could be on different
9771         file systems.  Problem reported by KO Myung-Hun in:
9772         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
9774         closedir: fix OS/2-related typos
9775         Problem reported by KO Myung-Hun in:
9776         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
9777         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
9778         in the last couple of changes.
9780 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
9782         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
9783         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
9784         copying a directory.
9786 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
9788         regex: treat [x] as x if x is a unibyte encoding error
9789         Problem reported by Aharon Robbins in:
9790         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
9791         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
9792         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
9794         closedir, dirfd, opendir: port to OpenSolaris 5.10
9795         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
9796         * m4/dirfd.m4 (gl_FUNC_DIRFD):
9797         * m4/opendir.m4 (gl_FUNC_OPENDIR):
9798         Don't use ${word##pat} substitution, as it doesn't work in
9799         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
9800         http://bugs.gnu.org/22443#11
9802 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9804         bootstrap: use American spelling
9805         * build-aux/bootstrap: Honor American spelling.
9807 2016-01-22  Karl Berry  <karl@freefriends.org>
9809         * doc/posix-functions/localtime.texi,
9810         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
9812 2016-01-21  Bruno Haible  <bruno@clisp.org>
9814         hash-pjw-bare: fix comment
9815         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
9817         wcwidth: Replace also on OpenBSD 5.8
9818         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
9819         * doc/posix-functions/wcwidth.texi: Update.
9821 2016-01-20  Pádraig Brady  <P@draigBrady.com>
9823         gnu-web-doc-update: fix addition of new files
9824         If there were already added (emnpty) dirs,
9825         then cvs aborts the add with the message:
9826           cvs [add aborted]: there is a version in <./dirname> already
9827         * build-aux/gnu-web-doc-update: Add directories separately
9828         to the addition of files, to avoid the above issue
9829         impacting the addition of files.
9831 2016-01-19  Daiki Ueno  <ueno@gnu.org>
9833         utimens-tests: avoid pulling gettext .m4 files
9834         Although this is not the right fix to the original problem:
9835         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
9836         it makes it possible again for consumer projects to use arbitrary
9837         version of gettext, through the steps described at:
9838         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
9839         See here for details:
9840         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
9841         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
9842         'gettext'.
9843         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
9844         'gettext'.
9846 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9848         regex: pacify static checkers
9849         Problem and draft fix reported by Aharon Robbins in:
9850         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
9851         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
9852         Clear memory to pacify static checkers.
9854         regex: fix [ diagnostic
9855         Problem and fix reported by Aharon Robbins in:
9856         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
9857         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
9859         regex: fix memory leaks
9860         Problem and draft fix reported by Aharon Robbins in:
9861         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
9862         * lib/regcomp.c (build_range_exp, build_charclass_op)
9863         * lib/regex_internal.c (re_dfa_add_node):
9864         Fix memory leak on failure.
9866 2016-01-18  Pádraig Brady  <P@draigBrady.com>
9868         fts: don't unconditionally use leaf optimization for NFS
9869         NFS st_nlink are not accurate on all implementations,
9870         leading to aborts() if that assumption is made.
9871         See <https://bugzilla.redhat.com/1299169>
9872         * lib/fts.c (leaf_optimization_applies): Remove NFS from
9873         the white list, and document the issue.
9875 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9876             KO Myung-Hun  <komh@chollian.net>
9878         gnulib-tool: don't assume ln -s works
9879         * gnulib-tool (func_ln_s): New function.
9880         (func_ln): Use it.
9882 2016-01-15  KO Myung-Hun  <komh@chollian.net>
9884         utimes: detect utimes() correctly on OS/2 kLIBC
9885         utimes() of OS/2 kLIBC has some limitations.
9886         1. OS/2 itself supports a file date since 1980 year in local time.
9887         2. OS/2 itself supports only even seconds for a file time.
9888         3. utimes() of OS/2 kLIBC does not work on an opened file.
9889         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
9890         * doc/posix-functions/utimes.texi: Document the above limitations of
9891         utimes() on OS/2 kLIBC.
9893 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9894             KO Myung-Hun  <komh@chollian.net>
9896         openat_proc_name: port to OS/2 kLIBC
9897         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
9898         instead of /proc/self/fd.
9899         * lib/openat-proc.c (openat_proc_name):
9900         Don't assume file name length is less than INT_MAX.
9901         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
9903 2016-01-14  KO Myung-Hun  <komh@chollian.net>
9905         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
9906         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
9907         definitions of intptr_t and uintptr_t (which use int and unsigned)
9908         to avoid clashes with declarations of system functions like sbrk.
9909         * lib/stdint.in.h (intptr_t, uintptr_t): Check
9910         _INTPTR_T_DECLARED before defining them.
9912         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
9913         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
9914         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
9915         Declare on kLIBC.
9916         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
9917         fd associated with dirp.
9918         (_gl_register_dirp_fd): New. Register fd associated with dirp to
9919         dirp_fd_list.
9920         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
9921         (dirfd): Implemented for kLIBC.
9922         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
9923         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
9924         succeeds.
9925         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
9926         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9927         (REPLACE_DIRFD): Define to 1 if replaced.
9928         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
9929         * modules/closedir (Depends-on): Add dirfd.
9930         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
9931         condition.
9932         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
9933         * modules/opendir (Depends-on): Add dirfd.
9935         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
9936         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
9937         * lib/dup.c (dup_nothrow): New.
9938         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
9939         (klibc_dup2): New.
9940         * lib/fcntl.c (klibc_fcntl): New.
9941         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
9942         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
9943         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
9944         fd.
9946         pipe_filter_ii_execute: port to OS/2 kLIBC
9947         Pipes on kLIBC do not support O_NONBLOCK like Win32.
9948         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
9949         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
9950         Reuse Win32 code on OS/2 kLIBC.
9951         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
9952         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
9954         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
9955         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
9956         static inline function.  The implementation of wcwidth in wcwidth.c
9957         causes a "conflicting types" error.
9958         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
9960         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
9961         spawn() on OS/2 kLIBC is not silly like one on Windows
9962         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
9963         empty string on OS/2 kLIBC.
9965         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
9966         On OS/2 kLIBC, select() works only on sockets.
9967         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
9969         binary-io: don't put fd in binary mode if it is a console on EMX
9970         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
9971         a console on EMX.
9973 2016-01-15  Pádraig Brady  <P@draigBrady.com>
9975         doc: mention unfixed issues with unsupported localtime() values
9976         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
9977         returns nonsense for localtime(2^56).
9978         * doc/posix-functions/localtime_r.texi: Likewise.
9980 2016-01-14  Pádraig Brady  <P@draigBrady.com>
9982         doc: mention setlocale() issues on OpenBSD
9983         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
9984         never fails, and the need to check categories individually.
9986 2016-01-14  Pádraig Brady  <P@draigBrady.com>
9988         sig2str: list all signals on FreeBSD >= 7
9989         FreeBSD >= 7 is contravening POSIX by not defining NSIG
9990         to the maximal statically defined signal value.
9991         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
9992         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
9993         where available, even when NSIG is defined.
9995 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
9997         acl-permissions: port to USE_ACL==0 platforms
9998         I ran into this problem when building bleeding-edge GNU Emacs
9999         with gcc -fsanitize=address on Fedora 23.  On this platform
10000         the ACL library does not pass the 'configure' test and Emacs
10001         then does not build due in part to what appear to be typos in the
10002         ACL part of Gnulib.
10003         * lib/acl-internal.c (free_permission_context):
10004         * lib/acl-internal.h (struct permission_context):
10005         Test whether USE_ACL is nonzero, not whether it is defined.
10007 2016-01-12  Martin Sebor  <msebor@redhat.com>
10009         mktime: rename macro to avoid glibc clash
10010         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
10011         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
10013 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
10015         Port "$@" to OpenIndiana ksh93
10016         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
10017         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
10018         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
10019         bug long-dead shells, so remove the workaround.
10020         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
10021         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
10022         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
10023         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
10024         Use "$@" instead of ${1+"$@"}.
10026         Port Universal Time settings to strict POSIX
10027         * build-aux/announce-gen, build-aux/bootstrap:
10028         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
10029         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
10030         * build-aux/gnupload, build-aux/mkinstalldirs:
10031         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
10032         * build-aux/update-copyright, build-aux/useless-if-before-free:
10033         * build-aux/vc-list-files, tests/test-strftime.c:
10034         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
10035         but POSIX says the behavior of TZ="UTC" is undefined.
10037 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
10039         msvc-inval: fix problem with unset shell var
10040         Problem reported by Karl Berry in:
10041         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
10042         * modules/msvc-inval (Depends-on):
10043         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
10044         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
10046 2016-01-01  Pádraig Brady  <P@draigBrady.com>
10048         tests: for compare_(), use cmp -s where available
10049         * tests/init.sh (compare_): Only fall back to cmp without
10050         the POSIX defined -s option, where this is not available.
10052 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10054         version-etc: new year
10055         * build-aux/gendocs.sh (version):
10056         * doc/gendocs_template:
10057         * doc/gendocs_template_min:
10058         * doc/gnulib.texi:
10059         * lib/version-etc.c (COPYRIGHT_YEAR):
10060         Update copyright dates by hand in templates and the like.
10061         * all files: Run 'make update-copyright'.
10063 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10065         human: fix output buffer overrun by 1
10066         * lib/human.c (human_readable): Fix off-by-one typo in buffer
10067         calculation that could lead to a one-byte buffer overrun.
10069 2015-12-28  Daiki Ueno  <ueno@gnu.org>
10071         maint: fix operator precedence in mbrtowc test
10072         This is a fix for test breakage introduced by commit 45228d96; the
10073         equality expression must be parenthesized when negated with '!',
10074         otherwise we always get:
10076           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
10078         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
10079         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
10081 2015-12-23  James Youngman  <jay@gnu.org>
10083         regexprops-generic: update from regex.h
10084         * doc/regexprops-generic.texi: update by running the regexprops binary
10085         from findutils (the command line is 'regexprops "Regular Expressions"
10086         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
10087         gnulib with GNU grep had made this document out-of-date.
10089 2015-12-23  Pádraig Brady  <P@draigBrady.com>
10091         strftime-tests: avoid false failure on OS X
10092         * tests/test-strftime.c (struct localtime_rz_test): Add an
10093         ahistorical member which is used to warn rather than fail
10094         when tm_isdst isn't set for such entries.  This is the case for
10095         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
10097 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
10099         fts: ensure leaf optimization is used for NFS
10100         NFS provides usable dirent.d_type but not necessarily for all entries
10101         of large directories.  See <https://bugzilla.redhat.com/1252549>
10102         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
10104 2015-12-20  Pádraig Brady  <P@draigBrady.com>
10106         fts: enable leaf optimization for XFS
10107         XFS provides usable dirent.d_type only for DT_DIR,
10108         but the noleaf optimization still applies.
10109         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
10111 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10113         intprops: comment fix
10114         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
10115         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
10117         intprops-test: work around GCC bug 68971
10118         Problem reported by Pádraig Brady in:
10119         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
10120         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
10121         (main): Add a case that better tests 64-bit long in this area.
10123 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
10125         gnulib-tool: allow multiple --local-dir usage
10126         * gnulib-tool: Use --local-dir to construct compound
10127         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
10128         PATH_SEPARATOR early.
10129         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
10130         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
10131         func_determine_path_separator because that needs to be detected
10132         earlier now.
10133         (func_determine_path_separator): New function.
10134         (func_path_foreach, func_path_foreach_inner): New functions.
10135         (func_path_prepend, func_path_append): Likewise.
10136         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
10137         (func_lookup_file, func_all_modules): Use new functions to work
10138         with local_gnulib_path.
10139         (func_modules_in_dir, func_exists_module): New callbacks for
10140         func_path_foreach.
10141         (func_exists_module, func_get_tests_module): Likewise.
10142         (func_is_local_file, func_should_symlink): New helper methods.
10143         (func_add_file, func_update_file): Use new func_should_symlink
10144         instead, DRY.
10145         (func_reconstruct_cached_local_gnulib_path): New helper.
10146         (func_reconstruct_cached_dir): New callback.
10147         (func_import): The cached_local_gnulib_dir renamed to
10148         cached_local_gnulib_path similarly to local_gnulib_dir.
10149         Use new func_reconstruct_cached_local_gnulib_path.
10150         (func_count_relative_local_gnulib_path): New sub-method.
10151         (func_create_testdir): Use func_should_symlink, DRY.
10152         (func_create_megatestdir): Use new functions to work with
10153         local_gnulib_path correctly.
10154         (func_append_local_dir): New helper.
10156 2015-12-08  Pádraig Brady  <P@draigBrady.com>
10158         fix freadptr to work with ungetc on all uClibc configs
10159         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
10160         where GNU coreutils cut(1) generates invalid output on uClibc
10161         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
10162         * lib/freadptr.c (freadptr): Return NULL if there are
10163         ungotten chars.  In this case freadseek() will iterate
10164         again to process the ungotten character.
10166 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
10168         xalloc-oversized: improve performance with GCC 5
10169         * lib/xalloc-oversized.h (xalloc_oversized):
10170         Improve performance with GCC 5 by using __builtin_mul_overflow.
10172 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10174         intprops: new public macro EXPR_SIGNED
10175         Emacs can use this macro, so make it public.
10176         * doc/intprops.texi (Arithmetic Type Properties): Rename from
10177         'Integer Type Determination', since some of these macros apply
10178         to non-integer types.  Clarify what kinds of constant expressions
10179         these macros return.  Say when the arguments can be non-integers.
10180         Mention newly published macro EXPR_SIGNED.
10181         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
10182         make it public.  All uses changed.
10184         intprops: fix typo in clang port
10185         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
10186         '__builtin_add_overflow' that is not caught by compiler.
10188 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
10190         test-timespec: fix typo in previous change
10191         * tests/test-timespec.c (main): Fix typo that reduced test quality.
10193         timespec-sub: fix overflow bug; add tests
10194         * lib/timespec-add.c (timespec_add):
10195         * lib/timespec-sub.c (timespec_sub):
10196         Work even if time_t is narrower than int (a theoretical
10197         possibility).  Redo code for a bit more clarity.
10198         * lib/timespec-sub.c (timespec_sub):
10199         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
10200         * modules/timespec-tests, tests/test-timespec.c: New files.
10202         intprops-test: suppress -Woverlength-strings
10203         Problem reported by Pádraig Brady in:
10204         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
10205         It is not worth the hassle to port this test to compilers that
10206         cannot handle long strings in diagnostics.
10207         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
10209 2015-11-03  Pádraig Brady  <P@draigBrady.com>
10211         quotearg: add quotearg_n_style_colon()
10212         This quotes with default options of the specified style,
10213         but with quoting enabled for instances of ':'.
10214         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
10215         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
10217 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10219         intprops: revise _WRAPV macros, revert _OVERFLOW
10220         The incompatible changes to the _OVERFLOW macros were too much of
10221         a hassle in practice, so revert them.  Instead, change the new
10222         _WRAPV macros to make them closer in behavior to GCC 5's new
10223         builtin_add_overflow etc. functions.  No other software was using
10224         these newly-added macros yet, so this should be OK.
10225         * NEWS: Revert previous change, since the incompatible change
10226         has been reverted, and nobody used the incompatible version.
10227         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
10228         Document revised behavior.
10229         (Integer Range Overflow): Adjust example to match above revisions.
10230         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
10231         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
10232         these can be used in integer constant expressions again.
10233         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
10234         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
10235         needed.
10236         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
10237         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
10238         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
10239         Remove, as they did not seem that useful.
10240         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
10241         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
10242         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
10243         Support new semantics.
10244         (__has_builtin): New macro, if not alreay defined.
10245         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
10246         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
10247         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
10248         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
10249         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
10250         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
10251         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
10252         New macros.
10253         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
10255 2015-11-03  Jim Meyering  <meyering@fb.com>
10257         intprops: add parentheses for when OP has precedence lower than "-"
10258         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
10259         "a OP b" must be parenthesized for when OP is like "<<", which has
10260         lower precedence than the following "-". Reported by Pádraig Brady.
10262 2015-11-03  Pádraig Brady  <P@draigBrady.com>
10264         quotearg: constify get_quoting_style parameters
10265         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
10266         * lib/quotearg.c (get_quoting_style): Likewise.
10268 2015-11-02  Pádraig Brady  <P@draigBrady.com>
10270         quotearg: add support for $'' shell escaping
10271         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
10272         items and descriptions.
10273         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
10274         above types by quoting like "shell", but using $'...' syntax
10275         for non printable characters, which should provide unambiguous
10276         printable output for any input.
10277         * tests/test-quotearg-simple.c: Update accordingly.
10279 2015-11-02  Pádraig Brady  <P@draigBrady.com>
10281         maint: use a more standard return from mbrtowc test
10282         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
10283         from the test program as this is non standard and often
10284         indicates an unhandled case in the test program.
10285         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
10287 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
10289         intprops: add WRAPV and const flavors for GCC 5
10290         If available, use GCC 5's builtin functions for efficient integer
10291         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
10292         and safely compute the low-order bits of the correct answer.
10293         A downside of these efficient functions is that they cannot be
10294         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
10295         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
10296         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
10297         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
10298         Document the changes.
10299         (Wraparound Arithmetic): New section.
10300         (Integer Range Overflow):
10301         Put this subsection last, since it's least useful.
10302         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
10303         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
10304         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
10305         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
10306         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
10307         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
10308         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
10309         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
10310         New macros.
10311         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10312         Generate calls to GCC builtins if available, for speed.
10313         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
10314         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
10315         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
10316         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
10317         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
10318         (CHECK_QUOTIENT, CHECK_REMAINDER):
10319         Test WRAPV and CONST flavors (when available) too.
10321 2015-10-30  Pádraig Brady  <P@draigBrady.com>
10323         doc: use extended timezone format in iso-8601 example
10324         * doc/parse-datetime.texi: The standard states that extended format
10325         is to be used consistently throughout.
10326         Note that lib/parse-datetime.y can handle either tz format.
10328 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
10330         stdalign: port to Sun C 5.9
10331         * doc/posix-headers/stdalign.texi: Document this.
10332         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
10333         __attribute__ ((__aligned__ (...))).
10335 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
10337         time_rz: fix comment about tzalloc
10338         * lib/time_rz.c (tzalloc): Fix comment.
10340 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
10342         stdalign: work around pre-4.9 GCC x86 bug
10343         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
10344         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
10345         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
10347 2015-10-18  Pádraig Brady  <P@draigBrady.com>
10349         maint.mk: sc_tight_scope: remove extraneous expressions
10350         * top/maint.mk (tight_scope): This is not really required since
10351         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
10352         that matches all nm entries.  But it does remove extraneous entries
10353         that may be confusing or cause issue in future maintenance.
10355 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
10357         time_rz: return NULL if localtime_r fails
10358         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
10359         while still attempting to pacify bleeding-edge GCC.
10361         fts: port to C11 alignof
10362         * doc/posix-headers/stdalign.texi (stdalign.h):
10363         Document the C11 restriction.
10364         * lib/fts.c: Include stddef.h, for max_align_t.
10365         (fts_alloc): Align using max_align_t, not FTSENT.
10366         * modules/fts (Depends-on): Add stddef.
10368 2015-10-18  Jim Meyering  <meyering@fb.com>
10370         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
10371         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
10372         would see this:
10374         lib/time_rz.c: In function 'localtime_rz':
10375         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
10376           [-Werror=nonnull]
10377                    if (tm && !save_abbr (tz, tm))
10378                        ^
10380         That was complaining about "tm" because it is a parameter that was
10381         declared with the __nonnull__ attribute.
10382         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
10383         result of localtime_r.
10385 2015-10-17  Jim Meyering  <meyering@fb.com>
10387         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
10388         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
10389         name-extraction regexp mistakenly used \S+, and would mistakenly
10390         extract "*F" from "extern int *F()" rather than the desired "F".
10391         Use \w+ instead.
10393 2015-10-17  Jim Meyering  <meyering@fb.com>
10395         maint.mk: sc_tight_scope: factor and support OS X
10396         * top/maint.mk (_gl_tight_scope): Address three issues:
10397         - factor out four instances of code that wraps a string in "^...$"
10398         - allow nm-reported symbol names to have an optional leading "_"
10399         - add "main" to the list of ignored variable names, because on os x,
10400         "main" has nm-reported type "S" in the variable-checking section.
10402 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
10404         safe-alloc-tests: fix typo in license header
10405         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
10407 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
10409         copy-file: fix mem leak in error case
10410         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
10411         upon error opening or performing I/O to the src and dest files.
10413 2015-10-15  Mike Frysinger  <vapier@chromium.org>
10415         localename: control langinfo.h inclusion
10416         This header is only used to work around buggy behavior in old
10417         versions of glibc, so do not include it all the time.  Otherwise
10418         we get build failures on systems that do not provide langinfo.h.
10419         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
10420         in the source later on.
10421         The patch was originally submitted to gettext as:
10422         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
10424 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10426         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
10427         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
10428         * lib/u64.c, lib/unistd.c:
10429         Append 'typedef int dummy;', to pacify compilers that are picky
10430         about empty translation units.
10432 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
10434         accept4-tests: fix to avoid non portable flags
10435         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
10436         as they are the only documented ones, and passing others may trigger
10437         EINVAL (seen on FreeBSD 10.1-RELEASE).
10438         * doc/glibc-functions/accept4.texi: Mention that we don't provide
10439         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
10441 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
10443         gnulib-tool: fix tests of 'extensions' module
10444         This complements f8fe25fab60e3c687a124 commit.
10445         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
10446         emitting of initial gl_EARLY macros.
10447         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
10448         replaced with func_emit_pre_early_macros call.
10450 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10452         unicase/locale-language: fix typo in utf-8 cookie
10453         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
10454         Problem reported by Zbigniew Jędrzejewski-Szmek.
10456 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10458         xalloc: do not worry about GCC 5 warning on 32 bit
10459         * lib/xalloc.h: Revert previous change.
10460         I found a better way to fix this in coreutils.
10462 2015-10-02  Pádraig Brady  <P@draigBrady.com>
10464         xalloc: avoid GCC 5.1 warning on 32 bit
10465         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
10466         xalloc_oversized(), which was seen to give this warning
10467         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
10468         when simplifying conditional".
10470 2015-10-02  Daiki Ueno  <ueno@gnu.org>
10472         uniname/uniname-tests: avoid compiler warnings
10473         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
10474         unused local variables.
10475         (test_alias_lookup): Fix alias name display in failure cases.
10477 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10479         c-ctype: do not worry about EBCDIC + char signed
10480         Drop support for EBCDIC with char being signed, as this breaks too
10481         many programs.  Problem reported by Ben Pfaff in:
10482         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
10483         * lib/c-ctype.h: Verify that we are not using EBCDIC with
10484         char being signed.
10485         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
10486         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
10487         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
10488         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
10489         * tests/test-c-ctype.c (test_all):
10490         Simplify by assuming standard char values cannot be negative.
10491         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
10493 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10495         c-ctype: port better to z/OS EBCDIC
10496         Problems reported by Daniel Richard G. in:
10497         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
10498         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
10499         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
10500         (_C_CTYPE_OTHER_CNTRL): New macro.
10501         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
10502         from SCHAR_MIN, as the functions are defined only from values
10503         promoted from char or from unsigned char, not necessarily from
10504         signed char.
10506 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
10508         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
10510         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
10511         and ARFLAGS variables.  Doing this unconditionally could break
10512         later Automake's AM_PROG_AR invocation (at least it's
10513         AC_CHECK_TOOLS call to detect correct 'ar' binary).
10515         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
10516         Amsterdam Compiler Kit, so make the previous code to have effects
10517         only on ACK, and rather automatically call the Automake's
10518         AM_PROG_AR as soon as possible to decide other cases.
10520         References:
10521         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
10523         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
10524         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
10525         is possible, keep setting AR/ARFLAGS to reasonable defaults.
10526         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
10527         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
10528         'extensions' module is used.
10529         * modules/extensions (configure.ac-early): Remove as this snippet
10530         is added to gnulib-comp.m4 earlier anyway.
10532 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10534         sockets: MS Windows initalization fixes
10535         Problem reported by Test User in:
10536         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
10537         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
10538         Correct the endianness.
10539         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
10540         number mismatch, not just on <.  Cleanup before any such failure.
10542 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
10544         gc: fix detection of installed libgcrypt version
10545         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
10546         at least as recent as 1.4.4.  The previously used macro is not
10547         available now, since modules were removed in version 1.6.0.
10549 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10551         c-ctype: rewrite to use inline functions
10552         This simplifies maintenance, since it makes for just one
10553         implementation of each function, letting the compiler have the fun
10554         of optimization.  In practice this works well nowadays with GCC.
10555         E.g., c_isascii might need only three instructions even though the
10556         source code lists every ASCII character individually in a large
10557         switch statement.
10558         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
10559         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
10560         * NEWS: Document the API change.
10561         * lib/c-ctype.c: Drastically simplify, since this now just expands
10562         inline functions.
10563         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
10564         (C_CTYPE_INLINE): New macro.
10565         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
10566         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
10567         Verify that either ASCII or EBCDIC is being used.
10568         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
10569         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
10570         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
10571         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
10572         New private macros.
10573         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
10574         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
10575         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
10576         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
10577         (c_tolower, c_toupper): When converting, return the unsigned char,
10578         as that is what z/OS does.
10579         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
10580         of some c-ctype.h macros.
10581         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
10582         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
10583         c_tolower promotion to be compatible with z/OS.
10585 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
10587         gitlog-to-changelog: trim only trailing whitespaces
10588         This is fix for --format regression introduced by commit
10589         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
10590         doubled %n string) had no effect anymore.  This format
10591         specification has been used e.g. by GNU paxuitils (commit
10592         edfd8bcc3).
10594         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
10595         newlines in commmit messages.
10597 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10599         Test that c_iscntrl agrees with iscntrl, etc.
10600         Suggested by Daniel Richard G. in:
10601         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
10602         * modules/c-ctype-tests (Depends-on): Add ctype.
10603         * tests/test-c-ctype.c: Include <ctype.h>.
10604         (NCHARS): New constant.
10605         (test_agree_with_C_locale): New function.
10606         (main): Use it.
10607         (test_all): Use named constants.
10609         c-ctype: improve c_isascii testing
10610         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
10611         Add a test to count the number of ASCII characters.
10613 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10615         savewd: remove SAVEWD_CHDIR_READABLE
10616         It was problematic in the light of file systems that ignore umask.
10617         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
10618         * NEWS: Document this.
10619         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
10620         successful, -1 (setting errno) on failure, rather than something
10621         more complicated than that.
10622         * lib/mkdir-p.c (make_dir_parents):
10623         Do not use SAVEWD_CHDIR_READABLE.
10624         * lib/savewd.c (savewd_chdir):
10625         Remove support for SAVEWD_CHDIR_READABLE.
10626         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
10628         c-ctype: port better to EBCDIC
10629         Problems reported by Daniel Richard G. in
10630         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
10631         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
10632         Include "verify.h".
10633         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
10634         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
10635         Define as enum constants with value false, if not defined, so that
10636         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
10637         code more portable, as both branches of the 'if' are compiled on
10638         all platforms.
10639         (C_CTYPE_EBCDIC): New constant.
10640         Verify that the character set is either ASCII or EBCDIC.
10641         (to_char): New static function.
10642         (c_isascii, c_iscntrl):
10643         Assume standard control-character assignments for EBCDIC.
10644         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
10645         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
10646         Rewrite to use 'if' instead of 'ifdef'.
10647         Use to_char if non-ASCII.  Prefer <= to >=.
10648         Prefer true and false to 1 and 0, for booleans.
10649         (c_iscntrl): Use 'if', not 'ifdef'.
10650         * modules/c-ctype (Depends-on): Add verify.
10651         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
10652         (to_char): New function.
10653         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
10655 2015-09-21  Pádraig Brady  <P@draigBrady.com>
10657         nanosleep: fix return code for interrupted replacement
10658         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
10659         that we return -1 in the case the call is interrupted by a signal,
10660         rather than the current value of 1.
10661         Diagnosed and tested by Daniel Richard G.
10663 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
10665         Diagnose ERE '()|\1'
10666         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
10667         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
10668         track of the set of previously-completed subexpressions available
10669         before the first alternative, and restore this set just before
10670         parsing each subsequent alternative.  This lets us diagnose the
10671         invalid back-reference in the ERE '()|\1'.
10673         regex: merge patches from libc
10675         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
10676         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
10677         * lib/regex_internal.h:
10678         Include <libc-lock.h> instead of <bits/libc-lock.h>.
10680         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
10681         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
10682         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
10683         wcscoll.
10684         * lib/regexec.c (check_node_accept_bytes): Likewise.
10686         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
10687         Fix regex wcrtomb namespace (bug 18496).
10688         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
10689         instead of wcrtomb.
10691         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
10692         Fix regex wctype namespace (bug 18495).
10693         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
10694         instead of towlower.
10695         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
10696         instead of iswlower.  Call __towupper instead of towupper.
10697         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
10698         instead of iswalnum.
10700         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
10701         * lib/regcomp.c (parse_bracket_exp): Initialize type to
10702         COLL_SYM in a couple of places to avoid uninitialized variable
10703         wanings on tilegx gcc 4.8.2.
10705         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
10706         * lib/regex_internal.h: Remove NOT_IN_libc.
10708         2014-11-17  Andreas Schwab  <schwab@suse.de>
10709         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
10711         2014-09-11  Roland McGrath  <roland@hack.frob.com>
10712         Move findidx nested functions to top-level.
10713         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
10714         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
10715         Pass new arguments to findidx.
10716         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
10717         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
10718         Don't #include it inside the function.  Pass new arguments to findidx.
10719         * lib/regex_internal.h:
10720         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
10721         (re_string_elem_size_at): Don't #include it inside the function.
10722         Pass new arguments to findidx.
10724         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
10725         Check if DEBUG is defined in regex_internal.c
10726         * lib/regex_internal.c: Check if DEBUG is defined and is set.
10728 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
10730         ceill: detect buggy OpenBSD implementation
10731         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
10732         which returns zero for small values.  Discussed here:
10733         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
10735 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
10737         mountlist: add me_mntroot field on Linux machines
10738         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
10739         mount_entry so Linux machines based on /proc/self/mountinfo can
10740         distinguish between bind mounts and original mounts.  In reality bind
10741         mounts aren't treated differently than mountroot=/ mounts by the
10742         kernel, but the user often wants these bind mounts distinguished.
10743         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
10744         More details at https://pad.lv/1432871
10746 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
10748         doc: Describe to use multiple instances of gnulib
10749         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
10750         instances of gnulib with different modules can be used, for example one
10751         for a lib and another one for associated tools.
10753 2015-09-01  Pádraig Brady  <P@draigBrady.com>
10755         base32: mark function as __attribute__ const
10756         * lib/base32.h (isbase32): Mark __attribute__ const as
10757         suggested by GCC, and consistent with the base64 module.
10759 2015-08-20  Daiki Ueno  <ueno@gnu.org>
10761         gnulib-tool: don't transform binary files with sed
10762         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
10763         .mo and .class files.
10764         Reported by Denis Denisov.
10766 2015-08-10  Daiki Ueno  <ueno@gnu.org>
10768         gperf: respect silent rules
10769         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
10770         V_GPERF_0 for silent rules.
10771         * modules/iconv_open (Makefile.am): Use V_GPERF.
10772         * modules/unicase/locale-language (Makefile.am): Likewise.
10773         * modules/unicase/special-casing (Makefile.am): Likewise.
10774         * modules/unictype/category-byname (Makefile.am): Likewise.
10775         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
10776         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
10777         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
10778         * modules/unictype/property-byname (Makefile.am): Likewise.
10779         * modules/unictype/scripts (Makefile.am): Likewise.
10780         * modules/uninorm/composition (Makefile.am): Likewise.
10782 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
10784         Improve port of stdalign to C++11
10785         Problem reported by Sundaram in:
10786         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
10787         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
10788         (__alignas_is_defined): Define if C++11 or newer.
10790 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
10792         pmccabe2html: fix gawk regex escaping
10793         * build-aux/pmccabe2html: Add one more backslash to properly
10794         escape the gsub replacement value.  Fixes this error:
10795         gawk: ./build-aux/pmccabe2html:425: \
10796         warning: escape sequence `\&' treated as plain `&'
10798 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
10800         time_rz: port to pedantic memcpy
10801         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
10802         that reject memcpy (..., NULL, 0).
10804 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
10806         time_rz: port better to MinGW
10807         Don't change tzname, as this makes MinGW dump core (Bug#21020).
10808         Instead, store the tzname copy in the struct tm_zone object.
10809         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
10810         * lib/strftime.c [!_LIBC]:
10811         * lib/time_rz.c: Include time-internal.h.
10812         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
10813         name from *TZ rather than from TZNAME, doable because *TZ now has
10814         a tzname_copy member.
10815         * lib/time-internal.h: New file, with contents taken from
10816         lib/time_rz.c.  It's separate because strftime.c now accesses
10817         struct tm_zone members.
10818         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
10819         New member tzname_copy.
10820         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
10821         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
10822         Initialize tzname_copy member.
10823         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
10824         in tzname_copy member.
10825         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
10826         (restore_tzname): Remove; no longer needed.  All calls removed.
10827         * modules/time_rz (Files): Add lib/time-internal.h.
10829         time: port __need_time_t to MinGW
10830         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
10831         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
10833 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10835         strftime: fix newly-introduced bug on Solaris
10836         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
10837         consistently at the start, rather than doing some of the setup at
10838         the start and some in the %Z format spec.  This is cleaner, and
10839         works better with time_rz on platforms like Solaris where struct
10840         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
10841         mktime_z and localtime_rz can mess up the tzname cache.
10843         test-strftime: test for Solaris bug
10844         * modules/strftime-tests (Depends-on): Add strerror.
10845         * tests/test-strftime.c: Include <errno.h>.
10846         (posixtm_test): New function, containing the old 'main'.
10847         (struct tzalloc_test, struct localtime_rz_test): New types.
10848         (TZ, LT): New static vars.
10849         (tzalloc_test): New function.
10850         (main): Rewrite in terms of posixtm_test and tzalloc_test.
10852         time_rz: port to Solaris etc.
10853         Works around a tzname problem on platforms like Solaris that have
10854         tzname but not tm_zone, by setting tzname at the appropriate time
10855         and restoring it later.
10856         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
10857         New static vars.
10858         (save_abbr) [HAVE_TZNAME]: Set them.
10859         (revert_tz) [HAVE_TZNAME]: Clear or use them.
10860         (restore_tzname): New function.
10861         (localtime_rz, mktime_z): Use it.
10863         time_rz: now LGPL
10864         * modules/time_rz (License): Now LGPL, because strftime depends on it.
10866         time_rz: make a constant 'const'
10867         * lib/time_rz.c (local_tz): Now const.
10869         time_rz: fix off-by-one typo
10870         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
10872 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
10874         fprintftime, strftime: use timezone_t args
10875         * NEWS: Document the change.
10876         * lib/fprintftime.h (fprintftime):
10877         * lib/strftime.c (extra_args) [my_strftime]:
10878         * lib/strftime.h (nstrftime):
10879         Time zone arg is now of type timezone_t, not int.
10880         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
10881         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
10882         (my_strftime) [emacs && !my_strftime]:
10883         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
10884         Remove; Emacs doesn't need this any more.
10885         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
10886         fprintftime and nstrftime to call tzset.
10887         (ut) [!my_strftime]: Remove, replacing with ...
10888         (tz) [!my_stftime]: ... this new macro.  All uses changed.
10889         (strftime_case_): Use localtime_rz and mktime_z instead
10890         of localtime_r and mktime.
10891         * modules/fprintftime (Depends-on): Add time_rz.
10892         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
10893         * tests/test-strftime.c (main): Adjust to new nstrftime API.
10895         time_rz: new module
10896         * MODULES.html.sh: Add time_rz.
10897         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
10898         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
10899         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
10900         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
10901         New var HAVE_TIMEZONE_T (default 0).
10902         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
10903         New var GNULIB_TIME_RZ (default 0).
10904         * modules/time (time.h): Substitute the new vars.
10906         flexmember: license is now unlimited
10907         * modules/flexmember (License): Change to unlimited,
10908         since its only source file gives an unlimited license.
10910 2015-07-15  Eric Blake  <eblake@redhat.com>
10912         maint: update copyright paper procedures
10913         * config/srclist.txt: Drop outdated files.
10914         * doc/Copyright/conditions.txt: Update to latest.
10915         * doc/Copyright/assign.changes.manual: Delete.
10916         * doc/Copyright/assign.future.manual: Likewise.
10917         * doc/Copyright/assign.manual: Likewise.
10918         * doc/Copyright/assign.translation.manual: Likewise.
10919         * doc/Copyright/disclaim.changes.manual: Likewise.
10920         * doc/Copyright/disclaim.manual: Likewise.
10921         * doc/Copyright/disclaim.program: Likewise.
10923 2015-07-07  Daiki Ueno  <ueno@gnu.org>
10925         localename: fix link error on Illumos
10926         Illumos defines __sun, but does not have getlocalename_l nor the
10927         equivalent.  This partially reverts commit 387c214.
10928         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
10929         available, as well as uselocale.
10930         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
10931         use getlocalename_l if it is not available.
10933 2015-07-07  Daiki Ueno  <ueno@gnu.org>
10935         unistr/uN-strtok-tests: avoid a trivial leak
10936         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
10937         input and delim after the multibyte delimiter tests.
10939 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
10941         file-has-acl, acl-permissions: fix HP-UX typos
10942         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
10943         * lib/file-has-acl.c (file_has_acl):
10944         * lib/set-permissions.c (context_acl_from_mode)
10945         (context_aclv_from_mode, set_acls):
10946         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
10947         They were introduced by the recent ACL changes.
10949         regex: match current GNU grep behavior
10950         These symbols have not matched GNU grep behavior for quite some time.
10951         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
10952         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
10953         Change to match current GNU behavior.
10954         Simplify by expressing it as differences from POSIX BREs and EREs.
10955         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
10957 2015-07-03  Jim Meyering  <meyering@fb.com>
10959         set-permissions.c: adjust acl_from_mode's cpp guard
10960         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
10961         directives identical to those guarding the sole use.
10962         Otherwise, on some systems, we'd get a warning about
10963         the function being defined but not used.
10964         Also, filter through cppi to correct misleading indentation
10965         of cpp directives.
10967 2015-07-03  Pádraig Brady  <P@draigBrady.com>
10969         tests: restrict shells to those that support 'local'
10970         The local keyword is very widely supported and used
10971         in tests in coreutils and grep at least.  Therefore
10972         restrict to testing with shells that support it.
10973         This mainly excludes /bin/sh on Solaris.
10974         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
10976 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
10977         and Daiki Ueno  <ueno@gnu.org>
10979         unistr/uN-strtok: handle multibyte delimiters
10980         Previously, uN_strtok moved PTR to the next unit to the token end.
10981         When DELIM contained a multibyte character, the new position could
10982         be a middle of a multibyte character.
10983         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
10984         after the token.
10985         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
10986         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
10987         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
10988         * modules/unistr/u8-strtok (Depends-on): Depend on
10989         unistr/u8-strmblen.
10990         * modules/unistr/u16-strtok (Depends-on): Depend on
10991         unistr/u16-strmblen.
10992         * modules/unistr/u32-strtok (Depends-on): Depend on
10993         unistr/u32-strmblen.
10994         * tests/unistr/test-u-strtok.h: New file.
10995         * tests/unistr/test-u8-strtok.c: New file.
10996         * tests/unistr/test-u16-strtok.c: New file.
10997         * tests/unistr/test-u32-strtok.c: New file.
10998         * modules/unistr/u8-strtok-tests: New file.
10999         * modules/unistr/u32-strtok-tests: New file.
11000         * modules/unistr/u16-strtok-tests: New file.
11002 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
11004         update-copyright: fix test failure with perl >= 5.22 (trivial)
11005         * build-aux/update-copyright: Escape a literal left curly bracket,
11006         required with perl >= 5.22
11008 2015-07-02  Daiki Ueno  <ueno@gnu.org>
11010         u{16,32}-strstr-tests: relax timeout condition
11011         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
11012         tests can take longer than 5 seconds to complete.
11013         Reported by Dagobert Michelsen in:
11014         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
11015         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
11016         seconds to 10 seconds.
11017         * tests/unistr/test-u32-strstr.c (main): Likewise.
11019 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
11021         gnulib-common.m4: change the ARFLAGS default to 'cr'
11022         In some GNU/Linux distributions people started to compile 'ar'
11023         binary with --enable-deterministic-archives (binutils project).
11024         That, however, in combination with previous autotools long time
11025         working default AR{_,}FLAGS=cru causes warnings on such
11026         installations:
11027         ar: `u' modifier ignored since `D' is the default (see `U')
11028         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
11029         set already.
11031 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
11033         selinux-h: avoid double free after *getfilecon()
11034         Originally reported by Ben Shelton on bug-tar:
11035         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
11036         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
11037         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
11038         param should be freed by freecon(3) (regardless the return value).
11040 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
11042         fix pty related tests issues on Windows (trivial)
11043         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
11044         however it's still present in tests/ subdirectory of the final project.
11045         Therefore avoid it to pass `make check`.
11046         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
11047         will just return -ENOSYS, so avoid this non applicable test allowing
11048         the build to proceed.
11050 2015-07-01  Pádraig Brady  <P@draigBrady.com>
11052         acl: fix definition of acl_from_mode on FreeBSD
11053         This was causing basic coreutils copy operations to fail
11054         with ENOTSUP or ENOENT error messages.
11055         * lib/acl-internal.h (acl_from_mode): Only define when
11056         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
11057         of acl_from_mode() defined in lib/set-permissions.c to
11058         be used on FreeBSD at least.
11059         * lib/set-permissions.c: Fix up comment spelling,
11060         and a redundant variable assignment; noticed in passing.
11062 2015-06-30  Pádraig Brady  <P@draigBrady.com>
11064         readutmp: port to FreeBSD >= 9
11065         * lib/readutmp.h: Map utmpxname() to setutxdb().
11066         With that coreutils who(1) and pinky(1) tests pass.
11068 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11070         mgetgroups: port to strict OS X
11071         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
11072         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
11073         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
11074         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
11076 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
11078         mgetgroups: port to strict OS X
11079         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
11080         Document the getgrouplist problem.
11081         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
11082         New macro.
11083         (mgetgroups): Use it.
11084         * m4/mgetgroups.m4 (gl_MGETGROUPS):
11085         Check for OS X signature for getgrouplist.
11087 2015-06-29  Jim Meyering  <meyering@fb.com>
11089         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
11090         It started like this when building coreutils' latest on OS X,
11091         invoking ./configure with a nonempty --cache=.cache:
11093           lib/linkat.c:46:42: error: operator '||' has no right operand
11094           lib/linkat.c: In function 'rpl_linkat':
11095           lib/linkat.c:330:27: error: #if with no expression
11097         Here's linkat.c's line 46:
11099           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
11101         Here's some context:
11103           $ grep linkat_nofoll .cache
11104           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
11105           $ grep LINKAT_SYM lib/config.h
11106           #define LINKAT_SYMLINK_NOTSUP
11108         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
11109         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
11110         but that violates a tenet of AC_CACHE_CHECK: it must
11111         have no side effect other than setting its cache variable.
11113         What happens is that when the cache is set, we'd skip the
11114         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
11115         defined to whatever value it happened to have in configure's
11116         environment.  In my case, it was not defined, so this later code:
11118           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
11119             [Define to 1 if linkat can create hardlinks to symlinks])
11121         would emit code with an empty RHS.
11123         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
11124         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
11126 2015-06-28  Jim Meyering  <meyering@fb.com>
11128         mountlist: avoid an unused-label warning on OS X
11129         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
11130         Building on OS X, I saw a warning about the "free_then_fail" label
11131         being unused.  Give it the _GL_UNUSED_LABEL attribute.
11133         error.c: correct printf-style format: %d -> %u
11134         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
11135         rather than %d, to match the type of "line_number", unsigned int.
11137 2015-06-25  Pádraig Brady  <P@draigBrady.com>
11139         fts: avoid reading beyond the heap allocation
11140         GCC 5.1.1 with -O2 and -fsanitize=address reports
11141         a read of size 4 from a heap object of size 3 is indeed invalid,
11142         though this may be due to incorrect padding assumptions by GCC, see:
11143         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
11144         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
11145         * modules/fts: Depend on stdalign.
11147 2015-06-24  Pádraig Brady  <P@draigBrady.com>
11149         savedir: avoid undefined behavior in qsort call
11150         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
11151         "runtime error: null pointer passed as argument 1,
11152          which is declared to never be null"
11153         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
11155 2015-06-24  Pádraig Brady  <P@draigBrady.com>
11157         userspec: avoid undefined behavior in gettext call
11158         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
11159         "runtime error: null pointer passed as argument 2,
11160          which is declared to never be null"
11161         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
11163 2015-06-20  Glenn Morris  <rgm@gnu.org>
11165         gitlog-to-changelog: improve gitmerge.el commits
11166         Let the Emacs ChangeLog generation process exclude "skipped"
11167         messages from merge commits (Bug#20717).
11168         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
11170 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11172         wchar: fix MinGW compilation warnings
11173         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
11174         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
11175         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
11177 2015-06-20  Daiki Ueno  <ueno@gnu.org>
11179         uniname/uniname-tests: use pristine data files
11180         For copyright and maintenance reasons, use the data files from UCD
11181         without modification.
11182         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
11183         (getfield): Remove.
11184         (aliases_count): New global variable.
11185         (fill_names): Skip comments and empty lines in the input.  Don't
11186         use getfield.
11187         (fill_aliases): Likewise.
11188         (main): Change the expected command line arguments to:
11189         NAMES... ["--" ALIASES...].
11190         * tests/uniname/test-uninames.sh: Adjust to the change in
11191         test-uninames.c.
11192         * tests/uniname/UnicodeDataNames.txt: Remove.
11193         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
11194         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
11195         file from Unicode 8.0.0.
11197 2015-06-19  Pádraig Brady  <P@draigBrady.com>
11199         linked-list, linkedhash-list: avoid compiler warnings
11200         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
11201         -Werror=suggest-attribute=pure (from GCC 5.1.1).
11203 2015-06-19  Daiki Ueno  <ueno@gnu.org>
11205         libunistring: bump minimum version to 0.9.6
11206         * all modules depending on updated Unicode data: Regenerate.
11207         The modules are listed by a script that does:
11208         - for each file listed by: git show --oneline --name-only 705f4efc
11209           - deduce the containing modules, based on "Files:"
11210         - deduce the modules which depend on the containing modules, based
11211           on "Depends-on:"
11213 2015-06-18  Daiki Ueno  <ueno@gnu.org>
11215         uniname/uniname: update to Unicode 8.0.0
11216         * lib/uniname/uninames.h: Regenerate.
11217         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
11218         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
11220 2015-06-18  Daiki Ueno  <ueno@gnu.org>
11222         libunistring: update to Unicode 8.0.0
11223         * lib/gen-uni-tables.c (SIZEOF): New macro.
11224         (output_numeric): Increase the maximum number of fractions from
11225         128 to 160.  Increase the level3 value width from 7 bits to 8
11226         bits.  Use SIZEOF instead of a hard-coded integer.
11227         (output_blocks): Decrease the cut-off threshold from 0x30000 to
11228         0x28000.
11229         (fill_blocks): Increase the maximum number of blocks from 256 to
11230         384.  Use SIZEOF instead of a hard-coded integer.
11231         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
11232         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
11233         value width.
11234         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
11235         a new case added to LBP22.
11236         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
11237         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
11238         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
11239         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
11240         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
11241         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11242         lib/uniwidth/width.c.
11243         * all generated files under lib/uni* and tests/uni*: Regenerate.
11245 2015-06-16  Pádraig Brady  <P@draigBrady.com>
11247         gnu-web-doc-update: add --mirror to remove stale files
11248         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
11249         out of date files from the CVS server.  Since this is usually
11250         appropriate, a prompt is given when the option is not specified,
11251         along with the `cvs remove` command that would be run.
11253 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
11255         acl-permissions: pacify -Wsuggest-attribute=const
11256         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
11257         * lib/acl-internal.h (free_permission_context):
11258         Declare with attribute const if ! (defined USE_ACL &&
11259         (HAVE_ACL_GET_FILE || defined GETACL)).
11261         fsync: document AIX misbehavior
11262         * doc/posix-functions/fsync.texi (fsync):
11263         Document failure on AIX with read-only file descriptor.
11265 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
11267         stdio: Don't redefine gets when using C++
11268         * lib/stdio.in.h (gets): Disable warning on C++.
11270 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
11272         acl-permissions: port to AIX, C89 HP-UX
11273         Problems reported by Michael Felt.
11274         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
11275         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
11276         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
11277         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
11278         Add cast for AIX, whose system calls are declared to accept
11279         char * even though the arguments are really char const *.
11280         * lib/get-permissions.c (get_permissions):
11281         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
11282         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
11283         that broke a build.
11284         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
11285         Rework types to pacify xlc.
11287 2015-06-03  Pádraig Brady  <P@draigBrady.com>
11289         vasprintf-posix: avoid compiling vasnprintf where possible
11290         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
11291         module where not required.  For example on a GNU/Linux system
11292         when gnulib-tool is run with the --conditional-dependencies option.
11294 2015-06-02  Pádraig Brady  <P@draigBrady.com>
11296         file-has-acl: fix build on Mac OS X 10
11297         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
11298         which has an incompatible 6 parameter getxattr() call.
11299         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
11300         call on Mac OS X >= 10.4.
11301         * doc/glibc-functions/fgetxattr.texi: Likewise.
11302         * lib/file-has-acl.c: Revert to more complete combined check.
11303         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
11304         Reported by Jack Howarth.
11306 2015-06-02  Pádraig Brady  <P@draigBrady.com>
11308         prefix-gnulib-mk: remove no longer needed special case
11309         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
11310         continued lib_SOURCES lines are no longer present,
11311         so special case handling of such entries is not required.
11313 2015-06-01  Pádraig Brady  <P@draigBrady.com>
11315         acl: don't depend on the deprecated qacl module
11316         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
11318 2015-06-01  Pádraig Brady  <P@draigBrady.com>
11320         gnulib-tool: concatenate lib_SOURCES to a single line
11321         * gnulib-tool: Refactor the line merging sed logic,
11322         and use that to output a single lib_SOURCES line for each module.
11323         gnulib using projects often postprocess this output to prepend
11324         subdir paths to each item, and having a single line simplifies this
11325         processing allowing better decoupling from the gnulib-tool output.
11327 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
11329         pthread_sigmask: discount system version if a simple macro (trivial)
11330         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
11331         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
11332         function to ensure it's available.
11334 2015-05-31  Pádraig Brady  <P@draigBrady.com>
11336         readlinkat: avoid OS X 10.10 trailing slash bug
11337         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
11338         has this bug.
11339         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
11340         that OS X 10.10 has this function.
11341         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
11342         as done for readlink().
11343         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
11344         trailing slash bug, and assume readlinkat() has the same issue.
11345         Also fix a typo where $gl_cv_decl_readlink_works was tested,
11346         rather than the correct $gl_cv_decl_readlinkat_works.
11348 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
11350         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
11351         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
11352         module rewrite.
11354         acl-permissions: Fix build on Solaris and Cygwin
11355         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
11356         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
11357         ace_entries variables have moved into struct permission_context but
11358         they were still accessed as local variables here.
11360 2015-05-29  Pádraig Brady  <P@draigBrady.com>
11362         linkat: avoid OS X 10.10 trailing slash with symlink bug
11363         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
11364         causes the symlink to be dereferenced, and if it points
11365         to a non existent file, that file will be created as
11366         a hard link to "path1".
11367         This fixes a test failure in test-linkat.c.
11368         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
11369         this case.  The existing workaround in linkat.c for
11370         trailing slash issues, suffices for this case.
11371         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
11372         the list of platforms with trailing slash issues.
11374 2015-05-28  Pádraig Brady  <P@draigBrady.com>
11376         unlinkat: handle ignoring of ".." on Darwin 14
11377         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
11378         on Mac OS X 10.10, where it ignores paths with a trailing "..",
11379         so handle in the same manner.
11380         * m4/unlinkat.m4: Comment on this Darwin issue.
11381         * doc/posix-functions/unlink.texi: Update the latest version
11382         where the issue was seen.
11383         * doc/posix-functions/unlinkat.texi: Mention this issue.
11384         Fixes a test failure in test-unlinkat.c.
11386 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
11388         qacl: split into qcopy-acl and qset-acl
11389         Emacs needs the former, but not the latter.
11390         * modules/acl-permissions: New file, containing most of the old qacl.
11391         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
11392         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
11393         * modules/qcopy-acl, modules/qset-acl: New files.
11394         * MODULES.html.sh (File system functions):
11395         Mention the new modules, and mention qacl while we're at it.
11397 2015-05-27  Glenn Morris  <rgm@gnu.org>
11399         gitlog-to-changelog: new option --ignore-line
11400         (This patch is imported from the GNU Emacs master.)
11401         This option ignores individual commit lines matching a pattern.
11402         * build-aux/gitlog-to-changelog: Add --ignore-line option.
11404 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
11406         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
11407         Implement get_permissions and set_permissions primitives for getting all
11408         the permissions of a file, storing them, and later setting them. (In the
11409         minimal case, the permissions consist only of a file mode.) Reimplement
11410         qset_acl and qcopy_acl based on these new primitives: this avoids code
11411         duplication and makes error handling more consistent.
11412         The Solaris and Cygwin code still uses duplicate code paths for setting
11413         a file mode while making sure that no acls exist and setting an explicit
11414         acl; this is no worse than before, but could be cleaned up.  The AIX
11415         code still doesn't read ACLs, it only makes sure that acls don't get in
11416         the way when setting a file mode.
11417         * lib/acl-internal.h (struct permission_context): New data structure.
11418         (get_permissions, set_permissions, free_permission_context): Declare.
11419         * lib/acl-internal.c (free_permission_context): New helper function.
11420         * lib/get-permissions.c (get_permissions): New helper function split off
11421         from qcopy_acl.
11422         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
11423         AIX, set a file's permissions based only on a file mode.
11424         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
11425         other platforms construct a temporary acl from the file mode and set
11426         that acl in the same way as setting an acl read from the source file.
11427         This should help avoid code duplication and inconsistent / buggy
11428         behavior.
11429         (set_acls): New helper function Split off from qcopy_acl.
11430         (chmod_or_fchmod): Moved here from qset-acl.c.
11431         (set_permissions): New helper function.
11432         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
11433         set_permissions.
11434         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
11435         * modules/qacl: Add get-permissions.c and set-permissions.c.
11437         file-has-acl: Split feature tests again (Bug#20667)
11438         * lib/file-has-acl.c: Instead of testing for
11439         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
11440         define them when needed.
11441         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
11442         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
11444 2015-05-27  Pádraig Brady  <P@draigBrady.com>
11446         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
11447         This avoids a conflict with "FORTIFY_SOURCE" variants
11448         of the string functions when they're replaced on NetBSD-6.0.1
11449         and Darwin-14.3.0 at least.
11450         * lib/string.in.h: Avoid including our "lib/string.h" while
11451         including the system <string.h>.
11453 2015-05-26  Eric Blake  <eblake@redhat.com>
11455         stdio: limit __gnu_printf__ witness to gcc 4.4+
11456         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
11457         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
11459         error: use correct printf attributes on mingw
11460         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
11462         inttypes: force correct mingw PRIdMAX even without <stdio.h>
11463         * modules/inttypes (Depends-on): Require extensions, so that mingw
11464         always uses GNU style inttypes.
11465         * lib/inttypes.in.h: On mingw, include <stdio.h>.
11467         stdio: fix probe on mingw under gcc 5.1
11468         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
11469         around new gcc preprocessor rules.
11471 2015-05-07  Glenn Morris  <rgm@gnu.org>
11473         gitlog-to-changelog: parse "Tiny-change"
11474         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
11475         "Copyright-paperwork-exempt".  (Bug#20324)
11477 2015-05-06  Pádraig Brady  <P@draigBrady.com>
11479         doc: document glibc posix_fallocate() issues
11480         * doc/posix-functions/posix_fallocate.texi: Mention the
11481         glibc efficiency problems and issues with NFS.
11483 2015-05-05  Karl Berry  <karl@freefriends.org>
11485         * build-aux/gendocs.sh (usage): document new css default
11486         for HTML (--htmlarg).
11488 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
11490         extern-inline: no need for workaround in GCC 5.1
11491         * doc/extern-inline.texi (extern inline):
11492         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
11493         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
11494         around these bugs in GCC 5.1 and later.  Maybe in a decade or
11495         two we can remove these workarounds.
11497 2015-04-28  Pádraig Brady  <P@draigBrady.com>
11499         eealloc, pagealign_alloc, xalloc: avoid clang warnings
11500         Avoid [-Wunknown-attributes] warnings like:
11501         warning: unknown attribute '__alloc_size__' ignored
11502         * lib/xalloc.h: Don't use the __alloc_size__  attribute
11503         with clang, as support has been fully removed as of clang 3.5:
11504         https://github.com/llvm-mirror/clang/commit/c047507a
11505         * lib/eealloc.h: Likewise.
11506         * lib/pagealign_alloc.h: Likewise.
11508 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
11510         tests: pacify GCC 5.1's stricter printf checking
11511         * tests/test-dirname.c (main):
11512         * tests/test-getaddrinfo.c (simple):
11513         * tests/test-getlogin.c (main):
11514         * tests/test-getndelim2.c (main):
11515         * tests/test-inttostr.c (CK):
11516         * tests/test-md5.c (main):
11517         * tests/test-read-file.c (main):
11518         * tests/test-sha1.c (main):
11519         Fix mismatches between printf format and value signedness.
11520         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
11521         Remove, as CAST_VAL always returned a value of type uintmax_t.
11523         fts: port to GCC 5.1 with --enable-gcc-warnings
11524         Without this fix, GCC 5.1 (correctly) warns about a subscript
11525         error on the fts_name component of FTSENT.  It's actually a
11526         flexible member, so define it that way on C99 or later hosts.
11527         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
11528         structure that now has a flexible array member.
11529         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
11530         (FTSENT): fts_name is now flexible on C99-or-later platforms.
11531         * modules/fts (Depends-on): Add flexmember.
11533 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11535         file-has-acl: port to CentOS 6
11536         Problem reported by Tom G. Christensen in:
11537         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
11538         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
11539         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
11540         HAVE_GETXATTR.
11541         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
11542         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
11543         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
11544         file-has-acl.c actually needs.
11546 2015-04-26  Pádraig Brady  <P@draigBrady.com>
11548         file-has-acl: always return false when ACLs aren't supported
11549         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
11550         change the GNU/Linux getxattr path, to transform "not supported"
11551         errors to a false return rather than an error.  This is handled
11552         within file_has_acl() due to the platform specific tests to
11553         determine if ACLs are not supported.
11555 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11557         gettext: propagate po/Makefile.in.in too
11558         * build-aux/po/Makefile.in.in: Copy from latest gettext.
11559         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
11560         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
11561         between Makefile.in.in and the gettext-runtime m4 files.
11563 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11565         file-has-acl: new module, split from acl
11566         And add a new module file-has-acl-tests to match.
11567         I ran into a problem with the recent changes to the acl module,
11568         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
11569         When using the fixed version with Emacs, I discovered that
11570         file-has-acl wasn't separated out well enough for Emacs (e.g., it
11571         had multiple libraries, but needed only one), so I fixed that too.
11572         * NEWS: Document this incompatible change.
11573         * modules/file-has-acl, modules/file-has-acl-tests: New files.
11574         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
11575         Initialize gl_need_lib_has_acl.
11576         (gl_FUNC_ACL): Require it.
11577         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
11578         Move the file-has-acl.c-relevant stuff to ...
11579         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
11580         use_xattrs = 0' typo, and omit some needless work.  Set
11581         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
11582         when gl_FUNC_ACL is called.
11583         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
11584         (Link): Remove $(LIB_HAS_ACL).
11585         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
11586         (check_PROGRAMS): Move stuff relevant to file-has-acl to
11587         modules/file-has-acl-tests.
11588         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
11590         manywarnings: add GCC 5.1 warnings
11591         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
11592         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
11593         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
11594         -Wsuggest-override, -Wuse-without-only.  Change
11595         -Wnormalized=... operands to match 5.1.
11596         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
11597         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
11598         -Wdiscarded-qualifiers, -Wformat-signedness,
11599         -Wincompatible-pointer-types, -Wint-conversion,
11600         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
11601         -Wshift-count-negative, -Wshift-count-overflow,
11602         -Wsizeof-array-argument, -Wsuggest-final-methods,
11603         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
11604         and add -Warray-bounds=2 as a special case.
11606 2015-04-21  Simon Josefsson  <simon@josefsson.org>
11608         doc: update FDL template to match FDL examples.
11609         * doc/alloca-opt.texi:
11610         * doc/alloca.texi:
11611         * doc/c-ctype.texi:
11612         * doc/c-strcase.texi:
11613         * doc/c-strcaseeq.texi:
11614         * doc/c-strcasestr.texi:
11615         * doc/c-strstr.texi:
11616         * doc/c-strtod.texi:
11617         * doc/c-strtold.texi:
11618         * doc/ctime.texi:
11619         * doc/error.texi:
11620         * doc/gcd.texi:
11621         * doc/gnulib-tool.texi:
11622         * doc/inet_ntoa.texi:
11623         * doc/intprops.texi:
11624         * doc/lib-symbol-visibility.texi:
11625         * doc/maintain.texi:
11626         * doc/parse-datetime.texi:
11627         * doc/quote.texi:
11628         * doc/regexprops-generic.texi:
11629         * doc/standards.texi: Remove spurious 'with' in FDL license
11630         template.
11632 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
11634         lstat: fix cross-compilation 'ln -s' problem
11635         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
11636         Have the test program call 'symlink' rather than a separate
11637         script run 'ln -s'; this is more likely to work in
11638         cross-compilation environments.  Reported by Pavel Fedin in:
11639         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
11641 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
11643         gendocs.sh: default to a common CSS style sheet for HTML output
11644         * build-aux/gendocs.sh (htmlarg): Change default value.
11646 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
11648         gnulib-tool: output bold attribute more portably
11649         * gnulib-tool (func_show_module_list): Change hexadecimal
11650         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
11651         encoded numbers as arguments to `printf' is not portable,
11652         and is not claimed by POSIX.  This is the case with FreeBSD.
11654 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
11656         qacl: Simplify HP-UX acl_nontrivial check
11657         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
11658         acl_nontrivial. Check if the acl has at most three entries instead (it must
11659         have exactly three entries according to the HP-UX documentation). Ignore
11660         uids and gids as long as an entry is either for a user (i.e., the owner),
11661         a group (i.e., the owning group), or others.
11662         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
11663         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
11665 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
11667         acl: On Linux, check for acls without libacl
11668         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
11669         library function to check for the presence of acls, avoiding a library.
11670         * lib/file-has-acl.c: Include xattr headers if we have them.
11671         (file_has_acl): On Linux, use getxattr().
11672         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
11673         file_has_acl(). Check for xattr headers and getxattr().
11675 2015-04-14  Ángel González  <keisial@gmail.com>
11677         tempname: avoid unused parameter warnings (trivial)
11678         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
11679         (try_nocreate): Likewise.
11681 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
11683         fseeko: fix build failure on NetBSD >= 6 (trivial)
11684         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
11685         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
11687 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11689         gitlog-to-changelog: port to MS-Windows
11690         * build-aux/gitlog-to-changelog (git_dir_option):
11691         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
11692         MS-Windows Perl.  Reported by Eli Zaretskii in:
11693         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
11695 2015-04-07  Karl Berry  <karl@gnu.org>
11697         gendocs: new option --tex for passing args to texi2dvi.
11698         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
11699         (TEXI2DVI): cut to just command name.
11700         (usage): mention new option, and update copyright.
11701         <generate_tex>: use it.
11703 2015-04-07  Karl Berry  <karl@gnu.org>
11705         * config/srclistvars.sh (GETTEXT): new definition.
11706         * config/srclist.txt: use it for gettext .m4 files.
11707         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
11708         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
11709         and continuing into April.
11711 2015-04-07  Daiki Ueno  <ueno@gnu.org>
11713         uniname/uniname-tests: fix failure due to alias
11714         Reported by Jack Howarth in:
11715         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
11716         * tests/uniname/test-uninames.c (name_has_alias): New function.
11717         (test_inverse_lookup): Exclude character name with valid alias,
11718         from randomly generated character names.
11719         (main): Fill unicode_aliases before calling test functions.
11721 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
11723         hash: remove deprecated hash_insert0 function
11724         * lib/hash.h (hash_insert0): Remove deprecated function.
11725         * lib/hash.c (hash_insert0): Likewise.
11727 2015-04-02  Pádraig Brady  <P@draigBrady.com>
11729         mountlist: remove dependency on libmount
11730         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
11731         directly, rather than depending on libmount, which has many
11732         dependencies due to its dependence on libselinux, as detailed at:
11733         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
11734         Note we restrict this to __linux__ as that's probably where this
11735         interface will remain.  If ever porting, it would be best
11736         to first pull the makedev() wrapper from coreutils to a gnulib module.
11737         Note also we don't add a getline dependency to the mountlist module,
11738         as all Linux versions are sufficient.
11740 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
11742         stddef: port to pre-C11 GCC on x86
11743         On this platform, max_align_t should have an alignment of 8 even
11744         though the storage alignments of double, long, etc. max out at 4.
11745         Inspired by a comment of Andreas Schwab's here:
11746         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
11747         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
11748         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
11749         * tests/test-stddef.c: Test __alignof__ too, if available.
11751 2015-03-24  Pádraig Brady  <P@draigBrady.com>
11753         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
11754         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
11756 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
11758         yesno: make EOL optional in ENABLE_NLS case also (trival)
11759         * lib/yesno.c (yesno): Check for EOL before replacing.
11760         * tests/test-yesno.sh: Add a test case (test along with gettext).
11762 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
11764         fdopendir-tests: test it does not close its arg
11765         * tests/test-fdopendir.c (main): Test that fdopendir does not
11766         close its argument.  From a suggestion by David Grayson in:
11767         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
11769 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11771         gitlog-to-changelog: trim trailing white space
11772         * build-aux/gitlog-to-changelog (main):
11773         Trim trailing white space from commit message lines.
11774         This is helpful for processing the GNU Emacs repository,
11775         which dates back to 1985 and contains a lot of such lines.
11777         gitlog-to-changelog: new option --ignore-matching
11778         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
11779         Support new option --ignore-matching=PAT, which ignores all
11780         commit messages whose first line matches PAT.
11782 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11784         fdopendir: port better to MinGW
11785         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
11786         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
11787         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
11788         * modules/fdopendir (Depends-on): Add dirfd.
11790 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
11792         fdopendir: fix typo in comment
11793         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
11795 2015-03-09  Eric Blake  <eblake@redhat.com>
11797         error: document all entry points provided
11798         * doc/glibc-functions/error_print_progname.texi
11799         (error_print_progname): Mention the error module.
11800         * doc/glibc-functions/error_at_line.texi (error_at_line):
11801         Likewise.
11802         * doc/glibc-functions/error_message_count.texi
11803         (error_message_count): Likewise.
11804         * doc/glibc-functions/error_one_per_line.texi
11805         (error_one_per_line): Likewise.
11807 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
11809         vasnprintf: pacify clang 3.5.0
11810         Problem reported by Werner Lemberg in:
11811         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
11812         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
11813         The casts aren't needed, since the characters in question are ASCII.
11815 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11817         glob, etc.: port to MSVC v18 on MS-Windows 8.1
11818         * lib/dirent--.h (GNULIB_defined_opendir):
11819         * lib/dirent.in.h (GNULIB_defined_opendir)
11820         (GNULIB_defined_closedir):
11821         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
11822         #undef only if Gnulib defined it.
11824         poll: port to MSVC v18 on MS-Windows 8.1
11825         Problem reported by Gisle Vanem in:
11826         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
11827         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
11828         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
11829         Add sys_socket.
11831 2015-02-24  Pádraig Brady  <P@draigBrady.com>
11833         tests: support stderr verification with returns_()
11834         * tests/init.sh (returns_): Disable tracing for this wrapper
11835         function, so that stderr of the wrapped command is unchanged,
11836         allowing for verification of the contents.
11838 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
11840         passfd: avoid valgrind uninitalised data warning
11841         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
11842         to include just the fd we've initialized, rather than including
11843         the extra space used for alignment.
11845 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11847         uniwbrk/u32-wordbreaks-tests: fix copyright
11848         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
11850         dup2: doc and test for Android bug
11851         Reported by Kevin Cernekee in:
11852         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
11853         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11854         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
11856 2015-02-23  Kevin Cernekee  <cernekee@google.com>
11858         Replace dup2() on Android
11859         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
11860         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
11861         fails.  Using rpl_dup2() fixes this because it has an explicit test
11862         for this condition.
11864 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
11866         Android doesn't define RLIM_SAVED_*
11867         Portability problem reported by Kevin Cernekee in:
11868         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
11869         * doc/posix-headers/sys_resource.texi (sys/resource.h):
11870         Mention the portability problem.
11871         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
11872         Define if not defined.
11873         * m4/dup2.m4 (gl_FUNC_DUP2):
11874         * m4/fcntl.m4 (gl_FUNC_FCNTL):
11875         Likewise.
11877 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
11879         vasnprintf-posix-tests: use consistent test
11880         * tests/test-vasnprintf-posix.c (test_function):
11881         Use "<" in assert instead of "<=", for consistency with other tests.
11883 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
11885         printf, isinf, etc.: noncanonical != NaN
11886         Do not require that isinf, printf, etc. treat noncanonical
11887         values as NaNs.  Instead, require only that they do not crash.
11888         Problem reported by Joseph Myers in:
11889         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
11890         * doc/posix-functions/dprintf.texi (dprintf):
11891         * doc/posix-functions/fprintf.texi (fprintf):
11892         * doc/posix-functions/isfinite.texi (isfinite):
11893         * doc/posix-functions/isinf.texi (isinf):
11894         * doc/posix-functions/isnan.texi (isnan):
11895         * doc/posix-functions/printf.texi (printf):
11896         * doc/posix-functions/snprintf.texi (snprintf):
11897         * doc/posix-functions/sprintf.texi (sprintf):
11898         * doc/posix-functions/vdprintf.texi (vdprintf):
11899         * doc/posix-functions/vfprintf.texi (vfprintf):
11900         * doc/posix-functions/vprintf.texi (vprintf):
11901         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11902         * doc/posix-functions/vsprintf.texi (vsprintf):
11903         Document this.
11904         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
11905         * m4/isinf.m4 (gl_ISINFL_WORKS):
11906         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
11907         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
11908         * tests/test-isfinite.c (test_isfinitel):
11909         * tests/test-isinf.c (test_isinfl):
11910         * tests/test-isnan.c (test_long_double):
11911         * tests/test-isnanl.h (main):
11912         * tests/test-snprintf-posix.h (test_function):
11913         * tests/test-sprintf-posix.h (test_function):
11914         * tests/test-vasnprintf-posix.c (test_function):
11915         * tests/test-vasprintf-posix.c (test_function):
11916 o       Test only that noncanonical values do not cause crashes, not that
11917         they are treated as NaNs.  In some cases this means a larger
11918         output buffer is needed.
11920 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
11922         fts: remove redundant close() (trivial)
11923         * lib/fts.c (fts_read): Remove redundant call to close().
11924         Spotted by coverity.
11926 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
11928         getdtablesize: port better for Android
11929         Problem reported by Kevin Cernekee in:
11930         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
11931         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
11932         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
11933         Instead, just use getrlimit, taking care to avoid Cygwin bug.
11935         poll: fixes for large fds
11936         * lib/poll.c (poll): Don't check directly for NFD too large.
11937         Don't rely on undefined behavior in FD_SET when an arg exceeds
11938         FD_SETSIZE.  Always set revents afterwards, even if to zero.
11939         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
11940         as that makes the test a bit stricter.
11942 2015-02-19  Kevin Cernekee  <cernekee@google.com>
11944         fcntl: Fix cross compiling
11945         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
11946         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
11948 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
11950         dup2, fcntl: cross-compile better for Android
11951         Problem reported by Kevin Cernekee in:
11952         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
11953         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
11954         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
11955         there's little need to cross-compile for older kernels nowadays.
11956         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
11957         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
11959 2015-02-18  Pádraig Brady  <P@draigBrady.com>
11961         getopt: don't crash on memory exhaustion
11962         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
11963         memory exhaustion.  In the _LIBC case we use alloca() as is
11964         already done in glibc, so we don't need to consider the separate
11965         error path in that awkward case.  Also fix a memory leak when
11966         ambiguous options are present.
11967         Reported by Tobias Stoeckmann
11969 2015-02-17  Mike Miller  <mtmiller@ieee.org>
11971         tempname: allow compilation with C++ (trivial)
11972         * lib/tempname.h [C++]: Specify extern "C" linkage.
11973         * lib/tempname.h (try_tempname):
11974         * lib/tempname.c (__try_tempname, __gen_tempname):
11975         Rename 'try' to 'tryfunc'.
11977 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11979         dup2, fcntl: port to AIX
11980         * m4/dup2.m4 (gl_FUNC_DUP2):
11981         * m4/fcntl.m4 (gl_FUNC_FCNTL):
11982         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
11983         The former works on AIX 7.1 but the latter does not.
11984         Also, this may work better with Android; see:
11985         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
11987 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
11989         getdtablesize, dup2, fcntl: port to Android
11990         Problem reported by Kevin Cernekee in:
11991         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
11992         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
11993         Mention that getdtablesize doesn't work on Android.
11994         * lib/getdtablesize.c: Use getrlimit substitute only if
11995         getdtablesize is declared.  This should suffice for Cygwin
11996         while not breaking Android.
11997         * m4/dup2.m4 (gl_FUNC_DUP2):
11998         * m4/fcntl.m4 (gl_FUNC_FCNTL):
11999         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
12000         standardized but the latter is not, and sysconf works on Android.
12001         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
12002         Also check that getdtablesize is declared.
12003         This removes the need for a special case for Android.
12005 2015-02-16  Kevin Cernekee  <cernekee@google.com>
12007         localename: Implement gl_locale_name_thread_unsafe for Android
12008         * lib/localename.c: Android API level >= 21 supports two hardcoded
12009         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
12010         the internal __locale_t struct.
12012 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
12014         fts: avoid crash when a cycle is added while traversing
12015         This could be triggered by auto-mounting a recursive bind mount.
12016         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
12017         * lib/fts.c (fts_read): Avoid removing the original hash table item
12018         when leaving a directory that caused a cycle, and preserve the FTS_DC
12019         flag.
12021 2015-02-16  Daiki Ueno  <ueno@gnu.org>
12023         uniname/uniname: support character alias
12024         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
12025         Generate one-way mapping from aliases to codepoints in the
12026         generated tables.  Special case variation selectors to reduce
12027         table size.
12028         * lib/uniname/uniname.c (unicode_character_name): Special case
12029         variation selectors.
12030         (unicode_name_character): Special case variation selectors and
12031         their aliases.
12032         * lib/uniname/uninames.h: Regenerate.
12033         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
12034         * modules/uniname/uniname-tests (Files): Add
12035         tests/uniname/NameAliases.txt.
12036         * tests/uniname/test-uninames.c: Mark as static.
12037         (ALIASLEN): Define.
12038         (struct unicode_alias): New struct.
12039         (unicode_aliases): New variable.
12040         (fill_aliases): New function.
12041         (test_alias_lookup): New test function.
12042         (main): Run the 'test_alias_lookup' test if the second argument is
12043         given.
12044         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
12045         second argument.
12047 2015-02-11  Kevin Cernekee  <cernekee@google.com>
12049         Fix FILE struct compatibility with Android API level >= 21
12050         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
12051         __sferror.  Recent versions of Bionic's stdio.h no longer define
12052         __sferror.
12053         * lib/fbufmode.c: Likewise.
12054         * lib/fflush.c: Likewise.
12055         * lib/fpurge.c: Likewise.
12056         * lib/freadable.c: Likewise.
12057         * lib/freadahead.c: Likewise.
12058         * lib/freading.c: Likewise.
12059         * lib/freadptr.c: Likewise.
12060         * lib/freadseek.c: Likewise.
12061         * lib/fseeko.c: Likewise.
12062         * lib/fseterr.c: Likewise.
12063         * lib/fwritable.c: Likewise.
12065         Assume unbroken ungetc() on Android
12066         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
12067         test case passed when running on an Android host, and the code
12068         hasn't really changed since 2009.
12070         getdtablesize: Fix Android build
12071         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
12072         versions have this symbol in the .so library (at least 32-bit
12073         platforms) but are missing the declaration in the header file,
12074         causing the m4 logic to guess incorrectly.
12076         localename: Fix Android build
12077         * modules/localename (Depends-on): Add langinfo.
12079         getugroups: Fix Android build
12080         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
12081         functions.
12083         euidaccess: Fix Android build
12084         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
12085         AT_EACCESS gets declared.
12087         linkat_nofollow: Add fallback case for cross compiling
12088         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
12090         net_if: Handle content-free <net/if.h> system headers
12091         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
12092         struct if_nameindex.  If not, enable the replacement header.
12094         signal_h: Fix Android build
12095         * lib/signal.in.h: Add Android to the list of platforms that declare
12096         pthread_sigmask() in <pthread.h> instead of <signal.h>.
12098         duplocale: Fix Android build of duplocale-tests
12099         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
12100         is included by test-duplocale.c (but not by duplocale.c).
12101         * modules/duplocale-tests (configure.ac): Check for monetary.h.
12102         * tests/test-duplocale.c: Skip test if monetary.h is absent.
12103         * doc/posix-headers/monetary.texi: Add Android to the list of
12104         platforms missing monetary.h.
12106 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12108         tests: avoid recent -Werror=unused-variable regression in test-locale
12109         * tests/test-locale.c (main): Reference the variable to avoid the
12110         "unused variable" warning.
12112 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12114         maint: various whitespace cleanups in tempname
12115         * lib/tempname.c: Normalize spacing and line length.
12116         * lib/tempname.h: Likewise.
12117         * modules/tempname: Likewise.
12119 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12121         tests: provide returns_() to simplify exit status checking
12122         * tests/init.sh (returns_): A new function for use in tests,
12123         to allow for easier checking of return values, where you expect
12124         a command to exit with failure status.  By checking for a particular
12125         exit code, you don't hide any crashes for example.
12127 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12129         mountlist: only use libmount when specified
12130         There are currently many shared libs dependencies introduced by
12131         libmount with associated runtime and virt mem overhead.
12132         Therefore don't enable by default.
12133         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
12135 2015-02-08  Daiki Ueno  <ueno@gnu.org>
12137         uniname/unimame-tests: don't link with -lunistring
12138         * modules/uniname/uniname-tests (Makefile.am): Don't link against
12139         $(LIBUNISTRING).  Document the rationale why we need to
12140         conditionalize the test.
12142 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
12144         fstrcmp: don't assume strlen < INT_MAX
12145         * lib/fstrcmp.c: Include stddef.h and stdint.h.
12146         (uintptr_t): Remove, as we're now assuming stdint.
12147         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
12148         Prefer ptrdiff_t to int when the value could exceed INT_MAX
12149         if the input string is long.
12150         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
12151         uintptr_t to size_t when the underlying value is a pointer casted
12152         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
12153         * modules/fstrcmp (Depends-on): Add stdint.
12155         diffseq: prefer ptrdiff_t to ssize_t
12156         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
12157         ptrdiff_t is the natural type for signed indexes.
12158         On a few older platforms, ssize_t is narrower than size_t.
12160         xalloc: fix typo that suppressed warnings
12161         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
12162         This typo, introduced a couple of years ago, mistakenly suppressed
12163         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
12164         -Wmissing-declarations warnings.
12166         full-read: fix license notice typo
12167         * lib/full-read.h: Remove a stray line in the license notice.
12168         Reported by Sam Ellis in: http://bugs.gnu.org/19808
12170         crypto/gc: fix a -Wswitch warning
12171         Reported by Bruce Korb in:
12172         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
12173         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
12175 2015-02-03  Pádraig Brady  <P@draigBrady.com>
12177         gnulib-tool: fix handling of patch(1) diagnostics
12178         * gnulib-tool: Send diagnostics from patch(1) to stderr,
12179         as otherwise gnulib-tool will reparse that output and attempt
12180         to lookup modules.
12182 2015-02-03  Pádraig Brady  <P@draigBrady.com>
12184         bootstrap: exit immediately upon gnulib-tool failure
12185         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
12186         This was noticed when gnulib-tool exited early due to failure
12187         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
12188         but various confusing errors were then given as the build proceeded.
12190 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
12192         symlinkat: include all required header files
12193         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
12194         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
12195         Reported at https://savannah.gnu.org/bugs/index.php?44151
12196         and by Jack Howarth.
12198 2015-01-29  Pádraig Brady  <P@draigBrady.com>
12200         localename: support Solaris 12 and illumos
12201         * lib/localename.c (gl_locale_name_thread_unsafe): call
12202         getlocalename_l() on newer __sun platforms.
12203         Reported by Alexander Pyhalov.
12204         Fix suggested by Rich Burridge.
12206 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
12208         locale: fix tests on illumos (trivial)
12209         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
12210         so move from global scope to main().
12212 2015-01-24  Daiki Ueno  <ueno@gnu.org>
12214         unictype: avoid undefined left-shift behavior
12215         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
12216         gcc's -fsanitize=shift and running its tests triggered:
12217           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
12218             places cannot be represented in type 'int'
12219         Cast LHS to 'unsigned int' after integer promotion.
12220         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
12221         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
12223 2015-01-20  Daiki Ueno  <ueno@gnu.org>
12225         libunistring: bump version of unitypes dependants
12226         Due to the header file search order, all the headers which depend
12227         on unitypes.h need to be generated, when the preinstalled
12228         libunistring is older.
12229         * modules/unicase/base (configure.ac): Bump minimum version to
12230         0.9.4.
12231         * modules/uniconv/base (configure.ac): Likewise.
12232         * modules/unilbrk/base (configure.ac): Likewise.
12233         * modules/uninorm/base (configure.ac): Likewise.
12234         * modules/unistdio/base (configure.ac): Likewise.
12235         * modules/unistr/base (configure.ac): Likewise.
12236         * modules/uniwbrk/base (configure.ac): Likewise.
12237         * modules/uniwidth/base (configure.ac): Likewise.
12239 2015-01-20  Daiki Ueno  <ueno@gnu.org>
12241         unictype/category-none: fix link with libunistring
12242         Since _UC_CATEGORY_NONE is not a public symbol, it will be
12243         prefixed with "libstring_" when compiled as part of libunistring.
12244         To avoid undefined symbol at link time, increase the minimum
12245         version when the dependant modules are updated.
12246         * modules/unictype/category-none (configure.ac): Bump minimum
12247         version to 0.9.5.
12249 2015-01-20  Daiki Ueno  <ueno@gnu.org>
12251         unitypes: fix build with installed libunistring
12252         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
12253         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
12254         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
12256 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12258         time: port to MinGW32 3.21
12259         Problem reported by Eli Zaretskii in:
12260         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
12261         * lib/time.in.h:
12262         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
12263         * modules/time (Depends-on):
12264         Fall back on unistd.h if the other include files don't define
12265         struct timespec.
12267         update-copyright: apply to self
12268         * build-aux/update-copyright: Fix copyright date.  How ironic!
12270 2015-01-15  Daiki Ueno  <ueno@gnu.org>
12272         libunistring: update to Unicode 7.0.0
12273         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
12274         Manichaean names.
12275         * lib/unictype/joininggroup_name.h: Likewise.
12276         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
12277         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
12278         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
12279         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
12280         (fill_arabicshaping, joining_group_as_c_identifier): Support those
12281         enum values.
12282         (is_property_alphabetic): Accept newly added characters to
12283         cuneiform numeric signs.
12284         (is_property_default_ignorable_code_point): Reject U+0605.
12285         (FIELDLEN): Increase from 120 to 160.
12286         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
12287         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
12288         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
12289         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
12290         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
12291         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
12292         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
12293         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
12294         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
12295         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
12296         U+1E8D0..U+1E8D6.
12297         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
12298         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12299         lib/uniwidth/width.c.
12300         * all generated files under lib/uni* and tests/uni*: Regenerate.
12302 2015-01-14  Daiki Ueno  <ueno@gnu.org>
12304         libunistring: update to Unicode 6.3.0
12305         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
12306         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
12307         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
12308         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
12309         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
12310         Update WB5, WB9, WB10, WB13a, and WB13b.
12311         * tests/uniwbrk/test-uc-wordbreaks.c
12312         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
12313         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
12314         (UC_BIDI_PDI): New enumeration values.
12315         (bidi_category_byname): Support those enum values.
12316         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
12317         dedicated property assigned.
12318         (is_property_case_ignorable): Check 0x0027.
12319         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
12320         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
12321         (output_wbp): Support those enum values.
12322         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
12323         (UC_BIDI_PDI): New enumeration values.
12324         * lib/unictype/bidi_byname.gperf: Add those property names.
12325         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
12326         U+180E, U+1A1B, and U+2066..U+2069.
12327         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12328         lib/uniwidth/width.c.
12329         * all generated files under lib/uni* and tests/uni*: Regenerate.
12331 2015-01-14  Daiki Ueno  <ueno@gnu.org>
12333         libunistring: update to Unicode 6.2.0
12334         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
12335         (unilbrk_table): Adjust table size.
12336         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
12337         for LBP_RI.
12338         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
12339         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
12340         Normalize table index skipping ignored properties.
12341         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
12342         WBP_EXTEND and WBP_FORMAT, which are now computed without using
12343         the table.
12344         * lib/uniwbrk/wbrktable.h: Adjust table size.
12345         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
12346         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
12347         Support rule GB8a.
12348         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
12349         * tests/unigbrk/test-uc-is-grapheme-break.c
12350         (graphemebreakproperty_to_string): Support GBP_RI.
12351         * tests/uniwbrk/test-uc-wordbreaks.c
12352         (wordbreakproperty_to_string): Support WBP_RI.
12353         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
12354         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
12355         (output_lbp): Support LBP_RI.  Adjust some characters changed from
12356         LBP_AL to LBP_ID.
12357         (output_lbp): Support LBP_RI.
12358         (WBP_RI): New enumeration value.
12359         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
12360         (output_wbp): Support WBP_RI.
12361         (GBP_RI): New enumeration value.
12362         (output_gbp_test, fill_org_gbp): Support GBP_RI.
12363         * all generated files under lib/uni* and tests/uni*: Regenerate.
12365 2015-01-14  Daiki Ueno  <ueno@gnu.org>
12367         libunistring: update to Unicode 6.1.0
12368         * lib/gen-uni-tables.c (output_joining_group): Switch to
12369         3-level table to accommodate joining groups defined with higher
12370         codepoint value.  Since there are only 88 groups defined in
12371         Unicode 7.0.0, use 7-bit packed format for level3 entries.
12372         (get_lbp): Update for Unicode 6.1.0.
12373         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
12374         3-level table.
12375         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
12376         joining group name.
12377         * lib/unictype/joininggroup_name.h: Likewise.
12378         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
12379         (unilbrk_table): Adjust table size.
12380         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
12381         for LBP_HL.
12382         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
12383         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
12384         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
12385         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
12386         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
12387         U+302E..U+302F.
12388         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12389         lib/uniwidth/width.c.
12390         * all generated files under lib/uni* and tests/uni*: Regenerate.
12391         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
12393 2015-01-15  Daiki Ueno  <ueno@gnu.org>
12395         uniwbrk/u32-wordbreaks-tests: add conformance test
12396         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
12397         tests/uniwbrk/test-uc-wordbreaks.c,
12398         tests/uniwbrk/test-uc-wordbreaks.sh, and
12399         tests/uniwbrk/WordBreakTest.txt.
12400         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
12401         test-uc-wordbreaks to $(check_PROGRAMS), and define
12402         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
12403         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
12404         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
12406 2015-01-15  Daiki Ueno  <ueno@gnu.org>
12408         uniwbrk: ignore Extended/Format characters at BOL not BOS
12409         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
12410         characters if the previous character property is one of
12411         WBP_NEWLINE, WBP_CR, and WBP_LF.
12413 2015-01-11  Jim Meyering  <meyering@fb.com>
12415         test-strstr.c: avoid a trivial leak
12416         * tests/test-strstr.c (main): Free haystack.
12418         update-copyright: recognize groff's \(co marker
12419         * build-aux/update-copyright (circle_c_re): Also accept
12420         uses of \(co, as found in gzip.1.
12422 2015-01-08  Pádraig Brady  <P@draigBrady.com>
12424         maint.mk: fix compatibility with OS X nm
12425         * top/maint.mk (_gl_tight_scope): Use the -g option to
12426         show exported items rather than the -e option which is
12427         ignored on all platforms except OS X where it gives an error.
12428         Reported by Assaf Gordon.
12430 2015-01-07  KO Myung-Hun  <komh@chollian.net>
12432         localcharset: improve charset detection on OS/2
12433         Use system codepage when appropriate.  Map OS/2 codepages to
12434         GNU canonical charset names if possible.
12435         * lib/config.charset: Don't output aliases if "$os" is os2*.
12436         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
12437         result for OS/2.
12438         (locale_charset) [OS2]: Use system codepage if codeset is omitted
12439         from the locale name which is neither "C" nor "POSIX".
12441 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
12443         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
12444         This reverts the last patch but one, as it shouldn't be needed now
12445         that the typo is fixed.
12446         * lib/count-leading-zeros.h (count_leading_zeros_ll):
12447         * lib/count-trailing-zeros.h:
12448         * lib/count-one-bits.h:
12449         Go back to using 64-bit intrinsics.
12451         count-leading-zeros: fix pragma typos
12452         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
12453         Fix typos in declaration of intrinsics when _MSC_VER.
12455 2015-01-06  Pádraig Brady  <P@draigBrady.com>
12457         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
12458         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
12459         intrinsics in this case.
12460         * lib/count-trailing-zeros.h: Likewise.
12461         * lib/count-one-bits.h: Likewise.
12463 2015-01-06  Daiki Ueno  <ueno@gnu.org>
12465         uniname/uniname: update to Unicode 7.0.0
12466         To accommodate new characters added since Unicode 5.1.0, this
12467         changes the internal representation of codepoint ranges.
12468         Previously, we grouped codepoint ranges by manually assigned 4-bit
12469         tag, which only allowed 16 groups.  This removes the limitation by
12470         switching to binary search on a table.  For the detail rationale
12471         and the benchmark results, see:
12472         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
12473         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
12474         to INDEX, as it no longer represents a codepoint.
12475         (range): New struct.
12476         (main): Switch to intervals list from a bit-pattern based
12477         classification.
12478         * lib/uniname/uninames.h: Regenerate.
12479         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
12480         * modules/uniname/base (configure.ac): Bump minimum version to
12481         0.9.5.
12482         * modules/uniname/uniname (configure.ac): Bump minimum version to
12483         0.9.5.
12485 2015-01-05  Eric Blake  <eblake@redhat.com>
12487         doc: update INSTALL from autoconf
12488         * doc/install.texi: Resync from autoconf.
12489         * doc/INSTALL: Reflect recent autoconf update.
12490         * doc/INSTALL.ISO: Likewise.
12491         * doc/INSTALL.UTF-8: Likewise.
12493         stdio: fix use of PRIdMAX on modern mingw
12494         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
12495         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
12496         to work with modern mingw.
12498 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
12500         pthread: detect git mingw builds with only partial pollution
12501         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
12502         pollution, as seen temporarily in Fedora 21.
12504 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
12506         lib-symbol-versions: cache script check
12507         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
12508         Cache the check for linker version scripts.
12509         From a suggestion by Christophe Curis in:
12510         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
12512 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
12514         maint: fix grammar nits in propername (trivial change)
12515         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
12516         and use an adequate verb and tense.
12518 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
12520         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
12521         * module/gendocs: Add 'doc/gendocs_template_min'.
12523         * build-aux/gendocs.sh: Change email addresses and upstream URLs
12524         from to Gnulib's.
12525         (scripturl, templateurl): Adjust accordingly.
12527 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12529         gendocs: copyright date and version fix
12530         Reported by Karl Berry in:
12531         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
12532         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
12533         Fix copyright date.
12534         * build-aux/gendocs.sh (scriptversion): Update.
12536 2015-01-01  Karl Berry  <karl@gnu.org>
12538         * doc/install.texi,
12539         * build-aux/mdate-sh,
12540         * build-aux/depcomp,
12541         * build-aux/config.guess,
12542         * build-aux/config.sub,
12543         * build-aux/ar-lib,
12544         * build-aux/compile: revert copyright updates (some from last
12545         year) in slaved files.
12547 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12549         version-etc: new year
12550         * doc/gnulib.texi:
12551         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
12552         * all files: Run 'make update-copyright'.
12554 2014-12-30  Pádraig Brady  <P@draigBrady.com>
12556         xstrtol: ensure errno is reset
12557         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
12558         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
12560         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
12562 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12564         utimens: fix dependency typo
12565         * modules/utimens (Depends-on): Remove 'assure'.
12566         This bug was introduced in the recent 'assure' patch.
12568 2014-12-22  Eric Blake  <eblake@redhat.com>
12570         docs: mention why libgen.h is bad
12571         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
12573 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12575         assure: new module
12576         This works better than 'assert' when compiling with -DNDEBUG,
12577         as it avoids some compiler diagnostics in that case.
12578         Reported by Norihiro Tanaka in:
12579         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
12580         * MODULES.html.sh (func_all_modules): Add 'assure'.
12581         * lib/assure.h, modules/assure: New files.
12582         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
12583         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
12584         Prefer 'assure' to 'assert'.
12585         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
12586         * modules/chdir-long, modules/cycle-check, modules/fchdir:
12587         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
12588         Depend on 'assure'.
12590 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
12592         stdalign: port better to HP compilers
12593         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
12594         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
12596         stdalign: work around Apple GCC 4.0 bug
12597         Reported by David Fang in:
12598         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
12599         * lib/stdalign.in.h (_Alignas):
12600         * m4/stdalign.m4 (gl_STDALIGN_H):
12601         Do not use aligned attribute with GCC 4.0 on Apple.
12603 2014-12-16  Pádraig Brady  <P@draigBrady.com>
12605         getcwd: fix test failure on OS X 10.9
12606         * m4/getcwd-path-max.m4: Avoid the replacement if it
12607         won't be effective due to the PATH_MAX limitation of lstat().
12608         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
12609         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
12610         for this case for use in tests, and also exclude this
12611         case when setting REPLACE_GETCWD.
12612         * tests/test-getcwd.c (test_long_name): Restrict the
12613         tested path length so that lstat() will not be passed
12614         a path greater than PATH_MAX.
12615         Also key a test condition on HAVE_OPENAT_SUPPORT rather
12616         than AT_FDCWD, since the latter is set unconditionally
12617         since Sep 2009 in commit 52c658e9.
12619 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
12621         parse-datetime: avoid a compiler warning with byacc (trivial)
12622         * lib/parse-datetime.y (yylex): Use the same prototype in the
12623         function definition as the declaration, to avoid a -Wstrict-prototypes
12624         warning seen when using byacc.
12626 2014-12-12  Daiki Ueno  <ueno@gnu.org>
12628         unicase/locale-language-tests: fix LOCALE_FR test
12629         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
12630         a French locale with traditional encoding.
12631         Reported by umerqayam in:
12632         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
12634 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
12636         stddef: support C11's max_align_t
12637         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
12638         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
12639         Do not undef, as that might cause max_align_t to be defined twice.
12640         Instead, change use to check for _GL_STDDEF_WINT_T too.
12641         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
12642         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
12643         Check for max_align_t.
12644         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
12645         * modules/stddef-tests (Depends-on): Add stdalign.
12646         * tests/test-stddef.c: Test max_align_t.
12648 2014-12-11  Daiki Ueno  <ueno@gnu.org>
12650         unistd: fix iOS check conditional
12651         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
12652         as 0 or 1 in <TargetConditionals.h>, and the previous check always
12653         yielded true on non-iOS environment.
12654         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
12655         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
12656         they are defined.
12658 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
12660         posixtm: avoid compiler warning in a better way
12661         * lib/posixtm.c (IF_LINT): Remove.
12662         (year, posix_time_parse):
12663         Return true (not 0) if successful.  All callers changed.
12664         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
12666 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
12668         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
12669         started with '/' on EMX.
12671 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
12673         freopen: workaround freopen() on OS/2 kLIBC
12674         * lib/freopen.c (rpl_freopen): Workaround.
12675         * m4/freopen.m4: Add os2* case.
12677         get_shared_library_fullname: port to EMX
12678         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
12679         on EMX, respectively.
12680         (_DLL_InitTerm): New on EMX.
12681         (get_shared_library_fullname): Implement on EMX.
12683         find_executable: port to EMX
12684         * lib/progreloc.c (find_executable): Implement on EMX.
12686         sched: check struct sched_param in spawn.h as well
12687         * lib/sched.in.h: Include spawn.h on kLIBC.
12688         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
12690 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
12692         bootstrap: Allow perl modules in $buildreq
12693         * build-aux/bootstrap: Add case for perl modules.
12695 2014-12-08  Pádraig Brady  <P@draigBrady.com>
12697         apply _GL_ATTRIBUTE_PURE to some inline functions
12698         clang 3.4.2 flagged these inline functions as pure
12699         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
12700         * lib/sig-handler.h (get_handler): Likewise.
12701         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
12702         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
12704 2014-12-06  Pádraig Brady  <P@draigBrady.com>
12706         vasnprintf: fix potential use after free
12707         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
12708         flagged by clang-analyzer 3.4.2.
12710 2014-12-05  Pádraig Brady  <P@draigBrady.com>
12712         filevercmp, posixtm: avoid compiler warnings with -O3
12713         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
12714         * lib/posixtm.c: (IF_LINT): Define.
12715         (posix_time_parse): Use it to void a "may be used uninitialized"
12716         warning, seen only with -O3.
12718 2014-12-05  Bruno Haible  <bruno@clisp.org>
12720         Fix LDBL80_WORDS macro on big endian platforms.
12721         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
12722         LDBL80_WORDS macro.
12723         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
12724         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12725         * tests/test-isfinite.c (test_isfinitel): Likewise.
12726         * tests/test-isinf.c (test_isinfl): Likewise.
12727         * tests/test-isnan.c (test_long_double): Likewise.
12728         * tests/test-isnanl.h (main): Likewise.
12729         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
12730         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
12731         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
12732         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
12733         Reported by Pádraig Brady.
12735 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
12737         git-version-gen: do not print new line characters
12738         * build-aux/git-version-gen: Use printf instead of echo and tr.
12740         gnulib-tool: recognize x:* as an absolute path
12741         * gnulib-tool (func_gnulib_dir): Add ?:* case.
12742         (func_relconcat): Likewise.
12744 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
12746         argp: avoid extraneous translation and mem leak with empty pre doc
12747         * lib/argp-help.c (argp_doc): Never translate the empty string,
12748         when "\v" is the first or last character of the string, as that
12749         has a reserved meaning to return the header info from a po file.
12750         This also fixes a small memory leak in the !post case.
12751         The issue can be seen with this command for example:
12752         LC_MESSAGES=en_US grub2-mknetdir --help
12754 2014-11-27  Daiki Ueno  <ueno@gnu.org>
12756         uniname/uniname-tests: skip if system's libunistring is used
12757         * modules/uniname/uniname-tests (Makefile.am): Skip test if
12758         uniname/uniname module is not compiled.
12760 2014-11-27  Pádraig Brady  <P@draigBrady.com>
12762         printf: fix configure check on big endian systems
12763         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
12765 2014-11-22  Daiki Ueno  <ueno@gnu.org>
12767         pipe-filter-gi, pipe-filter-ii: port to AIX
12768         On AIX 7.1, 'select' is defined as static and cannot be referred
12769         to from inline function.
12770         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
12771         the definition...
12772         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
12773         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
12775 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
12777         gitlog-to-changelog: add --until
12778         * build-aux/gitlog-to-changelog: Support new --until option.
12779         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
12781 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
12783         extern-inline: update commentary about GCC bugs
12784         * m4/extern-inline.m4: Add another GCC bug number to comments.
12786 2014-11-13  Daiki Ueno  <ueno@gnu.org>
12788         gen-uni-tables: untabify
12789         * lib/gen-uni-tables.c: Untabify.
12791 2014-11-13  Daiki Ueno  <ueno@gnu.org>
12793         gen-uni-tables: check out-of-range values added to 3-level tables
12794         * lib/gen-uni-tables.c (output_category, output_bidi_category)
12795         (output_joining_type, output_ident_category): Check out-of-range
12796         values added to 3-level tables.
12798 2014-11-13  Daiki Ueno  <ueno@gnu.org>
12800         gen-uni-tables: utilize 'assert'
12801         * lib/gen-uni-tables.c: Include <assert.h>.
12802         (output_category, output_combclass, output_decimal_digit_test)
12803         (output_decimal_digit, output_digit_test, output_digit)
12804         (output_numeric, get_mirror_value, fill_properties)
12805         (fill_property30, is_property_alphabetic)
12806         (is_property_default_ignorable_code_point)
12807         (is_property_uppercase, is_property_lowercase)
12808         (is_property_cased, is_property_case_ignorable)
12809         (is_property_changes_when_lowercased, is_property_iso_control)
12810         (is_property_math, fill_arabicshaping, output_joining_group)
12811         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
12812         (output_wbp, fill_org_gbp, get_decomposition)
12813         (output_decomposition, fill_composition_exclusions)
12814         (debug_output_composition_tables, output_composition_tables)
12815         (redistribute_casefolding_rules, output_casing_rules): Use
12816         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
12817         reporting.
12819 2014-11-13  Daiki Ueno  <ueno@gnu.org>
12821         gen-uni-tables: cosmetic improvements
12822         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
12823         variables specification.
12824         (is_outdigit): Remove unused function.
12826 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
12828         fcntl-h-tests: port to PA-RISC GNU/Linux
12829         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
12831 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
12833         fts: port to C89
12834         Problem reported for MSVC 16 by Gisle Vanem in:
12835         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
12836         * lib/fts.c (fts_build): Avoid declaration before statement.
12838 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
12840         unistd: port to iOS
12841         Problem reported by André Klitzing in:
12842         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
12843         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
12845 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
12847         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
12848         Problem reported by Alan Modra in:
12849         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
12850         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
12851         Always cast the function arg, reverting this part of the previous
12852         change.
12854 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
12856         obstack: avoid potentially-nonportable function casts
12857         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
12858         Remove, replacing with ...
12859         (call_chunkfun, call_freefun): New static functions.
12860         All uses changed.  Avoid potentially-nonportable casts.
12861         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
12862         (_obstack_begin_worker): Omit last two args, since they
12863         rely on potentially-nonportable casts.  All callers changed.
12864         * lib/obstack.h (_OBSTACK_CAST): New macro.
12865         Use it everywhere the old API used a potentially-nonportable cast.
12866         The new API doesn't cast.
12867         (struct obstack): Use unions rather than requiring
12868         potentially-nonportable casts.
12869         (obstack_chunkfun, obstack_freefun): Return void.
12871 2014-11-03  Alan Modra  <amodra@gmail.com>
12873         obstack: fix macro return values
12874         * lib/obstack.h (obstack_next_free): Return void *.
12875         (obstack_1grow_fast, obstack_blank_fast): Return void.
12876         For __GNUC__ macros:
12877         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
12878         For !__GNUC__ macros:
12879         (obstack_make_room, obstack_grow, obstack_grow0)
12880         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
12882 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12884         obstack: do not assume system-supplied obstack is size_t safe
12885         * m4/obstack.m4: New file.
12886         * modules/obstack (Files): Add it.
12888         obstack: port to platforms that #define __alignof__
12889         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
12890         not if !_LIBC.  We don't know of any platforms that #define
12891         __alignof__, but it might be useful in tests.  Conversely,
12892         glibc assumes GCC.
12894 2014-11-03  Pádraig Brady  <P@draigBrady.com>
12896         linkat: don't unconditionally replace on GNU/Linux
12897         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
12898         was redundant for a few reasons.  It was present to support compiling
12899         on new systems but running on the old narrow window of Linux 2.6.1[67].
12900         It setup and cleaned up test files which weren't actually used.
12901         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
12902         implicit in the following check.
12904 2014-11-03  Pádraig Brady  <P@draigBrady.com>
12906         linkat: wrap to handle symlinks on OS X 10.10
12907         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
12908         but not usable because it doesn't support creating hardlinks
12909         to symlinks.  Therefore add a generic test for this capability
12910         and fallback to our emulation if linkat() fails with ENOTSUP.
12912 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12914         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
12915         * doc/posix-functions/open.texi (open):
12916         * doc/posix-functions/openat.texi (openat):
12917         Document that these functions do not set errno to ELOOP when
12918         a symlink is opened with O_NOFOLLOW.
12920 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
12922         obstack: add NEWS entry for recent incompatible changes
12923         * NEWS: Describe recent changes.
12925 2014-10-30  Pádraig Brady  <P@draigBrady.com>
12927         mountlist: don't use libmount to decide on dummy/remote
12928         * lib/mountlist.c (read_file_system_list): Don't use the libmount
12929         routines to determine whether a file system is dummy or remote,
12930         as they're not currently compatible.  For example the remoteness
12931         is determined on file system type (for which the list seems incomplete),
12932         rather than simply checking for a ':' in the device name.
12933         Also libmount currently determines that 'tmpfs' is a dummy file system
12934         even though it has associated storage.
12936 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
12938         obstack: prefer __alignof__ to alignof
12939         This is for portability to pre-4.7 GCC when compiling glibc.
12940         See Joseph S. Myers in:
12941         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
12942         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
12943         New macro, defined by including and using <alignof.h>.
12944         (MAX): New macro.
12945         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
12946         Do not use enums as they are not portable to some broken compilers.
12947         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
12949         obstack: prefer alignof to calculating alignments by hand
12950         * lib/obstack.c: Include <stdalign.h>.
12951         (struct fooalign): Remove.
12952         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
12953         * modules/obstack (Depends-on): Add stdalign.
12955 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
12957         obstack: use size_t alignments and check for overflow
12958         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
12959         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
12960         * lib/obstack.h (struct obstack.alignment_mask):
12961         Use _OBSTACK_SIZE_T, not int, for alignments.
12962         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
12963         overflows, e.g., when adding the alignment.
12965 2014-10-29  Alan Modra  <amodra@gmail.com>
12967         obstack: 64-bit obstack support, part 3
12968         This finally enables full 64-bit obstack support.  The glibc
12969         shared library specific code is removed from obstack.c too, and
12970         the error handling code conditionally compiled under control of
12971         another macro, _OBSTACK_NO_ERROR_HANDLER.
12972         * lib/obstack.h: Include string.h earlier.
12973         (_OBSTACK_INTERFACE_VERSION): Define.
12974         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
12975         * lib/obstack.c: Don't include shlib-compat.h.
12976         (OBSTACK_INTERFACE_VERSION): Delete.
12977         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
12978         glibc code is compatible with version 2.  Don't include stdio.h for
12979         __GNU_LIBRARY.
12980         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
12981         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
12982         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
12983         glibc shared library specific source.
12985         obstack: 64-bit obstack support, part 2
12986         This gets us 4G obstack support, without changing ABI
12987         compatibility, apart from possibly introducing some
12988         signed/unsigned comparison warnings in code that uses obstack.h.
12989         a) Replace "int" size parameters, return values, and macro local vars
12990            with _OBSTACK_SIZE_T, an "unsigned int" for now.
12991         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
12992         c) Make all obstack macros checking available room use obstack_room.
12993            "next_free + desired > chunk_limit" may wrap the lhs for chunks
12994            allocated near the top of memory.
12995         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
12996         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
12997         in place of "int" size parameters, return values and local vars.
12998         (_CHUNK_SIZE_T): Define.
12999         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
13000         union use an _OBSTACK_SIZE_T integer type.
13001         For __GNUC__ versions of the following macros...
13002         (obstack_room): Rename local var.
13003         (obstack_make_room): Use obstack_room.
13004         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
13005         obstack_int_grow, obstack_blank): Likewise.
13006         (obstack_finish): Use unsigned comparison when comparing aligned
13007         next_free against chunk_limit.
13008         (obstack_free): Cast OBJ to remove possible const qualifier.
13009         For !__GNUC__ versions of the following macros...
13010         (obstack_make_room): Use obstack_room.
13011         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
13012         obstack_int_grow, obstack_blank): Likewise.
13013         (obstack_finish): Use unsigned comparision when comparing aligned
13014         next_free against chunk_limit.
13015         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
13016         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
13017         _OBSTACK_SIZE_T.
13018         (_obstack_begin, _obstack_begin_1): Likewise.
13019         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
13020         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
13022         obstack: 64-bit obstack support, part 1
13023         a) Correct calls to alloc function, to use a size_t arg.  "long" is
13024            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
13025            and "size_t" 64 bits.
13026         b) Consolidate _obstack_begin and _obstack_begin1 code.
13027         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
13028         use "size_t" rather than "long".
13029         (_obstack_begin, _obstack_begin1): Likewise.
13030         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
13031         obstack_chunkfun): Update alloc function casts.
13032         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
13033         (chunkfun_type, freefun_type): New typdefs.
13034         (_obstack_begin_worker): Split out from ..
13035         (_obstack_begin, _obstack_begin_1): ..here.
13037         obstack: tidy part 2
13038         a) Don't be concerned about "not polluting the namespace with stddef.h
13039            symbols" in obstack.h, since gnulib string.h includes stddef.h
13040            anyway, and it seems unlikely that anyone would care.
13041         b) Don't roll our own slow memcpy in _obstack_newchunk.
13042         c) Rename obstack_free to _obstack_free.  This makes the naming
13043            consistent with other obstack functions and obviates the need for
13044            __obstack_free.  Ancient obstack.c defined both obstack_free and
13045            _obstack_free.  We continue to do that for _LIBC via an alias.
13046         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
13047            is clever, but nowadays gcc warns on undefined macros.  You'll get
13048            an undefined macro warning if simulating an old gcc with -U__GNUC__
13049            -U__GNUC_MINOR__ -D__GNUC__=1.
13050         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
13051         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
13052         (__obstack_free): Delete, update refs.
13053         (_obstack_free): Rename from obstack_free.
13054         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
13055         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
13056         * lib/obstack.c: Don't include stddef.h.
13057         (COPYING_UNIT): Delete.
13058         (_obstack_begin): Formatting fix.
13059         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
13060         (_obstack_free): Rename from __obstack_free, update alias.  Move
13061         undef of obstack_free to where it is needed.
13063         obstack: tidy part 1
13064         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
13065            to me, and result in overlong lines after later patches.
13066         b) Move error handling code, to avoid a forward declaration and to
13067            simplify later patches in this series.
13068         * lib/obstack.h (struct obstack <temp>): Rename fields of union
13069         and update all uses.
13070         * lib/obstack.c: Include stdlib.h earlier.
13071         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
13072         in file.
13073         (print_and_abort): Remove now redundant forward declaration.
13075 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13077         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
13078         Without this change, in bleeding-edge fileutils Autoconf complains
13079         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
13080         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
13081         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
13082         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
13084 2014-10-24  Daiki Ueno  <ueno@gnu.org>
13086         iconv: avoid false detection of non-working iconv
13087         The INBUF arguments of iconv can be either 'const char **'
13088         or 'char **'.  If CC is g++, the difference causes a compile error
13089         and thus leads to a false detection of non-working iconv.
13090         Reported by Eli Zaretskii and Werner LEMBERG in:
13091         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
13092         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
13093         iconv.  Bump serial number.
13095 2014-10-23  Pádraig Brady  <P@draigBrady.com>
13097         bootstrap: print more diagnostics for missing programs
13098         * build-aux/bootstrap: only suppress stderr when checking for
13099         alternative program names.  This supports programs issuing non
13100         standard error messages.
13102 2014-10-23  Pádraig Brady  <P@draigBrady.com>
13104         bootstrap: only update the gnulib submodule
13105         * build-aux/bootstrap: Restrict the "submodule update" command
13106         to the gnulib path.
13108 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13110         symlinkat: port to AIX 7.1
13111         * doc/posix-functions/symlinkat.texi (symlinkat):
13112         Mention AIX porting problem.
13113         * lib/symlinkat.c: Always include errno.h.
13114         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
13115         * lib/unistd.in.h (symlinkat): Add replacement machinery.
13116         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
13117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
13118         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
13119         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
13120         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
13122         readlinkat: port to AIX 7.1
13123         * doc/posix-functions/readlink.texi (readlink):
13124         * doc/posix-functions/readlinkat.texi (readlinkat):
13125         Mention AIX porting problem.
13126         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
13127         New function.
13128         * lib/unistd.in.h (readlinkat): Add replacement machinery.
13129         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
13130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
13131         * modules/readlinkat (configure.ac): Also compile replacement
13132         if REPLACE_READLINKAT.
13133         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
13135 2014-10-12  Karl Berry  <karl@gnu.org>
13137         * doc/posix-functions/dirname.texi: remove spurious {.
13139 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
13141         basename, dirname: Improve documentation.
13142         * doc/posix-functions/basename.texi: Mention dirname module and
13143         base_name() function.
13144         * doc/posix-functions/dirname.texi: Mention dir_name() and
13145         mdir_name() functions.
13146         Suggested by Werner LEMBERG <wl@gnu.org>.
13148 2014-09-24  Jim Meyering  <meyering@fb.com>
13150         exclude: declare exclude_patopts static
13151         * lib/exclude.c (exclude_patopts): Declare static,
13152         to avoid triggering a -Wmissing-prototypes warning.
13153         The alternative (declaring it in the .h file) would
13154         require publicizing the private "struct patopts".
13156 2014-09-21  Werner Lemberg  <wl@gnu.org>
13158         dirname: support compilation with C++
13159         * lib/dirname.h: Add necessary C linkage declarations.
13161 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
13163         qsort_r: include <config.h>
13164         Problem reported by Tom G. Christensen in:
13165         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
13166         * lib/qsort.c [!_LIBC]: Include <config.h> first.
13168 2014-09-16  Dylan Cali  <calid1984@gmail.com>
13170         avltree-list: avoid compiler warnings (trivial)
13171         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
13172         -Werror=suggest-attribute=pure.
13173         * lib/gl_array_list.c: Likewise.
13174         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
13175         declaration to avoid -Werror=missing-prototypes.  This is not added
13176         to a header as only exported for tests.  Add (void) to the
13177         check_invariants() call to indicate we're discarding the result
13178         in this context which avoids -Werror=unused-value.  Note we don't
13179         use ignore_value here to avoid a dependency as we know we'll not
13180         be adding __attribute__((warn_unused_result)) to check_invariants().
13181         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
13183 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
13185         qsort_r: new module, for GNU-style qsort_r
13186         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
13188 2014-09-15  Werner LEMBERG  <wl@gnu.org>
13190         strerror_r-posix: support compilation with C++
13191         * lib/strerror_r.c: Add necessary C linkage declarations.
13193 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
13195         fcntl-h: fix compilation with Intel C++ compiler (trivial)
13196         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
13198 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
13200         mountlist: use /proc/self/mountinfo when available
13201         Use libmount to propagate device IDs provided by Linux in
13202         /proc/self/mountinfo.  This will give more accurate output when
13203         using df in chroot'ed environments as the device IDs are not
13204         determined by stat() which may be inaccurate within the chroot.
13205         * lib/mountlist.c (read_file_system_list): Use the libmount routines
13206         from util-linux to parse "/proc/self/mountinfo" or fall back to
13207         standard getmntent() processing.
13208         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
13209         getmntent() is used, as is the case on GNU/Linux.
13211 2014-09-07  Eric Wong  <normalperson@yhbt.net>
13213         users.txt: add cmogstored
13214         cmogstored has used gnulib since the beginning in 2012 to support
13215         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
13217 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
13219         Trivial change.
13220         * gnulib-tool: Use same options as build-aux/bootstrap to download
13221         PO files.
13223 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
13225         Trivial change.
13226         * gnulib-tool: Fallback to wget when rsync of PO files fails.
13228 2014-09-04  Eric Blake  <eblake@redhat.com>
13230         maintainer-makefile: add syntax check for useless ';;'
13231         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
13233 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
13235         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
13236         Problem reported by Assaf Gordon in:
13237         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
13238         Apparently Ubuntu is doing some fancy link-time optimization
13239         that doesn't work with -lpthread but does work with -pthread.
13240         Work around the bug by preferring -pthread to -lpthread.
13241         * m4/pthread.m4 (gl_PTHREAD_CHECK):
13242         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
13243         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13244         Treat -pthread like -lpthread.
13246 2014-09-04  Eric Blake  <eblake@redhat.com>
13248         error: drop spurious semicolon
13249         * lib/error.c (__error_at_line): Fix ';;'.
13251 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13253         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
13254         * m4/gnulib-common.m4 (AC_C_RESTRICT):
13255         Override AC_C_RESTRICT unconditionally.
13256         Update from autoconf, incorporating:
13257         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
13258         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
13260 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13262         manywarnings: add GCC 4.9 warnings
13263         Also, make it easier to maintain this in the future.
13264         * build-aux/gcc-warning.spec: Add -Wabi-tag,
13265         -Wconditionally-supported, -Wdelete-incomplete,
13266         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
13267         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
13268         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
13269         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
13270         only for older GCC versions that need them.  Handle
13271         -Wnormalized=nfc specially, so that the 'comm' command used
13272         for maintenance doesn't get confused.
13274 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13276         vasnprintf: fix bugs in width computation
13277         * lib/vasnprintf.c (VASNPRINTF):
13278         Rework previous change, which introduced a bug,
13279         to avoid the warning in a different way.
13280         Avoid undefined behavior if the width arg is less than -INT_MAX.
13281         Avoid unnecessary use of HAS_WIDTH local.
13283 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
13285         vasnprintf: Avoid signed/unsigned comparison warning.
13286         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
13287         compare end addr of generated string w/ maximum end addr.
13289 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
13291         parse-datetime: Avoid pointer difference.
13292         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
13293         instead of calculating difference of pointers.  This removes an
13294         annoying warning, devoid of any use.
13296 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
13298         qsort_r: new module, for GNU-style qsort_r
13299         This works even on FreeBSD, which has an incompatible qsort_r API.
13300         * MODULES.html.sh: Add it.
13301         * doc/glibc-functions/qsort_r.texi: It's now supported.
13302         * lib/qsort.c: New file, taken from glibc with minor changes
13303         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
13304         removed.
13305         * lib/qsort_r.c: New file, compiled only on FreeBSD.
13306         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
13307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
13308         * modules/qsort_r, modules/qsort_r-tests: New files.
13309         * modules/stdlib (Makefile): Set up its defaults.
13310         * tests/test-qsort_r.c: New file.
13312 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
13314         vla: new module
13315         GNU RCS can use this, mostly for documentation I expect.  See:
13316         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
13317         * MODULES.html.sh: Add vla.
13318         * lib/vla.h, modules/vla: New files.
13320 2014-08-07  Daiki Ueno  <ueno@gnu.org>
13322         localename: make gl_locale_name_thread really thread-safe on Windows
13323         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
13324         "glthread/lock.h".
13325         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
13326         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
13328 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
13330         getpass: don't assume struct termios
13331         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
13332         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
13333         * lib/getpass.c (getpass): Port to systems lacking struct termios.
13335         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
13336         Problem reported by Jonas 'Sortie' Termansen in:
13337         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
13338         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
13339         Implement via sysconf for platforms that lack getdtablesize.
13341         vararrays: modernize AC_C_VARARRAYS for C11
13342         This backports a change I recently made to Autoconf.
13343         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
13344         VLAs are not supported, as this is what C11 does.  The old macro
13345         HAVE_C_VARARRAYS is still defined if they are supported, but is
13346         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
13348 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
13350         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
13351         * build-aux/install-reloc (func_create_wrapper): Also wrap
13352         strerror-override, stat, stat.
13354 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
13356         sys_select: fix FD_ZERO problem on Solaris 10
13357         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
13358         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
13359         to expand to an expression that invoked memset without necessarily
13360         including <string.h>.  The problem was that the first include
13361         defined _SYS_TIME_H, causing the second include to short-circuit.
13362         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
13363         Also, fix what appears to be a cut-and-paste typo, by replacing
13364         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
13365         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
13367         accept: document Solaris 10 type glitch
13368         * doc/posix-functions/accept.texi (accept): Mention that
13369         Solaris 10 'accept' takes void * last arg, not socklen_t *.
13371 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
13373         extern-inline: port to FreeBSD, DragonFly
13374         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
13375         is present if either __DragonFly__ or __FreeBSD__ is defined.
13376         FreeBSD problem reported by Andrey Borzenkov in:
13377         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
13378         Also, worry about __APPLE__ only if __MACH__ is also defined,
13379         as this is more consistent with the rest of gnulib.
13380         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
13381         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
13383 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
13385         regex: Make #if/#ifdef usage consistent for DEBUG
13386         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
13387         of the inconsistent usage of #if and #ifdef as that works with
13388         both Glibc and Gnulib's style.
13390 2014-07-31  Eric Blake  <eblake@redhat.com>
13392         openat-die: use _Noreturn markup
13393         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
13394         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
13395         _Noreturn.
13397 2014-07-30  Eric Blake  <eblake@redhat.com>
13399         test-open: port to cygwin, which lacks Fortify
13400         * tests/test-open.h (ALWAYS_INLINE): New macro.
13401         (__always_inline): Don't abuse internal symbol on non-glibc.
13403 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
13405         localename: Enforce declarations before statements.
13406         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
13407         first statement.
13409 2014-07-18  Jim Meyering  <meyering@fb.com>
13411         test-userspec: don't look up numeric user names
13412         * tests/test-userspec.c: I found a system for which getpwnam("0")
13413         returned a pointer to a non-root user's entry, and that made the
13414         test fail.
13415         (T): Prefix each numeric input with "+", to inhibit lookup.
13417 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
13419         localcharset, localename: MS-Windows support for non-default locales
13420         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
13421         falling back on the default system codepage, try extracting
13422         the codepage from what 'setlocale' returns.  This allows to
13423         take into account changes of the codeset due to non-default
13424         locale set by a previous call to 'setlocale'.
13425         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
13426         Define if not already defined.
13427         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
13428         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
13429         current locale by calling 'setlocale', then converting the
13430         locale name into LCID by calling 'get_lcid'.  This allows to
13431         take into account changes in the current locale from the
13432         default one, in contrast to GetThreadLocale.
13434 2014-07-14  Daiki Ueno  <ueno@gnu.org>
13436         announce-gen: avoid failure when Digest::SHA is installed
13437         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
13438         Digest::SHA1->new in print_checksums fails.
13439         * build-aux/announce-gen (digest_classes): New associative array
13440         for available message digest implementations.
13441         (print_locations): Use it.
13443 2014-07-13  Pádraig Brady  <P@draigBrady.com>
13445         gettext: revert "update macros to version 0.19"
13446         This reverts commit 9b9370ca, as it currently requires that
13447         developers of any project that explicitly uses the gettext module
13448         or implicitly uses it through the utimens-tests or
13449         futimens-tests modules, use gettext >= 0.19.
13450         However there are some stability and availablity issues with
13451         that version at present.  We can reinstate this soon, when stability
13452         is addressed and packages are more readily available.
13454 2014-07-12  Jim Meyering  <meyering@fb.com>
13456         regex: don't deref NULL upon heap allocation failure
13457         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
13458         failure in one more place.
13459         To trigger the segfault, configure grep -with-included-regex,
13460         build it, and run these commands:
13461         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
13462         I discovered this while replying to a private report from
13463         Jens Schleusener about excessive memory consumption by grep
13464         when using a regular expression like the one above.
13466 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
13468         regex: fix memory leak in compiler
13469         Fix by Andreas Schwab in:
13470         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
13471         * lib/regcomp.c (parse_reg_exp): Deallocate partially
13472         constructed tree before returning error.
13474 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
13476         announce-gen: avoid perl warnings
13477         * build-aux/announce-gen: add two minor checks to avoid
13478         "use of uninitialized value" warnings when command-line parameters are
13479         missing.
13481 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
13483         localename: avoid -Wsuggest-attribute={const,pure} warnings
13484         * lib/localename.c (string_has): Tag internal function as pure.
13485         * lib/localename.h (gl_locale_name_default): Tag extern declaration
13486         as const when appropriate.
13488 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
13490         nl_langinfo: Fix last change.
13491         * lib/nl_langinfo.c (includes): Drop redundant include.
13493 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
13495         error: Fix -Wundef warnings in glibc
13496         * lib/error.c [_LIBC]: Define default macros for
13497         glibc.
13498         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
13499         Check _LIBC before STRERROR_R_CHAR_P.
13501         error: Sync from glibc master
13502         * lib/error.c [_LIBC]: Remove INTUSE usage.
13503         (error_tail): Remove unused macro ALLOCA_LIMIT.
13504         Fix potential buffer overflow.  Fix potential NULL dereference
13505         in strcmp.
13507 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
13509         nl_langinfo: fix build under mingw
13510         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
13512 2014-07-09  Andrew D Warshall  <warshall@99main.com>
13514         mountlist: do not classify a bind-mounted dir entry as "dummy"
13515         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
13516         1-argument getmntent() (instead of assuming absence).
13518 2014-07-08  Eric Blake  <eblake@redhat.com>
13520         maint.mk: less syntax-check noise when SIGPIPE is ignored
13521         * top/maint.mk (_sc_header_without_use)
13522         (sc_require_config_h_first): Parse full list.
13524 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
13525             Paul Eggert  <eggert@cs.ucla.edu>
13527         nl_langinfo: CODESET on MS-Windows and more items from localeconv
13528         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
13529         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
13530         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
13531         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
13532         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
13533         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
13534         Include <stdio.h> if Microsoft Windows.
13535         Include <time.h> if !REPLACE_NL_LANGINFO.
13536         (ctype_codeset): New function, taken from rpl_nl_langinfo,
13537         and with improvements for Microsoft Windows.
13538         (rpl_nl_langinfo): Use it.
13539         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
13540         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
13541         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
13542         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
13543         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
13544         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
13545         corresponding values returned by 'localeconv'.  Compute the values
13546         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
13547         'strftime' with a suitable struct tm value.
13549 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13551         Bruno Haible has stepped down as maintainer.
13552         See Karl Berry in:
13553         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
13554         Daiki Ueno has volunteered to maintain libunistring; see:
13555         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
13556         * modules/gen-uni-tables, modules/libunistring:
13557         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
13558         * modules/unicase/base, modules/unicase/cased:
13559         * modules/unicase/empty-prefix-context:
13560         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
13561         * modules/unicase/locale-language, modules/unicase/special-casing:
13562         * modules/unicase/tocasefold, modules/unicase/tolower:
13563         * modules/unicase/totitle, modules/unicase/toupper:
13564         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
13565         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
13566         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
13567         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
13568         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
13569         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
13570         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
13571         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
13572         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
13573         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
13574         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
13575         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
13576         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
13577         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
13578         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
13579         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
13580         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
13581         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
13582         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
13583         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
13584         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
13585         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
13586         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
13587         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
13588         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
13589         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
13590         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
13591         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
13592         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
13593         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
13594         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
13595         * modules/unicase/ulc-casexfrm, modules/unicodeio:
13596         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
13597         * modules/uniconv/u16-conv-to-enc:
13598         * modules/uniconv/u16-strconv-from-enc:
13599         * modules/uniconv/u16-strconv-from-locale:
13600         * modules/uniconv/u16-strconv-to-enc:
13601         * modules/uniconv/u16-strconv-to-locale:
13602         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
13603         * modules/uniconv/u32-strconv-from-enc:
13604         * modules/uniconv/u32-strconv-from-locale:
13605         * modules/uniconv/u32-strconv-to-enc:
13606         * modules/uniconv/u32-strconv-to-locale:
13607         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
13608         * modules/uniconv/u8-strconv-from-enc:
13609         * modules/uniconv/u8-strconv-from-locale:
13610         * modules/uniconv/u8-strconv-to-enc:
13611         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
13612         * modules/unictype/bidicategory-all:
13613         * modules/unictype/bidicategory-byname:
13614         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
13615         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
13616         * modules/unictype/bidiclass-byname:
13617         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
13618         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
13619         * modules/unictype/block-all, modules/unictype/block-list:
13620         * modules/unictype/block-of, modules/unictype/block-test:
13621         * modules/unictype/category-C, modules/unictype/category-Cc:
13622         * modules/unictype/category-Cf, modules/unictype/category-Cn:
13623         * modules/unictype/category-Co, modules/unictype/category-Cs:
13624         * modules/unictype/category-L, modules/unictype/category-LC:
13625         * modules/unictype/category-Ll, modules/unictype/category-Lm:
13626         * modules/unictype/category-Lo, modules/unictype/category-Lt:
13627         * modules/unictype/category-Lu, modules/unictype/category-M:
13628         * modules/unictype/category-Mc, modules/unictype/category-Me:
13629         * modules/unictype/category-Mn, modules/unictype/category-N:
13630         * modules/unictype/category-Nd, modules/unictype/category-Nl:
13631         * modules/unictype/category-No, modules/unictype/category-P:
13632         * modules/unictype/category-Pc, modules/unictype/category-Pd:
13633         * modules/unictype/category-Pe, modules/unictype/category-Pf:
13634         * modules/unictype/category-Pi, modules/unictype/category-Po:
13635         * modules/unictype/category-Ps, modules/unictype/category-S:
13636         * modules/unictype/category-Sc, modules/unictype/category-Sk:
13637         * modules/unictype/category-Sm, modules/unictype/category-So:
13638         * modules/unictype/category-Z, modules/unictype/category-Zl:
13639         * modules/unictype/category-Zp, modules/unictype/category-Zs:
13640         * modules/unictype/category-all, modules/unictype/category-and:
13641         * modules/unictype/category-and-not, modules/unictype/category-byname:
13642         * modules/unictype/category-longname, modules/unictype/category-name:
13643         * modules/unictype/category-none, modules/unictype/category-of:
13644         * modules/unictype/category-or, modules/unictype/category-test:
13645         * modules/unictype/category-test-withtable:
13646         * modules/unictype/combining-class:
13647         * modules/unictype/combining-class-all:
13648         * modules/unictype/combining-class-byname:
13649         * modules/unictype/combining-class-longname:
13650         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
13651         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
13652         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
13653         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
13654         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
13655         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
13656         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
13657         * modules/unictype/digit, modules/unictype/joininggroup-all:
13658         * modules/unictype/joininggroup-byname:
13659         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
13660         * modules/unictype/joiningtype-all:
13661         * modules/unictype/joiningtype-byname:
13662         * modules/unictype/joiningtype-longname:
13663         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
13664         * modules/unictype/mirror, modules/unictype/numeric:
13665         * modules/unictype/property-all, modules/unictype/property-alphabetic:
13666         * modules/unictype/property-ascii-hex-digit:
13667         * modules/unictype/property-bidi-arabic-digit:
13668         * modules/unictype/property-bidi-arabic-right-to-left:
13669         * modules/unictype/property-bidi-block-separator:
13670         * modules/unictype/property-bidi-boundary-neutral:
13671         * modules/unictype/property-bidi-common-separator:
13672         * modules/unictype/property-bidi-control:
13673         * modules/unictype/property-bidi-embedding-or-override:
13674         * modules/unictype/property-bidi-eur-num-separator:
13675         * modules/unictype/property-bidi-eur-num-terminator:
13676         * modules/unictype/property-bidi-european-digit:
13677         * modules/unictype/property-bidi-hebrew-right-to-left:
13678         * modules/unictype/property-bidi-left-to-right:
13679         * modules/unictype/property-bidi-non-spacing-mark:
13680         * modules/unictype/property-bidi-other-neutral:
13681         * modules/unictype/property-bidi-pdf:
13682         * modules/unictype/property-bidi-segment-separator:
13683         * modules/unictype/property-bidi-whitespace:
13684         * modules/unictype/property-byname:
13685         * modules/unictype/property-case-ignorable:
13686         * modules/unictype/property-cased:
13687         * modules/unictype/property-changes-when-casefolded:
13688         * modules/unictype/property-changes-when-casemapped:
13689         * modules/unictype/property-changes-when-lowercased:
13690         * modules/unictype/property-changes-when-titlecased:
13691         * modules/unictype/property-changes-when-uppercased:
13692         * modules/unictype/property-combining:
13693         * modules/unictype/property-composite:
13694         * modules/unictype/property-currency-symbol:
13695         * modules/unictype/property-dash:
13696         * modules/unictype/property-decimal-digit:
13697         * modules/unictype/property-default-ignorable-code-point:
13698         * modules/unictype/property-deprecated:
13699         * modules/unictype/property-diacritic:
13700         * modules/unictype/property-extender:
13701         * modules/unictype/property-format-control:
13702         * modules/unictype/property-grapheme-base:
13703         * modules/unictype/property-grapheme-extend:
13704         * modules/unictype/property-grapheme-link:
13705         * modules/unictype/property-hex-digit:
13706         * modules/unictype/property-hyphen:
13707         * modules/unictype/property-id-continue:
13708         * modules/unictype/property-id-start:
13709         * modules/unictype/property-ideographic:
13710         * modules/unictype/property-ids-binary-operator:
13711         * modules/unictype/property-ids-trinary-operator:
13712         * modules/unictype/property-ignorable-control:
13713         * modules/unictype/property-iso-control:
13714         * modules/unictype/property-join-control:
13715         * modules/unictype/property-left-of-pair:
13716         * modules/unictype/property-line-separator:
13717         * modules/unictype/property-logical-order-exception:
13718         * modules/unictype/property-lowercase, modules/unictype/property-math:
13719         * modules/unictype/property-non-break:
13720         * modules/unictype/property-not-a-character:
13721         * modules/unictype/property-numeric:
13722         * modules/unictype/property-other-alphabetic:
13723         * modules/unictype/property-other-default-ignorable-code-point:
13724         * modules/unictype/property-other-grapheme-extend:
13725         * modules/unictype/property-other-id-continue:
13726         * modules/unictype/property-other-id-start:
13727         * modules/unictype/property-other-lowercase:
13728         * modules/unictype/property-other-math:
13729         * modules/unictype/property-other-uppercase:
13730         * modules/unictype/property-paired-punctuation:
13731         * modules/unictype/property-paragraph-separator:
13732         * modules/unictype/property-pattern-syntax:
13733         * modules/unictype/property-pattern-white-space:
13734         * modules/unictype/property-private-use:
13735         * modules/unictype/property-punctuation:
13736         * modules/unictype/property-quotation-mark:
13737         * modules/unictype/property-radical:
13738         * modules/unictype/property-sentence-terminal:
13739         * modules/unictype/property-soft-dotted:
13740         * modules/unictype/property-space:
13741         * modules/unictype/property-terminal-punctuation:
13742         * modules/unictype/property-test, modules/unictype/property-titlecase:
13743         * modules/unictype/property-unassigned-code-value:
13744         * modules/unictype/property-unified-ideograph:
13745         * modules/unictype/property-uppercase:
13746         * modules/unictype/property-variation-selector:
13747         * modules/unictype/property-white-space:
13748         * modules/unictype/property-xid-continue:
13749         * modules/unictype/property-xid-start:
13750         * modules/unictype/property-zero-width, modules/unictype/scripts:
13751         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
13752         * modules/unictype/syntax-c-whitespace:
13753         * modules/unictype/syntax-java-ident:
13754         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
13755         * modules/unigbrk/u16-grapheme-breaks:
13756         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
13757         * modules/unigbrk/u32-grapheme-breaks:
13758         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
13759         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
13760         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
13761         * modules/unigbrk/uc-is-grapheme-break:
13762         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
13763         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
13764         * modules/unilbrk/u16-width-linebreaks:
13765         * modules/unilbrk/u32-possible-linebreaks:
13766         * modules/unilbrk/u32-width-linebreaks:
13767         * modules/unilbrk/u8-possible-linebreaks:
13768         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
13769         * modules/unilbrk/ulc-possible-linebreaks:
13770         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
13771         * modules/uniname/uniname, modules/uninorm/base:
13772         * modules/uninorm/canonical-decomposition:
13773         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
13774         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
13775         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
13776         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
13777         * modules/uninorm/nfkc, modules/uninorm/nfkd:
13778         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
13779         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
13780         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
13781         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
13782         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
13783         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
13784         * modules/unistdio/base, modules/unistdio/u-printf-args:
13785         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
13786         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
13787         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
13788         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
13789         * modules/unistdio/u16-u16-sprintf:
13790         * modules/unistdio/u16-u16-vasnprintf:
13791         * modules/unistdio/u16-u16-vasprintf:
13792         * modules/unistdio/u16-u16-vsnprintf:
13793         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
13794         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
13795         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
13796         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
13797         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
13798         * modules/unistdio/u32-u32-asnprintf:
13799         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
13800         * modules/unistdio/u32-u32-sprintf:
13801         * modules/unistdio/u32-u32-vasnprintf:
13802         * modules/unistdio/u32-u32-vasprintf:
13803         * modules/unistdio/u32-u32-vsnprintf:
13804         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
13805         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
13806         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
13807         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
13808         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
13809         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
13810         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
13811         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
13812         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
13813         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
13814         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
13815         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
13816         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
13817         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
13818         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
13819         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
13820         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
13821         * modules/unistr/u16-check, modules/unistr/u16-chr:
13822         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
13823         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
13824         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
13825         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
13826         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
13827         * modules/unistr/u16-move, modules/unistr/u16-next:
13828         * modules/unistr/u16-prev, modules/unistr/u16-set:
13829         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
13830         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
13831         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
13832         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
13833         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
13834         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
13835         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
13836         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
13837         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
13838         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
13839         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
13840         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
13841         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
13842         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
13843         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
13844         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
13845         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
13846         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
13847         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
13848         * modules/unistr/u32-next, modules/unistr/u32-prev:
13849         * modules/unistr/u32-set, modules/unistr/u32-startswith:
13850         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
13851         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
13852         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
13853         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
13854         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
13855         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
13856         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
13857         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
13858         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
13859         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
13860         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
13861         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
13862         * modules/unistr/u8-check, modules/unistr/u8-chr:
13863         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
13864         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
13865         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
13866         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
13867         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
13868         * modules/unistr/u8-next, modules/unistr/u8-prev:
13869         * modules/unistr/u8-set, modules/unistr/u8-startswith:
13870         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
13871         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
13872         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
13873         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
13874         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
13875         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
13876         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
13877         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
13878         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
13879         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
13880         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
13881         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
13882         * modules/uniwbrk/base, modules/uniwbrk/table:
13883         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
13884         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
13885         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
13886         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
13887         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
13888         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
13889         * modules/uniwidth/width, modules/utf16-ucs4:
13890         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
13891         * modules/utf8-ucs4-unsafe:
13892         Change maintainer from Bruno Haible to Daiki Ueno.
13893         This is my guess at the libunistring modules; please feel free
13894         to fix if I guessed incorrectly.
13895         * modules/accept4, modules/acl, modules/acos, modules/acosf:
13896         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
13897         * modules/areadlink, modules/array-list, modules/array-mergesort:
13898         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
13899         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
13900         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
13901         * modules/binary-io, modules/bison-i18n, modules/btowc:
13902         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
13903         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
13904         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
13905         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
13906         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
13907         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
13908         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
13909         * modules/closedir, modules/concat-filename, modules/copy-file:
13910         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
13911         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
13912         * modules/csharpcomp-script, modules/csharpexec:
13913         * modules/csharpexec-script, modules/ctype, modules/diffseq:
13914         * modules/dprintf, modules/dprintf-posix, modules/dup:
13915         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
13916         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
13917         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
13918         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
13919         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
13920         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
13921         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
13922         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
13923         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
13924         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
13925         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
13926         * modules/findprog, modules/findprog-lgpl, modules/floor:
13927         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
13928         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
13929         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
13930         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
13931         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
13932         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
13933         * modules/freadable, modules/freadahead, modules/freadptr:
13934         * modules/freadseek, modules/freopen, modules/frexp:
13935         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
13936         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
13937         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
13938         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
13939         * modules/ftello, modules/full-read, modules/full-write:
13940         * modules/fwritable, modules/fwriteerror, modules/gcd:
13941         * modules/get-rusage-as, modules/get-rusage-data:
13942         * modules/getdtablesize, modules/getrusage, modules/gettext:
13943         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
13944         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
13945         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
13946         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
13947         * modules/iconv, modules/iconv-h, modules/iconv_open:
13948         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
13949         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
13950         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
13951         * modules/integer_length_ll, modules/ioctl, modules/isatty:
13952         * modules/isblank, modules/isnand, modules/isnand-nolibm:
13953         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
13954         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
13955         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
13956         * modules/javaexec, modules/javaexec-script, modules/javaversion:
13957         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
13958         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
13959         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
13960         * modules/lib-symbol-visibility, modules/libsigsegv:
13961         * modules/linked-list, modules/linkedhash-list, modules/list:
13962         * modules/localcharset, modules/locale, modules/localeconv:
13963         * modules/localename, modules/lock, modules/log, modules/log-ieee:
13964         * modules/log10, modules/log10-ieee, modules/log10f:
13965         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
13966         * modules/log1p, modules/log1p-ieee, modules/log1pf:
13967         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
13968         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
13969         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
13970         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
13971         * modules/logf, modules/logf-ieee, modules/login_tty:
13972         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
13973         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
13974         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
13975         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
13976         * modules/mbscspn, modules/mbsinit, modules/mbslen:
13977         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
13978         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
13979         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
13980         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
13981         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
13982         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
13983         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
13984         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
13985         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
13986         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
13987         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
13988         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
13989         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
13990         * modules/posix_spawn, modules/posix_spawn-internal:
13991         * modules/posix_spawn_file_actions_addclose:
13992         * modules/posix_spawn_file_actions_adddup2:
13993         * modules/posix_spawn_file_actions_addopen:
13994         * modules/posix_spawn_file_actions_destroy:
13995         * modules/posix_spawn_file_actions_init:
13996         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
13997         * modules/posix_spawnattr_getpgroup:
13998         * modules/posix_spawnattr_getschedparam:
13999         * modules/posix_spawnattr_getschedpolicy:
14000         * modules/posix_spawnattr_getsigdefault:
14001         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
14002         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
14003         * modules/posix_spawnattr_setschedparam:
14004         * modules/posix_spawnattr_setschedpolicy:
14005         * modules/posix_spawnattr_setsigdefault:
14006         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
14007         * modules/pow, modules/powf, modules/printf-frexp:
14008         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
14009         * modules/progname, modules/propername, modules/pselect:
14010         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
14011         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
14012         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
14013         * modules/read, modules/readdir, modules/readlink:
14014         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
14015         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
14016         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
14017         * modules/relocatable-script, modules/remainder:
14018         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
14019         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
14020         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
14021         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
14022         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
14023         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
14024         * modules/setlocale, modules/sh-quote, modules/shutdown:
14025         * modules/signal, modules/signbit, modules/sigpipe:
14026         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
14027         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
14028         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
14029         * modules/snippet/link-warning, modules/snippet/unused-parameter:
14030         * modules/snprintf, modules/snprintf-posix, modules/spawn:
14031         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
14032         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
14033         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
14034         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
14035         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
14036         * modules/streq, modules/strerror_r-posix, modules/striconv:
14037         * modules/striconveh, modules/striconveha, modules/strncat:
14038         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
14039         * modules/sublist, modules/sys_resource, modules/sys_utsname:
14040         * modules/sys_wait, modules/system-posix, modules/system-quote:
14041         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
14042         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
14043         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
14044         * modules/truncf, modules/truncf-ieee, modules/truncl:
14045         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
14046         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
14047         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
14048         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
14049         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
14050         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
14051         * modules/wait-process, modules/waitpid, modules/wcpcpy:
14052         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
14053         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
14054         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
14055         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
14056         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
14057         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
14058         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
14059         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
14060         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
14061         * modules/write, modules/xconcat-filename, modules/xlist:
14062         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
14063         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
14064         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
14065         * modules/y0, modules/y1, modules/yn:
14066         Remove Bruno Haible as maintainer; if he's the sole maintainer,
14067         change the maintainer to 'all'.  Let's hope someone volunteers.
14069 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
14071         mktime: merge #if/#ifdef usage from glibc
14072         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
14073         as that works with both Glibc's and Gnulib's style.
14074         See thread starting at Siddhesh Poyarekar's bug report at:
14075         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
14077 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
14079         git-version-gen: improve option descriptions
14080         * build-aux/git-version-gen: Mention that --prefix and --fallback
14081         have a mandatory argument.
14083 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
14085         regex: fix memory leak in compiler
14086         Fix by Andreas Schwab in:
14087         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
14088         * lib/regcomp.c (parse_expression): Deallocate partially
14089         constructed tree before returning error.
14091         regex: merge patch from libc
14092         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
14093         Combine __USE_BSD and __USE_SVID into __USE_MISC.
14094         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
14096 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
14098         acl: port to gcc -Wredundant-decls
14099         From a request by Dmitry Antipov in:
14100         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
14101         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
14102         "#ifndef _GL_ACL_H".
14104 2014-06-11  Bruce Korb  <bkorb@gnu.org>
14105         Jim Meyering  <meyering@fb.com>
14107         parse-duration: eliminate 68-year duration limit
14108         * lib/parse-duration.c: Include "intprops.h".
14109         (TIME_MAX): Rename to MAX_DURATION and define to
14110         TYPE_MAXIMUM(time_t).
14111         * modules/parse-duration (Depends-on): Add intprops.
14112         Reported by Jonas 'Sortie' Termansen.
14114 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14116         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
14117         * modules/pthread (Depends-on): Add 'extensions', as it defines
14118         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
14119         (configure.ac-early): New section.
14120         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
14121         it is no longer needed.
14123 2014-06-14  Pádraig Brady  <P@draigBrady.com>
14125         pthread: define thread-safe macros on some platforms
14126         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
14127         for thread-safe operation on some platforms.
14129 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14131         regex: don't be multithreaded if USE_UNLOCKED_IO.
14132         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
14133         * lib/regex_internal.h: Do not use multithreaded version if
14134         USE_UNLOCKED_IO is defined.  This is a hack, but it works
14135         around a porting bug with coreutils 8.22 on AIX 7.1.
14137 2014-06-11  Daiki Ueno  <ueno@gnu.org>
14139         gettext: update macros to version 0.19
14140         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
14141         depend on gl_EXTERN_INLINE and drop support for older Bison
14142         versions.
14144 2014-06-10  Pádraig Brady  <P@draigBrady.com>
14146         select,poll: fix console handle check on windows 8
14147         lib/poll.c (IsConsoleHandle): Change from testing the lower
14148         2 bits of the handle to the more expensive but accurate syscall.
14149         lib/select.c: Likewise.
14151 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
14153         select: fix waiting on anonymous pipes on MS-Windows
14154         * lib/select.c (rpl_select): Fall back to polling when select()
14155         indicates there is nothing to check, while due to the timeout not
14156         expiring, activity is indicated on one of the handles.
14157         Also clear the TIMEOUT argument if the timer does expire.
14159 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
14161         times: fix to return non constant value on MS-Windows
14162         * lib/times.c (times): Don't use the process creation time,
14163         rather clock() which on windows returns the number of
14164         clock ticks since the process started.
14166 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
14168         isatty: fix to work on windows 8
14169         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
14170         2 bits of the handle to the more expensive but accurate syscall.
14172 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14174         maint: fix typo in fdl.texi
14175         * doc/fdl.texi: Fix typo (missing '@').
14176         Somehow this was in fdl.texi but not fdl-1.3.texi.
14178 2014-06-06  Ben Walton  <bdwalton@gmail.com>
14180         mountlist: avoid hasmntopt const type warning on solaris
14181         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
14182         with char * instead of const char *.  Passing the constant string
14183         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
14184         to avoid the warning.
14186 2014-06-04  Eric Blake  <eblake@redhat.com>
14188         maintainer-makefile: delete obsolete code
14189         * top/maint.mk (build_aux): Drop old code, as threatened.
14191         maintainer-makefile: avoid spurious error messages
14192         * top/maint.mk (syntax-check): Guard definition and use of
14193         $(shell) by whether Makefile is present.
14195 2014-06-03  Ben Walton  <bdwalton@gmail.com>
14197         rename: avoid unused-but-set-variable compiler warning
14198         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
14199         it is possible that dst_exists may be set but not used.  Mark it with
14200         the unused attribute to avoid compiler warnings.
14202 2014-06-02  Ben Walton  <bdwalton@gmail.com>
14204         rename: mark a label as potentially unused
14205         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
14206         by marking the out label as potentially unused.
14207         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
14209 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
14211         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
14212         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
14214 2014-06-02  Ben Walton  <bdwalton@gmail.com>
14216         acl: apply pure attribute to two functions
14217         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
14218         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
14220 2014-06-01  Pádraig Brady  <P@draigBrady.com>
14222         gnulib-common.m4: add _GL_UNUSED_LABEL
14223         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
14224         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
14226 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
14228         dup2, fcntl, fcntl-h: port to AIX 7.1
14229         This fixes some porting problems discovered when testing the latest
14230         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
14231         in grep but it could be important for other applications.
14232         * doc/posix-functions/dup2.texi:
14233         * doc/posix-functions/fcntl.texi:
14234         * doc/posix-headers/fcntl.texi:
14235         Document AIX bugs.
14236         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
14237         Define to 0 if outside 'int' range.
14238         * m4/dup2.m4 (gl_FUNC_DUP2):
14239         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14240         Check for getdtablesize.  If it's available, test a value just
14241         outside its range instead of testing 1000000.  When cross-compiling,
14242         guess that AIX will fail this improved test.
14244 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
14246         printf, config.rpath: Port to FreeBSD 10.
14247         Problem reported by Tijl Coosemans in:
14248         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
14249         * build-aux/config.rpath (hardcode_libdir_flag_spec)
14250         (hardcode_direct): Simplify FreeBSD configuration.
14251         (library_names_spec): Don't mishandle FreeBSD 10+.
14252         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
14253         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
14254         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
14255         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
14256         Don't mishandle FreeBSD 10+ when cross-compiling.
14258         ftoastr: work around compiler bug in IBM xlc 12.1
14259         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
14260         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
14261         around a compiler bug in IBM xlc 12.1.0.0: it complains
14262         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
14263         _GL_FLT_PREC_BOUND.'
14265 2014-05-30  Kieran Colford  <colfordk@gmail.com>
14267         valgrind-tests: fixed misleading help message
14268         * m4/valgrind-tests.m4: The help message generated by configure
14269         implied that valgrind was disabled by default, which it wasn't.
14270         Adjusted the help message using s/enable/disable/ to clarify.
14272 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
14274         isfinite, isinf, isnan tests: fix for little-endian PowerPC
14275         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
14276         first double of a PowerPC "double double" pair.
14277         * tests/test-isinf.c (test_isinfl): Likewise.
14278         * tests/test-isnan.c (test_long_double): Likewise.
14279         * tests/test-isnanl.h (main): Likewise.
14280         * tests/test-signbit.c (test_signbitl): Likewise.
14282 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14284         exclude-tests: port to AIX 7.1
14285         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
14286         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
14287         the regex code uses locks.
14289 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
14291         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
14292         Without this fix, Emacs would sometimes call sigprocmask instead
14293         of pthread_sigmask, which is a no-no in multithreaded applications.
14294         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
14295         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14296         Suppress check for pthread_sigmask working without -lpthread if
14297         the application always links with -lpthread.  Do not link with
14298         $LIBMULTITHREAD if gl_THREADLIB is not defined.
14299         * m4/timer_time.m4 (gl_TIMER_TIME):
14300         Require gl_THREADLIB only if it is defined.  Do not append
14301         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
14303 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
14305         gnulib-tool: wget translations using --no-verbose rather than --quiet
14306         This allows the user to see error messages if any (--quiet hides them)
14307         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
14309 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
14311         gnulib-tool: adjust translation wget to avoid a https redirection
14312         Context: http://translationproject.org/latest/gnulib redirects to
14313            https://translationproject.org/latest/gnulib/
14314         Rationale: if the user falls back to wget, she doesn't have rsync and
14315         is probably in a minimal build environment, where packages such as
14316         'ca-certificates' are missing as well, resulting in a failed (and
14317         difficult to detect since ignored) translation initial fetch.
14318         Consequently let's avoid https if possible, and add the missing
14319         trailing slash.  This also avoids an unnecessary 302 redirection.
14320         * gnulib-tool: Add trailing slash to gnulib URL.
14322 2014-05-22  Pádraig Brady  <P@draigBrady.com>
14324         getlogin_r-tests: check return value rather than errno
14325         * tests/test-getlogin_r.c (main): As per POSIX we should be
14326         verifying the return value from getlogin_r() rather than errno.
14328 2014-05-22  Pádraig Brady  <P@draigBrady.com>
14330         getlogin_r-tests: fix various issues in recent change
14331         * tests/test-getlogin_r.c: Include required headers that were
14332         missed in recent commit eec20b4e.
14333         Also consistently check the errno rather than the return value from
14334         getlogin_r as POSIX only specifies that non zero is returned on error.
14335         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
14337 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14339         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
14340         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
14341         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
14342         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
14343         * lib/spawn-pipe.c:
14344         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
14345         and then 'int open64(const char *, int, ...);', which means the
14346         declaration for 'open' gets lost if we later '#undef open'.
14347         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
14348         where the compilation reported the non-fatal error "In function
14349         'openat_proc_name' ... warning: implicit declaration of function
14350         'open'".  In this case the error is relatively harmless, but in
14351         other cases it might not be so minor.
14353 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
14355         xalloc: don't potentially generate invalid code for xmemdup calls
14356         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
14357         this function can initialize the newly-allocated storage with new
14358         pointers, which means this function is not malloc-like.  See:
14359         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
14361 2014-05-19  Pádraig Brady  <P@draigBrady.com>
14363         getlogin_r-tests: avoid false failure under sudo/ssh etc.
14364         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
14365         changes from commit 97249cf29 to not depend on environment variables.
14367 2014-05-18  Pádraig Brady  <P@draigBrady.com>
14369         getlogin-tests: avoid false failure under cron
14370         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
14371         since that's not what's under test.  Centos 6 was seen to return
14372         EINVAL for ttyname() when run from cron.
14374 2014-05-16  Jim Meyering  <meyering@fb.com>
14376         mbrtowc.m4: fix a comment typo
14377         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
14378         emitted documentation string.
14380 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14382         mbrlen, mbrtowc: fix bug with empty input
14383         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
14384         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
14385         so this is mainly for documentation.
14386         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
14387         (gl_FUNC_MBRTOWC): Use it.
14388         * tests/test-mbrtowc.c (main): Test for the bug.
14390 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
14392         doc: document mbrtowc and mbrlen problem with empty input
14393         * doc/posix-functions/mbrlen.texi (mbrlen):
14394         * doc/posix-functions/mbrtowc.texi (mbrtowc):
14395         Document portability problem when the input string is empty.  See:
14396         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
14398         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
14399         Problem reported by Eli Zaretskii in:
14400         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
14401         * doc/posix-functions/execl.texi (execl):
14402         * doc/posix-functions/execle.texi (execle):
14403         * doc/posix-functions/execlp.texi (execlp):
14404         * doc/posix-functions/execv.texi (execv):
14405         * doc/posix-functions/execve.texi (execve):
14406         * doc/posix-functions/execvp.texi (execvp):
14407         Mention spawn+exit problem on non-Cygwin Windows platforms.
14409 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
14411         getlogin-tests: avoid false failure under sudo/ssh etc.
14412         * modules/getlogin-tests (configure.ac): Check for ttyname().
14413         * tests/test-getlogin.c (main): Don't depend on environment variables
14414         to correlate with getlogin(), since sudo and ssh etc. can tamper
14415         with the LOGNAME and USER env vars.  Instead lookup the name from
14416         the uid associated with the stdin tty.
14418 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
14420         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
14421         These were found when building the latest grep snapshot on IRIX 6.5.
14422         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
14423         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
14424         never used later.
14425         * lib/quotearg.c (quoting_options_from_style):
14426         * lib/xstrtol.c (__xstrtol):
14427         Use enum instead of 0, to pacify IRIX 6.5 cc.
14429 2014-04-18  Pádraig Brady  <P@draigBrady.com>
14431         gitlog-to-changelog: revert inclusion of git-log-fix file
14432         * build-aux/git-log-fix: Delete dummy file.
14433         * modules/gitlog-to-changelog: Don't reference (overwrite)
14434         the project specific git-log-fix file.
14436 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
14438         maint.mk: Relax the copyright check to cater for non FSF projects
14439         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
14440         to not require the "Free" suffix after the copyright years.
14442 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
14444         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
14445         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
14446         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
14447         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
14448         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
14450 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
14452         exclude: port to strict C99
14453         Strict C does not allow converting a function pointer to void *
14454         and vice versa.  Pass a pointer to a function pointer instead.
14455         * lib/exclude.c (add_exclude_file):
14456         Pass the address of the function pointer.
14457         (call_addfn): And deference the address here, to match.
14459 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
14461         regex: do not depend on malloc-gnu
14462         * modules/regex (Depends-on): Remove malloc-gnu.
14463         It's no longer needed, because of the 2012-12-29 patch
14464         "regex: port to hosts where malloc (0) == NULL".
14465         Reported by Nathan Kennedy in:
14466         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
14468 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
14470         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
14471         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
14472         * doc/posix-functions/expl.texi: Mention the workaround.
14474 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
14476         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
14477         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
14478         size to be zero even when the pointer is nonnull.  This
14479         accommodates the use case where P is malloc (0) and *PN is 0 on a
14480         host where malloc (0) yields nonnull.
14482 2014-04-09  Eric Blake  <eblake@redhat.com>
14484         fts: avoid unnecessary strlen calls
14485         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
14487 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14489         fts: avoid unnecessary strlen calls
14490         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
14491         when that can be faster than strlen.
14493 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
14495         fts: avoid unnecessary strlen calls
14496         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
14497         (fts_build): Store the length of the dp->d_name entry in a local variable
14498         instead of calling strlen() several times via the above, removed macro.
14499         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
14500         run by ~4%, yet this reduces the execution time by about a third if run
14501         via "ltrace -c rm -rf some-dir".
14503 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14505         obstack: Remove ancient NeXTSTEP gcc support conditional
14506         This change will ease merging with glibc.  The "#if ... __NEXT__"
14507         causes a warning with -Wundef which glibc now enables by default.
14508         Problem reported by Will Newton in
14509         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
14510         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
14511         so go with that.
14512         * lib/obstack.h (__extension__):
14514 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14516         obstack: merge with glibc changes
14517         * lib/obstack.c, lib/obstack.h: Merge from glibc.
14518         This is mostly indenting and commentary changes.
14519         Instances of 'register' have been removed.
14521 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
14523         strftime: wrap macros in "do {...} while(0)"
14524         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
14525         this macro in "do {...} while(0)" to prevent false use as a
14526         single statement, e.g., in an un-braced "{}" else-block.
14527         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
14528         (strftime_case_): Remove 'else' after 'goto' - which was the
14529         only non-fatal, un-braced use of one of the above macros.
14530         Spotted by coverity (NESTING_INDENT_MISMATCH).
14532 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
14534         modechange: avoid memory leaks for invalid octal modes
14535         * lib/modechange.c (mode_compile): During the parsing of
14536         notations like +40, free the 'mc' buffer for invalid mode
14537         strings like +17777 (greater than the maximum octal mode),
14538         =18 (bad octal mode characters) or u=1 ('affected' with
14539         octal modes).
14540         Reproducer, e.g.:
14541             $ valgrind --leak-check=full chmod +17777 file
14542         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
14543         add notations +40, 00440, etc.".
14544         Spotted by coverity (RESOURCE_LEAK).
14546 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14548         gitlog-to-changelog: include a dummy git-log-fix file
14549         Problem reported by Nathan Stratton Treadway in:
14550         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
14551         * build-aux/git-log-fix: New file.
14553 2014-03-13  Jim Meyering  <meyering@fb.com>
14555         gitlog-to-changelog: also include the file, git-log-fix
14556         * modules/gitlog-to-changelog (Files): Add git-log-fix.
14557         Reported by Assaf Gordon.
14559 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
14561         regex: port to OS X 10.8.5 en_US.UTF-8 locale
14562         This fixes a bug when ignoring case and when comparing the
14563         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
14564         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
14565         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
14566         titlecase letter is neither lowercase nor uppercase, but
14567         uppercasing the titlecase letter (via towupper) yields the
14568         uppercase letter, so the two letters should match when ignoring case.
14569         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
14570         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
14571         Don't test whether a character is lowercase before uppercasing it.
14573 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
14575         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
14576         This is basically one of the options Bruno Haible proposed in:
14577         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
14578         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
14579         * lib/stdint.in.h: Use it.
14580         * modules/stdint (Depends-on): Add sys_types.
14582 2014-02-26  Pádraig Brady  <P@draigBrady.com>
14584         parse-datetime: fix crash or infloop in TZ="" parsing
14585         * lib/parse-datetime.y (parse_datetime): Break out of the
14586         TZ="" parsing loop once the second significant " is found.
14587         Also skip over any subsequent whitespace to be consistent
14588         with the non TZ= case.
14589         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
14591 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14593         savedir: new symbol for fast-read version
14594         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
14595         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
14596         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
14597         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
14599 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
14601         unistd: port readlink to Mac OS X 10.3.9
14602         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
14603         around self-include problem in Mac OS X 10.3.9 when combined with
14604         readlink module.  Problem reported by Klaus Zietler in
14605         <http://bugs.gnu.org/16825>.
14607 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14609         diffseq: remove TOO_EXPENSIVE heuristic
14610         Problem with diffutils reported by Vincent Lefevre in
14611         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
14612         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
14613         Although appropriate for circa-1993 hardware, these days the heuristic
14614         seems to be more trouble than it's worth.
14615         * lib/diffseq.h: Modernize citations.
14616         (struct context): Remove member too_expensive.
14617         All uses changed.
14618         (struct partition): Remove members lo_minimal, hi_minimal.
14619         All uses changed.
14620         (diag, compareseq): Remove arg find_minimal.  All uses changed.
14621         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
14622         1993 to make 'diff' run faster (but not as well) on large inputs.
14623         These days, computers are fast enough that it's typically better
14624         to run slower but more accurately.
14625         * lib/fstrcmp.c: Remove duplicate comment.
14626         * lib/fstrcmp.c (strcmp_bounded):
14627         * lib/git-merge-changelog.c (compute_differences):
14628         Adjust to diffseq.h changes.
14629         * NEWS: Document the change.
14631         savedir: simplify by using stpcpy
14632         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
14633         (streamsavedir): Use stpcpy instead.
14634         * modules/savedir (Depends-on): Add stpcpy.
14636 2014-02-21  Pádraig Brady  <P@draigBrady.com>
14638         spawn: fix link error on uclibc
14639         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
14640         to incorporate -lrt if needed (on uclibc for example).
14641         * modules/posix_spawn: Reference the substituted LIB.
14643 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
14644         timer: fix uClibc detection of threading
14645         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
14646         enabled in uClibc.
14648 2014-02-21  Eric Blake  <eblake@redhat.com>
14650         maintainer-makefiles: provide AC_PROG_SED for older autoconf
14651         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
14653 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
14655         exclude: add support for posix regexps
14657         This commit adds support for POSIX extended regular expressions
14658         and fixes a long-standing memory leak (pattern buffer was never
14659         freed).  It also implements a new interface function to read
14660         exclude patterns from a FILE, which passes an additional parameter
14661         to its callback function, thereby allowing to preserve its state
14662         between invocations.
14664         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
14665         (pattern_buffer): New struct.
14666         (exclude): New member patbuf.
14667         (exclude_add_pattern_buffer): New function.
14668         (free_exclude_segment): Free regexps.
14669         (free_exclude): Free allocated pattern buffers.
14670         (exclude_patopts): New function.
14671         (file_pattern_matches): Use exclude_patopts.
14672         (add_exclude): support regexps.
14673         (add_exclude_fp): New function.
14674         (add_exclude_file): Rewrite using add_exclude_fp.
14675         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
14676         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
14677         (add_exclude_fp)
14678         (add_exclude_file): Rewrite using add_exclude_fp.
14679         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
14680         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
14681         (add_exclude_fp)
14682         (exclude_add_pattern_buffer): New prototypes.
14683         * modules/exclude: Depends on regex and filename.
14685 2014-02-20  Eric Blake  <eblake@redhat.com>
14687         maintainer-makefiles: use $(SED) for syntax check
14688         * modules/maintainer-makefile (configure.ac): Check for sane sed.
14689         * top/maint.mk: Change sed to $(SED).
14691 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
14692             Paul Eggert  <eggert@cs.ucla.edu>
14694         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
14695         Patch based on an idea by Dick Streefland in
14696         <https://savannah.gnu.org/patch/?7892>.
14697         * NEWS: Document this.
14698         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
14699         (direntry_t, comparison_function): New types.
14700         (direntry_cmp_name): New function.
14701         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
14702         (streamsavedir, savedir): New arg OPTION.
14703         (streamsavedir): Simplify memory allocation.
14704         (fdsavedir): Remove.
14705         * lib/savedir.h (enum savedir_option): New type.
14706         (streamsavedir, savedir): New arg OPTION.
14707         (fdsavedir): Remove.
14709 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
14711         file-type: add support for doors and other less-common file types
14712         Problem with S_ISDOOR reported by Rich Burridge.
14713         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
14714         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
14715         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
14717 2014-01-23  Eric Blake  <eblake@redhat.com>
14719         pthread: work around winpthread header pollution on mingw
14720         * lib/time.in.h: Move pthread workarounds...
14721         * lib/pthread.in.h: ...here.
14722         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
14723         detect macro pollution on mingw.
14724         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
14726 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
14728         qacl: check for fchmod
14729         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
14730         and qset-acl.c both use HAVE_FCHMOD.
14732 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14734         fdopen-tests: port to Tru64
14735         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
14736         descriptor that is not open, as POSIX doesn't specify the
14737         resulting behavior and the test does not work on Tru64.
14738         Problem reported by Steven M. Schweda in:
14739         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
14741         stdalign: port to HP-UX compilers
14742         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
14743         if __HP_cc or __HP_aCC are nonzero.
14745 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
14747         strtoimax: port to platforms lacking 'long long'
14748         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
14749         check whether strtoll is declared, which causes the C file to
14750         wrongly report an error.  Problem reported by Steven M. Schweda in:
14751         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
14752         * lib/strtoimax.c (strtoull):
14753         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
14754         (strtoll): Declare only if HAVE_LONG_LONG_INT.
14756 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
14758         relocatable-perl: fix texi syntax
14759         * doc/relocatable-maint.texi: Escape braces.
14761 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
14763         relocatable-perl: like relocatable-script, but for Perl scripts
14764         * build-aux/relocatable.pl.in: Add.
14765         * doc/relocatable-maint.texi: Add documentation.
14766         * modules/relocatable-perl: Add.
14768 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
14770         tests: fix export bug in previous patch
14771         Problem reported by Jim Meyering.
14772         * tests/init.sh (re_shell): New var, which is exported instead of
14773         re_shell_.
14775         tests: simplify porting to Solaris 10 /bin/sh
14776         Some test cases in 'grep' need a shell that groks '$(';
14777         export re_shell_ for their benefit.  Problem reported for 'grep'
14778         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
14779         * tests/init.sh (re_shell_): Export if it's used.
14781 2014-01-06  Eric Blake  <eblake@redhat.com>
14783         md5, sha1, sha256, sha512: support older autoconf
14784         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
14785         for autoconf < 2.63b.
14787         include_next: port to autoconf 2.63
14788         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
14790 2014-01-04  Jim Meyering  <meyering@fb.com>
14792         maint: add a gnulib-local rule to keep non-ascii out of .texi files
14793         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
14794         so that "make sc_maint" will ding anyone who puts non-ascii
14795         in any of gnulib's .texi files.
14797 2014-01-03  Jim Meyering  <meyering@fb.com>
14799         freadable, fwritable, fwriting: declare with the "pure" attribute
14800         * lib/freadable.h (freadable): Declare with the "pure" attribute.
14801         * lib/fwritable.h (fwritable): Likewise.
14802         * lib/fwriting.h (fwriting): Likewise.
14803         Suggested by Bruno Haible.
14805         maint.mk: adapt openat.h-include-without-use test
14806         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
14807         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
14808         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
14809         With this change, running "make sc_maint" in gnulib's top-level
14810         directory now passes for me.
14812 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
14814         doc: use ASCII in .texi files where UTF-8 isn't needed
14815         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
14816         * doc/posix-functions/setkey.texi, doc/regex.texi:
14817         Use ASCII input, not UTF-8.
14819 2014-01-02  Jim Meyering  <meyering@fb.com>
14821         freading: declare with the "pure" attribute
14822         * lib/freading.h (freading): Declare with the "pure" attribute.
14824         manywarnings: remove -Wmudflap
14825         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
14826         it is no longer supported in gcc-4.9-to-be.
14828 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14830         relocatable-script: remove unused code
14831         Problem reported by Reuben Thomas in:
14832         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
14833         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
14835 2014-01-01  Jim Meyering  <meyering@fb.com>
14837         maint: fix public-submodule-commit to work with newer git
14838         * top/maint.mk (public-submodule-commit): Remove excess quoting.
14839         We were over-quoting the test arguments, and somewhere prior to
14840         version 1.8.5.2.229, git stopped removing those excess quotes,
14841         which made the test fail, since the unexpanded strings would
14842         always differ; using GIT_TRACE=1 confirmed that the git merge-base
14843         command wasn't even being run.
14845 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14847         doc: update main copyright year
14848         * doc/gnulib.texi: Update copyright date.
14850 2014-01-01  Eric Blake  <eblake@redhat.com>
14852         version-etc: new year
14853         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
14854         * all files: run 'make update-copyright'
14856 2013-12-24  Eric Blake  <eblake@redhat.com>
14858         passfd: give nicer error for recvfd at eof
14859         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
14860         * tests/test-passfd.c (main): Enhance test to cover this.
14862 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
14864         gettimeofday: port recent C++ fix to Emacs
14865         Without this further patch, Emacs won't build due to
14866         the portcheck failing.  Also, this simplifies the patch a bit.
14867         * lib/time.in.h (localtime, gmtime): Don't replace unless
14868         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
14869         * lib/time.in.h (localtime, gmtime):
14870         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
14871         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
14872         * modules/time (time.h):
14873         Don't worry about the possibility of localtime and gmtime
14874         being absent; they're present in all C libraries we know about.
14875         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
14876         Don't assume sys_time is present and has been initialized.
14877         Instead, use a hack that should work even if it hasn't been.
14878         Don't use a portcheck for gmtime or localtime; this supports
14879         the hack.
14880         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
14882 2013-12-17  John W. Eaton  <jwe@gnu.org>
14884         gettimeofday: fix C++ crosscompilation
14886         Never replace gmtime and localtime by macros when compiling with
14887         C++, this prevents <ctime> from being included.
14889         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
14890         define gmtime and localtime as preprocessor macros.  Instead
14891         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
14892         REPLACE_LOCALTIME substitutions.
14893         * lib/time.in.h: Declare gmtime and localtime when needed.
14894         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
14895         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
14896         * modules/time: Depend on gettimeofday, and substitute the above
14897         variables in time.h.
14899 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
14901         qacl: port to Windows better
14902         See Eli Zaretskii in
14903         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
14904         * lib/file-has-acl.c (acl_access_nontrivial):
14905         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
14906         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
14908 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
14910         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
14911         * lib/gl_openssl.h: Cast void pointers to a specific type.
14913 2013-12-07  Pádraig Brady  <P@draigBrady.com>
14915         open-tests: fix build failure with -Werror=old-style-declaration
14916         * tests/test-open.h: Reorder the inline to avoid the issue.
14918 2013-12-07  Pádraig Brady  <P@draigBrady.com>
14920         md5, sha1, sha256, sha512: fix link error with partial libcrypto
14921         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
14922         init time, so that if early checks find crypto routines,
14923         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
14924         avoiding link failures.
14926 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
14928         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
14929         This provides a new way to specify the default for
14930         gl_CRYPTO_CHECK, one that is reflected in the --help message.
14931         Emacs uses this, as well as the old way.
14932         This attempts to implement a suggestion by Pádraig Brady in
14933         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
14934         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
14935         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
14937         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
14938         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
14939         Add support for a new option, --with-openssl=auto, which causes
14940         the library to be used if available and silently ignored if not.
14941         Add support to allow configure.ac to specify its own
14942         default, by setting with_openssl_default before invoking gl_INIT.
14944 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
14946         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
14947         Problem reported by Daiki Ueno in:
14948         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
14949         * tests/test-open.h (__always_inline):
14950         New macro, if not already defined.
14951         (test_open): Use it.
14953 2013-12-04  Eric Blake  <eblake@redhat.com>
14955         include_next: minimize code duplication
14956         * modules/include_next (Depends-on): Add absolute-header.
14957         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
14958         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
14960 2013-12-04  Pádraig Brady  <P@draigBrady.com>
14962         getcwd: fix compile error in configure check
14963         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
14965 2013-12-04  Pádraig Brady  <P@draigBrady.com>
14967         regex: suppress core dumps from detection code
14968         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
14969         to suppress core dumps that may well occur on glibc systems.
14970         These core dumps might not be cleaned up automatically, or could
14971         trigger some system core dump handling logic.
14973 2013-12-03  Pádraig Brady  <P@draigBrady.com>
14975         md5, sha1, sha256, sha512: support mandating use of openssl
14976         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
14977         description, to list the now 3 separate options.  also don't
14978         mention the default=no, since this is implicit given the option
14979         is described as --with-openssl rather than --without-openssl.
14980         If projects change the default they're free to document that.
14981         with --with-openssl[=yes] we now error out when the specified
14982         hash algorithm is not available in libcrypto.
14984 2013-12-03  Ivailo  <xakepa10@gmail.com>
14986         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
14987         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
14988         -Wformat-nonliteral checks, as these edge cases are part of the test.
14990 2013-12-03  Eric Blake  <eblake@redhat.com>
14992         regex: avoid glibc deadlock during configure
14993         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
14994         glibc bug 15078 in turn triggers bug 16159.
14995         Reported by Michal Privoznik.
14997 2013-12-02  Pádraig Brady  <P@draigBrady.com>
14999         md5, sha1, sha256, sha512: use openssl routines if available.
15000         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
15001         routines will be used if available, requiring apps to link @LIB_CRYPTO@
15002         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
15003         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
15004         in the standard system location.
15005         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
15006         * m4/sha256.m4: Likewise with SHA256.
15007         * m4/sha512.m4: Likewise with SHA512.
15008         * m4/md5.m4: Likewise with MD5.
15009         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
15010         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
15011         * lib/sha256.h: Likewise with SHA256.
15012         * lib/sha512.h: Likewise with SHA512.
15013         * lib/md5.h: Likewise with MD5.
15014         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
15015         * lib/sha256.c: Likewise with SHA256.
15016         * lib/sha512.c: Likewise with SHA512.
15017         * lib/md5.c: Likewise with MD5.
15018         * modules/crypto/sha1 (Link:): Add the new optional lib.
15019         (Depends-on:): Add dependency on extern-inline.
15020         * modules/crypto/sha256: Likewise.
15021         * modules/crypto/sha512: Likewise.
15022         * modules/crypto/md5: Likewise.
15023         * modules/crypto/sha1-tests: Reference the lib here too.
15024         * modules/crypto/md5-tests: Likewise.
15025         * modules/crypto/gc-des-tests: Likewise.
15026         * modules/crypto/gc-hmac-md5-tests: Likewise.
15027         * modules/crypto/gc-hmac-sha1-tests: Likewise.
15028         * modules/crypto/gc-hmac-sha256-tests: Likewise.
15029         * modules/crypto/gc-hmac-sha512-tests: Likewise.
15030         * modules/crypto/gc-md5-tests: Likewise.
15031         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
15032         * modules/crypto/gc-sha1-tests: Likewise.
15033         * modules/crypto/gc-tests: Likewise.
15034         * modules/crypto/hmac-md5-tests: Likewise.
15035         * modules/crypto/hmac-sha1-tests: Likewise.
15036         * modules/crypto/hmac-sha256-tests: Likewise.
15037         * modules/crypto/hmac-sha512-tests: Likewise.
15039 2013-11-29  RV1971  <rv1971@web.de>
15041         base64: (trivial) fix compilation regression on some compilers
15042         * lib/base64.c: Don't return the void function,
15043         instead split to a separate return statement.
15045 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
15047         ignore-value: revert previous code change
15048         * lib/ignore-value.h (ignore_value): Use __extension__ and
15049         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
15050         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
15051         Change the comment to try to explain this better.
15053 2013-11-27  Pádraig Brady  <P@draigBrady.com>
15055         selinux-h: improve stub types and add more stub functions
15057         * lib/se-selinux.in.h: Change security_context_t to a typedef
15058         rather than a define, as it's a pointer type and so is better
15059         as a typedef to avoid issues declaring multiple variables
15060         with the comma operator.  Also add stub for string_to_security_class().
15061         * lib/se-context.in.h: Add stub functions for
15062         context_{type,range,role,user}_get().
15064 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
15066         ignore-value: prefer GCC version back through 2.0
15067         The code didn't match the comments, so I did a bit of software
15068         archaeology.  GCC 2.0 seems to support __extension__ and
15069         __typeof__, so fix both code and comments to use 2.0.
15070         * lib/ignore-value.h (ignore_value): Use __extension__ and
15071         __typeof__ for GCC 2.0 through 3.3, too.
15073 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
15075         pty: Activate the signature wrapper of forkpty.
15076         The intended preprocessor macro HAVE_FORKPTY is
15077         never defined, yet `lib/forkpty.c' depends on it.
15079         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
15080         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
15081         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
15083 2013-11-18  Jim Meyering  <meyering@fb.com>
15084         and Paul Eggert  <eggert@cs.ucla.edu>
15086         quotearg: don't attempt to store 1 << 31 into an "int"
15087         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
15088         gcc's new -fsanitize=undefined and running its tests triggered some
15089         new test failures due to undefined behavior, all with this diagnostic:
15090           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
15091             cannot be represented in type int
15092         Rather than shifting "1" left to form a mask, shift the bits right and
15093         simply use "1" as the mask.
15095 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
15097         error: depend on stdio
15098         Problem reported by Nikos Mavrogiannopoulos in
15099         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
15100         * modules/error (Depends-on): Add stdio.
15102 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
15104         * doc/relocatable-maint.texi (Supporting Relocation): Improve
15105         wording.
15106         Reported by Reuben Thomas <rrt@sc3d.org>.
15108 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
15110         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
15111         New function and macro, to work around _DARWIN_C_SOURCE problem.
15112         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
15114 2013-11-11  Pádraig Brady  <P@draigBrady.com>
15116         base64: provide a fast path for encoding well sized buffers
15117         Avoid conditionals in the base64 encoding loop,
15118         which was seen to give 60% better throughput.
15119         * lib/base64.c (base64_encode_fast): A new function to be called
15120         when we don't want to NUL terminate, and we have enough space
15121         in the output to encode the given input.
15122         (base64_encode): Call the _fast() version when appropriate.
15123         Also remove a redundant mask with 0x3F on the first encoded byte.
15125 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
15127         extern-inline: port better to OS X 10.9
15128         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
15129         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
15130         OS X 10.9, except for g++ where the bug is still present.
15131         See <http://trac.macports.org/ticket/41033>.
15133 2013-11-08  Eric Blake  <eblake@redhat.com>
15135         fpending: fix regression on DragonFly BSD
15136         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
15137         * lib/fpending.h (__fpending): Don't declare twice.
15138         Reported by GW in
15139         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
15141 2013-11-05  Jim Meyering  <meyering@fb.com>
15143         hash: relax license to LGPLv2+, for libguestfs
15144         * modules/hash (License): Change from GPL to LGPLv2+.
15146 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15148         intprops: port to Oracle Studio c99
15149         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
15150         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
15152 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
15154         obstack: pacify HP C
15155         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
15156         warning "conversion from pointer to smaller integer" from HP
15157         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
15158         C89 or later nowadays, so cast to void instead of int.  Privately
15159         reported by H.Merijn Brand.  Also, change header to match glibc's,
15160         to make checking against glibc easier.
15162 2013-10-29  Jim Meyering  <meyering@fb.com>
15164         maint.mk: prefer gpgv2 over gpgv
15165         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
15166         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
15167         Reported by Gary Vaughan.
15169 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15171         isnan: port to VAX
15172         Reported by John Klos for NetBSD-5/VAX in
15173         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
15174         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
15175         (FUNC): Use it.
15177 2013-10-28  Jim Meyering  <meyering@fb.com>
15179         gnulib-tool: protect against CDPATH
15180         * gnulib-tool: Many "cd" built-in functions print a directory name
15181         to stdout when CDPATH is set, e.g.,
15182           $ bash -c 'CDPATH=/; cd tmp'
15183           /tmp
15184         Unset it, when possible.  Prompted by a comment from Bruce Korb.
15186         maint.mk: restore functionality removed by recent change...
15187         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
15188         the context of a shallow-cloned gnulib repository: "git describe"
15189         would fail in such a directory.  However, that change made it so
15190         the reported gnulib revision no longer includes the version number
15191         or a commit count, even when run from a full clone.
15192         * top/maint.mk (gnulib-version): Use the full "git describe"
15193         output when possible, e.g., the form above, rather than the
15194         abbreviated, no-tag, no-commit-count string, and fall back to
15195         using a 10-byte hash, rather than the default minimal-length
15196         hash prefix, since while the minimal-length one may be fine today,
15197         it is likely not to be unique for very long.
15199 2013-10-26  Jim Meyering  <meyering@fb.com>
15201         maint.mk: fix "release" target to build _version
15202         This fixes a bug in README-release whereby following the outlined
15203         steps, one would publish a tarball whose programs would report
15204         --version output not consistent with the package version number.
15205         This bug caused grep-2.15 to produce a grep program whose
15206         --version option made it print 2.14.56-1e3d rather than 2.15.
15207         * top/maint.mk (release): Making this target build "_version"
15208         ensures that the new version number is reflected in configure.
15210 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
15212         install-reloc: Support multi-binary installation.
15213         * build-aux/install-reloc: Support installing multiple programs in
15214         one invocation, as done by Automake starting with commit
15215         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
15216         Haible <bruno@clisp.org>, archived at
15217         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
15218         Reported by Sylvain <beuc@gnu.org>.
15220 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15222         selinux-h: Really build without selinux when library is missing.
15223         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
15224         continue without selinux, as already told in the warning message.
15226 2013-10-21  Jim Meyering  <meyering@fb.com>
15228         regex: also remove dependency on HAVE_WCSCOLL
15229         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
15231 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
15233         xfreopen: Fix typo. s/frepoen/freopen/
15234         * lib/xfreopen.c: Fix description.
15235         * modules/xfreopen: Likewise.
15237 2013-10-21  Jim Meyering  <meyering@fb.com>
15239         regex: don't depend on wcscoll
15240         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
15241         It is no longer used.
15243 2013-10-20  Jim Meyering  <meyering@fb.com>
15245         error: add the printf attribute to a static function
15246         * lib/error.c (error_tail): Add the printf attribute, to placate
15247         gcc's -Werror=suggest-attribute=format option.
15249 2013-09-30  Jim Meyering  <meyering@fb.com>
15251         fpending, obstack, strerror-override: use pure+const function attrs
15252         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
15253         * lib/obstack.c (_obstack_allocated_p): Likewise.
15254         * lib/obstack.h (_obstack_memory_used): Likewise.
15255         (_obstack_memory_used): Likewise.
15256         * lib/strerror-override.h (strerror_override): Declare with
15257         the "const" attribute.
15259 2013-10-18  Eric Blake  <eblake@redhat.com>
15261         extern-inline: make safe for -Wundef usage
15262         Reported by Vladimir 'phcoder' Serbinenko in
15263         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
15264         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
15266 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15268         mkfifo-tests, etc.: allow HP-UX 11.11 bug
15269         Problem reported by Daniel Richard G. in
15270         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
15271         * doc/posix-functions/mkfifo.texi (mkfifo):
15272         * doc/posix-functions/mkfifoat.texi (mkfifoat):
15273         * doc/posix-functions/mknod.texi (mknod):
15274         * doc/posix-functions/mknodat.texi (mknodat):
15275         Document the HP-UX 11.11 bug.
15276         * tests/test-mkfifo.h (test_mkfifo):
15277         Allow the HP-UX 11.11 bug.
15279 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15281         acl: allow cross-compilation to Gentoo
15282         Problem reported by Gabriel Marcano in
15283         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
15284         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
15285         test only whether it links.
15287 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15289         mgetgroups: remove dependency on realloc-gnu
15290         The dependency violates the comment in realloc-gnu, which
15291         says that tests can't depend on realloc-gnu; some tests depend
15292         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
15293         Problem reported by Daniel Richard G. in
15294         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
15295         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
15296         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
15297         not realloc-gnu.
15299 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15301         regex-tests: port to HP-UX 11.11
15302         Problem reported by Daniel Richard G. in
15303         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
15304         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
15306 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15308         verify: document some 'assume' pitfalls
15309         * doc/verify.texi (Compile-time Assertions):
15310         Mention that 'assume (E)' can sometimes slow things down.
15311         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
15313 2013-10-10  Eric Blake  <eblake@redhat.com>
15315         strtoumax: fix typo in previous commit.
15316         * modules/strtoumax (Depends-on): Fix typo.
15317         * modules/strtoimax (Depends-on): Likewise.
15319 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15321         strtoumax: port to Solaris 8
15322         This problem was introduced in the recent HP-UX patch.
15323         Reported by Tom G. Christensen in
15324         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
15325         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
15326         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
15328 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
15330         strtoimax, strtoumax: port to HP-UX 11.11
15331         Problem reported by Daniel Richard G. in
15332         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
15333         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
15334         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
15335         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
15336         REPLACE_STRTOUMAX.
15337         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
15338         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
15339         Replace the function if defined as a macro but not as a function.
15340         * modules/inttypes-incomplete (inttypes.h): Substitute
15341         REPLACE_STRTOUMAX.
15342         * modules/strtoumax (configure.ac): Replace strtoumax if
15343         REPLACE_STRTOUMAX.
15345 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15347         strtoimax: port to HP-UX 11.11
15348         Problem reported by Daniel Richard G.
15349         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
15350         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
15351         they might clash with inttypes.h.
15353 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15355         New module 'count-trailing-zeros'.
15356         * MODULES.html.sh: Mention it.
15357         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
15358         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
15359         * modules/count-trailing-zeros-tests:
15360         * tests/test-count-trailing-zeros.c:
15361         New files.
15363         count-leading-zeros: port to MSC; support types wider than 64 bits
15364         The ideas behind the MSC port are stolen from Emacs.
15365         * lib/count-leading-zeros.h:
15366         Don't include verify.h: it's no longer needed, as types wider than
15367         64 bits are now supported.
15368         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
15369         performance with MSC.  All uses changed.  Do not assume that TYPE
15370         has at most 64 bits.
15371         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
15372         All uses changed.  Fold the subtraction from 31 into the table.
15374         count-one-bits: port to MSC; support types wider than 64 bits
15375         The ideas behind the MSC port are stolen from Emacs.
15376         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
15377         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
15378         Don't include verify.h: it's no longer needed, as types wider than
15379         64 bits are now supported.
15380         (COUNT_ONE_BITS_GENERIC): New macro.
15381         (popcount_supported) [_MSC_VER]: New inline function.
15382         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
15383         performance with MSC.  All uses changed.  Do not assume that TYPE
15384         has at most 64 bits.
15385         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
15387 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
15389         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
15390         * lib/mountlist.c (read_file_system_list): fix leak of directory
15391         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
15393 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15395         tests: improve diagnostic when an assertion fails
15396         * tests/macros.h (ASSERT): Report the assertion that failed.
15398 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
15400         verify: new macro 'assume'
15401         This is taken from Emacs, and should be generally useful.
15402         * doc/verify.texi (assume): Document it.
15403         * lib/verify.h (assume): New macro.
15404         (__has_builtin): Expand to 0 if not defined.
15406 2013-09-26  Eric Blake  <eblake@redhat.com>
15408         dup2, dup3: work around another cygwin crasher
15409         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
15410         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
15411         * tests/test-dup2.c (main): Likewise.
15412         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
15413         * lib/dup3.c (dup3): Likewise.
15414         * doc/posix-functions/dup2.texi (dup2): Document it.
15415         * doc/glibc-functions/dup3.texi (dup3): Likewise.
15417         getdtablesize: work around cygwin issue
15418         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
15419         * modules/getdtablesize (configure.ac): Build replacement.
15420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
15421         * modules/unistd (Makefile.am): Expose the witness.
15422         * lib/unistd.in.h (getdtablesize): Declare replacement.
15423         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
15424         * tests/test-getdtablesize.c (main): Test it.
15425         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
15427 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
15429         pmccabe2html: escaping of special characters
15430         Escape all '<', '>', and '&' in HTML output.
15431         * build-aux/pmccabe2html (html_fnc): Call gsub()
15432         instead of sub() to capture all '<', '>', and '&'.
15433         Neither of '<' and '>' is special in a regexp,
15434         so first arguments to gsub() are corrected. Also,
15435         in replacement strings, ampersand must be escaped.
15436         Finally, '&' must be handled first, then '<' and '>'.
15438 2013-09-24  Eric Blake  <eblake@redhat.com>
15440         manywarnings: enable nicer gcc warning messages
15441         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
15442         some -f options for optimal warnings.
15444 2013-09-21  Jim Meyering  <meyering@fb.com>
15446         timespec: use the new TIMESPEC_RESOLUTION in a few more places
15447         * lib/timespec-add.c (timespec_add): Also replace 999999999
15448         with TIMESPEC_RESOLUTION - 1.
15449         * lib/timespec-sub.c (timespec_sub): Likewise.
15451 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
15453         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
15454         Problem reported by Dagobert Michelsen via Eric Blake in
15455         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
15456         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
15457         not AC_COMPILE_IFELSE.
15459 2013-09-23  Eric Blake  <eblake@redhat.com>
15461         configmake: support new --runstatedir option
15462         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
15463         even if autoconf was too old to provide the command line option.
15464         * modules/configmake (Makefile.am): Propagate it to .h file.
15466 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15468         ctype, string: depend on extern-inline
15469         This is needed to complete the recent OS X fixes.
15470         Also, fix related documentation as suggested by Eric Blake.
15471         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
15472         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
15473         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
15474         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
15475         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
15476         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
15477         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
15478         * doc/posix-functions/toupper.texi:
15479         List the 'ctype' gnulib module.
15480         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
15481         * doc/posix-functions/strncpy.texi:
15482         List the 'string' gnulib module.
15483         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
15484         Add string.
15485         * modules/ctype, modules/string (Depends-on): Add extern-inline.
15487 2013-09-19  Pádraig Brady  <P@draigBrady.com>
15489         userspec: support optional parameters to parse_user_spec()
15490         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
15491         then avoid group processing and treat the full spec as a user.
15492         (parse_with_separator): Allow the USERNAME and GROUPNAME to
15493         be optional params (NULL), in which case they're ignored.
15495 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
15497         timespec: new function make_timespec, and new constants
15498         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
15499         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
15500         (make_timespec): New function.
15501         * lib/dtotimespec.c (dtotimespec):
15502         * lib/timespec-add.c (timespec_add):
15503         * lib/timespec-sub.c (timespec_sub):
15504         * lib/utimens.c (validate_timespec):
15505         * lib/utimensat.c (rpl_utimensat):
15506         Use these new constants and functions.
15508         stdio: OS X port of putc_unlocked + extern inline
15509         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
15510         * doc/posix-functions/putc_unlocked.texi:
15511         * doc/posix-functions/putchar_unlocked.texi:
15512         Document this portability problem.
15514         signal: OS X port of sigaddset etc. + extern inline
15515         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
15516         (sigismember): #undef on problematic Apple platforms.
15517         * doc/posix-functions/sigaddset.texi:
15518         * doc/posix-functions/sigdelset.texi:
15519         * doc/posix-functions/sigemptyset.texi:
15520         * doc/posix-functions/sigfillset.texi:
15521         * doc/posix-functions/sigismember.texi:
15522         Document this portability problem.
15524         extern-inline: do not always suppress extern inline on OS X
15525         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
15526         extern inline on Apple only if the particular compile-time
15527         configuration is known to have the problem.
15528         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
15529         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
15530         other Gnulib modules.
15532         extern-inline: document fixes for ctype and wctype macros
15533         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
15534         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
15535         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
15536         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
15537         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
15538         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
15539         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
15540         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
15541         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
15542         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
15543         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
15544         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
15545         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
15546         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
15547         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
15548         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
15549         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
15550         * doc/posix-functions/strncpy.texi:
15551         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
15552         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
15553         Document that Gnulib fixes portability problems with these
15554         functions on OS X 10.8 and earlier when called from plain inline
15555         or extern inline functions.
15557 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
15559         fflush, freadahead, fseeko: Fix for Android
15560         Suggested by Bruno Haible in:
15561         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
15562         * lib/stdio-impl.h: Use local __sfileext definition.
15564 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
15566         pmccabe2html: Portability to other awk versions.
15567         The functions systime() and strftime() are available
15568         in Gawk only.  Properly close two HTML-tags 'style'
15569         and 'span'.
15570         * build-aux/pmccabe2html (BEGIN): Store timing
15571         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
15572         systime() in HTML_COMMENT.
15573         (html_header): Correctly close tag 'style'.
15574         (END): Replace strftime() by CHRONOS_TIME.  Close
15575         tag 'span' correctly, not as 'div'.
15577 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
15579         getgroups: statement without effect
15580         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
15581         Change equality conditional to expected assignment.
15583 2013-09-09  Eric Blake  <eblake@redhat.com>
15585         glob: fix compilation
15586         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
15588 2013-09-07  Eric Blake  <eblake@redhat.com>
15590         glob: fix build for platforms without __THROW
15591         * lib/glob.in.h (__THROW): Add definition again.
15593 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
15595         regex-quote: fix buffer access out of bounds
15596         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
15597         * lib/regex-quote.c (regex_quote_spec_pcre):
15598         Fix typo that resulted in an out-of-bounds read.
15600 2013-09-04  Eric Blake  <eblake@redhat.com>
15602         glob: avoid -Wattribute warnings on glibc
15603         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
15604         __THROWNL, not __THROW, on static functions.
15605         * lib/glob.in.h (__THROW): Adjust...
15606         (__THROWNL): ...accordingly.
15608 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
15610         headers: check that _GL_INLINE_HEADER_BEGIN is defined
15611         Suggested by Bruce Korb in:
15612         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
15613         * doc/extern-inline.texi (extern inline):
15614         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
15615         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
15616         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
15617         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
15618         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
15619         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
15620         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
15621         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
15622         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
15623         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
15624         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
15625         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
15626         * lib/xtime.h:
15627         Check that _GL_INLINE_HEADER_BEGIN is defined.
15629 2013-08-29  Pádraig Brady  <P@draigBrady.com>
15631         bootstrap: remove the --version requirement from ancillary tools
15632         * build-aux/bootstrap (check_exists): A new refactored function to
15633         determine if a command exists.
15634         (find_tool): Use the new function which does not require the
15635         --version option to be supported.
15636         (check_versions): Use the new function.
15638 2013-08-26  Simon Josefsson  <simon@josefsson.org>
15640         gc: support HMAC-SHA256 and HMAC-SHA512.
15641         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
15642         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
15643         functions.
15644         (gc_hmac_md5): Use symbolic constant.
15645         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
15646         (gc_hmac_sha256, gc_hmac_sha512): New functions.
15647         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
15648         * m4/sha256.m4: Protect against empty expansion.
15649         * m4/sha512.m4: Likewise.
15650         * lib/hmac-sha256.c: New file.
15651         * lib/hmac-sha512.c: Likewise.
15652         * m4/gc-hmac-sha256.m4: Likewise.
15653         * m4/gc-hmac-sha512.m4: Likewise.
15654         * m4/gc-sha256.m4: Likewise.
15655         * m4/gc-sha512.m4: Likewise.
15656         * modules/crypto/gc-hmac-sha256: Likewise.
15657         * modules/crypto/gc-hmac-sha256-tests: Likewise.
15658         * modules/crypto/gc-hmac-sha512: Likewise.
15659         * modules/crypto/gc-hmac-sha512-tests: Likewise.
15660         * modules/crypto/hmac-sha256: Likewise.
15661         * modules/crypto/hmac-sha256-tests: Likewise.
15662         * modules/crypto/hmac-sha512: Likewise.
15663         * modules/crypto/hmac-sha512-tests: Likewise.
15664         * tests/test-gc-hmac-sha256.c: Likewise.
15665         * tests/test-gc-hmac-sha512.c: Likewise
15666         * tests/test-hmac-sha256.c: Likewise.
15667         * tests/test-hmac-sha512.c: Likewise
15669 2013-08-24  Daiki Ueno  <ueno@gnu.org>
15671         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
15672         of AC_CHECK_DECLS.
15674 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15676         selinux-at: omit unnecessary include
15677         * lib/selinux-at.c: Don't include dosname.h; not needed, since
15678         this source file doesn't use its macros, and subsidiary files that
15679         use the macros already include it.
15681 2013-08-21  Eric Blake  <eblake@redhat.com>
15683         d-ino: avoid false negative on symlink
15684         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
15685         Reported by Stephane Chazelas.
15687 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
15689         bootstrap: port to OpenBSD sed
15690         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
15691         does not interpret `-' as a file argument to mean stdin.
15693 2013-08-15  Eric Blake  <eblake@redhat.com>
15695         warnings: minor optimization
15696         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
15698         warnings: check -Wfoo rather than -Wno-foo
15699         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
15700         -Wno-, test if the compiler recognizes the positive form instead.
15702 2013-08-15  Karl Berry  <karl@gnu.org>
15704         * config/srclist-update: add option "doclicense" to placate
15705         pulling *.texi files from Emacs.  Write terse usage
15706         documentation at the top.
15708 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
15710         xvasprintf-tests: port to GCC with hardening flags
15711         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
15712         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
15713         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
15715 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15717         fpending: port to recent Cygwin change to stdio_ext.h
15718         Reported by LRN in
15719         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
15720         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
15721         just declare __fpending unless it's a macro.
15722         A duplicate decl shouldn't hurt.
15723         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
15724         call compiles and links, instead of separately checking for
15725         decl and lib function.
15726         * modules/fpending (configure-ac):
15727         Adjust to fpending.m4's renaming of shell variable.
15729 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15731         sys_time: port to OpenBSD
15732         * lib/sys_time.in.h: Simply delegate to the system's header
15733         in the BSDish cases as well.  Problem reported by Mike Miller in
15734         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
15735         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
15736         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
15737         wider than time_t.
15739 2013-08-09  Pádraig Brady  <P@draigBrady.com>
15741         bootstrap: support checksum utils having -c but not --status
15742         * build-aux/bootstrap: Only look for sha1sum if updating po files.
15743         Add sha1 to the list of supported checksum utils since it's now
15744         supported through adjustments below.
15745         (update_po_files): Remove the use of --status
15746         in a way that will suppress all error messages, but since this is
15747         only used to minimize updates, it shouldn't cause an issue.
15748         Exit early if there is a problem updating the po file checksums.
15749         (find_tool): Remove the check for --version support as this
15750         is optional as per commit 86186b17.  Don't even check for the
15751         presence of the command as if that is needed, it's supported
15752         through configuring prerequisites in bootstrap.conf.
15753         Prompt that when a tool isn't found, one can define an environment
15754         variable to add to the hardcoded search list.
15756 2013-08-05  Jim Meyering  <meyering@fb.com>
15758         regex: port to non-glibc/lock-using systems
15759         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
15760         system with GNULIB_LOCK would fail due to absence of the
15761         included "glthread/lock.h".  This would affect any package
15762         for which the "lock" module is used only by the regex module,
15763         and not explicitly used.
15764         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
15765         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
15766         Add a dependency on the "lock" module.
15768 2013-07-20  Daiki Ueno  <ueno@gnu.org>
15770         localecharset: make locale_charset thread-safe on Mac OS X
15771         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
15772         instead of MB_CUR_MAX.
15774 2013-07-20  Daiki Ueno  <ueno@gnu.org>
15776         gettext: update to version 0.18.3
15777         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
15778         require AC_PROG_SED to allow user to specify custom sed command when
15779         generating en@quot PO file.
15781 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
15783         bootstrap: use correct source when copying build-aux files
15784         * build-aux/bootstrap (gnulib_extra_files): This variable is
15785         relative to upstream gnulib layout, not downstream.
15787 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
15789         tmpdir: fix bug in VMS port
15790         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
15791         See Steven M. Schweda in
15792         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
15794 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15796         tmpdir: port to VMS, to // != /, and to long dirs
15797         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
15798         __secure_getenv, so that we're more like the glibc version.
15799         All uses changed.
15800         (path_search): Don't put slash after directory if __VMS.
15801         Problem reported by Steven M. Schweda in
15802         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
15803         Simplify code to add slash; no need for a loop.
15804         Do not remove trailing slash from "//".
15805         Do not assume dlen <= INT_MAX.
15807 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15809         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
15810         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
15811         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
15812         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
15814         accept4, dup3, pipe2: port to Cygwin
15815         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
15816         * lib/accept4.c (accept4) [O_BINARY]:
15817         * lib/dup3.c (dup3) [O_BINARY]:
15818         * lib/pipe2.c (pipe2) [O_BINARY]:
15819         Use set_binary_mode, not setmode.
15820         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
15821         * modules/binary-io (Depends-on): Remove module indicator.
15822         These last two bits undo the previous change to pipe2 and binary-io.
15824 2013-07-09  Pádraig Brady  <P@draigBrady.com>
15826         mountlist: add support for deallocating returned list entries
15827         * lib/mountlist.c (free_mount_entry): A new exported function
15828         to deallocate a mount list entry.
15829         (read_file_system_list): Refactor to use the new deallocation function.
15830         Suggested by Anton Ovchinnikov.
15832 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
15834         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
15835         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
15836         * lib/stdalign.in.h (_Alignas, _Alignof):
15837         Port to FreeBSD 9.1, and to C11 and C++11.
15838         (_Alignas): Also support ICC.
15839         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
15840         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
15842 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15844         fnmatch: don't goto over declaration
15845         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
15846         undefined behavior for goto over a declaration.
15847         Problem reported by Charlie Brown in
15848         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
15850         pipe2: decouple from binary-io a bit
15851         This is for Emacs, which needs pipe2 but not binary-io.
15852         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
15853         * modules/binary-io (Depends-on): Add module indicator.
15855 2013-07-03  Eric Blake  <eblake@redhat.com>
15857         mgetgroups: relax license to LGPLv2+
15858         * modules/getugroups (License): Change from GPLv3+.
15859         * modules/mgetgroups (License): Likewise.
15860         * modules/getgroups (License): Change from LGPLv3+.
15862         xalloc-oversized: relax license to LGPLv2+
15863         * modules/xalloc-oversized (License): Change from GPLv3+.
15865         nproc: relax license to LGPLv2+
15866         * modules/nproc (License): Change from LGPLv3+.
15868         bootstrap: honor --no-git
15869         * build-aux/bootstrap: Don't even try to use git when user is
15870         pointing to a static checkout.
15872 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
15874         ignore-value: port to gcc -pedantic
15875         * lib/ignore-value.h (ignore_value):
15876         Port to gcc -pedantic, by using __extension__.
15877         Reindent as per usual gnulib style nowadays.
15878         Simplify GCC version check.
15880 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
15882         extern-inline: port to gcc -std=c89
15883         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
15884         Do not use __gnu_inline__ if pedantic and pre-C99.
15886 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
15888         doc: document extern-inline
15889         * doc/extern-inline.texi: New file.
15890         * doc/gnulib.texi (alloca-opt): Include it.
15891         * m4/extern-inline.m4: Move some comments to documentation,
15892         and others closer to what they describe.
15894         doc: chatter less
15895         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
15896         (updated-stamp): Use it.  This causes 'make' to output just
15897         one file name rather than zillions.
15899         fflush, fseeko: port to musl cross-compiles
15900         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
15901         on some implementation that (1) is not known to be buggy,
15902         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
15903         cross-compiled to so we can't easily check for lack of
15904         conformance.  This is for cross-compiling to musl.
15905         Reported by Rich Felker in
15906         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
15907         * m4/fclose.m4 (gl_FUNC_FCLOSE):
15908         * m4/fflush.m4 (gl_FUNC_FFLUSH):
15909         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
15910         Adjust to above change.
15911         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
15912         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
15913         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
15914         known not to work, or unknown.
15916 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15918         msvc-inval: port to mingw-w64
15919         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
15920         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
15921         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
15923 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
15925         getcwd-lgpl: port to Tru64
15926         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
15927         Problem reported by Steven M. Schweda in
15928         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
15930         tests: port large-fd POSIX spawn tests to OS X
15931         Problem reported by Daiki Ueno in
15932         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
15933         * tests/test-posix_spawn_file_actions_addclose.c:
15934         * tests/test-posix_spawn_file_actions_adddup2.c:
15935         * tests/test-posix_spawn_file_actions_addopen.c:
15936         Include <limits.h>, for OPEN_MAX, if available.
15937         (big_fd): New static function.
15938         (main): Use it.
15940 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
15942         tests/nap.h: use an adaptive delay to avoid ctime update issues
15943         The recent change in nap.h (5191133e) decreased the probability of lost
15944         races to about a third, however such problems could still be observed
15945         in virtual machines and openSUSE's OBS.
15946         Before, nap() detected the needed time once empirically and then used
15947         that delay (together with a small correction multiplier) in further
15948         calls.  This problem has been reported and discussed several times,
15949         including guesses about possible kernel issues:
15950         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
15951         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
15952         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
15953         http://bugs.gnu.org/12820
15954         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
15955         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
15956         Now, nap() avoids the race alltogether by verifying on a reference
15957         file whether a timestamp difference has happened.
15958         * tests/nap.h (nap_fd): Define file descriptor variable for the
15959         witness file.
15960         (nap_works): Change return value to bool.  Change passing
15961         the old file's status by value instead of by reference as this function
15962         does no longer update that timestamp; rename the function argument from
15963         st to old_st.  Remove the local variables cdiff and mdiff because that
15964         function now returns true/false instead of the precise delay.
15965         (guess_delay): Remove function.
15966         (clear_tmp_file): Add new function to close and unlink the witness file.
15967         (nap): Instead of re-using the delay which has been calculated during
15968         the first call, avoid the race by actually verifying that a timestamp
15969         difference can be observed on the current file system.  Use an adaptive
15970         approach for the delay to minimize execution time.  Assert that the
15971         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
15972         = 2^31 - 1 = 2.1s.
15973         Use atexit to call clear_tmp_file when the process terminates.
15975 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15977         sig2str: port to C++
15978         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
15979         Reported by Daniel J Sebald in
15980         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
15982 2013-05-30  Eric Blake  <eblake@redhat.com>
15984         docs: mention cygwin shortcoming in <sys/un.h>
15985         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
15987         vasnprintf: silence mingw compiler warning
15988         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
15990 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15992         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
15993         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
15994         This fixes a porting bug I recently reintroduced in regex, and
15995         some other instances that I discovered while testing the fix.
15996         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
15997         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
15998         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
15999         with an empty argument if this is a pedantic pre-C99 GCC.
16000         * lib/verify.h: Do not use _Static_assert if this is a pedantic
16001         pre-C11 GCC.
16003         regex: adapt to locking regime instead of depending on pthread
16004         Instead of depending on pthread, adapt to whatever thread
16005         modules are in use.  Problem reported by Ludovic Courtès in
16006         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
16007         and by Mats Erik Andersson in
16008         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
16009         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
16010         Support either the 'lock' module, or the 'pthread' module, or
16011         no module.
16012         (lock_lock, lock_unlock): New macros.
16013         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
16014         * modules/lock, modules/pthread (configure.ac): Add module indicator.
16015         * modules/regex (Depends-on): Remove pthread.
16017 2013-05-22  Eric Blake  <eblake@redhat.com>
16019         getgroups: document portability issues
16020         * doc/glibc-functions/initgroups.texi (initgroups): Mention
16021         multithread safety.
16022         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
16023         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
16024         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
16025         getugroups.
16026         * doc/posix-functions/getgroups.texi (getgroups): Mention
16027         multithread safety and mgetgroups.
16029 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
16031         test-lchown, test-chown: also skip test if chown fails with EPERM
16032         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
16033         skip this test, to handle FAT file systems.
16034         * tests/test-chown.h (test_chown): Likewise.
16036 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16038         regex: fix dfa race in multithreaded uses
16039         Problem reported by Ludovic Courtès in
16040         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
16041         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
16042         New macros.  All uses of __libc_lock_define, __libc_lock_init
16043         changed to use the first two of these.
16044         (__libc_lock_lock, __libc_lock_unlock): New macros, for
16045         non-glibc platforms.
16046         (struct re_dfa_t): Define the lock unconditionally.
16047         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
16048         '#ifdef _LIBC"s.
16049         * modules/regex (Depends-on): Add pthread, if we use the
16050         included regex.
16052         * lib/regcomp.c: Do actions that are not needed for glibc,
16053         but may be needed elsewhere.
16054         (regfree, re_compile_internal): Destroy the lock.
16055         (re_compile_internal): Check for lock-initialization failure.
16057         malloca: port to compilers that reject size-zero arrays
16058         This fixes a bug introduced in my previous patch.
16059         * lib/malloca.c (struct preliminary_header): Use an int
16060         rather than a character array of size int; that's simpler.
16061         (struct header): Remove, replacing with ...
16062         (union header): New type.  This avoids the need for declaring a
16063         character array of size zero, which is not allowed on some platforms.
16064         All uses changed.
16066 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
16068         parse-datetime, tests: don't use "string" + int
16069         Recent versions of 'clang' complain about C source code that
16070         uses expressions of the form '"string literal" + integer',
16071         I guess on the theory that it's confusing for readers who are
16072         used to C++.  On those grounds I suppose it's OK to make this
16073         minor style change.
16074         * lib/parse-datetime.y (parse_datetime):
16075         * tests/test-fchdir.c (main):
16076         * tests/test-snprintf-posix.h (test_function):
16077         * tests/test-snprintf.c (main):
16078         * tests/test-vasnprintf-posix.c (test_function):
16079         * tests/test-vasnprintf.c (test_function):
16080         * tests/test-vsnprintf.c (main):
16081         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
16082         Rewrite '"str" + E' to '&"str"[E]'.
16084 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
16086         argmatch: port to C++
16087         * lib/argmatch.h [__cplusplus]: Add extern "C".
16089         argp: typo fix
16090         * lib/argp-help.c: Typo in comment.
16092 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
16094         manywarnings: update for GCC 4.8.0
16095         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
16096         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
16097         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
16098         -Wmissing-noreturn, as they are duplicates of other warnings.
16099         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
16100         was documented to be flaky in earlier versions of GCC.
16102         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
16103         * tests/test-spawn.c (main):
16104         * tests/test-sys_socket.c (main):
16105         * tests/test-sys_wait.c (main):
16106         Don't have a switch value that isn't covered by a case.
16108         getaddrinfo-tests: port --enable-gcc-warnings to clang
16109         * tests/test-getaddrinfo.c (simple):
16110         Avoid casts from looser to stricter-aligned pointers.
16112         thread: port --enable-gcc-warnings to clang
16113         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
16114         Include <signal.h>, to pacify a warning about pthread_sigmask.
16116         stdio: use __REDIRECT for fwrite, fwrite_unlocked
16117         * lib/stdio.in.h (fwrite):
16118         When working around bug 11959, use __REDIRECT rather than '#define
16119         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
16120         fix the -Wunused-value issue with clang, and it works with GCC too.
16121         Problem with targeting reported by Eric Blake in
16122         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
16123         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
16124         debugging the fwrite issue.
16126         stdio: port --enable-gcc-warnings to clang
16127         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
16128         since the GCC workaround for fwrite does not pacify clang.
16130         sig2str: port --enable-gcc-warnings to clang
16131         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
16133         obstack: port --enable-gcc-warnings to clang
16134         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
16135         Avoid casts from looser to stricter-aligned pointers.
16137         memchr2: port --enable-gcc-warnings to clang
16138         * lib/memchr2.c (memchr2):
16139         Avoid casts from looser to stricter-aligned pointers.
16141         mbsstr: port --enable-gcc-warnings to clang
16142         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
16143         Avoid casts from looser to stricter-aligned pointers.
16145         malloca: port --enable-gcc-warnings to clang
16146         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
16147         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
16149         inttostr: port --enable-gcc-warnings to clang
16150         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
16152         warnings: port to clang
16153         Problem reported by Daniel P. Berrange via Eric Blake in
16154         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
16155         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
16156         (gl_WARN_ADD): Use it.
16158 2013-05-11  Jim Meyering  <meyering@fb.com>
16160         quotearg: do not read beyond end of buffer
16161         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
16162         end of an ARG for which no length was specified.  With an N-byte
16163         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
16164         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
16165         via coreutils' misc/sort-debug-keys.sh test and detected by running
16166         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
16167         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
16168         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
16169         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
16170         characters correctly."
16172 2013-05-11  Daiki Ueno  <ueno@gnu.org>
16174         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
16175         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
16176         compilation target is Mac OS X 10.6.
16177         Problem reported by parafin and Andoni Morales in
16178         <http://savannah.gnu.org/bugs/?37844> and
16179         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
16181 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
16183         mkdir-p: remove assumptions about umask and mode
16184         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
16185         umask is 0, or that MODE is a subset of MODE_BITS.
16187 2013-05-10  Eric Blake  <eblake@redhat.com>
16189         maint.mk: catch more abuse of HAVE_DECL in syntax-check
16190         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
16192 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
16194         deps: require Automake >= 1.9.6 in generated Makefile fragments
16196         That is the same minimal version required in the DEPENDENCIES file.
16197         Moreover, the old code generated a requirement of Automake >= 1.5,
16198         and that is an insanely outdated version.
16200         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
16201         * tests/havelib/rpathlx/Makefile.am: Likewise.
16202         * tests/havelib/rpathly/Makefile.am: Likewise.
16203         * tests/havelib/rpathlyx/Makefile.am: Likewise.
16204         * tests/havelib/rpathlz/Makefile.am: Likewise.
16205         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
16206         * tests/havelib/rpathx/Makefile.am: Likewise.
16207         * tests/havelib/rpathy/Makefile.am: Likewise.
16208         * tests/havelib/rpathz/Makefile.am: Likewise.
16210 2013-05-08  Eric Blake  <eblake@redhat.com>
16212         bootstrap: AC_INIT may have more than four parameters
16213         * build-aux/bootstrap (extract_package_name): Correctly extract
16214         non-empty tarname field.  Avoid range in regex.
16215         Based on a report by Sami Kerola <kerolasa@iki.fi>.
16217 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16219         qacl: port to MS-Windows port of GNU Emacs
16220         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
16221         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
16222         port of GNU Emacs.  Problem reported by Eli Zaretskii in
16223         <http://bugs.gnu.org/14295#14>.
16225 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
16227         acl: include quote.h
16228         * lib/copy-acl.c: Include quote.h.
16229         * lib/set-acl.c: Likewise.
16231 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
16233         fchownat, renameat, unlinkat: update statat dependencies
16234         These modules use statat and lstatat, not fstatat; so depend on
16235         the statat module, which was split out recently from fstatat.
16236         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
16237         * modules/renameat: Likewise.  Also delete fstat.
16238         URL: http://bugs.gentoo.org/468790
16240 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
16242         Assume gnulib is checked out from Git, not CVS
16244         In fact, access to the gnulib repository through CVS has been
16245         disabled, or more precisely, got broken and was never restored; see:
16246         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
16248         Note that support for CVS is not removed completely and unthinkingly
16249         by this change: only support for CVS checkouts of gnulib itself is
16250         removed.  For example, the 'bootstrap' script still cater to .cvsingore
16251         files and CVS directories, for the benefit of those poor gnulib clients
16252         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
16254         * gnulib-tool: Simplify accordingly.
16255         * posix-modules: Likewise.
16256         * MODULES.html.sh: Likewise.
16257         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
16258         repository.
16259         * doc/gnulib-intro.texi: Likewise.
16260         * doc/gnulib-readme.texi: Likewise.
16261         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
16262         sample '.gitignore' file rather than a sample '.cvsignore'.
16263         * NEWS: Update.
16264         * m4/extensions.m4: While at it, remove a comment mistakenly referring
16265         to "CVS Autoconf" rather than "git Autoconf".
16267 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
16269         utimensat-tests, etc.: try to fix some races
16270         Problem reported by Bernhard Voelker in
16271         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
16272         I don't know whether this patch fixes that race condition, but it
16273         fixes *some* race conditions, so it should be a win.
16274         * modules/chown-tests (Depends-on):
16275         * modules/fchownat-tests (Depends-on):
16276         * modules/fdutimensat-tests (Depends-on):
16277         * modules/futimens-tests (Depends-on):
16278         * modules/lchown-tests (Depends-on):
16279         * modules/stat-time-tests (Depends-on):
16280         * modules/utimens-tests (Depends-on):
16281         * modules/utimensat-tests (Depends-on):
16282         Depend on nanosleep, not usleep.
16283         * modules/chown-tests (test_chown_LDADD):
16284         * modules/lchown-tests (test_lchown_LDADD):
16285         * modules/stat-time-tests (test_stat_time_LDADD):
16286         New macro.
16287         * modules/fchownat-tests (test_fchownat_LDADD):
16288         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
16289         * modules/futimens-tests (test_futimens_LDADD):
16290         * modules/utimens-tests (test_utimens_LDADD):
16291         * modules/utimensat-tests (test_utimensat_LDADD):
16292         Add $(LIB_NANOSLEEP).
16293         * modules/stat-time-tests (Files): Add tests/nap.h.
16294         * tests/nap.h: Include <limits.h>, for INT_MAX.
16295         (lt_mtime): Remove.
16296         (diff_timespec): New function.
16297         (get_stat): Rename from get_mtime.  All callers changed.
16298         (nap_works): Determine the needed delay by inspecting the
16299         file system's timestamp jumps; this should be more reliable.
16300         Look at both mtime and ctime, and take the maximum of the two jumps.
16301         (nap_works, guess_delay):
16302         Return a nanosecond count, not a microsecond count.
16303         All callers changed.
16304         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
16305         failure.
16306         (nap): Multiply the guess by 1.125, to accommodate the case where
16307         the file system's clock is a bit slower than nanosleep's clock.
16308         * tests/test-stat-time.c (BASE): New macro.
16309         Include nap.h.
16310         (nap): Remove; nap.h now defines this.  This removes a duplicate
16311         implementation of 'nap'.
16313         utimens, utimensat: work around Solaris UTIME_OMIT bug
16314         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
16315         Linux kernel 2.6.32 does.  Work around it in the same way.
16316         * doc/posix-functions/futimens.texi (futimens):
16317         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
16318         * lib/utimens.c (fdutimens, lutimens):
16319         * lib/utimensat.c (rpl_utimensat): Work around the bug.
16321         gettext: now it's your responsibility to add -I$(top_builddir)/intl
16322         Formerly, it was your responsibility to do this for all Makefile.ams
16323         other than Gnulib's.  Now it's your responsibility to do it for
16324         Gnulib's Makefile.am, too.
16325         * NEWS: Document this.
16326         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
16328         acl: include errno.h to get errno
16329         Reported by Daiki Ueno in
16330         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
16331         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
16333 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
16335         tests: don't assume getdtablesize () <= 10000000
16336         * modules/cloexec-tests:
16337         * modules/dup2-tests:
16338         * modules/dup3-tests:
16339         * modules/nonblocking-tests:
16340         * modules/posix_spawn_file_actions_addclose-tests:
16341         * modules/posix_spawn_file_actions_adddup2-tests:
16342         * modules/posix_spawn_file_actions_addopen-tests:
16343         * modules/unistd-safer-tests:
16344         Depend on the getdtablesize module.
16345         * tests/test-cloexec.c:
16346         * tests/test-dup-safer.c:
16347         * tests/test-dup2.c:
16348         * tests/test-dup3.c:
16349         * tests/test-fcntl.c:
16350         * tests/test-nonblocking.c:
16351         * tests/test-posix_spawn_file_actions_addclose.c:
16352         * tests/test-posix_spawn_file_actions_adddup2.c:
16353         * tests/test-posix_spawn_file_actions_addopen.c:
16354         Don't assume getdtablesize () <= 10000000.
16356 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
16358         extern-inline: work around bug in Sun c99
16359         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
16360         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
16362 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
16364         qacl: new module, broken out from the acl module
16365         This is for GNU Emacs, which wants the acl functions but does
16366         not want 'error' invoked when they fail.
16367         * lib/acl-internal.h: Do not include error.h, quote.h.
16368         (ENOSYS, ENOTSUP): Remove; no longer needed.
16369         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
16370         * lib/acl.h: Include <stdbool.h>.
16371         (acl_errno_valid): New function.
16372         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
16373         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
16374         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
16375         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
16376         (ACL_INTERNAL_INLINE): Remove; no longer needed.
16377         * lib/file-has-acl.c (file_has_acl):
16378         * lib/qcopy-acl.c (qcopy_acl):
16379         * lib/qset-acl.c (qset_acl):
16380         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
16381         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
16382         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
16383         lib/file-has-acl.c, m4/acl.m4 to qacl module.
16384         Add lib/set-acl.c.
16385         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
16386         Add qacl.
16387         (configure.ac): Move gl_FUNC_ACL to qacl module.
16388         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
16389         Rename set-mode-acl.c to set-acl.c.
16390         * lib/acl-errno-valid.c: New file.
16391         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
16392         copy_acl function remains in copy-acl.c.
16393         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
16394         (_): Remove; not needed.
16395         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
16396         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
16397         * modules/qacl: New file, moved from the old modules/acl.
16398         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
16399         Remove set-mode-acl.c, copy-acl.c.
16400         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
16402         alignof, intprops, malloca: port better to IBM's C compiler
16403         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
16404         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
16405         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
16407 2013-04-25  Daiki Ueno  <ueno@gnu.org>
16409         wctype-h: fix gettext link error on mingw
16410         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
16411         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
16412         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
16413         rpl_towupper and rpl_towupper.
16415 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
16417         regex-tests, regex: allow glibc re_search behavior
16418         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
16419         re_search input data to make the multi-character collating element
16420         in it clearly visible, and treat re_search return code 0 as valid.
16421         * m4/regex.m4 (gl_REGEX): Likewise.
16423 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
16425         stdalign: doc fix
16426         * doc/posix-headers/stdalign.texi (stdalign.h):
16427         Gnulib doesn't support '_Alignof expr'.
16429 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
16431         stdalign: port to stricter ISO C11
16432         ISO C11 says that _Alignof's operand must be a parenthesized type.
16433         Problem reported by Eli Zaretskii in
16434         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
16435         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
16436         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
16438 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
16440         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
16441         Problem reported by Marco Atzeri in
16442         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
16443         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
16444         Simply delegate to the system <sys/select.h> in this case too.
16445         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
16446         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
16447         be needed on Solaris either.
16448         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
16449         Simply delegate to the system <sys/time.h> in this case.
16451 2013-03-19  Karl Berry  <karl@gnu.org>
16453         * build-aux/gnupload: check for erroneous (with gnupload) use of
16454         ftp-upload.gnu.org, tweak help.
16456 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16458         copy-file, rpmatch: fix problems found by cppcheck
16459         Reported by Arno Onken in
16460         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
16461         * lib/rpmatch.c (try): Fix memory leak.
16462         * lib/copy-file.c: Include "ignore-value.h".
16463         (qcopy_file_preserving): Ignore chown value.
16464         * modules/copy-file (Depends-on): Add ignore-value.
16466 2013-01-27  Jim Meyering  <jim@meyering.net>
16468         prefix-gnulib-mk: give better diagnostics
16469         * build-aux/prefix-gnulib-mk: Don't just "die".
16470         Give better diagnostics upon failure.
16472 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
16474         putenv: port to Solaris 10
16475         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
16476         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
16477         is not what is wanted here.
16478         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
16479         declaration, not for its existence.
16481 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
16483         mktime: fix configure typo
16484         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
16486 2013-03-12  Eric Blake  <eblake@redhat.com>
16488         regex-tests: skip UTF-8 test on mingw
16489         * modules/regex-tests (Depends-on): Add localcharset.
16490         * tests/test-regex.c (main): Use it to skip test on mingw.
16492 2013-03-11  Eric Blake  <eblake@redhat.com>
16494         tests: make it easier to bypass alarm time in debugger
16495         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
16496         * tests/test-memmem.c (main): Likewise.
16497         * tests/test-passfd.c (main): Likewise.
16498         * tests/test-ptsname.c (main): Likewise.
16499         * tests/test-ptsname_r.c (main): Likewise.
16500         * tests/test-strcasestr.c (main): Likewise.
16501         * tests/test-strstr.c (main): Likewise.
16503         regex: port to mingw's recent addition of undeclared alarm
16504         * doc/posix-functions/alarm.texi (alarm): Document that alarm
16505         exists but still doesn't work in newer mingw.
16506         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
16507         not existence.  Ensure SIGALRM is not trapped.
16508         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
16509         * m4/regex.m4 (gl_REGEX): Likewise.
16510         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
16511         * tests/test-regex.c (main): Use correct probe for alarm.
16513         putenv: avoid compilation warning on mingw
16514         * lib/putenv.c (_unsetenv): Protect variable declaration.
16515         (putenv): Fix indentation.
16517 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
16519         unistd: don't prevent Tru64 Unix from using gnulib strtod.
16520         * lib/unistd.in.h: be careful not to include un-needed system
16521         stdlib.h from here, because that prevents gnulib stdlib.h from
16522         defining rpl_strtod correctly.
16524 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
16526         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
16527         changesets, but for the 'precision 0' test.
16528         * tests/test-vasprintf-posix.c (test_function): Don't insist on
16529         round-to-even, since POSIX says rounding is implementation-defined
16530         and OS X 10.8.2 rounds 1.51 to 1 here.
16532         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
16533         changeset.
16534         * tests/test-vasprintf-posix.c (test_function): Don't insist on
16535         round-to-even, since POSIX says rounding is implementation-defined
16536         and OS X 10.8.2 rounds 1.5 to 1 here.
16538 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
16540         vasnprintf-posix-tests: allow rounding 1.5 to 1
16541         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
16542         round-to-even, since POSIX says rounding is implementation-defined
16543         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
16544         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
16546         bootstrap: port to FreeBSD
16547         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
16548         that treat '--' differently.  Reported by Mats Erik Andersson in
16549         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
16551 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
16553         regex: rename remaining __attribute calls to __attribute__.
16554         2012-02-25 changed definition of __attribute, but left some uses
16555         unchanged, preventing compilation of regex module on most non-gcc
16556         environments.
16557         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
16558         (lookup_collation_sequence_value, build_range_exp)
16559         (build_collating_symbol): Set attributes with newly renamed
16560         __attribute__ decorator.
16561         * lib/regex_internal.c (re_string_peek_byte_case)
16562         (re_node_set_compare, re_node_set_contains): Likewise.
16563         * lib/regexec.c (acquire_init_state_context): Likewise.
16565 2013-03-06  Bruno Haible  <bruno@clisp.org>
16567         execute: Revert last change, but use a different condition.
16568         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
16569         on Windows.
16571 2013-03-05  Eric Blake  <eblake@redhat.com>
16573         execute: drop dead code
16574         * lib/execute.c (nonintr_close, nonintr_open): Delete.
16576 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
16578         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
16579         * m4/non-recursive-gnulib-prefix-hack.m4
16580         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
16581         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
16582         <http://bugs.gnu.org/10305#237>.
16584 2013-03-04  Eric Blake  <eblake@redhat.com>
16586         test-getsockopt: avoid compiler warning
16587         * tests/test-getsockopt.c (includes): Ensure close is declared.
16589 2013-03-02  Bruno Haible  <bruno@clisp.org>
16591         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
16592         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
16594 2013-03-02  Bruno Haible  <bruno@clisp.org>
16596         gettext: Update to version 0.18.2.
16597         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
16598         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
16599                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
16601 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16603         regex: merge patches from libc
16605         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
16606         * lib/regex_internal.h (__attribute__): Rename from __attribute.
16607         All uses changed.
16608         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
16609         (re_string_wchar_at, re_string_elem_size_at):
16610         Mark function as possibly unused.
16612         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
16613         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
16614         elements compare against the byte sequence of it, not its name.
16616 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
16618         putenv: port better to native Windows
16619         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
16620         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
16621         (_unsetenv): Use _putenv if available.
16622         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
16623         a bit less likely to cause damage.
16624         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
16625         Fix the wrong value with SetEnvironmentVariable.
16626         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
16627         code better.
16629 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16631         regex: ignore old-style-definition warnings
16632         * lib/regex.c: Add pragma to ignore these warnings.
16633         Problem reported for GNU tar by Pavel Raiskup.
16635 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
16637         getcwd: support coreutils better
16638         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
16639         but this might not be correct in coreutils, which disables
16640         the raw decl checks.  Problem reported by Nagendra in
16641         <http://bugs.gnu.org/10305#192>.
16642         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
16643         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
16644         Test the getcwd function, not any macro, since getcwd.c wants the
16645         function.
16646         * m4/getcwd.m4 (gl_FUNC_GETCWD):
16647         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
16648         compile, as might happen if there's a macro but no function.
16650         strtod: support coreutils better
16651         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
16652         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
16653         disables the raw decl checks.  This assumes there is an underlying
16654         strtod, but that's a safe assumption these days.
16655         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
16657         mountlist: port to HP NonStop
16658         Reported by Joachim Schmitz in
16659         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
16660         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
16661         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
16663 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
16665         extern-inline: avoid compilation error with HP-UX cc
16666         Reported by Richard Lloyd in
16667         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
16668         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
16669         Suppress extern inline with HP-UX cc.  This should be safe,
16670         though it may hurt performance.  Perhaps someone with some HP-UX
16671         experience can come up with a higher-performance fix.
16673 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
16675         putenv: fix heap corruption with mixed putenv/_putenv
16676         Problem reported by Michael Goffioul in
16677         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
16678         * lib/putenv.c (putenv) [HAVE__PUTENV]:
16679         Rely on _putenv to allocate the new environment.
16680         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
16681         * modules/putenv (configure.ac): Use it.
16683 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
16685         unsetenv etc.: port to Solaris 11 + GNU Emacs
16686         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
16687         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
16688         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
16689         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
16690         idea but is too painful to fix right now), and without this gnulib
16691         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
16692         compiling unsetenv.c on Solaris 11.  Fix the problem for
16693         unsetenv.c, and fix other similar occurrences.
16695 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16697         secure_getenv: fix C++ declaration typo
16698         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
16699         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
16700         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
16702 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16704         careadlinkat: stop exporting careadlinkatcwd
16705         Only Emacs used it directly, and Emacs no longer needs it.
16706         * NEWS: Document this simplification.
16707         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
16708         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
16709         for readlink.
16710         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
16711         Don't include stdlib.h; no longer needed.
16712         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
16713         * lib/relocwrapper.c: Adjust comment to match new dependencies.
16714         * modules/areadlink (Depends-on): Add readlink.
16715         (Maintainer): Add self.
16716         * modules/careadlinkat (Depends-on): Remove readlink.
16718         extensions: port better to HP-UX
16719         This is merged from git Autoconf.
16720         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
16721         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
16722         so that it's compatible with the value used when compiling.
16724         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
16725         Problem reported by Mats Erik Andersson in
16726         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
16727         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
16728         openpty function exists, not merely when we intend to replace it.
16729         This corrects the 2013-01-31 patch, which mistakenly defined
16730         HAVE_OPENPTY even on hosts that lacked it.
16732 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
16734         secure_getenv: fix include typo
16735         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
16737         secure_getenv: port better to FreeBSD and Solaris
16738         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
16739         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
16740         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
16741         This works better on BSDish platforms.
16742         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
16743         Test for issetugid if __secure_getenv is missing.
16745 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16747         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
16748         Some of these changes are merged in from git Autoconf.
16749         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
16750         When deciding whether to define _XOPEN_SOURCE, inspect the
16751         preprocessor macro __hpux instead of the more-heavyweight
16752         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
16753         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
16754         as the key for __EXTENSIONS__.
16756         unistd: avoid namespace pollution on non-glibc systems
16757         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
16758         This avoids namespace pollution on non-glibc systems, by causing
16759         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
16760         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
16761         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
16763 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16765         tmpdir: use secure_getenv
16766         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
16767         Define to secure_getenv, not getenv.
16768         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
16769         as that's now secure_getenv's job.
16770         * modules/tmpdir (Depends-on): Add secure_getenv.
16772         tempname: use secure_getenv
16773         * lib/tempname.c (__secure_getenv) [!_LIBC]:
16774         Define to secure_getenv, not getenv.
16775         * modules/tempname (Depends-on):
16776         Add secure_getenv.
16778         secure_getenv: new module
16779         * MODULES.html.sh (Extra functions based on ANSI C 89):
16780         Add secure_getenv.
16781         * doc/glibc-functions/secure_getenv.texi: New file.
16782         * doc/gnulib.texi: Include it.
16783         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
16784         New files.
16785         * lib/stdlib.in.h (secure_getenv): New decl.
16786         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
16787         * modules/stdlib (stdlib.h):
16788         Add secure_getenv checks.
16790 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
16792         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
16793         Reported for OS X 10.8.2 by Assaf Gordon in
16794         <http://bugs.gnu.org/13516>.
16795         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
16796         !HAVE_OPENAT && !HAVE_FDOPENDIR.
16797         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
16798         so that they can be kept in sync more easily.  Avoid PATH_MAX
16799         test on the Hurd.  Sync from test-getcwd.c for errno tests after
16800         mkdir or chdir failure.
16801         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
16802         lib/getcwd.c.
16803         (test_abort_bug): Do not test for the deep directory bug unless we
16804         have openat support.  Avoid PATH_MAX test on the Hurd.
16806         regex-tests, regex: fix bug: memset undeclared
16807         * tests/test-regex.c: Don't include regex.h twice.  Include
16808         string.h, to declare memset.  Christensen's report also mentioned
16809         this issue.
16810         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
16811         test-regex.c, to avoid future problems like this.  Remove
16812         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
16813         twice.
16815         regex-tests: fix link errors on older Solaris
16816         These need to link with @LIBINTL@ to get libintl_gettext.
16817         Problem reported by Tom G. Christensen in
16818         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
16819         * modules/regex-tests (test_regex_LDADD): New macro.
16821 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
16823         regex-tests: new module
16824         * modules/regex-tests, tests/test-regex.c: New files.
16826         regex: fix off-by-one error in configure test
16827         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
16829 2013-01-31  Eric Blake  <eblake@redhat.com>
16831         regex: avoid infinite configure test
16832         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
16834 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
16836         openpty: fix bug where HAVE_OPENPTY wasn't defined
16837         See the thread starting at:
16838         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
16839         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
16840         openpty function exists, not merely when we intend to replace it.
16842 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16844         sys_time: port to Solaris 2.6
16845         There is a circularity problem on Solaris 2.6, where <time.h> includes
16846         <sys/time.h> for struct timespec.  The include nesting is gnulib
16847         <time.h>, system <time.h>, gnulib <sys/time.h>, system
16848         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
16849         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
16850         <sys/siginfo.h>; the last, innermost file needs struct
16851         timestruc_t, which is defined in <sys/time.h>, which has not been
16852         fully parsed.  Problem reported by Tom G. Christensen in
16853         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
16854         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
16855         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
16856         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
16857         uses split double-inclusion guards.
16859 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16861         regex: test for buffer overrun
16862         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
16863         for the just-fixed regex bug.
16865 2013-01-29  Andreas Schwab  <schwab@suse.de>
16867         regex: fix buffer overrun in regexp matcher [BZ #15078]
16868         * lib/regexec.c (extend_buffers): Add parameter min_len.
16869         (check_matching): Pass minimum needed length.
16870         (clean_state_log_if_needed): Likewise.
16871         (get_subexp): Likewise.
16873 2013-01-28  Pádraig Brady  <P@draigBrady.com>
16875         mountlist: don't consider "devtmpfs" as dummy
16876         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
16877         as there is storage associcated with it.
16879 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
16881         futimens-tests, utimens-tests: Depend on gettext.
16882         This works around a problem introduced in my 2013-01-12 patch,
16883         which added @LIBINTL@ to these modules.
16884         * modules/futimens-tests (Depends-on):
16885         * modules/utimens-tests (Depends-on): Add gettext.
16887 2013-01-26  Eric Blake  <eblake@redhat.com>
16889         test-getpeername: fix typo
16890         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
16892 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
16894         bootstrap: remove the need for a sorted .gitignore file
16895         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
16896         rename to insert_if_absent(), so that we don't need or generate
16897         a sorted .gitignore file.  We do require a .gitignore with no
16898         existing duplicate entries and enforce that.
16899         (sort_patterns): Remove this function as we now use the simpler
16900         technigue of inserting blacklist entries at the top of the file,
16901         assuming gnulib won't be inserting !whitelist entries.
16903 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16905         readlinkat: don't depend on gl_FUNC_OPENAT
16906         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
16907         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
16908         renameat.m4, symlinkat.m4; but one thing at a time.
16910         statat: new module, split out from fstatat
16911         GNU Emacs needs the POSIX-specified fstatat, but not the
16912         gnulib-specified statat and lstat.  Split the latter two into a
16913         new module 'statat'.
16914         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
16915         * lib/openat.h, lib/statat.c (STATAT_INLINE):
16916         Rename from FSTATAT_INLINE. All uses changed.
16917         * modules/fstatat (Files): Remove lib/statat.c.
16918         (gl_MODULE_INDICATOR([fstatat])): Remove.
16919         (lib_SOURCES): Remove.
16920         (Maintainer): Add self.
16921         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
16922         * tests/test-fstatat.c (BASE): Don't define if already defined.
16923         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
16925 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
16927         tests: don't assume fd 99 is closed
16928         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
16929         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
16930         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
16931         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
16932         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
16933         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
16934         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
16935         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
16936         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
16937         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
16938         * tests/test-fwrite.c, tests/test-getpeername.c:
16939         * tests/test-getsockname.c, tests/test-getsockopt.c:
16940         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
16941         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
16942         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
16943         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
16944         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
16945         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
16946         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
16947         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
16948         * tests/test-unlinkat.c, tests/test-unlockpt.c:
16949         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
16950         Close file descriptor 99, instead of assuming it's already closed.
16952 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16954         stpncpy: port to OS X 10.8
16955         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
16956         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
16958 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
16960         unistd: port to recent mingw
16961         * lib/unistd.in.h: Remove special invocation convention for mingw,
16962         which breaks for the latest mingw version.  See John W. Eaton in
16963         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
16965         largefile: port better to Mac OS X 10.5
16966         This patch is backported from Autoconf git.
16967         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
16968         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
16969         with ino_t size being different for configuration time versus
16970         build/run time.  Problem reported by PHO in
16971         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
16973 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
16975         doc: clarify -Werror
16976         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
16977         clarify that it's intended for developers, not for ordinary builds,
16978         and mention --enable-gcc-warnings as one possible use.
16980 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
16982         stdint: fix build with Android's Bionic fox x86
16983         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
16984         was already included as _SSIZE_T_DEFINED_ might also be defined
16985         in include/machine/_types.h, which is included by stdio.h
16987 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
16989         net_if-tests: port to Solaris 7 + GCC 3.4.6
16990         Problem reported by Tom G. Christensen in
16991         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
16992         * tests/test-net_if.c (ni): Move to next the code that uses it,
16993         so that it's declared only if needed.
16995 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
16997         net_if-tests: port to older Solaris
16998         Problem reported by Tom G. Christensen in
16999         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17000         * modules/net_if-tests (NET_IF_LIB): New substitution.
17001         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
17002         (HAVE_IF_NAMEINDEX): New C macro.
17003         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
17005         system-quote-tests: port to older Solaris
17006         Problem reported by Tom G. Christensen in
17007         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17008         * tests/test-system-quote-child.c (fopen, fread): Undef.
17010         c-xvasprintf etc.: fix link errors on older Solaris
17011         These need to link with @LIBINTL@ to get libintl_gettext.
17012         Problem reported by Tom G. Christensen in
17013         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17014         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
17015         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
17016         * modules/futimens-tests (test_futimens_LDADD):
17017         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
17019 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17021         locale: port to Solaris 2.6 and 7 + GNU gettext
17022         * lib/locale.in.h: Just include_next <locale.h> when
17023         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
17024         when combining the localename module with GNU gettext 0.18.2.
17025         Problem reported by Tom G. Christensen in
17026         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
17028 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17030         stdlib: port to Solaris 2.6
17031         Also, the code worked on Solaris 7 through 9 only by accident.
17032         Problem reported by Tom G. Christensen in
17033         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
17034         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
17035         simply include the system stdlib.h.
17036         * lib/getopt.in.h (__need_system_stdlib_h):
17037         * lib/pthread.in.h (__need_system_stdlib_h):
17038         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
17039         Define when including <stdlib.h>, to avoid problems at least for
17040         the pthread case on Solaris 2.6 and 7.  These .h files can get by
17041         with the system stdlib.h.
17043 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
17045         doc: update main copyright year
17046         * doc/gnulib.texi: Update copyright date.
17048         doc: improve ISO 8601 discussion
17049         * doc/parse-datetime.texi (Combined date and time of day items):
17050         Specify more carefully what formats are supported and what is
17051         done with excess precision.
17053 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
17055         doc: avoid small caps
17056         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
17057         they're more trouble than they're worth.  Suggested by Karl Berry
17058         in <http://bugs.gnu.org/13360>.
17060         regex: conform to strict C
17061         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
17062         From Aharon Robbins.
17064         gnulib-tool: fix incompatibility with autopoint 0.18.2
17065         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
17066         Problem reported by Tom G. Christensen in
17067         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
17069 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
17071         fprintftime: bring back and reword fwrite comment
17072         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
17074         stdio: remove now-unnecessary stdio.c
17075         Since stdio.in.h no longer uses inline functions, we no longer
17076         need to compile the extern versions.
17077         * lib/stdio.c: Remove.
17078         * modules/stdio (Files): Remove lib/stdio.c.
17079         (lib_SOURCES): Remove.
17081         unicodeio: depend on stdio, not ignore-value
17082         * lib/unicodeio.c: Do not include ignore-value.h.
17083         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
17084         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
17086         fprintftime: depend on stdio, not ignore-value
17087         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
17088         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
17089         since the stdio module arranges to silence that warning now.
17090         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
17092 2012-10-04  Simon Josefsson  <simon@josefsson.org>
17094         stdint-tests: Fix expanded-before-required-warning.
17095         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
17097 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17099         fwrite: silence __wur only for older glibc versions
17100         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
17101         This will help us remove this workaround some time in the far future.
17103 2013-01-03  Eric Blake  <eblake@redhat.com>
17105         fwrite: silence __wur without using inline
17106         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
17107         just gcc, and in a way that avoids inline issues.
17108         * modules/stdio (Depends-on): Drop extern-inline.
17110 2013-01-03  Jim Meyering  <jim@meyering.net>
17112         update-copyright: avoid copyright notice date corruption
17113         Given a sequence of copyright year numbers in which the final
17114         one was a two-digit number that happened to be a substring of
17115         a preceding four-digit year number, we would mistakenly update
17116         the substring (from two- to four-digit) rather than the two-digit
17117         number at the end, which, combined with the addition of the current
17118         4-digit year number would yield two 5-digit year numbers, e.g.,
17119         here, it would convert the first "99" to "1999, 2013" rather than
17120         the final one:
17121           1991, 99
17122           11999, 20131, 1999
17123         * build-aux/update-copyright: Tighten a regexp.
17124         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
17125         Reported by Joseph Myers in
17126         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
17128 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17130         regex: omit needless signed-pointer casts
17131         * lib/regcomp.c (build_charclass, build_charclass_op):
17132         Use char *, not unsigned char *, for class name and extra.
17133         The char values are always nonnegative so there's no need to
17134         insist on unsigned char * here, and using char * removes the need
17135         for casts.  Reported by Aharon Robbins in
17136         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17138         regex: support Gawk, which never uses alloca
17139         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
17140         Do not include in this case.  Gawk doesn't supply a substitute
17141         alloca.h and doesn't need one.
17143         regex: port __libc_lock_define usage to C89
17144         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
17145         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
17146         does not conform to C89, as it has an empty macro argument.
17147         Reported by Aharon Robbins in
17148         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17150 2013-01-01  Eric Blake  <eblake@redhat.com>
17152         maint: update all copyright year number ranges
17153         Run "make update-copyright".
17155         version-etc: bump copyright year reported in --version
17156         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
17158 2012-12-31  Eric Blake  <eblake@redhat.com>
17160         sigprocmask-tests: skip test if pid is unexpectedly large
17161         * tests/test-sigprocmask.c (main): Add range check.
17163         git-version-gen: avoid test -z portability glitch
17164         * build-aux/git-version-gen: Prefer portable test spelling, since
17165         git-version-gen is run on more than just developer machines.
17167 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
17169         git-version-gen: add --fallback option to use if git is not present
17170         * build-aux/git-version-gen: Add support for the new option --fallback,
17171         which comes into play when there is no $tarball_version_file and
17172         git is not working.
17173         (scriptversion): Update.
17175         maint.mk: handle missing git with more grace
17176         * top/maint.mk (no-submodule-changes, public-submodule-commit):
17177         Quietly proceed if git is not present.
17179 2012-12-31  Eric Blake  <eblake@redhat.com>
17181         dup2: work around cygwin bug
17182         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
17183         * lib/dup2.c (rpl_dup2): Work around it.
17184         * doc/posix-functions/dup2.texi (dup2): Document it.
17186 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
17188         regex: remove unnecessary dependency on localcharset.h
17189         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
17190         hasn't been needed for years.
17191         * modules/regex (Depends-on): Remove localcharset.
17193         regex: revert single-byte change
17194         * lib/regexec.c (check_node_accept_bytes): Revert previous change
17195         to this function.  This was alredy fixed in a different way, at
17196         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
17197         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
17198         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
17200         regex: simplify based on Gawk version
17201         * lib/regex_internal.c (re_dfa_add_node): Simplify.
17202         Reported by Aharon Robbins in
17203         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17205 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17207         regex: check that pattern char is single-byte
17208         Reported by Aharon Robbins in
17209         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17210         * lib/regexec.c (check_node_accept_bytes):
17211         Return 0 if the pattern string has a multibyte character here.
17213         regex: implement rational ranges
17214         Reported by Aharon Robbins in
17215         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17216         * lib/regcomp.c (build_range_exp) [!_LIBC]:
17217         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
17218         Implement rational ranges.
17220         regex: avoid redefining __wctype
17221         Reported by Aharon Robbins in
17222         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17223         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
17224         #undef before defining.
17226         regex: port to hosts where malloc (0) == NULL
17227         Reported by Aharon Robbins in
17228         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17229         * lib/regex_internal.c (re_node_set_alloc):
17230         Don't assume that malloc (0) yields nonnull.
17231         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
17232         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
17233         * modules/regex (Files): Add m4/eealloc.m4.
17235         regex: port to C89
17236         Reported by Aharon Robbins in
17237         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17238         * lib/regcomp.c (init_word_char): Declaration before statement.
17240         regex: merge glibc changes
17241         Also, copy the license wording from glibc.  This simplifies
17242         merging changes.  gnulib-tool will change the wording to GPL as
17243         appropriate, when importing it to other packages.  The only
17244         glibc change made since the last merge, which needs merging, is:
17245         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
17246         * lib/regex_internal.h (gettext): Remove use of INTUSE.
17248         * users.txt: Add Emacs.
17250         doc: omit mention of version when not needed
17251         * doc/gnulib-intro.texi (Portability and Application Code):
17252         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
17253         Don't mention particular dates or versions when not necessary, so
17254         that the documentation won't go out of date so quickly.
17256         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
17258 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
17260         bootstrap: pass --force to autoreconf.
17261         * build-aux/bootstrap (AUTORECONFFLAGS): New.
17262         Add "--force" so that Automake's ylwrap and other such tools
17263         be updated at each bootstrap invocation.
17264         Use it.
17266 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17268         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
17269         The earlier patch forgot to update one of the #if conditions, causing
17270         a problem on Debian testing i386 reported by Mats Erik Andersson
17271         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
17272         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
17273         (__argp_fmtstream_puts, argp_fmtstream_puts)
17274         (__argp_fmtstream_write, argp_fmtstream_write)
17275         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
17277         * doc/gnulib-readme.texi: Minor fixups.
17278         (Portability guidelines): Modernize URLs.  Remove some repetition.
17279         (Indent with spaces not TABs): Reword to avoid too-long lines.
17280         Remove some '@ifset standalone' stuff that isn't used.
17282         * doc/gnulib-readme.texi (Portability guidelines):
17283         ctype.h, not ctime.h.
17285         Correct name of POSIX.1-2001.
17286         * doc/posix-functions/fgetc.texi (fgetc):
17287         * doc/posix-functions/fgets.texi (fgets):
17288         * doc/posix-functions/fread.texi (fread):
17289         * doc/posix-functions/fscanf.texi (fscanf):
17290         * doc/posix-functions/getc.texi (getc):
17291         * doc/posix-functions/getchar.texi (getchar):
17292         * doc/posix-functions/scanf.texi (scanf):
17293         POSIX.1-2001, not POSIX-2001.
17295         doc: move README into manual
17296         * README: Move contents to new file doc/gnulib-readme.texi.
17297         Replace with a one-line summary.
17298         * doc/gnulib.texi (Brief Overview): New section,
17299         with old intro preface.  Include gnulib-readme.texi for contents.
17300         (Philosophy): Rename from "Introduction", since this
17301         section no longer introduces the rest.  Write a new preface.
17302         * doc/gnulib-readme.texi: New file, with the old contents of
17303         README texinfo-ized.  This way, the README info appears
17304         in the online and printed manual.
17306 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
17308         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
17309         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
17310         c_vasprintf() prototype.
17312 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
17314         c-vasprintf: Fix "empty declaration" warning reported by GCC.
17315         * lib/c-vasprintf.h: Remove stray semicolon.
17317 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17319         gettext: avoid obsolete macro AM_PROG_MKDIR_P
17320         It is obsolete and is planned to be removed from Automake 1.14; see
17321         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
17322         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
17323         (installdirs-data, installdirs-data-yes):
17324         Use $(MKDIR_P), not $(mkdir_p).
17325         * m4/intl.m4 (AM_INTL_SUBDIR):
17326         * m4/po.m4 (AM_PO_SUBDIRS):
17327         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
17329 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17331         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
17332         On this platform, we are not optimizing but we are using
17333         the substitute for extern inlines, so compile as if
17334         C99-style extern inline, or a substitute, is available.
17335         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
17336         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
17337         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
17338         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
17339         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
17340         Declare as ARGP_FS_EI, not as extern.
17341         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
17342         (__option_is_short, _option_is_end, __option_is_end)
17343         [!_LIBC && __USE_EXTERN_INLINES]:
17344         Declare as ARGP_EI, not as extern.
17346 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17348         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
17349         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
17350         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
17351         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
17352         ...), as the latter is fatal with older Autoconfs.
17353         Problem reported and fix suggested by Eric Blake in thread starting at
17354         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
17356 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17358         AC_PROG_MKDIR_P: don't workaround if not buggy
17359         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
17360         Define only for Autoconf versions before 2.62.
17361         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
17362         undocumented m4_PACKAGE_VERSION, for consistency with the
17363         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
17364         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
17365         was introduced in 2.62.
17367 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
17369         New 'c-*printf' modules for formatted output in C locale.
17371         New module 'c-vasnprintf'.
17372         * modules/c-vasnprintf: New file.
17373         * lib/c-vasnprintf.c: New file.
17374         * lib/c-vasnprintf.h: New file.
17376         New module 'c-snprintf'.
17377         * modules/c-snprintf: New file.
17378         * modules/c-snprintf-tests: New file.
17379         * lib/c-snprintf.c: New file.
17380         * lib/c-snprintf.h: New file.
17381         * tests/test-c-snprintf.c: New file.
17382         * tests/test-c-snprintf.sh: New file.
17384         New module 'c-vsnprintf'.
17385         * modules/c-vsnprintf: New file.
17386         * modules/c-vsnprintf-tests: New file.
17387         * lib/c-vsnprintf.c: New file.
17388         * lib/c-vsnprintf.h: New file.
17389         * tests/test-c-vsnprintf.c: New file.
17390         * tests/test-c-vsnprintf.sh: New file.
17392         New module 'c-vasprintf'.
17393         * modules/c-vasprintf: New file.
17394         * modules/c-vasprintf-tests: New file.
17395         * lib/c-asprintf.c: New file.
17396         * lib/c-vasprintf.c: New file.
17397         * lib/c-vasprintf.h: New file.
17398         * tests/test-c-vasprintf.c  +: New file.
17399         * tests/test-c-vasprintf.sh: New file.
17401         New module 'c-xvasprintf'.
17402         * modules/c-xvasprintf: New file.
17403         * modules/c-xvasprintf-tests: New file.
17404         * lib/c-xasprintf.c: New file.
17405         * lib/c-xvasprintf.c: New file.
17406         * lib/c-xvasprintf.h: New file.
17407         * tests/test-c-xvasprintf.c: New file.
17408         * tests/test-c-xvasprintf.sh: New file.
17410 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17412         argp: better 'inline'
17413         Use extern-inline module to declare extern inline functions.
17414         This avoids some bogus warning diagnostics.  Problem discovered
17415         when modifying GNU tar to use the manywarnings module.
17416         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
17417         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
17418         Define based on extern-inline.
17419         * modules/argp (Depends-on): Add extern-inline.
17421 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17423         filemode, sys_stat: Handle MPX files a la AIX.
17424         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
17425         * lib/sys_stat.in.h (S_ISMPX): New macro.
17426         * tests/test-sys_stat.c: Add tests for MPX files.
17428 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
17430         x-to-1: honor $PERL
17431         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
17432         a chance to use his preferred version of Perl.  This is typically
17433         required by Darwin users whose default /usr/bin/perl does not have all
17434         the libraries required by help2man, and who need to use their MacPorts
17435         installation of Perl instead.
17437 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
17439         gnu-web-doc-update: add all the new files, even in new directories
17440         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
17441         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
17442         Use it.
17443         (main): Don't use cvsutils to get the list of unknown files,
17444         just add all the existing files and directories.
17446 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
17448         gnu-web-doc-update: improve --help
17449         * build-aux/gnu-web-doc-update: Move comments into --help.
17451 2012-12-07  Eric Wong  <normalperson@yhbt.net>
17453         mountlist: recognize more "dummy" file systems
17454         * lib/mountlist.c (ME_DUMMY_0):
17455         Add these dummy FS names to the list:
17456         - "debugfs" virtual filesystem for kernel debugging
17457         - "devpts" PTY slave filesystem
17458         - "devtmpfs" device filesystem on top of tmpfs/ramfs
17459         - "fusectl" control filesystem for FUSE
17460         - "mqueue" enumerates POSIX message queues
17461         - "rpc_pipefs" kernel <-> userspace bridge for NFS
17462         - "sysfs" is for exporting kernel objects
17463         - "devfs" device filesystem for Linux 2.4 and FreeBSD
17465 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
17467         extern-inline: avoid incompatibility with Darwin Libc
17468         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
17469         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
17470         Problem reported by Akim Demaille in
17471         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
17473 2012-12-11  Simon Josefsson  <simon@josefsson.org>
17475         gnupload: Work with GnuPG using gpg-agent (for smartcards).
17476         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
17477         let it handle password prompting.
17479 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
17481         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
17482         * lib/canonicalize.c (canonicalize_filename_mode):
17483         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
17484         fetching the current directory.  Don't overrun the beginning of
17485         rpath if there's no slashes after the MS-Windows drive letter.
17487 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
17489         maint.mk: avoid extra forks
17490         * top/maint.mk (_cfg_mk): The GNU make manual documents that
17491         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
17492         So use that instead of "$(shell test -f FILE && echo FILE)".
17494 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
17496         vasnprintf: fix ASCII_ONLY typo
17497         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
17498         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
17499         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
17500         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
17501         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
17503 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
17505         list, oset, xlist, xoset: fix extern inline issue with C99
17506         This was introduced by my recent changes for 'inline'.
17507         Problem reported for gettext by Daiki Ueno in
17508         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
17509         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
17510         (gl_list_nx_create, gl_list_size, gl_list_node_value)
17511         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
17512         (gl_list_previous_node, gl_list_get_at)
17513         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
17514         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
17515         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
17516         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
17517         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
17518         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
17519         (gl_list_iterator_free, gl_sortedlist_search)
17520         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
17521         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
17522         (gl_sortedlist_remove):
17523         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
17524         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
17525         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
17526         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
17527         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
17528         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
17529         (gl_list_add_at, gl_sortedlist_add):
17530         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
17531         Wrap these extern decls inside "#if 0", because they are implemented
17532         as inline functions, and extern inline is not what's wanted here.
17533         It would simplify these .h files to remove the extern decls entirely,
17534         although a downside would be less-clear separation between
17535         specification and implementation.
17537 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
17539         sys_stat: no 'static inline'
17540         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
17541         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
17543         extern-inline: no 'static inline'
17544         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
17545         Do not require AC_C_INLINE.
17546         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
17547         'static inline', for older compilers.
17549         snippet/warn-on-use: no 'static inline'
17550         * build-aux/snippet/warn-on-use.h:
17551         Remove unnecessary 'inline' in comment.
17553         rbtree-list, rbtreehash-list: no 'static inline'
17554         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
17555         * lib/gl_anytree_list2.h (node_at):
17556         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
17557         (gl_oset_first, add_nodes_to_buckets):
17558         Now static, not static inline.
17560         regex: no 'static inline'
17561         * lib/regex_internal.c (calc_state_hash):
17562         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
17563         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
17564         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
17565         Now static, not static inline.
17566         (inline) [__GNUC__ < 3 && _LIBC]:
17567         Remove macro; no longer needed.
17569         xvasprintf: no 'static inline'
17570         * lib/xvasprintf.c (xstrcat):
17571         Now static, not static inline.
17572         * m4/xvasprintf.m4 (gl_XVASPRINTF):
17573         Do not require AC_C_INLINE.
17575         parse-datetime, parse-duration: no 'static inline'
17576         * lib/parse-datetime.y (to_uchar):
17577         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
17578         (scale_n_add):
17579         Now static, not static inline.
17580         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
17581         * modules/parse-duration (configure.ac):
17582         Do not require AC_C_INLINE.
17584         getaddrinfo: no 'static inline'
17585         * lib/getaddrinfo.c (validate_family):
17586         Now static, not static inline.
17587         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
17588         Do not require AC_C_INLINE.
17590         ftruncate, fts, lstat, openat, raise: no 'static inline'
17591         * lib/ftruncate.c (chsize_nothrow):
17592         * lib/fts.c (opendirat, diropen):
17593         * lib/lstat.c (orig_lstat):
17594         * lib/openat.c (orig_openat):
17595         * lib/raise.c (raise_nothrow):
17596         Now static, not static inline.
17597         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
17598         * m4/fts.m4 (gl_FUNC_FTS_CORE):
17599         * m4/lstat.m4 (gl_PREREQ_LSTAT):
17600         * m4/openat.m4 (gl_PREREQ_OPENAT):
17601         * m4/raise.m4 (gl_PREREQ_RAISE):
17602         Do not require AC_C_INLINE.
17604         fflush, stat: no 'static inline'
17605         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17606         (clear_ungetc_buffer, disable_seek_optimization)
17607         (restore_seek_optimization, update_fpos_cache):
17608         * lib/stat.c (orig_stat):
17609         Now static, not static inline.
17610         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
17611         (update_fpos_cache):
17612         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
17613         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
17614         * m4/stat.m4 (gl_PREREQ_STAT):
17615         Do not require AC_C_INLINE.
17617         error, filevercmp: no 'static inline'
17618         * lib/error.c (is_open, flush_stdout):
17619         * lib/filevercmp.c (order):
17620         Now static, not static inline.
17621         * m4/error.m4 (gl_PREREQ_ERROR):
17622         * modules/filevercmp (configure.ac):
17623         Do not require AC_C_INLINE.
17625         dup, execute, fatal-signal, etc.: no 'static inline'
17626         * lib/dup.c (dup_nothrow):
17627         * lib/execute.c (nonintr_close, nonintr_open):
17628         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
17629         * lib/fopen.c (orig_fopen):
17630         * lib/freadseek.c (freadptrinc):
17631         * lib/freopen.c (orig_freopen):
17632         * lib/fstat.c (orig_fstat, fstat_nothrow):
17633         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
17634         (get_rusage_as_via_iterator):
17635         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
17636         * lib/getdtablesize.c (_setmaxstdio_nothrow):
17637         * lib/isatty.c (_isatty_nothrow):
17638         * lib/open.c (orig_open):
17639         * lib/read.c (read_nothrow):
17640         * lib/sigprocmask.c (signal_nothrow):
17641         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
17642         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
17643         * lib/wait-process.c (unregister_slave_subprocess):
17644         * lib/write.c (write_nothrow):
17645         Now static, not static inline.
17646         * lib/spawn-pipe.c (nonintr_open): Define only if
17647         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
17648         * m4/dup.m4 (gl_PREREQ_DUP):
17649         * m4/execute.m4 (gl_EXECUTE):
17650         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
17651         * m4/fopen.m4 (gl_PREREQ_FOPEN):
17652         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
17653         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
17654         * m4/fstat.m4 (gl_PREREQ_FSTAT):
17655         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
17656         * m4/isatty.m4 (gl_PREREQ_ISATTY):
17657         * m4/open.m4 (gl_PREREQ_OPEN):
17658         * m4/read.m4 (gl_PREREQ_READ):
17659         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
17660         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
17661         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
17662         * m4/wait-process.m4 (gl_WAIT_PROCESS):
17663         * m4/write.m4 (gl_PREREQ_WRITE):
17664         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
17665         Do not require AC_C_INLINE.
17667         c-strtod, memcoll, readutmp: no 'static inline'
17668         * lib/c-strtod.c (c_locale):
17669         * lib/memcoll.c (strcoll_loop):
17670         * lib/readutmp.c (desirable_utmp_entry):
17671         Now static, not static inline.
17672         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
17673         * m4/memcoll.m4 (gl_MEMCOLL):
17674         * m4/readutmp.m4 (gl_READUTMP):
17675         Do not require AC_C_INLINE.
17677         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
17678         * lib/arctwo.c (to_uchar):
17679         * lib/md4.c (set_uint32):
17680         * lib/md5.c (set_uint32):
17681         * lib/sha1.c (set_uint32):
17682         * lib/sha256.c (set_uint32):
17683         * lib/sha512.c (set_uint64):
17684         Now static, not static inline.  This is a bit simpler, and doesn't
17685         affect performance with GCC and default optimization.
17686         * m4/arctwo.m4 (gl_ARCTWO):
17687         * m4/md4.m4 (gl_MD4):
17688         * m4/md5.m4 (gl_MD5):
17689         * m4/sha1.m4 (gl_SHA1):
17690         * m4/sha256.m4 (gl_SHA256):
17691         * m4/sha512.m4 (gl_SHA512):
17692         Do not require AC_C_INLINE.
17694         cond, lock, thread: better 'inline'
17695         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
17696         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
17697         New macros.  Use them instead of static inline, for header functions.
17698         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
17699         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
17700         * lib/glthread/lock.c (gl_waitqueue_init)
17701         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
17702         * lib/glthread/thread.c (get_current_thread_handle):
17703         Change 'static inline' to 'inline'.
17704         * lib/glthread/cond.h, lib/glthread/thread.h:
17705         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17706         * m4/cond.m4 (gl_COND):
17707         * m4/lock.m4 (gl_PREREQ_LOCK):
17708         * m4/thread.m4 (gl_THREAD):
17709         Do not require AC_C_INLINE.
17710         * modules/cond, modules/thread (Depends-on): Add extern-inline.
17712         chdir-long, cycle-check, savewd: better 'inline'
17713         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
17714         (find_non_slash):
17715         * lib/cycle-check.c (is_zero_or_power_of_two):
17716         * lib/savewd.c (savewd_delegating):
17717         Change 'static inline' to 'inline'.
17718         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
17719         Replace all remaining uses of 'static inline' with it.
17720         * lib/savewd.h:
17721         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17722         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
17723         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
17724         * m4/savewd.m4 (gl_SAVEWD):
17725         Do not require AC_C_INLINE.
17726         * modules/savewd (Depends-on): Add extern-inline.
17728         base32, base64: no need for 'inline'
17729         * lib/base32.c (to_uchar, get_8, decode_8):
17730         * lib/base64.c (to_uchar, get_4, decode_4):
17731         Change 'static inline' to 'inline'.
17732         * m4/base32.m4 (gl_PREREQ_BASE32):
17733         * m4/base64.m4 (gl_PREREQ_BASE64):
17734         Do not require AC_C_INLINE.
17736         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
17737         * lib/gl_array_oset.c (gl_array_nx_add_at):
17738         (gl_array_remove_at):
17739         * lib/gl_linkedhash_list.c (hash_resize_after_add)
17740         (add_to_bucket, remove_from_bucket):
17741         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
17742         Change 'static inline' to 'static', as it's simpler to omit
17743         'inline' unless there's a significant performance advantage.
17745         list, oset, xlist, xoset, xsublist: simplify via extern inline
17746         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
17747         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
17748         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
17749         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
17750         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
17751         New macro.  Replace all uses of 'static inline' with it.
17752         [HAVE_INLINE]: Implement functions as *_INLINE functions,
17753         instead of as macros FOO that are defined to static inline
17754         functions FOO_inline.
17755         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
17756         * lib/gl_xsublist.c:
17757         Reimplement from scratch, by defining the corresponding *_INLINE
17758         macro and including the corresponding .h file.  This is simpler.
17759         * modules/list, modules/oset, modules/xlist, modules/xoset:
17760         (Files): Remove m4/gl_list.m4.
17761         (configure.ac): Remove gl_LIST.
17762         * m4/gl_list.m4: Remove.
17763         * modules/list, modules/oset, modules/xlist, modules/xoset:
17764         * modules/xsublist:
17765         (Depends-on): Depend on extern-inline, not inline.
17767         xalloc: better 'inline'
17768         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
17769         New macro.  Replace all uses of 'static inline' with it.
17770         (static_inline): Remove.
17771         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
17772         Let 'extern inline' do the work automatically, instead of doing
17773         it by hand.
17774         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
17775         Remove.  All uses removed.
17776         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
17778         gethrxtime: better 'inline'
17779         * lib/xtime.c: New file.
17780         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
17781         * lib/xtime.h (XTIME_INCLUDE):
17782         New macros.  Replace all uses of 'static inline' with them.
17783         * lib/gethrxtime.c (gethrxtime): Define only if
17784         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
17785         this source file is now always compiled, because of the extern inline.
17786         * lib/gethrxtime.h, lib/xtime.h:
17787         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17788         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
17789         if gethrtime works, as they're not needed in that case.
17790         (gl_XTIME): Do not require AC_C_INLINE.
17791         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
17792         compiled now.  Move the check into gl_GETHRXTIME.
17793         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
17794         (Depends-on): Add extern-inline.
17795         (configure.ac): gethrxtime is always compiled now.
17796         (lib_SOURCES): Add gethrxtime.c.
17798         wctype-h: better 'inline'
17799         * lib/wctype-h.c: New file.
17800         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
17801         New macro.  Replace all uses of 'static inline' with it.
17802         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17803         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
17804         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
17805         (Depends-on): Add extern-inline.
17807         unistd: better 'inline'
17808         * lib/unistd.c: New file.
17809         * lib/unistd.in.h (_GL_UNISTD_INLINE):
17810         New macro.  Replace all uses of 'static inline' with it.
17811         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17812         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
17813         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
17814         (Depends-on): Add extern-inline.
17816         sys_socket: better 'inline'
17817         * lib/sys_socket.c: New file.
17818         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
17819         New macro.  Replace all uses of 'static inline' with it.
17820         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17821         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
17822         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
17823         (Depends-on): Add extern-inline.
17825         stdio: better 'inline'
17826         * lib/stdio.c: New file.
17827         * lib/stdio.in.h (_GL_STDIO_INLINE):
17828         New macro.  Replace all uses of 'static inline' with it.
17829         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17830         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
17831         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
17832         (Depends-on): Add extern-inline.
17834         sigaction: better 'inline'
17835         * lib/sig-handler.c: New file.
17836         * lib/sig-handler.h (SIG_HANDLER_INLINE):
17837         New macro.  Replace all uses of 'static inline' with it.
17838         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17839         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
17840         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
17841         (Depends-on): Add extern-inline.
17843         selinux-h: better 'inline'
17844         * lib/se-context.c, lib/se-selinux.c: New files.
17845         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
17846         * lib/se-context.in.h (SE_CONTEXT_INLINE):
17847         New macro.  Replace all uses of 'static inline' with it.
17848         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17849         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
17850         New macro.  Replace all uses of 'static inline' with it.
17851         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17852         * modules/selinux-h (Files, lib_SOURCES):
17853         Add lib/se-context.c, lib/se-selinux.c.
17854         (Depends-on): Add extern-inline.
17855         (configure.ac): Do not require AC_C_INLINE.
17857         pthread: better 'inline'
17858         * lib/pthread.c: New file.
17859         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
17860         New macro.  Replace all uses of 'static inline' with it.
17861         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17862         * m4/pthread.m4 (gl_PTHREAD_CHECK):
17863         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
17864         * modules/pthread (Files): Add lib/pthread.c.
17865         (Depends-on): Add extern-inline.
17867         math: better 'inline'
17868         * lib/math.c: New file.
17869         * lib/math.in.h (_GL_MATH_INLINE):
17870         New macro.  Replace all uses of 'static inline' with it.
17871         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17872         * m4/math_h.m4 (gl_MATH_H):
17873         Do not require AC_C_INLINE.
17874         * modules/math (Files, lib_SOURCES):
17875         Add lib/math.c.
17876         (Depends-on): Add extern-inline.
17878         count-one-bits: better 'inline'
17879         * lib/count-one-bits.c: New file.
17880         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
17881         New macro.  Replace all uses of 'static inline' with it.
17882         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17883         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
17884         Do not require AC_C_INLINE.
17885         * modules/count-one-bits (Files, lib_SOURCES):
17886         Add lib/count-one-bits.c.
17887         (Depends-on): Add extern-inline.
17889         count-leading-zeros: better 'inline'
17890         * lib/count-leading-zeros.c: New file.
17891         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
17892         New macro.  Replace all uses of 'static inline' with it.
17893         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17894         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
17895         Do not require AC_C_INLINE.
17896         * modules/count-leading-zeros (Files, lib_SOURCES):
17897         Add lib/count-leading-zeros.c.
17898         (Depends-on): Add extern-inline.
17900         bitrotate: better 'inline'
17901         * lib/bitrotate.c: New file.
17902         * lib/bitrotate.h (BITROTATE_INLINE):
17903         New macros.
17904         Replace all uses of 'static inline' with them.
17905         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17906         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
17907         (Depends-on): Add extern-inline.
17908         (configure.ac): Do not require AC_C_INLINE.
17910 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
17912         maint.mk: avoid gratuitous failure
17913         Reported by Stefano Lattarini in
17914         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
17915         * top/maint.mk (public-submodule-commit): Quote more safely.
17917 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
17919         canonicalize, canonicalize-lgpl: support MS-Windows file names
17920         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
17921         for test cases, which it'd be nice to add at some point.
17922         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
17923         * lib/canonicalize.c (canonicalize_filename_mode):
17924         * lib/canonicalize-lgpl.c (__realpath):
17925         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
17926         slash is at the beginning of the file name.  Use ISSLASH, instead
17927         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
17928         the first character with '/'.  Test for
17929         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
17930         with a drive letter.
17931         * lib/canonicalize.c (SLASHES): New macro.
17932         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
17934 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
17936         fts: introduce FTS_VERBATIM
17937         * lib/fts_.h (FTS_VERBATIM): New bit flag.
17938         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
17939         * lib/fts.c (fts_open): Honor it.
17941 2012-11-09  Pádraig Brady  <P@draigBrady.com>
17943         getlogin-tests: allow errno == ENXIO
17944         * tests/test-getlogin.c (main): Skip tests if getlogin fails
17945         with errno == ENXIO (No controlling tty).
17946         getlogin_r-tests: Likewise. Also allow errno == ENOENT
17947         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
17948         with errno == ENOENT.  This was reported to happen in various
17949         situations on GNU/Linux.
17951 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
17953         getlogin-tests: allow errno == ENOENT
17954         * tests/test-getlogin.c (main): Skip tests if getlogin fails
17955         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
17956         when running a test in an Emacs shell buffer.
17958 2012-11-08  Jim Meyering  <jim@meyering.net>
17960         tests/nap.h: avoid warning about unused variable
17961         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
17963         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
17964         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
17965         white space before each of the special-cased file names, to avoid
17966         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
17967         in http://bugs.gnu.org/12830.
17969 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
17971         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
17972         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
17973         fails with errno == EBADF when fd is opened with O_PATH.
17974         Reported by Jim Meyering in
17975         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
17976         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
17977         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
17979 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17981         test-utimens: speed up by taking shorter naps
17982         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
17983         New functions.
17984         (nap): Use them, to do a better job of guessing the delay.
17985         On Fedora 17 with ext4 atop md atop hard disks, this made
17986         test-utimens run 10x faster, because the test napped for
17987         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
17988         <http://bugs.gnu.org/12820#11>.
17990 2012-11-07  Jim Meyering  <jim@meyering.net>
17992         mountlist.c: fix a compilation failure
17993         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
17994         I introduced while transforming commit v0.0-7683-g613bcb6
17996 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
17998         errno: port to LynxOS 178 2.2.2
17999         Problem reported by Joel Brobecker in
18000         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
18001         * doc/posix-headers/errno.texi (errno.h): Document this.
18002         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
18003         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
18004         Supply a string for EILSEQ.
18005         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
18007 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
18009         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
18010         Linux kernel 2.6.39 introduced O_PATH (see
18011         <http://lwn.net/Articles/433854/>) and this is a better fallback
18012         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
18013         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
18014         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
18015         * lib/fcntl.in.h (O_ACCMODE):
18016         * tests/test-fcntl-h.c (main):
18017         Do not reject O_ACCMODE merely because it has more than the
18018         minimal number of bits, as POSIX allows extensions here.
18020 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
18022         mountlist: do not classify a bind-mounted dir entry as "dummy"
18023         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
18024         the "none"-testing clause.
18025         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
18026         exception for bind-mounted directories.
18028 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
18030         quote: provide a means to escape strings with nul characters
18031         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
18032         (quote, quote_n): Rename formal arguments for consistency with
18033         quotearg.
18035 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18037         test-raise: don't assume 199 is an invalid signal
18038         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
18040         sh-quote-tests: port to Solaris 9
18041         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
18042         Problem reported by Dagobert Michelsen in
18043         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
18045 2012-10-28  Jim Meyering  <jim@meyering.net>
18047         maint.mk: rename a new configurable variable
18048         * top/maint.mk (_gl_translatable_string_re): Rename from
18049         translation-markers: _gl_ prefix to insulate from user Makefile code,
18050         and the _re suffix to inform that it's a regular expression.
18052 2012-10-26  Eric Blake  <eblake@redhat.com>
18054         maint.mk: let packages tweak sc_po_check pattern
18055         * top/maint.mk (sc_po_check): Add translation-markers, to allow
18056         finding files with other translation markers.
18058 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18060         euidaccess: speed up 'configure' on GNU hosts
18061         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
18062         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
18063         it's needed only in this case.  Use AC_CHECK_DECLS, not
18064         AC_CHECK_DECLS_ONCE.
18065         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
18066         or AC_REQUIRE for AC_FUNC_GETGROUPS.
18068         * lib/regexec.c (re_search_internal): Fix grammar in comment.
18070 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
18072         fchmodat, fchownat, fstatat: port to non-inlining compilers
18073         Problem reported for FreeBSD 9 by Jim Meyering in
18074         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
18075         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
18076         New files, which define FCHMODAT_INLINE etc.
18077         * lib/fchmodat.c (FCHMODAT_INLINE):
18078         * lib/fchownat.c (FCHOWNAT_INLINE):
18079         * lib/fstatat.c (FSTATAT_INLINE):
18080         Remove, as chmodat.c etc. now do this.
18081         * modules/fchmodat (Files): Add lib/chmodat.c.
18082         * modules/fchownat (Files): Add lib/chownat.c.
18083         * modules/fstatat (Files): Add lib/statat.c.
18085 2012-10-15  Jim Meyering  <jim@meyering.net>
18087         fchmodat.c, fchownat.c: compile-impeding typos
18088         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
18089         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
18090         Introduced in commit v0.0-7636-gd202279.
18092 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
18094         fcntl-h: support GNU flags like O_IGNORE_CTTY
18095         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
18096         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
18097         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
18098         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
18099         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
18100         Define to 0 if not already defined.
18101         * tests/test-fcntl-h.c: Test these new flags.
18103 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18105         faccessat, etc.: support AT_FDCWD-only use
18106         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
18107         this function only if its first argument is AT_FDCWD.
18108         Emacs wants faccessat for AT_EACCESS but not for any first-arg
18109         values other than AT_FDCWD, so it doesn't want all the openat
18110         machinery with fchdir etc.
18111         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
18112         * modules/fstatat, modules/mkdirat, modules/openat (Files):
18113         * modules/unlinkat (Files):
18114         Remove lib/openat-priv.h, as at-internal supplies this file.
18115         Removing this file here allows us to support programs like Emacs
18116         that avoid at-internal.
18118         faccessat: speed up 'configure' on mainstream hosts
18119         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
18120         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
18121         since it's only on unusual platforms that we need to check for
18122         'access', and it's better not to slow 'configure' down on all
18123         platforms.
18125         faccessat: port to Solaris 10
18126         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
18127         Needed on Solaris 10, which doesn't have AT_EACCESS,
18128         so we need the Gnulib fcntl.h, which defines it.
18130 2012-10-14  Pádraig Brady  <P@draigBrady.com>
18131         canonicalize: fix C89 compilation
18132         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
18133         declarations so C89 is supported.  Also remove the comment
18134         referencing memorty allocation as the suggested feature could
18135         not be implemented as suggested.
18136         Reported by Michael Goffioul.
18138 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18140         group-member: omit unnecessary dependencies
18141         This is for Emacs, which has its own allocator and where we
18142         don't want to use xalloc.
18143         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
18144         since we no longer use xmalloc.  Do not include stdbool.h, since
18145         the changes below happen to remove the only use of bool.
18146         (GROUPBUF_SIZE): New constant.
18147         (struct group_info): Remove n_groups member.  Add groupbuf member.
18148         This lets us get the groups without using malloc, usually.
18149         (free_group_info, get_group_info): Adjust to this.
18150         (get_group_info): Return the number of groups found, or -1 on error.
18151         Use plain malloc not xmalloc, and treat its failure as if there
18152         are no groups, as the user already loses in case of error.
18153         (group_member): Simplify, based on changes to get_group_info.
18154         * modules/group-member (Depends-on): Remove dependencies on
18155         xalloc and stdbool.  Add dependency on xalloc-oversized.
18157 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
18159         gethrxtime: port to C++
18160         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
18162 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
18164         ptsname: fix macro-name typo
18165         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
18167 2012-10-03  Simon Josefsson  <simon@josefsson.org>
18169         inttostr: Relax license.
18170         * modules/inttostr (License): Change from LGPL to LGPLv2+.
18172 2012-10-03  Eric Blake  <eblake@redhat.com>
18174         ptsname_r: support ptys returned by FreeBSD posix_openpt
18175         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
18176         lives in /dev/pts/.
18178 2012-10-02  Eric Blake  <eblake@redhat.com>
18180         pselect: reject invalid file descriptors
18181         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
18182         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
18183         * modules/pselect (Depends-on): Add dup2.
18184         * doc/posix-functions/pselect.texi (pselect): Document this.
18186         select: reject invalid file descriptors
18187         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
18188         * lib/select.c (rpl_select) [!win32]: Work around it.
18189         * modules/select (Depends-on): Add dup2.
18190         * doc/posix-functions/select.texi (select): Document this.
18192         select: enhance test
18193         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
18194         New functions.
18195         (test_function): Enhance test.
18196         (do_select_bad_fd): Avoid any stale errno values.
18198         ptsname: reject invalid file descriptors
18199         http://www.austingroupbugs.net/view.php?id=503
18200         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
18201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
18202         * modules/stdlib (Makefile.am): Replace witness.
18203         * lib/stdlib.in.h (ptsname): Allow for replacement.
18204         * modules/ptsname (configure.ac): Trigger replacement.
18205         * doc/posix-functions/ptsname.texi (ptsname): Document this.
18207 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
18209         hash-pjw-bare: new module
18210         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
18211         * lib/hash-pjw-bare.h: Likewise.
18212         * modules/hash-pjw-bare: New file.
18213         * MODULES.html.sh (Misc): Add it.
18215 2012-10-02  Eric Blake  <eblake@redhat.com>
18217         manywarnings: cater to more gcc infelicities
18218         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
18219         -Wuninitialized without -O.
18221 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
18223         select, poll tests: Make setsockopt invocation effective.
18224         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
18225         the bind() call.
18226         * tests/test-select.h (open_server_socket): Likewise.
18228 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
18230         sockets, sys_stat: restore AC_C_INLINE
18231         This undoes the 2012-09-22 patch.
18232         * m4/sockets.m4 (gl_SOCKETS):
18233         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
18234         Restore AC_C_INLINE, since MSVC requires __inline or _inline
18235         and does not support plain 'inline'.  Reported by Bruno Haible in
18236         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
18238 2012-09-30  Bruno Haible  <bruno@clisp.org>
18240         localeconv tests: Avoid test failure on OpenIndiana.
18241         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
18242         skip the 'grouping' and 'mon_grouping' tests.
18243         Reported by Jim Meyering.
18245 2012-09-30  Bruno Haible  <bruno@clisp.org>
18247         havelib: Follow libtool developments.
18248         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
18249         Suggested by Simon Josefsson.
18251 2012-09-29  Jim Meyering  <meyering@redhat.com>
18253         fstatat.c: fix a compile-impeding typo
18254         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
18255         Introduced in commit v0.0-7636-gd202279.
18256         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
18258 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
18260         extern-inline: provide a -Wundef safe config.h
18261         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
18262         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
18263         to produce a -Wundef warning free config.h.
18265 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
18267         hash-pjw: relax license to LGPLv2+
18268         * modules/hash-pjw (License): Relax, with consent of author.
18270 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
18272         maint.mk: fix strict vs. lazy variable issues with RELEASE
18273         * top/maint.mk (_equal): New function.
18274         (member_check): Strip the result to avoid spurious spaces.
18275         (url_dir_list): Do not use ifeq, which is strict, as it will
18276         require RELEASE_TYPE to be defined.
18277         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
18278         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
18279         (announcement_Cc_alpha,announcement_mail_headers_alpha)
18280         (announcement_Cc_beta,announcement_mail_headers_beta)
18281         (announcement_Cc_stable,announcement_mail_headers_stable): these.
18282         (release): Do not depend on $(release-type), as it forces its
18283         evaluation.  Bounce to it.
18285 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
18287         maint.mk: formatting changes
18288         * top/maint.mk: Indent bodies of if's.
18290 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
18292         maint.mk: factor the validation of RELEASE_TYPE
18293         With help from Jim Meyering.
18294         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
18295         * top/maint.mk (_empty, _sp): Move their definition earlier.
18296         (member-check, release-type): New.
18297         Use the latter instead of $(RELEASE_TYPE).
18298         Remove now useless local checks.
18300 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
18302         maint.mk: provide "make upload" to ease uploading
18303         See
18304         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
18305         Do not depend simply on the current $(VERSION), as there may have been
18306         new commits since the tarball generation.  Rather, rely on $(RELEASE),
18307         as "make release-commit" already does.
18309         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
18310         "make TYPE".
18312         * top/maint.mk (upload_command, upload, release): New.
18313         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
18314         (VERSION): first word of $(RELEASE) is always right.
18315         (emit_upload_commands): Adjust.
18316         * top/README-release: Update.
18318 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
18320         maint.mk: silent rules
18321         With help from Stefano Lattarini.
18322         * top/maint.mk (writable-files): Use $(AM_V_GEN).
18323         (announcement): Use $(AM_V_at).
18325 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
18327         localename: port gl_locale_name_thread_unsafe to FreeBSD
18328         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
18329         and use the simpler FreeBSD implementation on Mac OS X as well.
18330         Original idea suggested by Ed Maste in
18331         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
18333 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18335         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
18336         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
18337         * lib/mbuiter.c, lib/xsize.c: New files.
18338         * lib/binary-io.h (BINARY_IO_INLINE):
18339         * lib/eealloc.h (EEALLOC_INLINE):
18340         * lib/mbfile.h (MBFILE_INLINE):
18341         * lib/mbiter.h (MBITER_INLINE):
18342         * lib/mbuiter.h (MBUITER_INLINE):
18343         * lib/xsize.h (XSIZE_INLINE):
18344         New macros.
18345         Replace all uses of 'static inline' with them.
18346         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18347         * m4/eealloc.m4 (gl_EEALLOC):
18348         * m4/mbfile.m4 (gl_MBFILE):
18349         * m4/mbiter.m4 (gl_MBITER):
18350         * m4/xsize.m4 (gl_XSIZE):
18351         Do not require AC_C_INLINE.
18352         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
18353         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
18354         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
18355         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
18356         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
18357         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
18358         * modules/binary-io, modules/eealloc, modules/mbfile:
18359         * modules/mbiter, modules/mbuiter:
18360         (Depends-on): Add extern-inline.
18362         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
18363         * lib/pipe-filter-aux.c: New file.
18364         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
18365         Replace all uses of 'static inline' with it.
18366         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18367         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
18368         (filter_retcode): No real need for inline here.
18369         * modules/pipe-filter-gi, modules/pipe-filter-ii:
18370         (Files): Add lib/pipe-filter-aux.c.
18371         (Depends-on): Add extern-inline.
18372         (configure.ac): Do not require AC_C_INLINE.
18373         (lib_SOURCES): Add pipe-filter-aux.c.
18375         fdutimensat: omit unnecessary AC_C_INLINE
18376         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
18378         fchmodat, fchownat, fstatat: use extern-inline
18379         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
18380         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
18381         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
18382         New macros.
18383         * lib/openat.h:
18384         Replace all uses of 'static inline' with them.
18385         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18386         * modules/fchmodat, modules/fchownat, modules/fstatat:
18387         * modules/openat-h:
18388         (Depends-on):
18389         Add extern-inline.
18390         (configure.ac): Remove AC_C_INLINE.
18392         acl, mbchar, priv-set: use extern-inline
18393         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
18394         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
18395         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
18396         New macros.
18397         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
18398         Replace all uses of 'static inline' with it.
18399         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18400         * m4/acl.m4 (gl_FUNC_ACL):
18401         * m4/mbchar.m4 (gl_MBCHAR):
18402         * m4/priv-set.m4 (gl_PRIV_SET):
18403         Remove AC_C_INLINE, since 'inline' is no longer used directly.
18404         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
18405         Add extern-inline.
18407         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
18408         * m4/sockets.m4 (gl_SOCKETS):
18409         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
18410         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
18411         environments where it's already guaranteed to work, so we needn't
18412         check for it at 'configure'-time.
18414         tls-tests: omit unnecessary 'inline'
18415         * tests/test-tls.c (perhaps_yield): No longer inline.
18416         Simplicity and portability trump efficiency in test cases.
18418         utimens-tests: avoid unnecessary 'inline'
18419         * modules/fdutimensat-tests (configure.ac):
18420         * modules/futimens-tests (configure.ac):
18421         * modules/utimens-tests (configure.ac):
18422         * modules/utimensat-tests (configure.ac):
18423         Remove AC_C_INLINE.
18424         * tests/test-utimens-common.h (ctime_compare):
18425         No longer inline.  Simplicity and portability trump efficiency here.
18427         misc: don't limit commentary to inline functions
18428         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
18429         * lib/xalloc-oversized.h, lib/xsize.h:
18430         Contrast macros to functions in general, not just to inline functions,
18431         when the commentary does not apply only to inline functions.
18433 2012-09-20  Jim Meyering  <meyering@redhat.com>
18435         non-recursive-gnulib-prefix-hack: new module
18436         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
18437         the file that originated in Bison.
18438         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
18439         largely copied from a snippet that resided in bison's configure.ac.
18440         * modules/non-recursive-gnulib-prefix-hack: New file.
18441         * MODULES.html.sh (Support for maintaining and releasing projects):
18442         Add it.
18444 2012-09-18  Jim Meyering  <meyering@redhat.com>
18446         maint.mk: generalize _gl_tight_scope for non-recursive make
18447         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
18448         that *.h would describe additional .h files in the directory
18449         specified by $(_gl_TS_dir).  I.e., add this...
18450         (_gl_TS_other_headers): New variable.
18452         maint.mk: exempt trailing blanks found in "binary" files
18453         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
18454         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
18455         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
18457 2012-09-17  Jim Meyering  <meyering@redhat.com>
18459         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
18460         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
18461         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
18462         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
18464 2012-09-17  Jim Meyering  <meyering@redhat.com>
18466         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
18467         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
18468         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
18469         It is not in the same category as "exit (0)" or "exit (1)", and
18470         besides, I know of no symbolic name for that 77.  Reported by
18471         Richard W.M. Jones in
18472         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
18474 2012-09-17  Jim Meyering  <meyering@redhat.com>
18476         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
18477         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
18478         all uses of #define, not just those that start in column 1.
18479         Richard W.M. Jones reported a false positive in
18480         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
18482 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18484         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
18485         * lib/localcharset.c (locale_charset) [DARWIN7]:
18486         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
18487         as these two values are incompatible.  Problem reported by Max Horn.
18488         For more discussion, please see
18489         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
18491         doc: document sticky-EOF issue
18492         * doc/posix-functions/fgetc.texi (fgetc):
18493         * doc/posix-functions/fgets.texi (fgets):
18494         * doc/posix-functions/fread.texi (fread):
18495         * doc/posix-functions/fscanf.texi (fscanf):
18496         * doc/posix-functions/getc.texi (getc):
18497         * doc/posix-functions/getchar.texi (getchar):
18498         * doc/posix-functions/scanf.texi (scanf):
18499         Mention that glibc and default Solaris do not conform to
18500         C99 and POSIX-2001 or later, with respect to how getchar
18501         etc. behave when feof reports nonzero.
18503 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
18505         poll: fix poll(0, NULL, msec)
18506         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
18507         but nfd is 0.  In that case poll should behave like select.
18509 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
18510             Paolo Bonzini  <bonzini@gnu.org>
18512         poll: fix for systems that can't recv() on a non-socket
18513         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
18514         is readable.  In this case POLLHUP will not be supported.
18515         * doc/posix-functions/poll.texi: Document this.
18517 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
18519         poll/select: document portability problems not fixed by Gnulib.
18520         * doc/posix-functions/poll.texi: poll does not work well on
18521         pipes under Windows.  It has the same limitations as select on
18522         BeOS.
18523         * doc/posix-functions/select.texi: select does not work well
18524         on pipes under Windows.
18526 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18528         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
18529         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
18530         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
18531         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
18533 2012-09-06  Eric Blake  <eblake@redhat.com>
18535         net_if: give more details about the bug being fixed
18536         * doc/posix-headers/net_if.texi: Add clarification.
18538 2012-09-05  Eric Blake  <eblake@redhat.com>
18540         net_if: new module
18541         * modules/net_if: New module, borrowing ideas from netinet_in.
18542         * m4/net_if_h.m4: New file.
18543         * lib/net_if.in.h: Likewise.
18544         * doc/posix-headers/net_if.texi (net/if.h): Document it.
18545         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18546         * tests/test-net_if.c: Make function checks conditional.
18547         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
18549 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
18551         readutmp: fix non-portable UT_PID use
18552         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
18553         Use `UT_PID (u) > 0' as absolute condition.
18555 2012-09-04  Jim Meyering  <meyering@redhat.com>
18557         fts: reduce two or more trailing spaces to just one, usually
18558         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
18559         or more slashes, trim all but the final one.  But if a name consists
18560         solely of two slashes, don't modify it.  If it consists solely of
18561         three or more slashes, strip all but one.
18563         This is part of the solution to a minor problem with rm:
18564         it would print a bogus ELOOP diagnostic when failing to remove
18565         the slash-decorated name of a symlink-to-directory:
18567             $ mkdir d && ln -s d s && env rm -r s/
18568             rm: cannot remove 's': Too many levels of symbolic links
18570         With the change below and a trivial don't-trim-trailing-slashes
18571         adjustment to remove.c, it does this:
18573             $ env rm -r s/
18574             rm: cannot remove 's/': Not a directory
18576         Improved by: Eric Blake
18578         fts: when there is no risk of overlap, use memcpy, not memmove
18579         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
18581 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18583         stdbool: be more compatible with mixed C/C++ compiles
18584         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
18585         Define to bool, true, false, respectively, as GCC's builtin
18586         stdbool.h does.  Problem reported by Michael Goffioul in
18587         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
18589 2012-08-28  Jim Meyering  <meyering@redhat.com>
18591         revert last change: it was not needed
18592         * tests/test-vc-list-files-git.sh: There's already a test for
18593         a working git, just below.
18595 2012-08-28  Jim Meyering  <meyering@redhat.com>
18597         tests: test-vc-list-files-git.sh: skip if git is not available
18598         * tests/test-vc-list-files-git.sh: Skip this test when git is
18599         not available.
18601 2012-08-26  Bruno Haible  <bruno@clisp.org>
18603         gnulib-tool: Remove no-op option --no-changelog.
18604         * gnulib-tool (func_usage): Don't mention --no-changelog.
18605         (do_changelog): Remove variable.
18606         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
18608 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18610         doc: remove fdl-1.2.texi
18611         It is no longer used or maintained, and its use of @acronym
18612         is problematic.  See the thread containing
18613         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
18614         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
18615         * doc/old-licenses/fdl-1.2.texi: Remove.
18617         execinfo: port to FreeBSD
18618         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
18619         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
18620         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
18621         * modules/execinfo (Link): Add $(LIB_EXECINFO).
18623 2012-08-23  Jim Meyering  <meyering@redhat.com>
18625         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
18626         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
18627         to placate gcc's -Wold-style-declaration.
18629 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18631         doc: do not use @acronym
18632         * doc/inet_ntoa.texi (inet_ntoa):
18633         * doc/parse-datetime.texi (Seconds since the Epoch)
18634         (Specifying time zone rules):
18635         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
18636         Don't use @acronym.  Problem reported by John Darlington in
18637         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
18639 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18641         stdnoreturn: port to newer GCCs
18642         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
18643         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
18644         Problem reported by Jim Meyering in
18645         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
18646         Also, rename the 'test' function to a void a clash with the
18647         already-supplied 'main' function; this fixes a bug that incorrectly
18648         rejected GCC 4.7.1's <stdnoreturn.h>.
18649         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
18650         Document GCC problem.
18652 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
18654         pipe-filter: fix comment typo
18655         * lib/pipe-filter.h: Mention correct function.
18657 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18659         execinfo: new module
18660         This is for Emacs.  Currently, it provides a no-effect stub
18661         on all platforms where it does not already work.
18662         It already works on glibc-based systems, and on Solaris 11.
18663         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
18664         New files.
18665         * doc/glibc-headers/execinfo.texi (execinfo.h):
18666         * MODULES.html.sh (Misc): Document it.
18668 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18670         extern-inline: support old GCC 'inline'
18671         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
18672         if available.  This applies to GCC versions 2.7 through 4.2, or
18673         when newer GCC is using -fgnu89-inline.  The goal is to address
18674         some of the performance issues mentioned by Bruno Haible in
18675         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
18677 2012-08-20  Eric Blake  <eblake@redhat.com>
18679         maint.mk: avoid redundant file name in message
18680         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
18681         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
18682         (sc_makefile_path_separator_check): Remove bogus $(ME).
18684 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
18686         timer-time: fix link order when static linking on glibc
18687         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
18688         _after_ -lrt so that it's significant.
18690 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
18692         timespec: omit unnecessary AC_C_INLINE
18693         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
18695         stat-time: omit unnecessary AC_C_INLINE
18696         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
18697         Do not require AC_C_INLINE.
18699         ignore-value: omit unnecessary AC_C_INLINE
18700         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
18702         sys_select: avoid 'static inline'
18703         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
18705         mktime: avoid 'static inline'
18706         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
18707         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
18709 2012-08-19  Bruno Haible  <bruno@clisp.org>
18711         gnulib-tool: Improve coding style.
18712         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
18713         func_emit_lib_Makefile_am.
18714         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
18716 2012-08-19  Bruno Haible  <bruno@clisp.org>
18718         gnulib-tool: Fix indentation.
18719         * gnulib-tool (func_import): Fix indentation.
18721 2012-08-19  Bruno Haible  <bruno@clisp.org>
18723         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
18724         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
18725         on the list of removed files.
18727 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
18729         test-parse-datetime: avoid glibc leap-second glitch
18730         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
18731         with the 2012 rules.  Problem reported by Bruce Dubbs in
18732         <http://bugs.gnu.org/12206>.
18734 2012-08-14  Bruno Haible  <bruno@clisp.org>
18736         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
18737         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
18738         from argument.
18739         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
18741 2012-08-14  Eric Blake  <eblake@redhat.com>
18743         ldexp: relax license
18744         * modules/ldexp (License): Trivial relax, since the module only
18745         provides a permissively licensed m4 file.
18747 2012-08-13  Bruno Haible  <bruno@clisp.org>
18749         gnulib-tool: Fix persistence of --witness-c-macro option.
18750         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
18751         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
18753 2012-08-11  Eric Blake  <eblake@redhat.com>
18755         count-leading-zeros: use a lookup table on non-gcc compilers
18756         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
18757         alternate implementation, suggested by Jim Meyering.
18759 2012-08-10  Eric Blake  <eblake@redhat.com>
18761         count-leading-zeros: new module
18762         * modules/count-leading-zeros: New module.
18763         * m4/count-leading-zeros.m4: New file.
18764         * lib/count-leading-zeros.h: Likewise.
18765         * modules/count-leading-zeros-tests: New test.
18766         * tests/test-count-leading-zeros.c: New file.
18767         * MODULES.html.sh (Integer arithmetic functions): Document it.
18769 2012-08-07  Simon Josefsson  <simon@josefsson.org>
18770             Jim Meyering  <meyering@redhat.com>
18772         maintainer-makefile: Fix syntax error with dash.
18773         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
18774         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
18776 2012-08-05  Jim Meyering  <meyering@redhat.com>
18778         extern-inline: also ignore -Wmissing-declarations
18779         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
18780         required with gcc-4.8.0-to-be.
18782         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
18783         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
18784         for /error ?([^,]*)/.  This avoids false-positives for strings like
18785         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
18787 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
18789         gnumakefile: better interaction with Automake-NG
18790         * modules/gnumakefile [Makefile.am]: The makefiles generated by
18791         Automake-NG always contain a definition of VPATH, even in non-VPATH
18792         builds (its value being simply '.' in that case).  So, in the
18793         'clean-GNUmakefile' rule, to determine whether running under a
18794         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
18795         '$(VPATH)' expands to the empty string.
18797 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
18799         base64: Use extern C scope in header file, for C++.
18800         * lib/base64.h: Add C++ namespace protection.
18802 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
18804         stat-time, timespec, u64: support naive out-of-dir builds
18805         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
18806         Use '#include "foo.h"', not '#include <foo.h>', when including
18807         one's own interface.  This works better when configuring with
18808         out-of-directory builds, since packages need not add an
18809         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
18811 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18813         utimens: use extern-inline
18814         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
18815         * lib/utimens.h: Add copyright notice, since this is now large enough
18816         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18817         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
18818         * modules/utimens (Depends-on): Add extern-inline.
18820         u64: use extern-inline
18821         * lib/u64.c: New file.
18822         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18823         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
18824         * modules/u64 (Files): Add lib/u64.c.
18825         (Depends-on): Add extern-inline.
18826         (configure.ac): No need to require AC_C_INLINE, since extern-inline
18827         does that now.
18828         (lib_SOURCES): Add u64.c.
18830         timespec: use extern-inline
18831         * lib/timespec.c: New file.
18832         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18833         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
18834         * modules/timespec (Files): Add lib/timespec.c.
18835         (Depends-on): Add extern-inline.
18836         (lib_SOURCES): Add timespec.c.
18838         stat-time: use extern-inline
18839         * lib/stat-time.c: New file.
18840         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18841         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
18842         * modules/stat-time (Files): Add lib/stat-time.c.
18843         (Depends-on): Add extern-inline.
18844         (lib_SOURCES): Add stat-time.c.
18846         extern-inline: new module
18847         * modules/extern-inline, m4/extern-inline.m4: New files.
18848         This is for better support of 'extern inline' a la ISO C99,
18849         with a portable alternative on compilers that do not support
18850         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
18851         of the Emacs executable, when compiled with debugging disabled,
18852         which is a typical way that Emacs is built while developing.
18854 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
18856         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
18857         * build-aux/do-release-commit-and-tag: Move variable definitions
18858         together.
18859         ($branch): Instead of defaulting to "master", default to the current
18860         branch (as gnu-web-doc-update does).
18861         (help): Display the current values of the option arguments.
18862         * top/maint.mk (release-commit): New.
18863         * top/README-release: Simplify the corresponding step.
18865 2012-07-30  Eric Blake  <eblake@redhat.com>
18867         passfd: fix comment on recvfd
18868         * lib/passfd.c (recvfd): Fix comment.
18869         Reported by Jann Horn <jannhorn@googlemail.com>.
18871 2012-07-30  Jim Meyering  <meyering@redhat.com>
18873         maint.mk: avoid a sub-shell
18874         * top/maint.mk (release-prep): Remove unneeded sub-shell.
18876 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
18878         maint.mk: use silent-rules support from Automake
18879         * top/maint.mk (news-check, vc-diff-check, announcement)
18880         (no-submodule-changes, alpha beta stable, release-prep)
18881         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
18883 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
18885         maint.mk: provide a web-manual-update target
18886         * top/maint.mk: here.
18887         * top/README-release: Use it to simplify the web manual update step.
18889 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
18891         README-release: shorten the circuit to post a news
18892         * top/README-release: Point directly to the news submission form.
18894 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
18896         gnu-web-doc-update: fix --help
18897         * build-aux/gnu-web-doc-update: The information "top level" was written
18898         twice.
18900 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
18902         maint.mk: absolute VPATH issue
18903         * top/maint.mk (release-prep): Help Git find .git/.
18904         From Jim Meyering.
18906 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
18908         gitlog-to-changelog: fix previous change
18909         * build-aux/gitlog-to-changelog: Fix condition.
18910         Add missing ";".
18912 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
18914         gitlog-to-changelog: don't expect .git to be in $srcdir
18915         Reported by Bruno Haible.
18916         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
18917         * build-aux/gitlog-to-changelog (&git_dir_option): New.
18918         Use it.
18920 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
18922         maint.mk: absolute VPATH build fix
18923         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
18924         $(srcdir) is not a parent of $(builddir).
18926 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
18928         clean-temp: Fix memory leak.
18929         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
18930         'files' members of tmpdir.
18932 2012-07-27  Jim Meyering  <meyering@redhat.com>
18934         maint.mk: new rule: refresh-gnulib-patches
18935         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
18936         Use this rule to refresh them.
18937         * top/maint.mk (refresh-gnulib-patches): New rule.
18939 2012-07-24  Bruno Haible  <bruno@clisp.org>
18941         gnulib-tool: Fix handling of inctests variable.
18942         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
18943         Reported by Nick Bowler <nbowler@elliptictech.com>.
18945 2012-07-22  Bruno Haible  <bruno@clisp.org>
18947         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
18948         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
18949         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
18950         Remove exemption for getpass.h.
18951         Suggested by Eric Blake.
18953 2012-07-20  Eric Blake  <eblake@redhat.com>
18955         verify: document conflict with -Wnested-externs
18956         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
18958         maint.mk: forbid exit(-1)
18959         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
18961 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
18963         fsusage: port back to Solaris
18964         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
18965         error (fsd not declared) on Solaris 10.  Reported privately by
18966         Andrew Borodin.
18968 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
18970         gnu-web-doc-update: fix error messages
18971         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
18973         gnu-web-doc-update: check the requirements.
18974         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
18975         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
18976         * build-aux/bootstrap (find_tool): Comment change.
18978 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
18980         maint.mk: minor simplication.
18981         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
18982         for default values.
18984 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
18986         gitlog-to-changelog: VPATH build issues
18987         If builddir is not a subdirectory of srcdir, running git from it will
18988         fail.
18989         * build-aux/gitlog-to-changelog (--srcdir): New option.
18991 2012-07-15  Bruno Haible  <bruno@clisp.org>
18993         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
18994         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
18995         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
18996         Remove exemption for fpending.h.
18997         Suggested by Eric Blake.
18999 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
19001         pthread_sigmask: fix bug on FreeBSD 9
19002         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
19003         Include string.h.
19004         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
19005         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
19006         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
19007         but pthread_sigmask (1729, NULL, NULL) returns zero.
19008         See <http://bugs.gnu.org/11884>.
19009         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
19010         by inspecting whether the main call changed the old mask.
19012 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
19014         README-release: make it more legible
19015         * top/README-release: Improve typography slightly.
19017 2012-07-15  Jim Meyering  <meyering@redhat.com>
19019         maint: require that each sc_... command start with "@"
19020         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
19021         "make sc_maint" helps us avoid this nit.
19023 2012-07-15  Jim Meyering  <meyering@redhat.com>
19025         maint.mk: add leading "@" to quiet new "make syntax-check" rule
19026         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
19028 2012-07-13  Eric Blake  <eblake@redhat.com>
19030         maint.mk: new syntax check for HAVE_DECL checks
19031         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
19032         * cfg.mk
19033         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
19034         Exempt some false positives.
19035         Based on a report by Karel Zak.
19037         argp: make HAVE_DECL usage consistent
19038         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
19039         macros, not whether they are defined.
19040         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
19041         convention with other declaration checks.
19042         Reported by Karel Zak, with suggestions from Paul Eggert.
19044         stat-time: relax license to LGPLv2+
19045         * modules/stat-time (License): Relax, with consent of all authors.
19047         strndup: fix m4 usage error
19048         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
19049         defined, to either 0 or 1.
19050         Reported by Karel Zak.
19052 2012-07-11  Jim Meyering  <meyering@redhat.com>
19054         maint: enable the sc_avoid_if_before_free syntax-check rule
19055         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
19056         (if_before_free_offenders_): Define.
19057         (if_before_free_basename_re_): Define.
19058         Exempt current files with useless if-before-free.
19060 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
19062         gettext: do not assume '#define ... defined ...' behavior
19063         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
19064         Do not use '#define FOO ... defined BAR ...', as the C standard says
19065         it's not portable to expect that this works after macro expansion.
19066         Problem reported for gzip by Steven M. Schweda in
19067         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
19069 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
19071         getloadavg: clean out old Emacs and Autoconf cruft
19072         See Glenn Morris in <http://bugs.gnu.org/11905>.
19073         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
19074         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
19075         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
19076         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
19078 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
19080         bootstrap: let warn be like tests/init.sh's warn_
19081         Reported by Jim Meyering.
19082         * build-aux/bootstrap (warn): Remove, replaced by...
19083         (warnf_, warn_): these.
19084         Adjust callers.
19085         Shorten messages that no longer fit in 80 columns.
19087 2012-07-09  Bruno Haible  <bruno@clisp.org>
19089         getopt: Simplify after Emacs changed.
19090         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
19091         (gl_GETOPT_IFELSE): Remove macro.
19093 2012-07-09  Jim Meyering  <meyering@redhat.com>
19095         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
19096         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
19098         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
19099         Bugs in both of those conspired to make the
19100         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
19101         _sc_search_regexp's handling of non-empty $in_files would filter
19102         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
19103         choice of in_files value meant there would be no match in most
19104         projects, due to the presence of two or more Makefile.in files.
19105         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
19106         Fix a bug in how a non-empty $$in_files was processed:
19107         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
19108         in spite of the name, it's a regexp, not a list of file names.
19110 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
19112         getloadavg, getopt: fix commentary re configure.in
19113         Autoconf is deprecating the name 'configure.in', so change it to
19114         to the new name 'configure.ac' in a couple of places.
19115         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
19116         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
19117         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
19118         Emacs has renamed it to configure.ac, and it no longer refers
19119         to these macros anyway.
19121         timespec: mark functions with const attributes
19122         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
19123         Mark with _GL_ATTRIBUTE_CONST.
19125 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
19127         canonicalize[-lgpl]: handle "guessing" values when cross-building
19128         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19129         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
19130         matches "*yes" instead of just "yes".  Regression introduced in commit
19131         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
19133 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
19134             Bruno Haible  <bruno@clisp.org>
19136         canonicalize: make the right guess when cross-compiling to GNU
19137         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
19138         determine whether cross-compiling to glibc systems, so as to
19139         include GNU/Hurd.
19141 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19143         timespec-sub: avoid duplicate include
19144         * lib/timespec-sub.c: Do not include <config.h> twice.
19145         Reported by Juanma Barranquero.
19147 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
19149         bootstrap: use a more consistent error reporting scheme
19150         * build-aux/bootstrap (warn, die): New.
19151         Use them.
19153 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
19155         sys_time: allow too-wide tv_sec
19156         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
19157         timeval even if tv_sec is wider than time_t.  This allows
19158         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
19159         as without this patch gnulib replaces struct timeval
19160         and OpenBSD futimes therefore has a type mismatch.
19161         * doc/posix-headers/sys_time.texi: Mention this.
19163         pthread: check for both pthread_create and pthread_join
19164         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
19165         alter the check so that it tests for both pthread_create and
19166         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
19167         Suggested by Bruno Haible and Richard Yao in
19168         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
19170         parse-datetime: doc tuneup
19171         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
19172         spacing issues.
19174 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
19176         do-release-commit-and-tag: fix the previous commit
19177         * build-aux/do-release-commit-and-tag: Actually the test was right,
19178         but the comment and the error message were misleading.
19179         Fix comment, and improve error message.
19180         Perform check first, so that NEWS is not modified uselessly.
19182         do-release-commit-and-tag: fix typo
19183         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
19184         _not_ start with a stub.
19186 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
19188         pthread: check for pthread_create, not pthread_join
19189         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
19190         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
19191         pthread_join in libc.  I hope this removes the need for all the
19192         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
19193         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
19195 2012-07-04  Jim Meyering  <meyering@redhat.com>
19197         parse-datetime: fix failure to diagnose invalid input
19198         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
19199         rather than diagnosing the invalid input.  Now it reports this:
19200         date: invalid date '\260'
19201         * lib/parse-datetime.y (to_uchar): Define.
19202         (yylex): Don't sign-extend "other" bytes.
19203         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
19204         Thanks to Bruno Haible for the patch to this file.
19205         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
19206         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
19208 2012-07-03  Jim Meyering  <meyering@redhat.com>
19210         bootstrap: do not require now-removed build-aux/missing
19211         Now that build-aux/missing is, er, missing, bootstrap would
19212         silently fail.
19213         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
19214         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
19215         no longer part of gnulib.
19216         Diagnose the failure.
19218 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19220         alloca: add support for HP NonStop TNS/E native
19221         * lib/alloca.in.h (alloca): Support the new host.
19222         From a suggestion by Joachim Schmitz in
19223         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
19225 2012-07-02  Pádraig Brady  <P@draigBrady.com>
19227         fsusage: remove code not needed on non GNU/Linux systems.
19229         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
19230         Don't include headers no longer needed in this case.
19231         * lib/fsusage.c [STAT_STATVFS &&
19232         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
19233         STAT_STATFS2_FRSIZE to exclude code not used in this case.
19235 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
19237         fsusage: include files needed for glibc 2.6 fallback
19238         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
19239         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
19240         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
19241         Problem reported by Ludovic Courtès in
19242         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
19244         fsusage: avoid needless check on GNU/Linux
19245         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
19246         on GNU/Linux systems, since it can't possibly work.
19248 2012-07-01  Bruno Haible  <bruno@clisp.org>
19250         log: Fix an autoconf >= 2.64 warning.
19251         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
19252         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
19254 2012-06-28  Bruno Haible  <bruno@clisp.org>
19256         log10f: Fix possible configuration problem.
19257         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
19258         $LOGF_LIBM.
19259         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
19261 2012-06-28  Bruno Haible  <bruno@clisp.org>
19263         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
19264         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
19265         not gl_cv_func_unlink_works.
19266         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
19268 2012-06-27  Eric Blake  <eblake@redhat.com>
19270         config: drop scripts that automake says are not independent
19271         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
19272         * build-aux/elisp-comp: Delete.
19273         * build-aux/missing: Likewise.
19274         * build-aux/ylwrap: Likewise.
19275         * modules/elisp-comp: Likewise.
19276         * MODULES.html.sh: Drop mention of elisp-comp.
19277         * NEWS: Mention this.
19279 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
19281         root-uid: new module
19282         This is for portability to Tandem's NonStop Kernel.
19283         * lib/root-uid.h, modules/root-uid: New files.
19284         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
19285         * lib/write-any-file.c, tests/test-sethostname2.c:
19286         Include "root-uid.h".
19287         * lib/euidaccess.c (euidaccess):
19288         * lib/pt_chown.c (main):
19289         * lib/unlinkdir.c (cannot_unlink_dir):
19290         * lib/write-any-file.c (can_write_any_file):
19291         * m4/mknod.m4 (gl_FUNC_MKNOD):
19292         * tests/test-sethostname2.c (geteuid, main):
19293         Don't assume ROOT_UID == 0.
19294         * modules/euidaccess (Depends-on):
19295         * modules/pt_chown (Depends-on):
19296         * modules/sethostname-tests (Depends-on):
19297         * modules/unlinkdir (Depends-on):
19298         * modules/write-any-file (Depends-on):
19299         Add root-uid.
19301         regex: use locale-independent comparison for codeset name
19302         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
19303         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
19304         for codeset name.
19305         * lib/regex_internal.h: Do not include <strings.h>, since we
19306         no longer use strcasecmp.
19307         * modules/regex (Depends-on): Remove strcase.
19309 2012-06-23  Bruno Haible  <bruno@clisp.org>
19311         getopt-posix: No longer guarantee that option processing is resettable.
19312         * doc/posix-functions/getopt.texi: Drop description of problem with
19313         internal state. Fix info about mingw and msvc9.
19314         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
19315         option processing by getopt(). Run three test programs instead of one.
19316         Simplify cross-compilation guess.
19317         * NEWS: Mention the change.
19318         Reported by Rich Felker <dalias@aerifal.cx>.
19320 2012-06-26  Bruno Haible  <bruno@clisp.org>
19322         argp, regex: Ensure strcasecmp gets declared.
19323         * lib/argp-help.c: Include <strings.h>.
19324         * lib/regex_internal.h: Likewise.
19325         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
19327 2012-06-24  Bruno Haible  <bruno@clisp.org>
19329         ptsname_r: Make it consistent with ptsname on AIX.
19330         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
19331         implementation as for OSF/1.
19332         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
19333         a pty master.
19335         ptsname_r: Make it consistent with ptsname on OSF/1.
19336         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
19337         OSF/1.
19339 2012-06-24  Bruno Haible  <bruno@clisp.org>
19341         ttyname_r: Fix result on OSF/1, Solaris.
19342         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
19344 2012-06-24  Bruno Haible  <bruno@clisp.org>
19346         ptsname_r: Add support for Solaris.
19347         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
19348         Solaris.
19350         ptsname_r: Fix test failure on native Windows.
19351         * modules/ptsname_r (Depends-on): Add isatty.
19353         ptsname_r: Fix test failures on IRIX, Solaris.
19354         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
19355         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
19356         accordingly.
19357         * lib/ptsname_r.c: Include <fcntl.h>.
19358         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
19359         set errno if fd is invalid.
19360         * tests/test-isatty.c (main): Update comments.
19362 2012-06-24  Bruno Haible  <bruno@clisp.org>
19364         ptsname test: Extend test.
19365         * tests/test-ptsname.c: Include <errno.h>.
19366         (main): Test behaviour with invalid file descriptor.
19368 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19370         time: fix obsolete comment
19371         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
19372         reference to HAVE_STRUCT_TIMESPEC in comment.
19374 2012-06-23  Bruno Haible  <bruno@clisp.org>
19376         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
19377         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
19378         does not handle abbreviated long options with equivalent
19379         disambiguations, set gl_replace_getopt to yes.
19380         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
19382 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
19384         time_r: fix typo that always overrode localtime_r decl
19385         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
19386         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
19387         not in a standard include.
19389 2012-06-22  Bruno Haible  <bruno@clisp.org>
19391         Write "Mac OS X" instead of "MacOS X".
19392         * README: Write "Mac OS X" instead of "MacOS X".
19393         * build-aux/bootstrap: Likewise.
19394         * build-aux/install-reloc: Likewise.
19395         * lib/acl-internal.h: Likewise.
19396         * lib/acl_entries.c: Likewise.
19397         * lib/argp-ba.c: Likewise.
19398         * lib/argp-pv.c: Likewise.
19399         * lib/config.charset: Likewise.
19400         * lib/copy-acl.c: Likewise.
19401         * lib/csharpexec.c: Likewise.
19402         * lib/euidaccess.c: Likewise.
19403         * lib/fbufmode.c: Likewise.
19404         * lib/fflush.c: Likewise.
19405         * lib/file-has-acl.c: Likewise.
19406         * lib/filemode.h: Likewise.
19407         * lib/fpurge.c: Likewise.
19408         * lib/freadable.c: Likewise.
19409         * lib/freadahead.c: Likewise.
19410         * lib/freading.c: Likewise.
19411         * lib/freadptr.c: Likewise.
19412         * lib/freadseek.c: Likewise.
19413         * lib/fseeko.c: Likewise.
19414         * lib/fseterr.c: Likewise.
19415         * lib/fsusage.c: Likewise.
19416         * lib/fwritable.c: Likewise.
19417         * lib/fwriting.c: Likewise.
19418         * lib/get-rusage-as.c: Likewise.
19419         * lib/get-rusage-data.c: Likewise.
19420         * lib/getdomainname.c: Likewise.
19421         * lib/idpriv-drop.c: Likewise.
19422         * lib/idpriv-droptemp.c: Likewise.
19423         * lib/localcharset.c: Likewise.
19424         * lib/locale.in.h: Likewise.
19425         * lib/localename.c: Likewise.
19426         * lib/mbsrtowcs-state.c: Likewise.
19427         * lib/nproc.c: Likewise.
19428         * lib/passfd.c: Likewise.
19429         * lib/posix_openpt.c: Likewise.
19430         * lib/printf-parse.c: Likewise.
19431         * lib/progreloc.c: Likewise.
19432         * lib/safe-read.h: Likewise.
19433         * lib/safe-write.h: Likewise.
19434         * lib/sched.in.h: Likewise.
19435         * lib/set-mode-acl.c: Likewise.
19436         * lib/signal.in.h: Likewise.
19437         * lib/stdint.in.h: Likewise.
19438         * lib/stdio-impl.h: Likewise.
19439         * lib/stdlib.in.h: Likewise.
19440         * lib/strtod.c: Likewise.
19441         * lib/sys_select.in.h: Likewise.
19442         * lib/tcgetsid.c: Likewise.
19443         * lib/unistd.in.h: Likewise.
19444         * lib/unlockpt.c: Likewise.
19445         * lib/vasnprintf.c: Likewise.
19446         * lib/vma-iter.c: Likewise.
19447         * lib/wcsrtombs-state.c: Likewise.
19448         * m4/acl.m4: Likewise.
19449         * m4/acosl.m4: Likewise.
19450         * m4/asinl.m4: Likewise.
19451         * m4/atanl.m4: Likewise.
19452         * m4/c-stack.m4: Likewise.
19453         * m4/cosl.m4: Likewise.
19454         * m4/expl.m4: Likewise.
19455         * m4/extensions.m4: Likewise.
19456         * m4/fdatasync.m4: Likewise.
19457         * m4/fmal.m4: Likewise.
19458         * m4/frexp.m4: Likewise.
19459         * m4/frexpf.m4: Likewise.
19460         * m4/frexpl.m4: Likewise.
19461         * m4/fsusage.m4: Likewise.
19462         * m4/getdomainname.m4: Likewise.
19463         * m4/getloadavg.m4: Likewise.
19464         * m4/getopt.m4: Likewise.
19465         * m4/gettext.m4: Likewise.
19466         * m4/gnulib-common.m4: Likewise.
19467         * m4/intdiv0.m4: Likewise.
19468         * m4/intlmacosx.m4: Likewise.
19469         * m4/largefile.m4: Likewise.
19470         * m4/ldexpl.m4: Likewise.
19471         * m4/link-follow.m4: Likewise.
19472         * m4/locale-ar.m4: Likewise.
19473         * m4/locale-fr.m4: Likewise.
19474         * m4/locale-ja.m4: Likewise.
19475         * m4/locale-tr.m4: Likewise.
19476         * m4/locale-zh.m4: Likewise.
19477         * m4/locale_h.m4: Likewise.
19478         * m4/lock.m4: Likewise.
19479         * m4/logl.m4: Likewise.
19480         * m4/mathfunc.m4: Likewise.
19481         * m4/minus-zero.m4: Likewise.
19482         * m4/mktime.m4: Likewise.
19483         * m4/mmap-anon.m4: Likewise.
19484         * m4/multiarch.m4: Likewise.
19485         * m4/nanosleep.m4: Likewise.
19486         * m4/nocrash.m4: Likewise.
19487         * m4/poll.m4: Likewise.
19488         * m4/printf-frexpl.m4: Likewise.
19489         * m4/printf.m4: Likewise.
19490         * m4/signbit.m4: Likewise.
19491         * m4/sinl.m4: Likewise.
19492         * m4/sqrtl.m4: Likewise.
19493         * m4/strerror_r.m4: Likewise.
19494         * m4/tanl.m4: Likewise.
19495         * m4/threadlib.m4: Likewise.
19496         * m4/ttyname_r.m4: Likewise.
19497         * m4/unlink.m4: Likewise.
19498         * m4/visibility.m4: Likewise.
19499         * m4/wcwidth.m4: Likewise.
19500         * tests/minus-zero.h: Likewise.
19501         * tests/test-alloca-opt.c: Likewise.
19502         * tests/test-copy-acl.sh: Likewise.
19503         * tests/test-copy-file.sh: Likewise.
19504         * tests/test-fdatasync.c: Likewise.
19505         * tests/test-file-has-acl.sh: Likewise.
19506         * tests/test-flock.c: Likewise.
19507         * tests/test-fsync.c: Likewise.
19508         * tests/test-localename.c: Likewise.
19509         * tests/test-malloca.c: Likewise.
19510         * tests/test-nonblocking-pipe.h: Likewise.
19511         * tests/test-nonblocking-socket.h: Likewise.
19512         * tests/test-openpty.c: Likewise.
19513         * tests/test-posix_openpt.c: Likewise.
19514         * tests/test-ptsname.c: Likewise.
19515         * tests/test-ptsname_r.c: Likewise.
19516         * tests/test-sameacls.c: Likewise.
19517         * tests/test-select.h: Likewise.
19518         * tests/test-set-mode-acl.sh: Likewise.
19519         * tests/test-snprintf-posix.h: Likewise.
19520         * tests/test-sprintf-posix.h: Likewise.
19521         * tests/test-strtod.c: Likewise.
19522         * tests/test-time.c: Likewise.
19523         * tests/test-vasnprintf-posix.c: Likewise.
19524         * tests/test-vasprintf-posix.c: Likewise.
19525         * doc/acl-resources.txt: Likewise.
19526         * doc/**/*.texi: Likewise.
19527         Reported by Max Horn <max@quendi.de>.
19529 2012-06-22  Bruno Haible  <bruno@clisp.org>
19531         grantpt: Relax requirement regarding invalid file descriptors.
19532         * lib/grantpt.c: Don't include <fcntl.h>.
19533         (grantpt): Don't verify the validity of the file descriptor.
19534         * modules/grantpt (Depends-on): Remove fcntl-h.
19535         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
19536         file descriptors.
19537         * doc/posix-functions/grantpt.texi: Document more platforms on which
19538         grantpt succeeds for invalid file descriptors.
19539         Reported by Rich Felker <dalias@aerifal.cx>.
19541 2012-06-22  Bruno Haible  <bruno@clisp.org>
19543         fbufmode test: Don't test unportable behaviour.
19544         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
19545         (main): Invoke it three times.
19546         Reported by Szabolcs Nagy <nsz@port70.net>
19547         and Rich Felker <dalias@aerifal.cx>.
19549 2012-06-21  Bruno Haible  <bruno@clisp.org>
19551         gnulib-tool: Refactor inctests variable.
19552         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
19553         (func_modules_transitive_closure,
19554         func_modules_transitive_closure_separately,
19555         func_import, func_create_testdir): Update.
19557         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
19558         * gnulib-tool: Accept option --without-tests.
19559         (func_usage): Document --without-tests option. Rearrange.
19560         (inctests): Normalize according to the mode.
19561         * NEWS: Mention the change.
19562         Suggested by Simon Josefsson.
19564 2012-06-21  Bruce Korb  <bkorb@gnu.org>
19566         parse-duration test: Avoid spurious output.
19567         * tests/test-parse-duration.sh: Reindent with leading tabs.
19569 2012-06-21  Jim Meyering  <meyering@redhat.com>
19571         maint: disable the strncpy prohibition
19572         * cfg.mk: Do not prohibit strncpy here.
19574 2012-06-21  Bruno Haible  <bruno@clisp.org>
19576         nonblocking: Avoid compilation error on mingw64.
19577         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
19578         fscanf.
19579         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
19580         * modules/vfscanf (configure.ac): Likewise.
19581         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
19582         definition only if stdio.h has prepared it.
19583         Reported by Daniel P. Berrange <berrange@redhat.com>.
19585 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
19587         gnulib-tool: Use readlink if it is available.
19588         * gnulib-tool (func_readlink): Choose function more appropriately.
19590 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19592         posixtm-tests: port to buggy compiler
19593         Problem reported by Simon Josefsson in
19594         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
19595         * modules/posixtm-tests (Depends-on): Add stdint.
19596         * tests/test-posixtm.c (struct posixtm_test.t_expected):
19597         Now of type int_least64_t, not int64_t, both because that's
19598         what INT64_C returns and because int_least64_t works even
19599         on 72-bit hosts.
19600         (T): Use INT64_C on constants outside the traditional int range,
19601         to work around compiler bug noted by Simon.
19603         mktime: fix integer overflow in 'configure'-time test
19604         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
19605         after integer overflow.  Problem reported by Rich Felker in
19606         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
19607         Also, don't look for further instances of a bug if we've already
19608         found one instance; this helps 'configure' run faster.
19610 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
19612         tmpfile, clean-temp: Fix invocation of GetVersionEx.
19613         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
19614         GetVersionEx correctly.
19615         * lib/clean-temp.c (supports_delete_on_close): Likewise.
19617 2012-06-20  Bruno Haible  <bruno@clisp.org>
19619         fdopen: Allow implementations that don't reject invalid fd arguments.
19620         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
19621         succeeds.
19622         Reported by Rich Felker <dalias@aerifal.cx>.
19624 2012-06-20  Simon Josefsson  <simon@josefsson.org>
19626         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
19627         bring in LIBINTL.
19629 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
19631         init.sh: do not rely on autoupated PWD
19632         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
19633         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
19634         Although Nelson's bug was not necessarily fixed by this patch,
19635         it seems wise to make the change for safety.
19636         * tests/init.sh (path_prepend_): Do not rely on PWD updating
19637         automagically after 'cd'; this is not reliable on older shells.
19638         (setup_): Fail if we cannot cd to temporary directory.
19640 2012-06-19  Bruno Haible  <bruno@clisp.org>
19642         stat, fstat: Avoid warnings on mingw64.
19643         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
19644         redefining.
19645         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
19646         Reported by Daniel P. Berrange <berrange@redhat.com>.
19648 2012-06-19  Bruno Haible  <bruno@clisp.org>
19650         stdioext: Add support for musl libc.
19652         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
19653         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
19655         * m4/fseterr.m4: New file.
19656         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
19657         function exists.
19658         * modules/fseterr (Files): Add m4/fseterr.m4.
19659         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
19660         __fseterr does not exist.
19661         (Makefile.am): Remove fseterr.c from lib_SOURCES.
19663         * lib/freadable.h: Update comment.
19665         * lib/fwritable.h: Update comment.
19667         * lib/freading.h: Update comment.
19669         * lib/fwriting.h: Update comment.
19671         * m4/freadahead.m4: New file.
19672         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
19673         that function exists.
19674         * modules/freadahead (Files): Add m4/freadahead.m4.
19675         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
19676         __freadahead does not exist.
19677         (Makefile.am): Remove freadahead.c from lib_SOURCES.
19679         * m4/freadptr.m4: New file.
19680         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
19681         function exists.
19682         * modules/freadptr (Files): Add m4/freadptr.m4.
19683         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
19684         __freadptr does not exist.
19685         (Makefile.am): Remove freadptr.c from lib_SOURCES.
19687         * m4/freadseek.m4: New file.
19688         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
19689         exists.
19690         * modules/freadseek (Files): Add m4/freadseek.m4.
19691         (configure.ac): Invoke gl_FUNC_FREADSEEK.
19693         * lib/fpurge.c (fpurge): Update comment.
19695         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
19697 2012-06-19  Bruno Haible  <bruno@clisp.org>
19699         *printf-posix: Put more info into config.log.
19700         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
19701         exit code into config.log.
19703 2012-06-19  Bruno Haible  <bruno@clisp.org>
19705         getopt-gnu: Fix exit code overflow in autoconf test.
19706         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
19707         to keep them below < 128.
19709 2012-06-17  Jim Meyering  <meyering@redhat.com>
19711         maint.mk: fix typo in code to derive GPG key at release time
19712         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
19714 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19716         regex: avoid warning when pointers are not long
19717         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
19718         and uintptr_t, not long, for portability to hosts where pointers and
19719         long have different sizes.  Issue noted by Daniel P. Berrange in
19720         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
19721         and fix suggested by Bruno Haible in
19722         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
19724 2012-06-17  Bruno Haible  <bruno@clisp.org>
19726         dummy: Relicense into the public domain.
19727         * modules/dummy (License): Set to "public domain".
19728         Suggested by Reuben Thomas.
19730 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
19732         announce-gen: VPATH issues
19733         * build-aux/announce-gen (--srcdir): New option, used to trim the
19734         $srcdir part of the path from $builddir to NEWS.
19735         * top/maint.mk (announcement): Adjust.
19737 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
19739         gnu-web-doc-update: VPATH builds
19740         * build-aux/gnu-web-doc-update (--builddir): New option.
19741         Revamp the handling of options.
19742         Prefer $(...) to `...`.
19743         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
19744         the template, and it is GNU mktemp specific.
19745         Prefer set -e to long series of &&.
19746         Restore the initial git branch, not "master".
19747         Properly initialize submodules (don't rely only on bootstrap).
19748         Do not reconfigure blindly, use config.status.
19749         * top/README-release: Update instructions for gnu-web-doc-update.
19751 2012-06-11  Jim Meyering  <meyering@redhat.com>
19753         maint.mk: revert most of the previous change re "all these"
19754         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
19755         For rationale, see the discussion at
19756         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
19758 2012-06-10  Karl Berry  <karl@gnu.org>
19760         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
19762         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
19764 2012-06-10  Bruce Korb  <bkorb@gnu.org>
19766         parse-duration: Relicense under LGPLv2+.
19767         * modules/parse-duration (License): Change to LGPLv2+.
19769 2012-06-10  Jim Meyering  <meyering@redhat.com>
19771         maint.mk: prohibit common grammar error: "all these"
19772         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
19773         the list of prohibited word sequences.  It should be "all of these".
19774         * lib/tempname.c (__gen_tempname): Fix one of them.
19776 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
19778         do-release-commit-and-tag: support VPATH builds
19779         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
19780         (noteworthy): Defined earlier to factor its value.
19781         (noteworthy_stub): New.
19782         Use it to factor.
19783         (help_version): Split into...
19784         (help, version): these.
19785         Adjust the option processing part.
19786         Support "--option=value" in addition to "--option value".
19787         (builddir): New.
19788         (--builddir): New option.
19789         * top/README-release: Document this.
19790         Reword slightly so that the reader cannot understand that he
19791         has to do these steps before calling do-release-commit-and-tag.
19793 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
19795         readme-release: also require announce-gen and maintainer-makefile
19796         * modules/readme-release (Depends-on): here.
19797         * modules/announce-gen, modules/do-release-commit-and-tag,
19798         modules/gnu-web-doc-update, modules/maintainer-makefile
19799         (Description): Point to readme-release.
19801 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
19803         maint.mk: fix VPATH issues.
19804         * top/maint.mk (news-check): GNU Make understand $< very well.
19805         (release-prep): NEWS is in $(srcdir).
19807 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
19809         readme-release: require the promoted modules.
19810         * modules/readme-release (Depends-on): Add
19811         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
19812         in this text.
19814 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
19815             Bruno Haible  <bruno@clisp.org>
19817         error, strerror-override: Support mingw64 from Fedora 17.
19818         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
19819         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
19820         EINPROGRESS.
19821         * lib/strerror-override.h (strerror_override): Test it.
19822         * lib/strerror-override.c (strerror_override): Likewise.
19823         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
19825 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
19826             Bruno Haible  <bruno@clisp.org>
19828         error, strerror-override: Support mingw64 from Fedora 17.
19829         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
19830         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
19831         * lib/strerror-override.h (strerror_override): Test it.
19832         * lib/strerror-override.c (strerror_override): Likewise.
19834 2012-06-03  Bruno Haible  <bruno@clisp.org>
19836         error, strerror-override: Support new errno values from POSIX:2008.
19837         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
19838         ENOTRECOVERABLE.
19839         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
19840         platforms.
19841         * lib/strerror-override.c (strerror_override): Conditionalize the
19842         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
19843         * lib/strerror-override.h (strerror_override): Declare also if
19844         GNULIB_defined_EOWNERDEAD is defined.
19845         * tests/test-errno.c (e130, e131): New variables.
19846         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
19847         ENOTRECOVERABLE.
19848         Reported by Paolo Bonzini.
19850 2012-05-31  Jim Meyering  <meyering@redhat.com>
19852         savewd: add missing dependency on sys_wait module
19853         * modules/savewd (Depends-on): Add sys_wait, needed at least
19854         for MSVC.  Report and suggested change by Michael Goffioul.
19856 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19858         system-quote-tests: port to CentOS 5
19859         Problem reported by Tom G. Christensen in
19860         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
19861         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
19863 2012-05-29  Jim Meyering  <meyering@redhat.com>
19865         maint: fix typos in comments and ChangeLog
19866         Culprits identified and fixed mostly automatically using these commands:
19867         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
19868         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
19869         using http://github.com/lyda/misspell-check
19870         * ChangeLog: Fix typos.
19871         * doc/solaris-versions: Likewise.
19872         * lib/regexec.c (re_search_stub): Likewise.
19873         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19875 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
19877         manywarnings: remove duplicate -Wmultichar entry
19878         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
19879         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
19880         so keep the entry marked as documented.
19882 2012-05-27  Karl Berry  <karl@gnu.org>
19884         * config/srclist.txt (mktime.c): remove last libc sync,
19885         perhaps just temporarily.
19887 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
19889         regex: don't assume uint64_t or uint32_t
19890         * lib/regcomp.c (init_word_char): Don't assume that the types
19891         uint64_t and uint32_t exist.  The C standard doesn't guarantee
19892         them, and on some 32-bit compilers there is no uint64_t.
19893         Problem reported by Gianluigi Tiesi in
19894         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
19896 2012-05-25  Jim Meyering  <meyering@redhat.com>
19898         maint.mk: add strncpy-prohibiting syntax-check rule
19899         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
19901 2012-05-24  Jim Meyering  <meyering@redhat.com>
19903         maint.mk: compute $(gpg_key_ID) more portably
19904         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
19905         That use of sed is not portable to some fringe systems.
19906         Reported by Paul Eggert in
19907         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
19909 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19911         mktime: sync from glibc
19912         * config/srclist.txt: Uncomment mktime.c.
19913         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
19914         First, indent with tabs, since glibc uses tabs and doesn't want to
19915         change and we'd rather be identical to glibc.  Also, two small
19916         coding changes:
19917         (isdst_differ): Use &&, not &, as && is the usual style.
19918         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
19919         for clarity.
19921 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
19923         announce-gen: du -h is more portable than du --human
19924         * build-aux/announce-gen (sizes): Invoke du with -h instead
19925         of --human.  Accept leading white space in its output.
19927 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
19929         announce-gen: Improve diagnostics.
19930         * build-aux/announce-gen: When parsing command line options,
19931         prefer "announce-gen: option --release-type requires an argument"
19932         to "Option release-type requires an argument".
19934 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
19936         maint.mk: gpg_key_ID: use sed more portably
19937         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
19938         the closing brace.
19939         (refresh-po): Fuse two sed invocations into one.
19941 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
19943         gitlog-to-changelog: support the log message format used in Bison.
19944         * build-aux/gitlog-to-changelog: Support --strip-tab and
19945         --strip-cherry-picked.
19947 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
19949         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
19950         the rest of the current time slice to another thread in the current
19951         process. So if the thread that feeds the file decscriptor we're
19952         polling is not in the current process, we get busy-waiting.
19953         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
19954         Patch from Theodore Leblond.
19955         * lib/select.c: Split polling out of the loop that sets the output
19956         fd_sets.  Check for zero result and loop if the wait timeout is
19957         infinite.
19959 2012-05-21  Simon Josefsson  <simon@josefsson.org>
19961         select: Fix build error on IRIX 6.5.
19962         * lib/select.c: Include stddef.h for NULL.
19964 2012-05-21  Simon Josefsson  <simon@josefsson.org>
19966         gc: fix libgcrypt detection on older machines.
19967         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
19968         copyright years because the file has been distributed every year
19969         since it was created.
19971 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
19973         crypto: fix bug in large buffer handling
19974         Problem reported by Serge Belyshev for glibc in
19975         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
19976         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
19977         * lib/md4.c (md4_process_block):
19978         * lib/md5.c (md5_process_block):
19979         * lib/sha1.c (sha1_process_block):
19980         * lib/sha256.c (sha256_process_block):
19981         Don't assume the buffer length is less than 2**32.
19982         * lib/sha512.c (sha512_process_block): Likewise.
19983         Here, the bug is present only in the rare case where the host does
19984         not support uint64_t or where size_t is wider than 64 bits.
19985         Use u64size to work around the problems.
19986         * lib/u64.h (u64size): New macro.
19988 2012-05-15  Pádraig Brady  <P@draigBrady.com>
19990         fsusage: fix block size returned on older Linux 2.6
19992         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
19993         which is available since Linux 2.6.
19994         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
19995         when the member is available so it can be used as a fallback.
19996         * doc/posix-functions/statvfs.texi: Mention the hang issue
19997         on Linux < 2.6.36.
19999 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20001         bootstrap: suppress stderr chatter
20002         * build-aux/bootstrap (insert_sorted_if_absent, main program):
20003         Omit unnecessary chatter to stderr.  The main program chatter
20004         was there only inadvertantly.
20006         bootstrap: .gitignore files created by autopoint, libtool
20007         I ran into this problem when bootstrapping the latest diffutils.
20008         After './bootstrap', 'git status' reported lots of untracked files
20009         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
20010         autopoint and do not need to be version-controlled.
20011         * build-aux/bootstrap: Put into .gitignore the files that
20012         autopoint and libtool create, by keeping track of files that exist
20013         after but not before these programs are run.
20014         (version_controlled_file): Move up.  2nd arg is now full file
20015         name, not base name; this is more convenient.  Put CVS at the end,
20016         as it's now somewhat deprecated.
20018 2012-05-14  Jim Meyering  <meyering@redhat.com>
20020         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
20021         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
20022         definition.  Reported by Bruno Haible.
20024 2012-05-13  Bruno Haible  <bruno@clisp.org>
20025             Paul Eggert  <eggert@cs.ucla.edu>
20027         binary-io: Define set_binary_mode function.
20028         * lib/binary-io.h (set_binary_mode): New function.
20029         (SET_BINARY): Define in terms of set_binary_mode.
20030         * modules/binary-io (configure.ac): Require AC_C_INLINE.
20031         * tests/test-binary-io.c (main): Accept an argument, and test either
20032         set_binary_mode or SET_BINARY depending on the argument.
20033         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
20034         argument. Clean up also t-bin-out0.tmp.
20036 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
20038         bootstrap: take advantage of POSIX shell features
20040         The 'bootstrap' script offered by Gnulib script already uses POSIX
20041         shell features (like $((...)) arithmetic expansions) that are not
20042         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
20043         means that bootstrap must already be run using a proper POSIX shell,
20044         which will thus provide more features, like ${var#pattern} parameter
20045         expansion or inversion of a command exit status with '!'.  We can
20046         thus use these features to improve the clarity and the performances
20047         of the bootstrap script.
20049         Suggested by Eric Blake.
20051         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
20052         of sed/expr plus command substitutions, to save some forks.  While
20053         we are at it, prefer the POSIX $(...) form of command substitution,
20054         rather than the legacy form `...` (since the former is visually
20055         clearer and interacts better with quoting), and prefer the idiom:
20056           "if ! CMD; then ACTION ..."
20057         over the idiom:
20058           "if CMD; then :; else ACTION ..."
20059         which was required by legacy Bourne shells not supporting '!'.
20061 2012-05-12  Bruno Haible  <bruno@clisp.org>
20063         system-quote: Add more comments.
20064         * lib/system-quote.h: Add more comments about wilcards and limitations.
20065         Suggested by Eli Zaretskii <eliz@gnu.org>.
20067         sh-quote, system-quote: Add comments about wildcards.
20068         * lib/sh-quote.h: Clarify what happens with wildcard characters.
20069         * lib/system-quote.h: Likewise.
20070         Reported by Eli Zaretskii <eliz@gnu.org>.
20072 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
20074         fsusage: check for GNU/Linux statvfs problem dynamically
20075         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
20076         Define STAT_STATFS2_BSIZE too, since in this case the code now
20077         checks dynamically whether statvfs is reliable, falling back on
20078         Linux-style statfs otherwise.
20079         (statvfs_works): New function, for dynamically testing statvfs.
20080         (get_fs_usage) [STAT_STATVFS]: Use it.
20081         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
20082         statvfs on GNU/Linux hosts, since it's now done dynamically.
20084 2012-05-10  Bruno Haible  <bruno@clisp.org>
20086         system-quote, execute, spawn-pipe: Escape '?' on Windows.
20087         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
20088         '?' character.
20089         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
20090         * tests/test-system-quote-main.c (check_all): Check also strings like
20091         "??????????".
20092         Reported by Eli Zaretskii <eliz@gnu.org>.
20094 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
20096         _Noreturn: port config.h to gcc -Wundef
20097         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
20098         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
20099         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
20101 2012-05-10  Bruno Haible  <bruno@clisp.org>
20103         system-quote: Refactor.
20104         * lib/system-quote.h (system_quote_copy): Fix comment.
20105         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
20106         New functions, extracted from system_quote_copy.
20107         (system_quote_length, system_quote_copy): Use these functions.
20108         Reported by Paul Eggert.
20110 2012-05-08  Bruno Haible  <bruno@clisp.org>
20112         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
20113         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
20115 2012-05-08  Bruno Haible  <bruno@clisp.org>
20117         Tests for module 'system-quote'.
20118         * modules/system-quote-tests: New file.
20119         * tests/test-system-quote.sh: New file.
20120         * tests/test-system-quote-main.c: New file.
20121         * tests/test-system-quote-child.c: New file.
20123         New module 'system-quote'.
20124         * lib/system-quote.h: New file.
20125         * lib/system-quote.c: New file.
20126         * modules/system-quote: New file.
20128 2012-05-08  Bruno Haible  <bruno@clisp.org>
20130         sh-quote: Make C++ safe and allow multiple inclusion.
20131         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
20132         declarations in extern "C".
20134 2012-05-08  Bruno Haible  <bruno@clisp.org>
20136         sh-quote tests: Make tests stricter.
20137         * tests/test-sh-quote.c (check_one): Check the return value of
20138         shell_quote_copy.
20139         (main): Check a string with a CR character. Check a string that
20140         contains UCHAR_MAX.
20142 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
20144         warnings.m4: provide a means to specify the program to compile.
20145         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
20146         (gl_WARN_ADD): here.
20147         Use gl_AS_VAR_APPEND.
20148         Support an argument to specify the program to compile.
20149         (gl_WARN_ADD): Accept an argument to specify the program to compile.
20150         AC_SUBST the WARN_CFLAGS when they are used.
20151         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
20152         leave this to gl_WARN_ADD.
20154 2012-05-08  Eric Blake  <eblake@redhat.com>
20156         doc: recommendations on gettext version
20157         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
20158         choice between versions.
20159         * DEPENDENCIES (gettext): Cover both approaches.
20161 2012-05-08  Jim Meyering  <meyering@redhat.com>
20163         init.sh: explain why EXEEXT support uses aliases rather than functions
20164         * tests/init.sh: Add a comment.
20166         init.sh: don't let bash aliases interfere with tests
20167         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
20168         is bash.  This avoids problems for those who alias standard commands to
20169         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
20170         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
20172 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20174         stdint: be more consistent with glibc, SunOS libc
20175         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
20176         (gl_int_fast16_t, gl_uint_fast16_t)
20177         (gl_int_fast32_t, gl_uint_fast32_t)
20178         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
20179         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
20180         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
20181         Be consistent with glibc by default, and with SunOS 5.10 and later
20182         if __sun is defined.  This lessens the likelihood of clashes if
20183         code compiled for older hosts is combined with code compiled for
20184         newer ones.  Problem reported by Niels Möller in
20185         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
20187 2012-05-07  Eric Blake  <eblake@redhat.com>
20189         isatty: relax license to LGPLv2+
20190         * modules/isatty (License): Relax license.
20192 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
20194         stat-size: comment fix
20195         * lib/stat-size.h: Remove obsolete comment about indenting.
20197 2012-05-06  Bruno Haible  <bruno@clisp.org>
20199         Tests for module 'sh-quote'.
20200         * modules/sh-quote-tests: New file.
20201         * tests/test-sh-quote.c: New file.
20203 2012-05-06  Bruno Haible  <bruno@clisp.org>
20205         sh-quote: Improve shell_quote_argv's signature.
20206         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
20207         * lib/sh-quote.c (shell_quote_argv): Likewise.
20209 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
20211         stdint: document issues with int_fast8_t etc.
20212         * doc/posix-headers/stdint.texi (stdint.h): Say that other
20213         stdint.h substitutes may define these types differently.  See
20214         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
20216 2012-05-05  Bruno Haible  <bruno@clisp.org>
20218         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
20219         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
20220         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
20221         or 'guessing no (mishandles large arguments)'.
20223 2012-05-05  Bruno Haible  <bruno@clisp.org>
20225         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
20226         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
20227         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
20228         set gl_cv_func_link_follows_symlink to "guessing no".
20230 2012-05-05  Bruno Haible  <bruno@clisp.org>
20232         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
20233         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
20234         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
20235         "guessing no".
20236         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
20238 2012-05-05  Bruno Haible  <bruno@clisp.org>
20240         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
20241         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
20242         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
20243         set gl_cv_struct_dirent_d_ino to "guessing yes".
20245 2012-05-05  Bruno Haible  <bruno@clisp.org>
20247         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
20248         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
20249         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
20250         "guessing yes".
20252 2012-05-05  Bruno Haible  <bruno@clisp.org>
20254         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
20255         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
20256         compiling to a glibc system, set gl_cv_func_signbit and
20257         gl_cv_func_signbit_gcc to "guessing yes".
20259 2012-05-05  Bruno Haible  <bruno@clisp.org>
20261         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
20262         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
20263         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
20264         to "guessing yes".
20265         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
20266         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
20268 2012-05-05  Bruno Haible  <bruno@clisp.org>
20270         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
20271         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
20272         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
20273         gl_cv_func_realpath_works to "guessing yes".
20275 2012-05-05  Bruno Haible  <bruno@clisp.org>
20277         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
20278         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
20279         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
20281 2012-05-04  Bruno Haible  <bruno@clisp.org>
20283         Tweak last commit.
20284         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
20285         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20287 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
20289         unistd_h: make it easier to avoid sys_types_h
20290         This is useful for Emacs, which has its own method of porting to
20291         Windows, and which therefore does not need the sys_types_h module.
20292         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
20293         code moved here from gl_SYS_TYPES_H.
20294         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
20295         using the code directly.
20296         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
20297         gl_SYS_TYPES_H.
20298         * modules/sys_types (Files):
20299         * modules/unistd (Files): Add m4/off_t.m4.
20301 2012-05-03  Bruno Haible  <bruno@clisp.org>
20303         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
20304         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
20305         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
20306         "guessing yes" or "guessing no".
20307         (gl_FUNC_LSTAT): Update.
20308         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
20309         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
20310         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
20312 2012-05-03  Bruno Haible  <bruno@clisp.org>
20314         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
20315         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
20316         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
20317         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
20318         cross-compiling, choose the first alternative on glibc systems.
20319         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
20321 2012-05-03  Bruno Haible  <bruno@clisp.org>
20323         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
20324         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
20325         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
20327 2012-05-03  Bruno Haible  <bruno@clisp.org>
20329         chown: Avoid "guessing no" when cross-compiling to glibc systems.
20330         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
20332 2012-05-03  Bruno Haible  <bruno@clisp.org>
20334         Avoid "guessing no" guesses when cross-compiling to glibc systems.
20335         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
20336         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
20337         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
20338         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
20339         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
20340         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
20341         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
20342         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
20343         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
20344         compiling to glibc systems, set gl_cv_func_chown_slash_works,
20345         gl_cv_func_chown_ctime_works to "guessing yes".
20346         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
20347         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
20348         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
20349         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
20350         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
20351         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
20352         compiling to glibc systems, set gl_cv_func_open_directory_works to
20353         "guessing yes".
20354         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
20355         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
20356         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
20357         "guessing yes".
20358         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
20359         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
20360         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
20361         compiling to glibc systems, set gl_cv_func_floorf_ieee to
20362         "guessing yes".
20363         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
20364         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
20365         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
20366         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
20367         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
20368         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
20369         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
20370         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
20371         "guessing yes".
20372         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
20373         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
20374         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
20375         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
20376         "guessing yes".
20377         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
20378         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
20379         "guessing yes".
20380         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
20381         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
20382         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
20383         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
20384         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
20385         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
20386         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
20387         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
20388         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
20389         compiling to glibc systems, set gl_cv_func_log10f_ieee to
20390         "guessing yes".
20391         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
20392         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
20393         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
20394         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
20395         "guessing yes".
20396         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
20397         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
20398         "guessing yes".
20399         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
20400         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
20401         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
20402         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
20403         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
20404         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
20405         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
20406         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
20407         compiling to glibc systems, set gl_cv_func_mkfifo_works to
20408         "guessing yes".
20409         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
20410         compiling to glibc systems, set gl_cv_func_mknod_works to
20411         "guessing yes".
20412         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
20413         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
20414         "guessing yes".
20415         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
20416         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
20417         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
20418         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
20419         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
20420         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
20421         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
20422         compiling to glibc systems, set gl_cv_func_svid_putenv to
20423         "guessing yes".
20424         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
20425         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
20426         "guessing yes".
20427         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
20428         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
20429         "guessing yes".
20430         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
20431         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
20432         to "guessing yes".
20433         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
20434         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
20435         to "guessing yes".
20436         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
20437         compiling to glibc systems, set gl_cv_func_rmdir_works to
20438         "guessing yes".
20439         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
20440         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
20441         gl_cv_func_unlink_parent_fails to "guessing yes".
20442         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
20443         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
20444         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
20445         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
20446         gl_cv_func_rename_dest_works to "guessing yes".
20447         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
20448         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
20449         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
20450         compiling to glibc systems, set gl_cv_func_roundf_ieee to
20451         "guessing yes".
20452         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
20453         compiling to glibc systems, set gl_cv_func_roundl_ieee to
20454         "guessing yes".
20455         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
20456         compiling to glibc systems, set gl_cv_func_setenv_works to
20457         "guessing yes".
20458         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
20459         compiling to glibc systems, set gl_cv_func_unsetenv_works to
20460         "guessing yes".
20461         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
20462         compiling to glibc systems, set gl_cv_func_sleep_works to
20463         "guessing yes".
20464         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
20465         compiling to glibc systems, set gl_cv_func_stat_file_slash to
20466         "guessing yes".
20467         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
20468         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
20469         "guessing yes".
20470         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
20471         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
20472         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
20473         compiling to glibc systems, set gl_cv_func_truncf_ieee to
20474         "guessing yes".
20475         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
20476         compiling to glibc systems, set gl_cv_func_truncl_ieee to
20477         "guessing yes".
20478         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
20479         compiling to glibc systems, set gl_cv_func_usleep_works to
20480         "guessing yes".
20481         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
20482         compiling to glibc systems, set gl_cv_func_futimesat_works to
20483         "guessing yes".
20485 2012-05-03  Bruno Haible  <bruno@clisp.org>
20487         Say "guessing yes" or "guessing no" when cross-compiling.
20488         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
20489         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
20490         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
20491         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
20492         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
20493         am_cv_func_working_getline to "guessing yes" or "guessing no".
20494         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
20495         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
20496         (gl_FUNC_MEMMEM): When cross-compiling, set
20497         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
20498         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
20499         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
20500         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
20501         set gl_cv_func_strcasestr_works_always to "guessing yes" or
20502         "guessing no".
20503         (gl_FUNC_STRCASESTR): When cross-compiling, set
20504         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
20505         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
20506         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
20507         (gl_FUNC_STRSTR): When cross-compiling, set
20508         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
20509         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
20510         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
20511         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
20512         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
20514 2012-05-01  Bruno Haible  <bruno@clisp.org>
20516         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
20517         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
20518         * build-aux/reloc-ldflags: Likewise.
20519         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
20521 2012-05-01  Bruno Haible  <bruno@clisp.org>
20523         gnulib-tool: Remove transitional code.
20524         * gnulib-tool: Don't warn about --import with 0 arguments any more.
20525         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
20527 2012-05-01  Bruno Haible  <bruno@clisp.org>
20529         getcwd: Fix misindentation.
20530         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
20532 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
20534         exclude: process exclude and include directives in order
20535         This restores the pre-2009 behavior, and is part of a fix of a
20536         grep bug reported by Quentin Arce in
20537         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
20538         * lib/exclude.c (struct exclude): Remove 'tail' member.
20539         (new_exclude_segment): Prepend the new segment instead of appending.
20540         Return void, since that's now more convenient.
20541         (file_pattern_matches): Renamed from excluded_file_pattern_p.
20542         (file_name_matches): Renamed from excluded_file_name_p.
20543         (file_pattern_matches, file_name_matches):
20544         Return true if the pattern matches, not if it excludes.
20545         All callers changed.
20546         (excluded_file_name): Process the list in reverse order;
20547         since the list is now reversed this restores the pre-2009 behavior.
20548         (add_exclude): Adjust to new reversed-order list.  Use local var
20549         rather than macro, for clarity.
20550         * tests/test-exclude7.sh: Adjust to corrected behavior.
20552         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
20553         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
20554         it's not possible here.  Handle the case of \ at end of pattern
20555         without dumping core.
20556         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
20558         _Noreturn: future-proof non-GNU and non-MSVC compilers
20559         * build-aux/snippet/_Noreturn.h (_Noreturn):
20560         * m4/gnulib-common.m4 (gl_COMMON_BODY):
20561         Do not define _Noreturn if __STDC_VERSION__ indicates this is
20562         C11 or later.  This is more likely to work with random future C
20563         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
20564         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
20566         exclude: handle wildcards with FNM_EXTMATCH
20567         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
20568         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
20569         comment that "has wildcards" really means "has or may have
20570         wildcards".  Simplify by avoiding the need to call strcspn.
20572 2012-04-29  Bruno Haible  <bruno@clisp.org>
20574         gnulib-tool: Fix list of authors.
20575         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
20577 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
20579         bootstrap: support Automake-NG in $buildreq
20580         * bootstrap (check_versions): Handle automake and aclocal from
20581         Automake-NG specially.  They can be specified as respectively
20582         the "automake-ng" and "aclocal-ng" requirements.
20584 2012-04-25  Eric Blake  <eblake@redhat.com>
20586         bootstrap: only force latest Makefile.in.in for gettext module
20587         * build-aux/bootstrap (with_gettext): Only install latest
20588         Makefile.in.in for projects requesting bleeding edge gettext.
20590 2012-04-22  Bruno Haible  <bruno@clisp.org>
20592         doc: Mention reason for replacement on glibc/Linux systems.
20593         * doc/posix-functions/dprintf.texi: Mention the problem with special
20594         'long double' values.
20595         * doc/posix-functions/fprintf.texi: Likewise.
20596         * doc/posix-functions/printf.texi: Likewise.
20597         * doc/posix-functions/snprintf.texi: Likewise.
20598         * doc/posix-functions/sprintf.texi: Likewise.
20599         * doc/posix-functions/vdprintf.texi: Likewise.
20600         * doc/posix-functions/vfprintf.texi: Likewise.
20601         * doc/posix-functions/vprintf.texi: Likewise.
20602         * doc/posix-functions/vsnprintf.texi: Likewise.
20603         * doc/posix-functions/vsprintf.texi: Likewise.
20604         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
20605         platforms with F_DUPFD_CLOEXEC problems.
20606         * doc/posix-functions/glob.texi: Mention which platforms are affected
20607         by the problem with symbolic links.
20608         * doc/posix-functions/linkat.texi: Mention the problem with
20609         AT_SYMLINK_FOLLOW on Linux.
20611 2012-04-22  Bruno Haible  <bruno@clisp.org>
20613         pwrite: Don't replace on all platforms.
20614         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
20616 2012-04-22  Bruno Haible  <bruno@clisp.org>
20618         rint* tests: Avoid gcc warnings.
20619         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
20620         * tests/test-rintf.c (INFINITY, NAN): Likewise.
20621         * tests/test-rintl.c (INFINITY, NAN): Likewise.
20623 2012-04-21  Bruno Haible  <bruno@clisp.org>
20625         users.txt: Update.
20626         * users.txt: Add freedink, wdiff. Update URLs for projects that have
20627         switched from CVS to git, bzr, or svn.
20629 2012-04-21  Bruno Haible  <bruno@clisp.org>
20631         Large File Support for native Windows platforms.
20633         * m4/largefile.m4 (gl_LARGEFILE): New macro.
20634         * modules/largefile (configure.ac): Require gl_LARGEFILE.
20636         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
20637         type.
20638         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
20639         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
20640         * doc/posix-headers/sys_types.texi: Mention the effect of the
20641         'largefile' module.
20643         * lib/fcntl.in.h: Add comments about off_t.
20644         * modules/fcntl-h (Depends-on): Add sys_types.
20646         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
20647         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
20648         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
20649         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
20650         * modules/unistd (Depends-on): Add sys_types.
20651         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
20653         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
20654         instead of lseek.
20655         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
20656         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
20657         * modules/lseek (Depends-on): Add sys_types.
20659         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
20660         msvc-nothrow.h.
20661         (SetFileSize): New function.
20662         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
20663         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
20664         if Large File Support is requested.
20665         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
20666         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
20668         * lib/stdio.in.h: Add comments about off_t.
20669         * modules/stdio (Depends-on): Add sys_types.
20671         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
20672         instead of ftello.
20673         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
20674         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
20675         (gl_PREREQ_FTELLO): New macro.
20676         * modules/ftello (Depends-on): Add sys_types.
20677         (configure.ac): Incoke gl_PREREQ_FTELLO.
20679         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
20680         instead of fseeko.
20681         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
20682         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
20683         (gl_PREREQ_FSEEKO): New macro.
20684         * modules/fseeko (Depends-on): Add sys_types.
20685         (configure.ac): Invoke gl_PREREQ_FSEEKO.
20687         * lib/sys_stat.in.h: Add comments about off_t.
20688         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
20689         64-bit integer for st_size in 'struct stat'.
20690         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
20691         Define _GL_WINDOWS_64_BIT_ST_SIZE.
20692         * modules/sys_stat (Depends-on): Add sys_types.
20693         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
20695         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
20696         instead of stat or _stat.
20698         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
20699         'struct _stati64' instead of fstat and 'struct stat'.
20700         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
20701         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
20703         Reported by Ray Satiro <raysatiro@yahoo.com>.
20705 2012-04-19  Eric Blake  <eblake@redhat.com>
20707         bootstrap: accommodate older libtool
20708         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
20709         Reported by Daniel P. Berrange.
20711 2012-04-19  Jim Meyering  <meyering@redhat.com>
20713         announce-gen: avoid failure due to lack of Digest::SHA1
20714         Even with the preferred Digest::SHA available, this script
20715         would fail when the backup module, Digest::SHA1, was not installed.
20716         * build-aux/announce-gen: Quote the conditional use of "use".
20717         Reported by Reuben Thomas in:
20718         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
20720         bootstrap: don't let a user's CDPATH setting affect this script
20721         When CDPATH is set, cd will sometimes generate output.
20722         When "cd" is run in a subshell whose output matters, that
20723         surprising-to-some output can cause malfunction.
20724         Unsetting CDPATH turns off this shell "feature."
20725         * build-aux/bootstrap (CDPATH): Unset.
20726         Reported by Reuben Thomas in:
20727         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
20728         and inspired by his patch here:
20729         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
20731 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
20732         and Jim Meyering  <meyering@redhat.com>
20734         maint.mk: catch "see @xref{}" and similar
20735         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
20736         prohibit "See also @xref{", "Also see @pxref{", and similar.
20738 2012-04-16  Jim Meyering  <meyering@redhat.com>
20740         bootstrap: really use gnulib's po/Makefile.in.in
20741         * build-aux/bootstrap: Correct the source file name in previous change.
20742         Reported by Akim Demaille.
20744         configmake: correct minor inconsistency in Makefile rule
20745         * modules/configmake (Makefile.am): All other rules like this one
20746         run the final "mv -f ..." in the same backslash-continued command
20747         as the one that does everything else.  This one put the mv -f ...
20748         command on a separate, non-backslash-continued line.
20749         Make it like the others.
20751         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
20752         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
20753         the one from gettext.  Reported by Akim Demaille.
20755 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
20757         Fix recursion of install-* into po directories.
20758         Bison's install-pdf bug reported by Hans Aberg at
20759         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
20760         * build-aux/po/Makefile.in.in (install-dvi, install-html)
20761         (install-info, install-pdf, install-ps): New targets.
20763 2012-04-16  Jim Meyering  <meyering@redhat.com>
20765         maint: avoid spurious "make sc_maint" failure
20766         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
20767         exempt all *.class file names, for lib/javaversion.class.
20769 2012-04-15  Bruno Haible  <bruno@clisp.org>
20771         lseek: Make configure test independent of environment.
20772         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
20773         Windows, we know that lseek() on pipes is broken; skip the runtime
20774         test.
20776 2012-04-14  Bruno Haible  <bruno@clisp.org>
20778         stat: Bypass buggy override in mingw64.
20779         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
20780         * lib/stat.c (stat) [mingw64]: Define to _stat.
20781         * doc/posix-functions/stat.texi: Mention mingw64 bug.
20783 2012-04-14  Bruno Haible  <bruno@clisp.org>
20785         pathmax: Fix compilation error on MSVC 9.
20786         * modules/pathmax (Depends-on): Add unistd.
20788 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
20790         README: document pointer comparison assumption
20791         * README (Portability guidelines): Document assumption about
20792         pointer comparisons, in response to a recent bug-gnulib comment by
20793         Jeffrey Kegler.
20795 2012-04-12  Bruno Haible  <bruno@clisp.org>
20797         Tests for module 'getrusage'.
20798         * modules/getrusage-tests: New file.
20799         * tests/test-getrusage.c: New file.
20801         New module 'getrusage'.
20802         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
20803         warn-on-use.h.
20804         (getrusage): New declaration.
20805         * lib/getrusage.c: New file.
20806         * m4/getrusage.m4: New file.
20807         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
20808         is declared.
20809         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
20810         HAVE_GETRUSAGE.
20811         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
20812         snippet/c++defs, snippet/warn-on-use.
20813         (Makefile.am): Update generation of sys/resource.h. Substitute
20814         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
20815         * modules/getrusage: New file.
20816         * doc/posix-functions/getrusage.texi: Mention the new module.
20818 2012-04-12  Bruno Haible  <bruno@clisp.org>
20820         Tests for module 'sys_resource'.
20821         * modules/sys_resource-tests: New file.
20822         * tests/test-sys_resource.c: New file.
20824         New module 'sys_resource'.
20825         * lib/sys_resource.in.h: New file.
20826         * m4/sys_resource_h.m4: New file.
20827         * modules/sys_resource: New file.
20828         * doc/posix-headers/sys_resource.texi: Mention the new module.
20830 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
20832         ioctl: Fix compilation error on mingw.
20833         * lib/ioctl.c: Include <windows.h>.
20834         Also reported by Ray Satiro <raysatiro@yahoo.com>.
20836 2012-04-04  Jim Meyering  <meyering@redhat.com>
20838         regex: correct #pragma guard expression
20839         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
20840         not 4.3.  Correct its cpp guard expression.
20842 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
20844         regex: remove unnecessary type punning
20845         Problem reported by Vladimir Serbinenko in
20846         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
20847         * lib/regex.h (struct re_pattern_buffer): Change the type of
20848         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
20849         Fix comment to match code.
20850         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
20851         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
20852         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
20853         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
20854         (set_regs):
20855         Omit no-longer-necessary casts.
20857 2012-04-03  Bruno Haible  <bruno@clisp.org>
20859         Tests for module 'ilogbl'.
20860         * modules/ilogbl-tests: New file.
20861         * tests/test-ilogbl.c: New file.
20863         New module 'ilogbl'.
20864         * lib/math.in.h (ilogbl): New declaration.
20865         * lib/ilogbl.c: New file.
20866         * m4/ilogbl.m4: New file.
20867         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
20868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
20869         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
20870         Split sed invocation, to avoid the limit of 100 substitutions of
20871         HP-UX 'sed'.
20872         * modules/ilogbl: New file.
20873         * tests/test-math-c++.cc: Check the declaration of ilogbl.
20874         * doc/posix-functions/ilogbl.texi: Mention the new module.
20876 2012-04-03  Bruno Haible  <bruno@clisp.org>
20878         Tests for module 'ilogbf'.
20879         * modules/ilogbf-tests: New file.
20880         * tests/test-ilogbf.c: New file.
20882         New module 'ilogbf'.
20883         * lib/math.in.h (ilogbf): New declaration.
20884         * lib/ilogbf.c: New file.
20885         * m4/ilogbf.m4: New file.
20886         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
20887         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
20888         REPLACE_ILOGBF.
20889         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
20890         REPLACE_ILOGBF.
20891         * modules/ilogbf: New file.
20892         * tests/test-math-c++.cc: Check the declaration of ilogbf.
20893         * doc/posix-functions/ilogbf.texi: Mention the new module.
20895 2012-04-03  Bruno Haible  <bruno@clisp.org>
20897         Tests for module 'ilogb'.
20898         * modules/ilogb-tests: New file.
20899         * tests/test-ilogb.c: New file.
20900         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
20901         tests/test-logb-ieee.h.
20903         New module 'ilogb'.
20904         * lib/math.in.h (ilogb): New declaration.
20905         * lib/ilogb.c: New file.
20906         * m4/ilogb.m4: New file.
20907         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
20908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
20909         REPLACE_ILOGB.
20910         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
20911         REPLACE_ILOGB.
20912         * modules/ilogb: New file.
20913         * tests/test-math-c++.cc: Check the declaration of ilogb.
20914         * doc/posix-functions/ilogb.texi: Mention the new module.
20916 2012-04-03  Bruno Haible  <bruno@clisp.org>
20918         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
20919         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
20920         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
20921         (main): Check their values.
20922         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
20923         problem.
20925 2012-04-03  Bruno Haible  <bruno@clisp.org>
20927         Tests for module 'logbl-ieee'.
20928         * modules/logbl-ieee-tests: New file.
20929         * tests/test-logbl-ieee.c: New file.
20931         New module 'logbl-ieee'.
20932         * modules/logbl-ieee: New file.
20934         Tests for module 'logb-ieee'.
20935         * modules/logb-ieee-tests: New file.
20936         * tests/test-logb-ieee.c: New file.
20938         New module 'logb-ieee'.
20939         * modules/logb-ieee: New file.
20941         Tests for module 'logbf-ieee'.
20942         * modules/logbf-ieee-tests: New file.
20943         * tests/test-logbf-ieee.c: New file.
20944         * tests/test-logb-ieee.h: New file.
20946         New module 'logbf-ieee'.
20947         * modules/logbf-ieee: New file.
20949 2012-04-03  Bruno Haible  <bruno@clisp.org>
20951         Tests for module 'logbl'.
20952         * modules/logbl-tests: New file.
20953         * tests/test-logbl.c: New file.
20955         New module 'logbl'.
20956         * lib/math.in.h (logbl): New declaration.
20957         * lib/logbl.c: New file.
20958         * m4/logbl.m4: New file.
20959         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
20960         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
20961         REPLACE_LOGBL.
20962         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
20963         REPLACE_LOGBL.
20964         * modules/logbl: New file.
20965         * tests/test-math-c++.cc: Check the declaration of logbl.
20966         * doc/posix-functions/logbl.texi: Mention the new module.
20968 2012-04-02  Bruno Haible  <bruno@clisp.org>
20970         Tests for module 'logbf'.
20971         * modules/logbf-tests: New file.
20972         * tests/test-logbf.c: New file.
20974         New module 'logbf'.
20975         * lib/math.in.h (logbf): New declaration.
20976         * lib/logbf.c: New file.
20977         * m4/logbf.m4: New file.
20978         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
20979         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
20980         REPLACE_LOGBF.
20981         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
20982         REPLACE_LOGBF.
20983         * modules/logbf: New file.
20984         * tests/test-math-c++.cc: Check the declaration of logbf.
20985         * doc/posix-functions/logbf.texi: Mention the new module.
20987 2012-04-02  Bruno Haible  <bruno@clisp.org>
20989         logb tests: More tests.
20990         * tests/test-logb.h: New file, based on tests/test-logb.c and
20991         tests/test-frexp.h.
20992         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
20993         (main): Just invoke test_function.
20994         * modules/logb-tests (Files): Add tests/test-logb.h,
20995         tests/minus-zero.h, tests/randomd.c.
20996         (Makefile.am): Add randomd.c to test_logb_SOURCES.
20998         logb: Provide replacement and workarounds.
20999         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
21000         is 1.
21001         * lib/logb.c: New file.
21002         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
21003         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
21004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
21005         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
21006         * modules/logb (Files): Add lib/logb.c.
21007         (Depends-on): Add isfinite, frexp, isnand.
21008         (configure.ac): Compile the replacement code logb.c if needed.
21009         * tests/test-math-c++.cc: Check the declaration of logb.
21010         * doc/posix-functions/logb.texi: Mention the replacement and the bug
21011         with subnormal numbers.
21013 2012-04-02  Bruno Haible  <bruno@clisp.org>
21015         log10* tests: Speed up.
21016         * tests/test-log10.h (test_function): Reduce amount of random numbers
21017         to test.
21019 2012-04-01  Bruno Haible  <bruno@clisp.org>
21021         logf-ieee: Fix test whether logf works.
21022         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
21024 2012-04-01  Bruno Haible  <bruno@clisp.org>
21026         log10l: Work around log10l-ieee test failure on IRIX 6.5.
21027         * lib/log10l.c: Include <float.h>
21028         (log10l): On IRIX, normalize the +Infinity value.
21029         * modules/log10l (Depends-on): Add 'float'.
21030         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
21031         +Infinity.
21033         log10f-ieee: Work around test failure on NetBSD 5.1.
21034         * m4/log10f-ieee.m4: New file.
21035         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
21036         test whether log10f works with a negative argument. Replace it if not.
21037         * lib/log10f.c (log10f): For negative arguments, return NaN.
21038         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
21039         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
21040         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
21042         log10f-ieee: Work around test failure on Solaris 9.
21043         * modules/log10f-ieee (Depends-on): Add log10-ieee.
21044         (configure.ac): Require gl_FUNC_LOG10F.
21046         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
21047         * m4/log10-ieee.m4: New file.
21048         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
21049         whether log10 works with a negative argument. Replace it if not.
21050         * lib/log10.c (log10): For negative arguments, return NaN.
21051         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
21052         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
21053         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
21055         Tests for module 'log10l-ieee'.
21056         * modules/log10l-ieee-tests: New file.
21057         * tests/test-log10l-ieee.c: New file.
21059         New module 'log10l-ieee'.
21060         * modules/log10l-ieee: New file.
21062         Tests for module 'log10-ieee'.
21063         * modules/log10-ieee-tests: New file.
21064         * tests/test-log10-ieee.c: New file.
21066         New module 'log10-ieee'.
21067         * modules/log10-ieee: New file.
21069         Tests for module 'log10f-ieee'.
21070         * modules/log10f-ieee-tests: New file.
21071         * tests/test-log10f-ieee.c: New file.
21072         * tests/test-log10-ieee.h: New file.
21074         New module 'log10f-ieee'.
21075         * modules/log10f-ieee: New file.
21077 2012-04-01  Bruno Haible  <bruno@clisp.org>
21079         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
21080         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
21081         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
21082         workaround.
21083         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
21084         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
21085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
21086         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
21087         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
21088         (Depends-on): Update conditions.
21089         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
21090         IRIX 6.5, OSF/1 5.1 problems.
21092 2012-04-01  Bruno Haible  <bruno@clisp.org>
21094         log10f: Work around OSF/1 5.1 bug.
21095         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
21096         * lib/log10f.c (log10f): If logf exists, use it and provide just the
21097         workaround.
21098         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
21099         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
21100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
21101         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
21102         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
21103         (Depends-on): Update conditions.
21104         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
21106 2012-04-01  Bruno Haible  <bruno@clisp.org>
21108         log10: Work around OSF/1 5.1 bug.
21109         * lib/math.in.h (log10): New declaration.
21110         * lib/log10.c: New file.
21111         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
21112         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
21113         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
21114         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
21115         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
21116         * modules/log10 (Files): Add lib/log10.c.
21117         (Depends-on): Add math.
21118         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
21119         * tests/test-math-c++.cc: Check the declaration of log10.
21120         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
21122 2012-03-31  Bruno Haible  <bruno@clisp.org>
21124         log10l tests: More tests.
21125         * modules/log10l-tests (Files): Add tests/test-log10l.h,
21126         tests/minus-zero.h, tests/randoml.c.
21127         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
21128         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
21129         (main): Invoke test_function.
21131         log10f tests: More tests.
21132         * modules/log10f-tests (Files): Add tests/test-log10.h,
21133         tests/minus-zero.h, tests/randomf.c.
21134         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
21135         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
21136         (main): Invoke test_function.
21138         log10 tests: More tests.
21139         * tests/test-log10.h: New file.
21140         * modules/log10-tests (Files): Add tests/test-log10.h,
21141         tests/minus-zero.h, tests/randomd.c.
21142         (Makefile.am): Add randomd.c to test_log10_SOURCES.
21143         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
21144         (main): Invoke test_function.
21146 2012-03-31  Simon Josefsson  <simon@josefsson.org>
21148         fflush: Fix syntax error.
21149         * lib/fflush.c: Include unused-parameter.h, needed for
21150         _GL_UNUSED_PARAMETER.
21151         * modules/fflush (Depends-on): Add snippet/unused-parameter.
21153 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
21155         regex: pacify GCC when compiling GRUB
21156         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
21157         a diagnostic.  Reported by Vladimir Serbinenko in
21158         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
21160 2012-03-29  Eric Blake  <eblake@redhat.com>
21162         stdio: don't assume gets any more
21163         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
21164         support.
21165         * modules/stdio (Makefile.am): Likewise.
21166         * lib/stdio-read.c (gets): Likewise.
21167         * tests/test-stdio-c++.cc: Likewise.
21168         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
21169         * lib/stdio.in.h (gets): Make warning occur in more places.
21170         * doc/posix-functions/gets.texi (gets): Update documentation.
21171         Reported by Christer Solskogen.
21173         maint.mk: fix syntax checks without exclusions
21174         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
21175         Reported by Daniel P. Berrange.
21177         strerror_r: avoid compiler warning
21178         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
21179         level.
21181         fflush: avoid compiler warning
21182         * lib/fflush.c (update_fpos_cache): Mark variables that are
21183         potentially unused.
21185 2012-03-25  Bruno Haible  <bruno@clisp.org>
21187         Tests for module 'localeconv'.
21188         * modules/localeconv-tests: New file.
21189         * tests/test-localeconv.c: New file.
21191         New module 'localeconv'.
21192         * lib/locale.in.h (localeconv): New declaration.
21193         * lib/localeconv.c: New file.
21194         * m4/localeconv.m4: New file.
21195         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
21196         REPLACE_LOCALECONV.
21197         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
21198         REPLACE_LOCALECONV.
21199         * modules/localeconv: New file.
21200         * modules/nl_langinfo (Depends-on): Add localeconv.
21201         * modules/human (Depends-on): Likewise.
21202         * doc/posix-functions/localeconv.texi: Mention the new module.
21204 2012-03-25  Bruno Haible  <bruno@clisp.org>
21206         locale: Provide a complete 'struct lconv'.
21207         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
21208         'struct lconv' does not contain int_p_cs_precedes.
21209         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
21210         * doc/posix-headers/locale.texi: Update.
21212         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
21213         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
21214         * doc/posix-headers/locale.texi: Update.
21216         locale: Provide a working 'struct lconv'.
21217         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
21218         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
21219         'struct lconv' does not even contain decimal_point.
21220         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
21221         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
21222         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
21223         * doc/posix-headers/locale.texi: Mention the problems with
21224         'struct lconv'.
21225         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21227 2012-03-24  Bruno Haible  <bruno@clisp.org>
21229         Enable common subexpression optimization in GCC.
21230         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
21231         macros.
21232         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
21233         GCC attribute 'const'.
21234         (uc_locale_language): Declare with GCC attribute 'pure'.
21235         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
21236         with GCC attribute 'const'.
21237         * lib/unictype.in.h (uc_is_general_category_withtable,
21238         uc_combining_class, uc_combining_class_name,
21239         uc_combining_class_long_name, uc_bidi_class_name,
21240         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
21241         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
21242         uc_decimal_value, uc_digit_value, uc_numeric_value,
21243         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
21244         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
21245         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
21246         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
21247         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
21248         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
21249         Declare with GCC attribute 'const'.
21250         (uc_general_category_name, uc_general_category_long_name,
21251         uc_general_category_byname, uc_general_category,
21252         uc_is_general_category, uc_combining_class_byname,
21253         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
21254         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
21255         Declare with GCC attribute 'pure'.
21256         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
21257         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
21258         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
21259         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
21260         with GCC attribute 'pure'.
21261         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
21262         'const'.
21263         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
21264         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
21265         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
21266         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
21267         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
21268         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
21269         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
21270         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
21271         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
21272         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
21273         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
21274         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
21275         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
21276         GCC attribute 'pure'.
21277         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
21278         'const'.
21279         * lib/uniwidth.in.h (uc_width): Simplify declaration.
21280         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
21281         u32_strwidth): Declare with GCC attribute 'pure'.
21283         Enable common subexpression optimization in GCC.
21284         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
21285         (alphasort): Declare with GCC attribute 'pure'.
21286         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
21287         (atoll): Declare with GCC attribute 'pure'.
21288         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21289         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21290         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
21291         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
21292         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
21293         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
21294         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
21296 2012-03-24  Bruno Haible  <bruno@clisp.org>
21298         gnulib-tool: Avoid unintended error output from 'cmp'.
21299         * gnulib-tool (func_add_file, func_update_file, func_import): Use
21300         "cmp -s", not "cmp > /dev/null".
21302 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
21304         gnulib-tool: fix imprecise comments w.r.t. an automake bug
21306         It's not just Automake versions < 1.9b that creates an empty
21307         pkgdatadir at installation time if pkgdata_DATA is specified
21308         to empty; modern automake versions do this as well, at least
21309         until automake 1.11.4 (not yet released at the moment of writing,
21310         but soon to appear).  That behaviour was generally considered a
21311         feature rather than a bug, at least until this discussion:
21312         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
21314         See also automake bugs #10997 and #11030.
21316         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
21317         reference to relevant automake bug numbers.
21318         (func_emit_tests_Makefile_am): Likewise.
21320 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
21322         announce-gen: use Digest::SHA when possible
21323         * build-aux/announce-gen: Use Digest::SHA when possible, falling
21324         back to Digest::SHA1 if necessary.
21326 2012-03-20  Jim Meyering  <meyering@redhat.com>
21328         tests: avoid gcc warnings about argv vs. const initializers
21329         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
21330         warnings about discarding 'const' qualifier from pointer target type.
21331         * tests/test-posix_spawn2.c (main): Likewise.
21333 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
21335         README-release: simplify slightly
21336         * top/README-release: Run "git checkout master" only once.
21338 2012-03-15  Mark Wielaard  <mark@klomp.org>
21340         git-merge-changelog: add specific example on how to use with hg.
21341         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
21343 2012-03-18  Mark Wielaard  <mark@klomp.org>
21345         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
21347 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
21349         git-version-gen: don't let "prefix" envvar cause trouble
21350         * build-aux/git-version-gen (prefix): Initialize properly,
21351         so as not to use a value specified via the environment.
21352         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
21354 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
21356         regex: diagnose too-large repeat counts in EREs
21357         Previously, the code did not diagnose the too-large repeat count
21358         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
21359         as if it were 'b\{1000000000}', which is unexpected.
21360         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
21361         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
21362         is a reasonable one for this problem.  Another option would be to
21363         create a new REG_OVERFLOW error for repeat counts that are too large.
21364         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
21365         count is too large, so that the caller can distinguish the two cases.
21366         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
21367         "Too large" return code, and that repeat counts are one example of this.
21369 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
21371         doc: some glibc x32 integer width issues
21372         * doc/posix-headers/sys_types.texi (sys/types.h):
21373         * doc/posix-headers/time.texi (time.h):
21374         Mention that glibc x32 does not conform to POSIX in a couple of
21375         areas related to integer widths.
21377 2012-03-15  Bruno Haible  <bruno@clisp.org>
21379         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
21380         * lib/fma.c (VOLATILE): New macro.
21381         (FUNC): Use it to work around a GCC compiler bug.
21383 2012-03-13  Bruno Haible  <bruno@clisp.org>
21385         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
21386         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
21387         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
21388         REPLACE_HYPOTL to 1.
21389         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
21391 2012-03-13  Bruno Haible  <bruno@clisp.org>
21393         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
21394         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
21395         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
21396         REPLACE_REMAINDERL to 1.
21397         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
21398         bug.
21400 2012-03-13  Bruno Haible  <bruno@clisp.org>
21402         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
21403         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
21404         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
21405         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
21406         too big rounding errors.
21407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
21408         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
21409         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
21410         (Depends-on): Update conditions.
21411         * tests/test-sqrtl.c (my_ldexpl): New function.
21412         (main): Add test of a particular value.
21413         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
21415 2012-03-13  Pádraig Brady  <P@draigBrady.com>
21417         doc: Update timer_* platform portability notes.
21418         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
21419         that always return ENOSYS.
21420         * doc/posix-functions/timer_delete.texi: Likewise.
21421         * doc/posix-functions/timer_gettime.texi: Likewise.
21422         * doc/posix-functions/timer_settime.texi: Likewise.
21424 2012-03-13  Bruno Haible  <bruno@clisp.org>
21426         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
21427         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
21428         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
21429         REPLACE_CBRTL to 1.
21430         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
21432 2012-03-13  Bruno Haible  <bruno@clisp.org>
21434         remainderl: Avoid compilation error on AIX >= 5.2.
21435         * lib/math.in.h (remainderl): Undefine macro from the system header.
21437 2012-03-13  Bruno Haible  <bruno@clisp.org>
21439         Avoid compilation errors with MSVC option -fp:strict.
21440         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
21441         * lib/cbrtf.c: Likewise.
21442         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
21444 2012-03-12  Bruno Haible  <bruno@clisp.org>
21446         uninorm: Don't crash in out-of-memory conditions.
21447         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
21448         gracefully.
21449         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
21450         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
21452 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
21454         quote: fix syntax-check
21455         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
21456         also exports quote_quoting_options.
21458 2012-03-12  Simon Josefsson  <simon@josefsson.org>
21460         Collapse list of copyright years to ranges.  See
21461         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
21462         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
21463         build-aux/csharpexec.sh.in, build-aux/gnupload,
21464         build-aux/install-reloc, build-aux/javacomp.sh.in,
21465         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
21466         build-aux/move-if-change, build-aux/reloc-ldflags,
21467         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
21469 2012-03-11  Bruno Haible  <bruno@clisp.org>
21471         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
21472         * m4/log2f-ieee.m4: New file.
21473         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
21474         whether log2f works with a minus zero argument. Replace it if not.
21475         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
21476         (Depends-on): Add log2-ieee.
21477         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
21478         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
21480         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
21481         * m4/log2-ieee.m4: New file.
21482         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
21483         whether log2 works with a minus zero argument. Replace it if not.
21484         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
21485         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
21486         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
21488         Tests for module 'log2l-ieee'.
21489         * modules/log2l-ieee-tests: New file.
21490         * tests/test-log2l-ieee.c: New file.
21492         New module 'log2l-ieee'.
21493         * modules/log2l-ieee: New file.
21495         Tests for module 'log2-ieee'.
21496         * modules/log2-ieee-tests: New file.
21497         * tests/test-log2-ieee.c: New file.
21499         New module 'log2-ieee'.
21500         * modules/log2-ieee: New file.
21502         Tests for module 'log2f-ieee'.
21503         * modules/log2f-ieee-tests: New file.
21504         * tests/test-log2f-ieee.c: New file.
21505         * tests/test-log2-ieee.h: New file.
21507         New module 'log2f-ieee'.
21508         * modules/log2f-ieee: New file.
21510 2012-03-11  Bruno Haible  <bruno@clisp.org>
21512         Tests for module 'log2l'.
21513         * modules/log2l-tests: New file.
21514         * tests/test-log2l.c: New file.
21516         New module 'log2l'.
21517         * lib/math.in.h (log2l): New declaration.
21518         * lib/log2l.c: New file.
21519         * m4/log2l.m4: New file.
21520         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
21521         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
21522         REPLACE_LOG2L.
21523         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
21524         REPLACE_LOG2L.
21525         * modules/log2l: New file.
21526         * tests/test-math-c++.cc: Check the declaration of log2l.
21527         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
21528         and OSF/1 problems.
21530 2012-03-11  Bruno Haible  <bruno@clisp.org>
21532         Tests for module 'log2f'.
21533         * modules/log2f-tests: New file.
21534         * tests/test-log2f.c: New file.
21536         New module 'log2f'.
21537         * lib/math.in.h (log2f): New declaration.
21538         * lib/log2f.c: New file.
21539         * m4/log2f.m4: New file.
21540         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
21541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
21542         REPLACE_LOG2F.
21543         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
21544         REPLACE_LOG2F.
21545         * modules/log2f: New file.
21546         * tests/test-math-c++.cc: Check the declaration of log2f.
21547         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
21548         and OSF/1 and Cygwin problems.
21550 2012-03-11  Bruno Haible  <bruno@clisp.org>
21552         Tests for module 'log2'.
21553         * modules/log2-tests: New file.
21554         * tests/test-log2.c: New file.
21555         * tests/test-log2.h: New file.
21557         New module 'log2'.
21558         * lib/math.in.h (log2): New declaration.
21559         * lib/log2.c: New file.
21560         * m4/log2.m4: New file.
21561         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
21562         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
21563         REPLACE_LOG2.
21564         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
21565         REPLACE_LOG2.
21566         * modules/log2: New file.
21567         * tests/test-math-c++.cc: Check the declaration of log2.
21568         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
21569         and OSF/1 and Cygwin problems.
21571 2012-03-11  Bruno Haible  <bruno@clisp.org>
21573         exp2* tests: More tests.
21574         * tests/test-exp2.h (test_function): Test all integral arguments that
21575         don't need to overflow or denormalized numbers.
21576         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
21577         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
21578         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
21580 2012-03-10  Bruno Haible  <bruno@clisp.org>
21582         log1pl-ieee: Work around test failure on AIX 7.1.
21583         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
21585         log1pl-ieee: Work around test failure on IRIX 6.5.
21586         * m4/log1pl-ieee.m4: New file.
21587         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
21588         test whether log1pl works with a minus zero argument. Replace it if
21589         not.
21590         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
21591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
21592         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
21593         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
21594         (Depends-on): Update conditions.
21595         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
21596         m4/signbit.m4.
21597         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
21598         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
21600         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
21601         * m4/log1pf-ieee.m4: New file.
21602         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
21603         test whether log1pf works with a minus zero argument. Replace it if
21604         not.
21605         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
21606         m4/signbit.m4.
21607         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
21608         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
21610         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
21611         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
21612         (configure.ac): Require gl_FUNC_LOG1PF.
21614         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
21615         * m4/log1p-ieee.m4: New file.
21616         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
21617         whether log1p works with a minus zero argument. Replace it if not.
21618         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
21619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
21620         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
21621         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
21622         (Depends-on): Update conditions.
21623         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
21624         m4/signbit.m4.
21625         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
21626         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
21628         Tests for module 'log1pl-ieee'.
21629         * modules/log1pl-ieee-tests: New file.
21630         * tests/test-log1pl-ieee.c: New file.
21632         New module 'log1pl-ieee'.
21633         * modules/log1pl-ieee: New file.
21635         Tests for module 'log1p-ieee'.
21636         * modules/log1p-ieee-tests: New file.
21637         * tests/test-log1p-ieee.c: New file.
21639         New module 'log1p-ieee'.
21640         * modules/log1p-ieee: New file.
21642         Tests for module 'log1pf-ieee'.
21643         * modules/log1pf-ieee-tests: New file.
21644         * tests/test-log1pf-ieee.c: New file.
21645         * tests/test-log1p-ieee.h: New file.
21647         New module 'log1pf-ieee'.
21648         * modules/log1pf-ieee: New file.
21650 2012-03-10  Bruno Haible  <bruno@clisp.org>
21652         Tests for module 'log1pl'.
21653         * modules/log1pl-tests: New file.
21654         * tests/test-log1pl.c: New file.
21656         New module 'log1pl'.
21657         * lib/math.in.h (log1pl): New declaration.
21658         * lib/log1pl.c: New file.
21659         * m4/log1pl.m4: New file.
21660         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
21661         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
21662         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
21663         * modules/log1pl: New file.
21664         * tests/test-math-c++.cc: Check the declaration of log1pl.
21665         * doc/posix-functions/log1pl.texi: Mention the new module.
21667 2012-03-10  Bruno Haible  <bruno@clisp.org>
21669         Tests for module 'log1pf'.
21670         * modules/log1pf-tests: New file.
21671         * tests/test-log1pf.c: New file.
21673         New module 'log1pf'.
21674         * lib/math.in.h (log1pf): New declaration.
21675         * lib/log1pf.c: New file.
21676         * m4/log1pf.m4: New file.
21677         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
21678         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
21679         REPLACE_LOG1PF.
21680         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
21681         REPLACE_LOG1PF.
21682         * modules/log1pf: New file.
21683         * tests/test-math-c++.cc: Check the declaration of log1pf.
21684         * doc/posix-functions/log1pf.texi: Mention the new module.
21686 2012-03-10  Bruno Haible  <bruno@clisp.org>
21688         log1p tests: More tests.
21689         * tests/test-log1p.h: New file.
21690         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
21691         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
21692         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
21693         (main): Invoke test_function.
21695         log1p: Provide replacement for Minix and MSVC.
21696         * lib/math.in.h (log1p): New declaration.
21697         * lib/log1p.c: New file.
21698         * m4/log1p.m4: New file.
21699         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
21700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
21701         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
21702         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
21703         (Depends-on): Add math, isnand, log, round.
21704         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
21705         HAVE_LOG1P is 0.
21706         * tests/test-math-c++.cc: Check the declaration of log1p.
21707         * doc/posix-functions/log1p.texi: Mention the replacement.
21709 2012-03-10  Bruno Haible  <bruno@clisp.org>
21711         math tests: Small simplification.
21712         * tests/test-exp.h (test_function): Use the same err_bound for
21713         'double' on platforms with sizeof (long double) == sizeof (double)
21714         than on platforms with sizeof (long double) > sizeof (double).
21715         * tests/test-exp2.h (test_function): Likewise.
21716         * tests/test-expm1.h (test_function): Likewise.
21717         * tests/test-log.h (test_function): Likewise.
21719 2012-03-10  Bruno Haible  <bruno@clisp.org>
21721         Fix some comments.
21722         * lib/expl.c: Fix an ambiguous comment.
21723         * lib/expm1.c: Likewise.
21724         * lib/expm1l.c: Likewise.
21725         * lib/exp2.c: Likewise.
21726         * lib/exp2l.c: Likewise.
21728 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
21730         regex: allow inclusion of <regex.h> before <limits.h>
21731         Without this patch, portable programs had to include <limits.h> before
21732         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
21733         I ran into this problem with a test version of GNU grep on Solaris 8.
21734         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
21735         This is done conditionally so that this change can be merged
21736         back to glibc.
21737         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
21738         using the included regex.
21740         fts: depend on fdopendir
21741         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
21742         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
21743         problem was introduced when fdopendir was split out.
21745 2012-03-10  Bruno Haible  <bruno@clisp.org>
21747         Remove unused variables.
21748         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
21749         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
21751 2012-03-10  Bruno Haible  <bruno@clisp.org>
21753         isnanf-nolibm: Fix last commit.
21754         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
21756         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
21757         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
21759 2012-03-10  Bruno Haible  <bruno@clisp.org>
21761         logf-ieee: Work around test failure on NetBSD 5.1.
21762         * m4/logf-ieee.m4: New file.
21763         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
21764         whether logf works with a negative argument. Replace it if not.
21765         * lib/logf.c (logf): For negative arguments, return NaN.
21766         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
21767         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
21768         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
21770         logf-ieee: Work around test failure on Solaris 9.
21771         * modules/logf-ieee (Depends-on): Add log-ieee.
21772         (configure.ac): Require gl_FUNC_LOGF.
21774         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
21775         * m4/log-ieee.m4: New file.
21776         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
21777         log works with a negative argument. Replace it if not.
21778         * lib/log.c (log): For negative arguments, return NaN.
21779         * modules/log-ieee (Files): Add m4/log-ieee.m4.
21780         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
21781         * doc/posix-functions/log.texi: Mention the log-ieee module.
21783         Tests for module 'logl-ieee'.
21784         * modules/logl-ieee-tests: New file.
21785         * tests/test-logl-ieee.c: New file.
21787         New module 'logl-ieee'.
21788         * modules/logl-ieee: New file.
21790         Tests for module 'log-ieee'.
21791         * modules/log-ieee-tests: New file.
21792         * tests/test-log-ieee.c: New file.
21794         New module 'log-ieee'.
21795         * modules/log-ieee: New file.
21797         Tests for module 'logf-ieee'.
21798         * modules/logf-ieee-tests: New file.
21799         * tests/test-logf-ieee.c: New file.
21800         * tests/test-log-ieee.h: New file.
21802         New module 'logf-ieee'.
21803         * modules/logf-ieee: New file.
21805 2012-03-10  Bruno Haible  <bruno@clisp.org>
21807         log: Fix bug introduced on 2012-03-09.
21808         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
21810 2012-03-10  Pádraig Brady  <P@draigBrady.com>
21812         timer-time: link explicitly with pthreads on glibc
21813         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
21814         to support static linking, when newer glibc is
21815         detected, as that contains pthread emulation of
21816         POSIX timer functions where required.
21817         * modules/timer-time: Depend on threadlib to
21818         pull in the appropriate library to link.
21820 2012-03-10  Bruno Haible  <bruno@clisp.org>
21822         log* tests: More tests.
21823         * tests/test-log.h: New file.
21824         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
21825         (main): Invoke test_function.
21826         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
21827         (main): Invoke test_function.
21828         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
21829         (main): Invoke test_function.
21830         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
21831         tests/randomd.c.
21832         (Makefile.am): Add randomd.c to test_log_SOURCES.
21833         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
21834         tests/randomf.c.
21835         (Makefile.am): Add randomf.c to test_logf_SOURCES.
21836         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
21837         tests/randoml.c.
21838         (Depends-on): Add 'float'.
21839         (Makefile.am): Add randoml.c to test_logl_SOURCES.
21841 2012-03-09  Bruno Haible  <bruno@clisp.org>
21843         logl: Work around OSF/1 5.1 bug.
21844         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
21845         * lib/logl.c (logl): If logl exists, use it and provide just the
21846         workaround.
21847         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
21848         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
21849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
21850         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
21851         * modules/logl (configure.ac): Consider REPLACE_LOGL.
21852         (Depends-on): Update conditions.
21853         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
21855 2012-03-09  Bruno Haible  <bruno@clisp.org>
21857         logf: Work around OSF/1 5.1 bug.
21858         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
21859         * lib/logf.c (logf): If logf exists, use it and provide just the
21860         workaround.
21861         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
21862         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
21863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
21864         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
21865         * modules/logf (configure.ac): Consider REPLACE_LOGF.
21866         (Depends-on): Update conditions.
21867         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
21869 2012-03-09  Bruno Haible  <bruno@clisp.org>
21871         log: Work around OSF/1 5.1 bug.
21872         * lib/math.in.h (log): New declaration.
21873         * lib/log.c: New file.
21874         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
21875         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
21876         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
21877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
21878         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
21879         * modules/log (Files): Add lib/log.c.
21880         (Depends-on): Add math.
21881         (configure.ac): If REPLACE_LOG is 1, compile an override.
21882         * tests/test-math-c++.cc: Check the declaration of log.
21883         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
21885 2012-03-09  Jim Meyering  <meyering@redhat.com>
21887         readtokens.c: adjust wording in a comment
21888         * lib/readtokens.c: Insert omitted "that" in a comment.
21890 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
21892         modechange: add notations +40, 00440, etc.
21893         * lib/modechange.c (mode_compile): Support new notations
21894         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
21896 2012-03-08  Bruno Haible  <bruno@clisp.org>
21898         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
21899         * m4/exp2l-ieee.m4: New file.
21900         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
21901         test whether exp2l works with a NaN argument and with a negative
21902         infinity argument. Replace it if not.
21903         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
21904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
21905         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
21906         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
21907         (Depends-on): Update conditions.
21908         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
21909         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
21910         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
21912         Tests for module 'exp2l-ieee'.
21913         * modules/exp2l-ieee-tests: New file.
21914         * tests/test-exp2l-ieee.c: New file.
21916         New module 'exp2l-ieee'.
21917         * modules/exp2l-ieee: New file.
21919         Tests for module 'exp2-ieee'.
21920         * modules/exp2-ieee-tests: New file.
21921         * tests/test-exp2-ieee.c: New file.
21923         New module 'exp2-ieee'.
21924         * modules/exp2-ieee: New file.
21926         Tests for module 'exp2f-ieee'.
21927         * modules/exp2f-ieee-tests: New file.
21928         * tests/test-exp2f-ieee.c: New file.
21929         * tests/test-exp2-ieee.h: New file.
21931         New module 'exp2f-ieee'.
21932         * modules/exp2f-ieee: New file.
21934 2012-03-08  Bruno Haible  <bruno@clisp.org>
21936         Tests for module 'exp2l'.
21937         * modules/exp2l-tests: New file.
21938         * tests/test-exp2l.c: New file.
21940         New module 'exp2l'.
21941         * lib/math.in.h (exp2l): New declaration.
21942         * lib/exp2l.c: New file.
21943         * lib/expl-table.c: New file, extracted from lib/expl.c.
21944         * lib/expl.c (gl_expl_table): New declaration.
21945         (expl): Remove expl_table. Update reference.
21946         * m4/exp2l.m4: New file.
21947         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
21948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
21949         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
21950         * modules/exp2l: New file.
21951         * modules/expl (Files): Add lib/expl-table.c.
21952         (configure.ac): Compile also expl-table.c.
21953         * tests/test-math-c++.cc: Check the declaration of exp2l.
21954         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
21955         problem.
21957 2012-03-08  Bruno Haible  <bruno@clisp.org>
21959         Tests for module 'exp2f'.
21960         * modules/exp2f-tests: New file.
21961         * tests/test-exp2f.c: New file.
21963         New module 'exp2f'.
21964         * lib/math.in.h (exp2f): New declaration.
21965         * lib/exp2f.c: New file.
21966         * m4/exp2f.m4: New file.
21967         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
21968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
21969         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
21970         * modules/exp2f: New file.
21971         * tests/test-math-c++.cc: Check the declaration of exp2f.
21972         * doc/posix-functions/exp2f.texi: Mention the new module and the
21973         IRIX problem.
21975 2012-03-08  Bruno Haible  <bruno@clisp.org>
21977         Tests for module 'exp2'.
21978         * modules/exp2-tests: New file.
21979         * tests/test-exp2.c: New file.
21980         * tests/test-exp2.h: New file.
21982         New module 'exp2'.
21983         * lib/math.in.h (exp2): New declaration.
21984         * lib/exp2.c: New file.
21985         * m4/exp2.m4: New file.
21986         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
21987         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
21988         REPLACE_EXP2.
21989         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
21990         REPLACE_EXP2.
21991         * modules/exp2: New file.
21992         * tests/test-math-c++.cc: Check the declaration of exp2.
21993         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
21994         and OpenBSD problems.
21996 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
21998         savedir: fix comment typo
21999         * lib/savedir.c (savedirstream): Fix typo in comment.
22001 2012-03-08  Bruno Haible  <bruno@clisp.org>
22003         test-readtokens.c: use const; remove unwarranted cast
22004         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
22006 2012-03-08  Bruno Haible  <bruno@clisp.org>
22008         fmal: Avoid compilation error on AIX.
22009         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
22010         AIX 5.2..7.1.
22012 2012-03-08  Bruno Haible  <bruno@clisp.org>
22014         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
22015         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
22016         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
22017         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
22018         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
22019         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
22020         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
22022 2012-03-08  Bruno Haible  <bruno@clisp.org>
22024         remainderf: Override buggy system function on IRIX 6.5.
22025         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
22026         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
22027         when it exists.
22028         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
22030 2012-03-08  Jim Meyering  <meyering@redhat.com>
22032         test-readtokens.c: avoid const-related compilation warnings
22033         * tests/test-readtokens.c: Avoid const-related compilation warnings.
22035 2012-03-07  Jim Meyering  <meyering@redhat.com>
22036             Bruno Haible  <bruno@clisp.org>
22038         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
22039         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
22040         tests/randomd.c.
22041         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
22042         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
22043         tests/randoml.c.
22044         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
22046 2012-03-07  Bruno Haible  <bruno@clisp.org>
22048         expm1l: Avoid compilation error on AIX.
22049         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
22050         AIX 5.2..7.1.
22052 2012-03-07  Bruno Haible  <bruno@clisp.org>
22054         expm1l: Don't override undeclared system function on IRIX 6.5.
22055         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
22056         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
22057         it exists. Set HAVE_DECL_EXPM1L.
22058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
22059         HAVE_EXPM1L.
22060         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
22061         HAVE_EXPM1L.
22062         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
22064 2012-03-07  Bruno Haible  <bruno@clisp.org>
22066         remainderl: Don't override undeclared system function on IRIX 6.5.
22067         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
22068         HAVE_REMAINDERL.
22069         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
22070         declared when it exists. Set HAVE_DECL_REMAINDERL.
22071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
22072         not HAVE_REMAINDERL.
22073         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
22074         HAVE_REMAINDERL.
22075         * doc/posix-functions/remainderl.texi: Mention missing declaration
22076         problem.
22078 2012-03-07  Bruno Haible  <bruno@clisp.org>
22080         rintf: Don't override undeclared system function on IRIX 6.5.
22081         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
22082         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
22083         exists. Set HAVE_DECL_RINTF.
22084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
22085         HAVE_RINTF.
22086         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
22087         HAVE_RINTF.
22088         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
22090 2012-03-07  Bruno Haible  <bruno@clisp.org>
22092         roundl: Avoid compilation error on AIX.
22093         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
22094         AIX 5.2..7.1.
22096 2012-03-07  Bruno Haible  <bruno@clisp.org>
22098         roundl: Don't override undeclared system function on IRIX 6.5.
22099         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
22100         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
22101         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
22102         * modules/roundl (configure.ac): For replacement code, test
22103         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
22104         (Depends-on): Update conditions.
22105         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
22107 2012-03-07  Bruno Haible  <bruno@clisp.org>
22109         roundf: Don't override undeclared system function on IRIX 6.5.
22110         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
22111         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
22112         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
22113         * modules/roundf (configure.ac): For replacement code, test
22114         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
22115         (Depends-on): Update conditions.
22116         * modules/roundf-ieee (Depends-on): Update conditions.
22117         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
22119 2012-03-07  Bruno Haible  <bruno@clisp.org>
22121         round: Don't override undeclared system function on IRIX 6.5.
22122         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
22123         argument.
22124         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
22125         also when it is not declared. Set HAVE_ROUND. For replacement code,
22126         test HAVE_ROUND, not HAVE_DECL_ROUND.
22127         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
22128         not HAVE_DECL_ROUND.
22129         (Depends-on): Update conditions.
22130         * modules/round-ieee (Depends-on): Update conditions.
22131         * doc/posix-functions/round.texi: Mention the IRIX problem.
22133 2012-03-07  Bruno Haible  <bruno@clisp.org>
22135         copysignf: Don't override undeclared system function on IRIX 6.5.
22136         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
22137         HAVE_COPYSIGNF.
22138         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
22139         declared when it exists. Set HAVE_DECL_COPYSIGNF.
22140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
22141         not HAVE_COPYSIGNF.
22142         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
22143         HAVE_COPYSIGNF.
22144         * doc/posix-functions/copysignf.texi: Mention missing declaration
22145         problem.
22147 2012-03-07  Jim Meyering  <meyering@redhat.com>
22149         readtokens: add tests
22150         * modules/readtokens-tests: New file.
22151         * tests/test-readtokens.c: New file.
22153 2012-03-07  Jim Meyering  <meyering@redhat.com>
22155         quotearg: the module must now include quote.h
22156         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
22157         So must the module.
22158         * modules/quotearg (Files): Add quote.h.
22160 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
22162         readtokens: avoid core dumps with unusual calling patterns
22163         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
22164         * lib/readtokens.c: Include limits.h.
22165         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
22166         (readtoken): Don't cache the delimiters; the cache code was buggy
22167         if !delim && saved_delim, or if the new n_delim differs from the old.
22168         Also, it wasn't thread-safe.
22170 2012-03-07  Bruno Haible  <bruno@clisp.org>
22172         quote: Adhere to common module description layout.
22173         * modules/quote (Makefile.am): Add back empty section.
22175 2012-03-06  Akim Demaille  <demaille@gostai.com>
22177         quote: fuse into quotearg
22178         This patch is made for the benefit of Bison.
22179         quote does not leave the choice of the quoting style to the user.
22180         quoting_style provides poor customizability, yet quoting_options,
22181         which is very rich, is hidden inside quotearg.c.  So in order to
22182         allow quote customization, move its implementation to quotearg.c.
22183         * lib/quote.c: Remove.
22184         * modules/quote: Adjust.
22185         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
22186         warning: provide all the members of literal structs.
22187         (quote_quoting_options): New.
22188         (quote, quote_n): Import implementation from quote.c.
22189         * lib/quote.h: Import the comments from quote.c.
22190         (quote_quoting_options): New.
22192 2012-03-06  Bruno Haible  <bruno@clisp.org>
22194         Tests for module 'expm1l-ieee'.
22195         * modules/expm1l-ieee-tests: New file.
22196         * tests/test-expm1l-ieee.c: New file.
22198         New module 'expm1l-ieee'.
22199         * modules/expm1l-ieee: New file.
22201         Tests for module 'expm1f-ieee'.
22202         * modules/expm1f-ieee-tests: New file.
22203         * tests/test-expm1f-ieee.c: New file.
22205         New module 'expm1f-ieee'.
22206         * modules/expm1f-ieee: New file.
22208         Tests for module 'expm1-ieee'.
22209         * modules/expm1-ieee-tests: New file.
22210         * tests/test-expm1-ieee.c: New file.
22211         * tests/test-expm1-ieee.h: New file.
22213         New module 'expm1-ieee'.
22214         * modules/expm1-ieee: New file.
22215         * m4/expm1-ieee.m4: New file.
22216         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
22217         whether expm1 works with a minus zero argument. Replace it if not.
22218         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
22219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
22220         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
22221         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
22222         (Depends-on): Update conditions.
22223         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
22224         AIX problem.
22226 2012-03-06  Bruno Haible  <bruno@clisp.org>
22228         Work around expm1f bug on IRIX 6.5.
22229         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
22230         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
22231         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
22232         not work.
22233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
22234         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
22235         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
22236         (Depends-on): Update conditions.
22237         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
22239 2012-03-06  Bruno Haible  <bruno@clisp.org>
22241         Tests for module 'expm1l'.
22242         * modules/expm1l-tests: New file.
22243         * tests/test-expm1l.c: New file.
22245         New module 'expm1l'.
22246         * lib/math.in.h (expm1l): New declaration.
22247         * lib/expm1l.c: New file.
22248         * m4/expm1l.m4: New file.
22249         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
22250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
22251         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
22252         * modules/expm1l: New file.
22253         * tests/test-math-c++.cc: Check the declaration of expm1l.
22254         * doc/posix-functions/expm1l.texi: Mention the new module.
22256 2012-03-06  Bruno Haible  <bruno@clisp.org>
22258         Tests for module 'expm1f'.
22259         * modules/expm1f-tests: New file.
22260         * tests/test-expm1f.c: New file.
22262         New module 'expm1f'.
22263         * lib/math.in.h (expm1f): New declaration.
22264         * lib/expm1f.c: New file.
22265         * m4/expm1f.m4: New file.
22266         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
22267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
22268         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
22269         * modules/expm1f: New file.
22270         * tests/test-math-c++.cc: Check the declaration of expm1f.
22271         * doc/posix-functions/expm1f.texi: Mention the new module.
22273 2012-03-06  Bruno Haible  <bruno@clisp.org>
22275         Tests for module 'expm1'.
22276         * modules/expm1-tests: New file.
22277         * tests/test-expm1.c: New file.
22278         * tests/test-expm1.h: New file.
22280         New module 'expm1'.
22281         * lib/math.in.h (expm1): New declaration.
22282         * lib/expm1.c: New file.
22283         * m4/expm1.m4: New file.
22284         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
22285         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
22286         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
22287         * modules/expm1: New file.
22288         * tests/test-math-c++.cc: Check the declaration of expm1.
22289         * doc/posix-functions/expm1.texi: Mention the new module.
22291 2012-03-06  Bruno Haible  <bruno@clisp.org>
22293         math: Ensure declarations of math functions.
22294         * modules/acosf (Depends-on): Add 'extensions'.
22295         * modules/asinf (Depends-on): Likewise.
22296         * modules/atan2f (Depends-on): Likewise.
22297         * modules/atanf (Depends-on): Likewise.
22298         * modules/cbrt (Depends-on): Likewise.
22299         * modules/cbrtf (Depends-on): Likewise.
22300         * modules/cbrtl (Depends-on): Likewise.
22301         * modules/copysignf (Depends-on): Likewise.
22302         * modules/copysignl (Depends-on): Likewise.
22303         * modules/cosf (Depends-on): Likewise.
22304         * modules/coshf (Depends-on): Likewise.
22305         * modules/expf (Depends-on): Likewise.
22306         * modules/fabsf (Depends-on): Likewise.
22307         * modules/fabsl (Depends-on): Likewise.
22308         * modules/fmaf (Depends-on): Likewise.
22309         * modules/fmal (Depends-on): Likewise.
22310         * modules/fmodf (Depends-on): Likewise.
22311         * modules/fmodl (Depends-on): Likewise.
22312         * modules/frexpf (Depends-on): Likewise.
22313         * modules/frexpl (Depends-on): Likewise.
22314         * modules/hypot (Depends-on): Likewise.
22315         * modules/hypotf (Depends-on): Likewise.
22316         * modules/hypotl (Depends-on): Likewise.
22317         * modules/ldexpf (Depends-on): Likewise.
22318         * modules/ldexpl (Depends-on): Likewise.
22319         * modules/log10f (Depends-on): Likewise.
22320         * modules/log10l (Depends-on): Likewise.
22321         * modules/log1p (Depends-on): Likewise.
22322         * modules/logb (Depends-on): Likewise.
22323         * modules/logf (Depends-on): Likewise.
22324         * modules/modff (Depends-on): Likewise.
22325         * modules/modfl (Depends-on): Likewise.
22326         * modules/powf (Depends-on): Likewise.
22327         * modules/remainderf (Depends-on): Likewise.
22328         * modules/remainderl (Depends-on): Likewise.
22329         * modules/rintf (Depends-on): Likewise.
22330         * modules/rintl (Depends-on): Likewise.
22331         * modules/sinf (Depends-on): Likewise.
22332         * modules/sinhf (Depends-on): Likewise.
22333         * modules/sqrtf (Depends-on): Likewise.
22334         * modules/tanf (Depends-on): Likewise.
22335         * modules/tanhf (Depends-on): Likewise.
22336         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
22337         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
22338         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
22339         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
22340         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
22341         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
22342         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
22343         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
22344         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
22345         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
22346         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
22347         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
22348         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
22349         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
22350         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
22351         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
22352         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
22353         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
22354         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
22355         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
22356         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
22357         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
22358         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
22359         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
22360         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
22361         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
22362         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
22363         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22364         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
22365         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
22366         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
22367         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
22368         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
22369         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
22370         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
22371         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
22372         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
22373         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
22374         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
22375         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
22376         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
22378 2012-03-06  Bruno Haible  <bruno@clisp.org>
22380         math: Update module names in warnings.
22381         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22382         tanl): Use specific module name in warn-on-use warning.
22384 2012-03-06  Bruno Haible  <bruno@clisp.org>
22386         expl: Simplify computation.
22387         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
22389 2012-03-05  Bruno Haible  <bruno@clisp.org>
22391         exp* tests: More tests.
22392         * tests/test-exp.h: New file.
22393         * tests/test-exp.c: Include <float.h> and test-exp.h.
22394         (main): Invoke test_function.
22395         * tests/test-expf.c: Include <float.h> and test-exp.h.
22396         (main): Invoke test_function.
22397         * tests/test-expl.c: Include <float.h> and test-exp.h.
22398         (main): Invoke test_function.
22399         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
22400         (Makefile.am): Add randomd.c to test_exp_SOURCES.
22401         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
22402         (Makefile.am): Add randomf.c to test_expf_SOURCES.
22403         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
22404         (Depends-on): Add 'float'.
22405         (Makefile.am): Add randoml.c to test_expl_SOURCES.
22407         expl: Fix precision of computed result.
22408         * lib/expl.c: Completely rewritten.
22409         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
22410         (Maintainer): Add me.
22411         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
22413 2012-03-05  Bruno Haible  <bruno@clisp.org>
22415         cbrt* tests: More tests.
22416         * tests/test-cbrt.h: New file.
22417         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
22418         (main): Invoke test_function.
22419         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
22420         (main): Invoke test_function.
22421         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
22422         (main): Invoke test_function.
22423         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
22424         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
22425         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
22426         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
22427         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
22428         (Depends-on): Add 'float'.
22429         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
22431 2012-03-05  Bruno Haible  <bruno@clisp.org>
22433         hypot* tests: More tests.
22434         * tests/test-hypot.h: New file, partially extracted from
22435         tests/test-hypotl.c.
22436         * tests/test-hypot.c: Include test-hypot.h.
22437         (main): Invoke test_function.
22438         * tests/test-hypotf.c: Include test-hypot.h.
22439         (main): Invoke test_function.
22440         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
22441         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
22442         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
22443         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
22444         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
22445         tests/randomf.c.
22446         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
22447         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
22448         tests/randoml.c.
22449         (Depends-on): Add 'fpucw', 'float'.
22450         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
22452 2012-03-05  Bruno Haible  <bruno@clisp.org>
22454         fpucw: Doc about FreeBSD.
22455         * lib/fpucw.h: Mention FreeBSD in comments.
22457 2012-03-04  Bruno Haible  <bruno@clisp.org>
22459         sqrt* tests: More tests.
22460         * tests/test-sqrt.h: New file.
22461         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
22462         (main): Invoke test_function.
22463         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
22464         (main): Invoke test_function.
22465         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
22466         (main): Invoke test_function.
22467         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
22468         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
22469         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
22470         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
22471         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
22472         (Depends-on): Add 'float'.
22473         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
22475 2012-03-04  Bruno Haible  <bruno@clisp.org>
22477         remainder* tests: More tests.
22478         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
22479         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
22480         (main): Invoke test_function.
22481         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
22482         (main): Invoke test_function.
22483         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
22484         (main): Invoke test_function.
22485         * modules/remainder-tests (Files): Add tests/test-remainder.h,
22486         tests/randomd.c.
22487         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
22488         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
22489         tests/randomf.c.
22490         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
22491         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
22492         tests/randoml.c.
22493         (Depends-on): Add 'float'.
22494         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
22496 2012-03-04  Bruno Haible  <bruno@clisp.org>
22498         remainder, remainderf, remainderl: Fix computation for large quotients.
22499         * lib/remainder.c: Completely rewritten.
22500         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
22501         USE_FLOAT.
22502         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
22503         USE_LONG_DOUBLE.
22504         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
22505         isnand, isinf. Remove round, fma.
22506         * modules/remainderf (Files): Add lib/remainder.c.
22507         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
22508         Remove roundf, fmaf.
22509         * modules/remainderl (Files): Add lib/remainder.c.
22510         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
22511         isinf. Remove roundl, fmal.
22512         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
22513         REMAINDER_LIBM.
22514         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
22515         REMAINDERF_LIBM.
22516         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
22517         REMAINDERL_LIBM.
22519 2012-03-04  Bruno Haible  <bruno@clisp.org>
22521         fmod* tests: More tests.
22522         * tests/test-fmod.h (my_ldexp): New function.
22523         (test_function): Reduce amount of random numbers to test. Add tests
22524         of very large quotients x / y.
22525         * tests/test-fmod.c (MAX_EXP): New macro.
22526         * tests/test-fmodf.c (MAX_EXP): Likewise.
22527         * tests/test-fmodl.c (MAX_EXP): Likewise.
22529 2012-03-04  Bruno Haible  <bruno@clisp.org>
22531         fmod, fmodl: Fix computation for large quotients x / y.
22532         * lib/fmod.c: Completely rewritten.
22533         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
22534         USE_LONG_DOUBLE.
22535         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
22536         isnand. Remove fma.
22537         * modules/fmodl (Files): Add lib/fmod.c.
22538         (Depends-on): Add float, isfinite, signbit, fabsl,
22539         frexpl, ldexpl, isnanl. Remove fma.
22540         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
22541         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
22543 2012-03-03  Bruno Haible  <bruno@clisp.org>
22545         fmod* tests: More tests.
22546         * tests/test-fmod.h: New file.
22547         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
22548         (main): Invoke test_function.
22549         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
22550         (main): Invoke test_function.
22551         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
22552         (main): Invoke test_function.
22553         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
22554         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
22555         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
22556         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
22557         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
22558         (Depends-on): Add 'float'.
22559         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
22561 2012-03-03  Bruno Haible  <bruno@clisp.org>
22563         rint* tests: More tests.
22564         * tests/test-rint.h: New file, partially extracted from
22565         tests/test-rintl.c.
22566         * tests/test-rint.c: Include test-rint.h.
22567         (main): Invoke test_function.
22568         * tests/test-rintf.c: Include test-rint.h.
22569         (main): Invoke test_function.
22570         * tests/test-rintl.c: Include test-rint.h.
22571         (main): Invoke test_function.
22572         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
22573         (Makefile.am): Add randomd.c to test_rint_SOURCES.
22574         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
22575         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
22576         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
22577         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
22579 2012-03-03  Bruno Haible  <bruno@clisp.org>
22581         modf* tests: More tests.
22582         * tests/test-modf.h: New file.
22583         * tests/test-modf.c: Include <float.h> and test-modf.h.
22584         (main): Invoke test_function.
22585         * tests/test-modff.c: Include <float.h> and test-modf.h.
22586         (main): Invoke test_function.
22587         * tests/test-modfl.c: Include <float.h> and test-modf.h.
22588         (main): Invoke test_function.
22589         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
22590         (Makefile.am): Add randomd.c to test_modf_SOURCES.
22591         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
22592         (Makefile.am): Add randomf.c to test_modff_SOURCES.
22593         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
22594         (Depends-on): Add 'float'.
22595         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
22597 2012-03-03  Bruno Haible  <bruno@clisp.org>
22599         fabs* tests: More tests.
22600         * tests/test-fabs.h: New file, partially extracted from
22601         tests/test-fabsl.c.
22602         * tests/test-fabs.c (RANDOM): New macro.
22603         * tests/test-fabsf.c (RANDOM): New macro.
22604         * tests/test-fabsl.c (RANDOM): New macro.
22605         * modules/fabs-tests (Files): Add tests/randomd.c.
22606         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
22607         * modules/fabsf-tests (Files): Add tests/randomf.c.
22608         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
22609         * modules/fabsl-tests (Files): Add tests/randoml.c.
22610         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
22612 2012-03-03  Bruno Haible  <bruno@clisp.org>
22614         ldexp* tests: More tests.
22615         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
22616         * tests/test-ldexp.c (RANDOM): New macro.
22617         * tests/test-ldexpf.c (RANDOM): New macro.
22618         * tests/test-ldexpl.c (RANDOM): New macro.
22619         * modules/ldexp-tests (Files): Add tests/randomd.c.
22620         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
22621         * modules/ldexpf-tests (Files): Add tests/randomf.c.
22622         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
22623         * modules/ldexpl-tests (Files): Add tests/randoml.c.
22624         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
22626 2012-03-03  Bruno Haible  <bruno@clisp.org>
22628         frexp* tests: More tests.
22629         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
22630         * tests/test-frexp.c (RANDOM): New macro.
22631         * tests/test-frexpf.c (RANDOM): New macro.
22632         * tests/test-frexpl.c (RANDOM): New macro.
22633         * modules/frexp-tests (Files): Add tests/randomd.c.
22634         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
22635         * modules/frexpf-tests (Files): Add tests/randomf.c.
22636         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
22637         * modules/frexpl-tests (Files): Add tests/randoml.c.
22638         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
22640 2012-03-03  Bruno Haible  <bruno@clisp.org>
22642         Support for pseudo-random numbers in tests.
22643         * tests/randomf.c: New file.
22644         * tests/randomd.c: New file.
22645         * tests/randoml.c: New file.
22646         * tests/macros.h (randomf, randomd, randoml): New declarations.
22648 2012-03-03  Bruno Haible  <bruno@clisp.org>
22650         frexp* tests: Refactor.
22651         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
22652         * tests/test-frexp.c: Include and use it.
22653         * tests/test-frexpf.c: Likewise.
22654         * tests/test-frexpl.c: Likewise.
22655         * modules/frexp-tests (Files): Add tests/test-frexp.h.
22656         * modules/frexpf-tests (Files): Likewise.
22657         * modules/frexpl-tests (Files): Likewise.
22659 2012-03-02  Jim Meyering  <meyering@redhat.com>
22661         maint: don't specify XZ_OPT=-9ev in dist-related rule
22662         Using xz's -9 option is warranted only if you have a very large
22663         tarball (see xz's documentation for the sizes vs. presets), and
22664         requires 64MiB of memory at decompression time.
22665         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
22666         Automake's default of just "-e" is fine.  Override on a
22667         per-package basis by setting XZ_OPT e.g., in cfg.mk.
22669 2012-03-01  Eric Blake  <eblake@redhat.com>
22671         maint.mk: allow announcement for non-gnulib project
22672         * maint.mk (announcement): Skip gnulib version if not used.
22674 2012-03-01  Jim Meyering  <meyering@redhat.com>
22676         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
22677         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
22678         envvar settings cannot interfere.  Otherwise, setting envvars like
22679         prohibit=foo require=bar, etc. would cause spurious test failures.
22681 2012-03-01  Eric Blake  <eblake@redhat.com>
22683         maint.mk: add per-line exclusions to prohibitions
22684         * maint.mk (_sc_search_regexp): Add $exclude parameter.
22685         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
22686         (sc_const_long_option): Use it.
22688 2012-03-01  Bruno Haible  <bruno@clisp.org>
22690         Tests for module 'expl-ieee'.
22691         * modules/expl-ieee-tests: New file.
22692         * tests/test-expl-ieee.c: New file.
22694         New module 'expl-ieee'.
22695         * modules/expl-ieee: New file.
22697         Tests for module 'exp-ieee'.
22698         * modules/exp-ieee-tests: New file.
22699         * tests/test-exp-ieee.c: New file.
22701         New module 'exp-ieee'.
22702         * modules/exp-ieee: New file.
22704         Tests for module 'expf-ieee'.
22705         * modules/expf-ieee-tests: New file.
22706         * tests/test-expf-ieee.c: New file.
22707         * tests/test-exp-ieee.h: New file.
22709         New module 'expf-ieee'.
22710         * modules/expf-ieee: New file.
22712 2012-02-29  Bruno Haible  <bruno@clisp.org>
22714         cbrtl-ieee: Work around test failure on IRIX 6.5.
22715         * m4/cbrtl-ieee.m4: New file.
22716         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
22717         test whether cbrtl works with a minus zero argument. Replace it if not.
22718         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
22719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
22720         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
22721         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
22722         (Depends-on): Update conditions.
22723         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
22724         m4/signbit.m4.
22725         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
22726         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
22727         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
22729         Tests for module 'cbrtl-ieee'.
22730         * modules/cbrtl-ieee-tests: New file.
22731         * tests/test-cbrtl-ieee.c: New file.
22733         New module 'cbrtl-ieee'.
22734         * modules/cbrtl-ieee: New file.
22736         Tests for module 'cbrt-ieee'.
22737         * modules/cbrt-ieee-tests: New file.
22738         * tests/test-cbrt-ieee.c: New file.
22740         New module 'cbrt-ieee'.
22741         * modules/cbrt-ieee: New file.
22743         Tests for module 'cbrtf-ieee'.
22744         * modules/cbrtf-ieee-tests: New file.
22745         * tests/test-cbrtf-ieee.c: New file.
22746         * tests/test-cbrt-ieee.h: New file.
22748         New module 'cbrtf-ieee'.
22749         * modules/cbrtf-ieee: New file.
22751 2012-02-29  Bruno Haible  <bruno@clisp.org>
22753         cbrtf: Work around bug in IRIX 6.5 system function.
22754         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
22755         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
22756         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
22757         work.
22758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
22759         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
22760         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
22761         (Depends-on): Update conditions.
22762         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
22764 2012-02-29  Bruno Haible  <bruno@clisp.org>
22766         Tests for module 'cbrtl'.
22767         * modules/cbrtl-tests: New file.
22768         * tests/test-cbrtl.c: New file.
22770         New module 'cbrtl'.
22771         * lib/math.in.h (cbrtl): New declaration.
22772         * lib/cbrtl.c: New file.
22773         * m4/cbrtl.m4: New file.
22774         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
22775         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
22776         HAVE_DECL_CBRTL.
22777         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
22778         HAVE_DECL_CBRTL.
22779         * modules/cbrtl: New file.
22780         * tests/test-math-c++.cc: Check the declaration of cbrtl.
22781         * doc/posix-functions/cbrtl.texi: Mention the new module.
22783 2012-02-29  Bruno Haible  <bruno@clisp.org>
22785         Tests for module 'cbrtf'.
22786         * modules/cbrtf-tests: New file.
22787         * tests/test-cbrtf.c: New file.
22789         New module 'cbrtf'.
22790         * lib/math.in.h (cbrtf): New declaration.
22791         * lib/cbrtf.c: New file.
22792         * m4/cbrtf.m4: New file.
22793         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
22794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
22795         HAVE_DECL_CBRTF.
22796         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
22797         HAVE_DECL_CBRTF.
22798         * modules/cbrtf: New file.
22799         * tests/test-math-c++.cc: Check the declaration of cbrtf.
22800         * doc/posix-functions/cbrtf.texi: Mention the new module.
22802 2012-02-29  Bruno Haible  <bruno@clisp.org>
22804         cbrt: Provide replacement on MSVC and Minix.
22805         * lib/math.in.h (cbrt): New declaration.
22806         * lib/cbrt.c: New file.
22807         * m4/cbrt.m4: New file.
22808         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
22809         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
22810         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
22811         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
22812         (Depends-on): Add dependencies.
22813         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
22814         * tests/test-math-c++.cc: Check the declaration of cbrt.
22815         * doc/posix-functions/cbrt.texi: Mention that the module provides a
22816         replacement.
22818 2012-02-29  Bruno Haible  <bruno@clisp.org>
22820         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
22821         * m4/hypotl-ieee.m4: New file.
22822         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
22823         test whether hypotl works with mixed NaN and Infinity arguments.
22824         Replace it if not.
22825         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
22826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
22827         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
22828         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
22829         (Depends-on): Update conditions.
22830         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
22831         (Depends-on): Add hypot-ieee.
22832         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
22833         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
22835         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
22836         * m4/hypotf-ieee.m4: New file.
22837         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
22838         test whether hypotf works with mixed NaN and Infinity arguments.
22839         Replace it if not.
22840         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
22841         (Depends-on): Add hypot-ieee.
22842         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
22843         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
22845         hypot-ieee: Work around test failure on OSF/1 and native Windows.
22846         * lib/math.in.h (hypot): New declaration.
22847         * lib/hypot.c: New file.
22848         * m4/hypot-ieee.m4: New file.
22849         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
22850         whether hypot works with mixed NaN and Infinity arguments. Replace it
22851         if not.
22852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
22853         REPLACE_HYPOT.
22854         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
22855         * modules/hypot (Files): Add lib/hypot.c.
22856         (Depends-on): Add dependencies.
22857         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
22858         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
22859         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
22860         * tests/test-math-c++.cc: Check the declaration of hypot.
22861         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
22863         Tests for module 'hypotl-ieee'.
22864         * modules/hypotl-ieee-tests: New file.
22865         * tests/test-hypotl-ieee.c: New file.
22867         New module 'hypotl-ieee'.
22868         * modules/hypotl-ieee: New file.
22870         Tests for module 'hypot-ieee'.
22871         * modules/hypot-ieee-tests: New file.
22872         * tests/test-hypot-ieee.c: New file.
22874         New module 'hypot-ieee'.
22875         * modules/hypot-ieee: New file.
22877         Tests for module 'hypotf-ieee'.
22878         * modules/hypotf-ieee-tests: New file.
22879         * tests/test-hypotf-ieee.c: New file.
22880         * tests/test-hypot-ieee.h: New file.
22882         New module 'hypotf-ieee'.
22883         * modules/hypotf-ieee: New file.
22885 2012-02-29  Bruno Haible  <bruno@clisp.org>
22887         Remove unused variables.
22888         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
22889         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
22890         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
22891         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
22893 2012-02-29  Eric Blake  <eblake@redhat.com>
22895         termios: fix pid_t always, not just for tcgetsid
22896         * doc/posix-headers/termios.texi (termios.h): Mention problem.
22897         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
22898         just when building tcgetsid.
22900 2012-02-29  Bruno Haible  <bruno@clisp.org>
22902         Tests for module 'hypotl'.
22903         * modules/hypotl-tests: New file.
22904         * tests/test-hypotl.c: New file.
22906         New module 'hypotl'.
22907         * lib/math.in.h (hypotl): New declaration.
22908         * lib/hypotl.c: New file.
22909         * m4/hypotl.m4: New file.
22910         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
22911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
22912         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
22913         * modules/hypotl: New file.
22914         * tests/test-math-c++.cc: Check the hypotl declaration.
22915         * doc/posix-functions/hypotl.texi: Mention the new module.
22917 2012-02-29  Eric Blake  <eblake@redhat.com>
22919         tcgetsid: fix cygwin header bug
22920         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
22922         docs: update cygwin progress
22923         * doc/posix-functions/llround.texi (llround): Added in cygwin
22924         1.7.8.
22925         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
22926         * doc/glibc-functions/program_invocation_name.texi
22927         (program_invocation_name): Likewise.
22928         * doc/glibc-functions/program_invocation_short_name.texi
22929         (program_invocation_short_name): Likewise.
22930         * doc/glibc-functions/madvise.texi (madvise): Likewise.
22931         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
22932         Likewise.
22933         * doc/posix-functions/pthread_spin_destroy.texi
22934         (pthread_spin_destroy): Added in cygwin 1.7.10.
22935         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
22936         Likewise.
22937         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
22938         Likewise.
22939         * doc/posix-functions/pthread_spin_trylock.texi
22940         (pthread_spin_trylock): Likewise.
22941         * doc/posix-functions/pthread_spin_unlock.texi
22942         (pthread_spin_unlock): Likewise.
22943         * doc/posix-functions/pthread_setschedprio.texi
22944         (pthread_setschedprio): Likewise.
22945         * doc/posix-functions/pthread_attr_getstack.texi
22946         (pthread_attr_getstack): Likewise.
22947         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
22948         (pthread_attr_getstackaddr): Likewise.
22949         * doc/glibc-functions/pthread_getattr_np.texi
22950         (pthread_getattr_np): Likewise.
22951         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
22952         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
22953         * doc/posix-functions/clock_settime.texi (clock_settime):
22954         Likewise.
22955         * doc/posix-functions/pthread_attr_getguardsize.texi
22956         (pthread_attr_getguardsize): Likewise.
22957         * doc/posix-functions/pthread_attr_setguardsize.texi
22958         (pthread_attr_setguardsize): Likewise.
22959         * doc/posix-functions/pthread_attr_setstack.texi
22960         (pthread_attr_setstack): Likewise.
22961         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
22962         (pthread_attr_setstackaddr): Likewise.
22963         * doc/posix-functions/clock_getcpuclockid.texi
22964         (clock_getcpuclockid): Likewise.
22965         * doc/posix-functions/pthread_getcpuclockid.texi
22966         (pthread_getcpuclockid): Likewise.
22967         * doc/glibc-functions/error.texi (error): Likewise.
22968         * doc/glibc-functions/error_at_line.texi (error_at_line):
22969         Likewise.
22970         * doc/glibc-functions/error_message_count.texi
22971         (error_message_count): Likewise.
22972         * doc/glibc-functions/error_one_per_line.texi
22973         (error_one_per_line): Likewise.
22974         * doc/glibc-functions/error_print_progname.texi
22975         (error_print_progname): Likewise.
22976         * doc/posix-functions/pthread_condattr_getclock.texi
22977         (pthread_condattr_getclock): Likewise.
22978         * doc/posix-functions/pthread_condattr_setclock.texi
22979         (pthread_condattr_setclock): Likewise.
22980         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
22981         Likewise.
22982         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
22983         * doc/glibc-functions/getpt.texi (getpt): Likewise.
22984         * doc/glibc-functions/get_current_dir_name.texi
22985         (get_current_dir_name): Likewise.
22986         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
22987         Likewise.
22988         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
22989         wrong return type.
22990         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
22991         1.7.11.
22993 2012-02-29  Bruno Haible  <bruno@clisp.org>
22995         Tests for module 'hypotf'.
22996         * modules/hypotf-tests: New file.
22997         * tests/test-hypotf.c: New file.
22999         New module 'hypotf'.
23000         * lib/math.in.h (hypotf): New declaration.
23001         * lib/hypotf.c: New file.
23002         * m4/hypotf.m4: New file.
23003         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
23004         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
23005         REPLACE_HYPOTF.
23006         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
23007         REPLACE_HYPOTF.
23008         * modules/hypotf: New file.
23009         * tests/test-math-c++.cc: Check the hypotf declaration.
23010         * doc/posix-functions/hypotf.texi: Mention the new module.
23012         hypot: Prepare for hypotf module.
23013         * m4/hypot.m4: New file.
23014         * modules/hypot (Files): Add m4/hypot.m4.
23015         (configure.ac): Invoke gl_FUNC_HYPOT.
23017 2012-02-29  Bruno Haible  <bruno@clisp.org>
23019         hypot tests: More tests.
23020         * tests/test-hypot.c: Include <float.h>.
23021         (main): Add tests about overflow and underflow.
23023 2012-02-29  Bruno Haible  <bruno@clisp.org>
23025         math code: Add comments.
23026         * lib/acosl.c: Add comment about related glibc source files.
23027         * lib/asinl.c: Likewise.
23028         * lib/atanl.c: Likewise.
23029         * lib/expl.c: Likewise.
23030         * lib/logl.c: Likewise.
23031         * lib/sincosl.c: Likewise.
23032         * lib/sinl.c: Likewise.
23033         * lib/tanl.c: Likewise.
23034         * lib/trigl.c: Likewise.
23035         * lib/cosl.c: Likewise. Fix comments.
23037 2012-02-28  Bruno Haible  <bruno@clisp.org>
23039         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
23040         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
23041         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
23042         HUGE_VALL are defined.
23043         (numeric_equald): Renamed from numeric_equal.
23044         (numeric_equalf, numeric_equall): New functions.
23045         (main): Check also HUGE_VALF, HUGE_VALL.
23046         * modules/math-tests (Files): Add tests/macros.h.
23047         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
23048         HUGE_VALL.
23050 2012-02-28  Bruno Haible  <bruno@clisp.org>
23052         doc: Move ISO C11 feature notes into POSIX chapters.
23053         * doc/posix-functions/aligned_alloc.texi: Renamed from
23054         doc/glibc-functions/aligned_alloc.texi.
23055         * doc/posix-functions/quick_exit.texi: Renamed from
23056         doc/glibc-functions/quick_exit.texi.
23057         * doc/posix-headers/uchar.texi: Renamed from
23058         doc/glibc-headers/uchar.texi.
23059         * doc/posix-functions/c16rtomb.texi: Renamed from
23060         doc/glibc-functions/c16rtomb.texi.
23061         * doc/posix-functions/c32rtomb.texi: Renamed from
23062         doc/glibc-functions/c32rtomb.texi.
23063         * doc/posix-functions/mbrtoc16.texi: Renamed from
23064         doc/glibc-functions/mbrtoc16.texi.
23065         * doc/posix-functions/mbrtoc32.texi: Renamed from
23066         doc/glibc-functions/mbrtoc32.texi.
23067         * doc/gnulib.texi: Update.
23068         (Glibc uchar.h): Remove section.
23069         Suggested by Eric Blake.
23071 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
23073         stdnoreturn: port to MSVC better
23074         MSVC standard headers use __declspec(noreturn), so #define noreturn
23075         to empty on that platform.  Reported by Bruno Haible in
23076         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
23077         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
23078         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
23080 2012-02-28  Bruno Haible  <bruno@clisp.org>
23082         doc: Mention new glibc headers and functions.
23083         * doc/glibc-headers/uchar.texi: New file.
23084         * doc/glibc-functions/aligned_alloc.texi: New file.
23085         * doc/glibc-functions/c16rtomb.texi: New file.
23086         * doc/glibc-functions/c32rtomb.texi: New file.
23087         * doc/glibc-functions/clock_adjtime.texi: New file.
23088         * doc/glibc-functions/fanotify_init.texi: New file.
23089         * doc/glibc-functions/fanotify_mark.texi: New file.
23090         * doc/glibc-functions/inet6_opt_append.texi: New file.
23091         * doc/glibc-functions/inet6_opt_find.texi: New file.
23092         * doc/glibc-functions/inet6_opt_finish.texi: New file.
23093         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
23094         * doc/glibc-functions/inet6_opt_init.texi: New file.
23095         * doc/glibc-functions/inet6_opt_next.texi: New file.
23096         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
23097         * doc/glibc-functions/inet6_rth_add.texi: New file.
23098         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
23099         * doc/glibc-functions/inet6_rth_init.texi: New file.
23100         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
23101         * doc/glibc-functions/inet6_rth_segments.texi: New file.
23102         * doc/glibc-functions/inet6_rth_space.texi: New file.
23103         * doc/glibc-functions/login.texi: New file.
23104         * doc/glibc-functions/mbrtoc16.texi: New file.
23105         * doc/glibc-functions/mbrtoc32.texi: New file.
23106         * doc/glibc-functions/name_to_handle_at.texi: New file.
23107         * doc/glibc-functions/ntp_gettimex.texi: New file.
23108         * doc/glibc-functions/open_by_handle_at.texi: New file.
23109         * doc/glibc-functions/prlimit.texi: New file.
23110         * doc/glibc-functions/process_vm_readv.texi: New file.
23111         * doc/glibc-functions/process_vm_writev.texi: New file.
23112         * doc/glibc-functions/recvmmsg.texi: New file.
23113         * doc/glibc-functions/scandirat.texi: New file.
23114         * doc/glibc-functions/sendmmsg.texi: New file.
23115         * doc/glibc-functions/setns.texi: New file.
23116         * doc/glibc-functions/timespec_get.texi: New file.
23117         * doc/gnulib.texi: Include them.
23118         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
23119         sections.
23120         Reported by Eric Blake.
23122 2012-02-28  Bruno Haible  <bruno@clisp.org>
23124         Avoid compilation errors with MSVC option -fp:strict.
23125         * lib/floor.c: Use MSVC specific pragma fenv_access.
23126         * lib/ceil.c: Likewise.
23127         * lib/trunc.c: Likewise.
23128         * lib/round.c: Likewise.
23129         * lib/rint.c: Likewise.
23130         * lib/fma.c: Likewise.
23131         * lib/integer_length.c: Likewise.
23132         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23133         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23134         * tests/test-floor2.c: Likewise.
23135         * tests/test-floorf2.c: Likewise.
23136         * tests/test-ceil2.c: Likewise.
23137         * tests/test-ceilf2.c: Likewise.
23138         * tests/test-trunc2.c: Likewise.
23139         * tests/test-truncf2.c: Likewise.
23140         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
23142 2012-02-27  Bruno Haible  <bruno@clisp.org>
23144         Tests for module 'sqrtl-ieee'.
23145         * modules/sqrtl-ieee-tests: New file.
23146         * tests/test-sqrtl-ieee.c: New file.
23148         New module 'sqrtl-ieee'.
23149         * modules/sqrtl-ieee: New file.
23151         Tests for module 'sqrt-ieee'.
23152         * modules/sqrt-ieee-tests: New file.
23153         * tests/test-sqrt-ieee.c: New file.
23155         New module 'sqrt-ieee'.
23156         * modules/sqrt-ieee: New file.
23158         Tests for module 'sqrtf-ieee'.
23159         * modules/sqrtf-ieee-tests: New file.
23160         * tests/test-sqrtf-ieee.c: New file.
23161         * tests/test-sqrt-ieee.h: New file.
23163         New module 'sqrtf-ieee'.
23164         * modules/sqrtf-ieee: New file.
23166 2012-02-27  Bruno Haible  <bruno@clisp.org>
23168         remainderl-ieee: Work around test failure on OSF/1.
23169         * m4/remainderl-ieee.m4: New file.
23170         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
23171         present, test whether remainderl works with a zero second argument.
23172         Replace it if not.
23173         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
23174         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
23175         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
23176         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
23177         (Depends-on): Update conditions.
23178         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
23179         (Depends-on): Add remainder-ieee.
23180         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
23181         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
23182         module.
23184         remainderf-ieee: Work around test failure on OSF/1.
23185         * m4/remainderf-ieee.m4: New file.
23186         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
23187         present, test whether remainderf works with a zero second argument.
23188         Replace it if not.
23189         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
23190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
23191         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
23192         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
23193         (Depends-on): Update conditions.
23194         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
23195         (Depends-on): Add remainder-ieee.
23196         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
23197         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
23198         module.
23200         remainder-ieee: Work around test failure on OSF/1.
23201         * m4/remainder-ieee.m4: New file.
23202         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
23203         present, test whether remainder works with a zero second argument.
23204         Replace it if not.
23205         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
23206         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
23207         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
23208         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
23209         (Depends-on): Update dependencies.
23210         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
23211         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
23212         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
23214         Tests for module 'remainderl-ieee'.
23215         * modules/remainderl-ieee-tests: New file.
23216         * tests/test-remainderl-ieee.c: New file.
23218         New module 'remainderl-ieee'.
23219         * modules/remainderl-ieee: New file.
23221         Tests for module 'remainder-ieee'.
23222         * modules/remainder-ieee-tests: New file.
23223         * tests/test-remainder-ieee.c: New file.
23225         New module 'remainder-ieee'.
23226         * modules/remainder-ieee: New file.
23228         Tests for module 'remainderf-ieee'.
23229         * modules/remainderf-ieee-tests: New file.
23230         * tests/test-remainderf-ieee.c: New file.
23231         * tests/test-remainder-ieee.h: New file.
23233         New module 'remainderf-ieee'.
23234         * modules/remainderf-ieee: New file.
23236 2012-02-27  Bruno Haible  <bruno@clisp.org>
23238         modff, modfl: Fix configure syntax error.
23239         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
23240         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
23242 2012-02-27  Bruno Haible  <bruno@clisp.org>
23244         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
23245         * m4/fmodl-ieee.m4: New file.
23246         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
23247         whether fmodl works with zero arguments. Replace it if not.
23248         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
23249         (Depends-on): Add fmod-ieee.
23250         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
23251         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
23253         fmodf-ieee: Work around test failure on OSF/1.
23254         * m4/fmodf-ieee.m4: New file.
23255         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
23256         whether fmodf works with zero arguments. Replace it if not.
23257         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
23258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
23259         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
23260         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
23261         (Depends-on): Update dependencies.
23262         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
23263         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
23264         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
23266         fmodf-ieee: Work around test failure on MSVC 9.
23267         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
23268         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
23270         fmod-ieee: Work around test failures on OSF/1, mingw.
23271         * m4/fmod-ieee.m4: New file.
23272         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
23273         whether fmod works with zero arguments. Replace it if not.
23274         * lib/math.in.h (fmod): New declaration.
23275         * lib/fmod.c: New file.
23276         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
23277         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
23278         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
23279         * modules/fmod (Files): Add lib/fmod.c.
23280         (Depends-on): Add math, isinf, trunc, fma.
23281         (configure.ac): Arrange to compile lib/fmod.c if needed.
23282         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
23283         m4/signbit.m4.
23284         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
23285         * tests/test-math-c++.cc: Check the declaration of fmod.
23286         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
23288         fmodl-ieee: Fix test failures.
23289         * lib/fmodl.c (fmodl): Treat Inf specially.
23290         * modules/fmodl (Depends-on): Add isinf.
23292         Tests for module 'fmodl-ieee'.
23293         * modules/fmodl-ieee-tests: New file.
23294         * tests/test-fmodl-ieee.c: New file.
23296         New module 'fmodl-ieee'.
23297         * modules/fmodl-ieee: New file.
23299         Tests for module 'fmod-ieee'.
23300         * modules/fmod-ieee-tests: New file.
23301         * tests/test-fmod-ieee.c: New file.
23303         New module 'fmod-ieee'.
23304         * modules/fmod-ieee: New file.
23306         Tests for module 'fmodf-ieee'.
23307         * modules/fmodf-ieee-tests: New file.
23308         * tests/test-fmodf-ieee.c: New file.
23309         * tests/test-fmod-ieee.h: New file.
23311         New module 'fmodf-ieee'.
23312         * modules/fmodf-ieee: New file.
23314 2012-02-27  Bruno Haible  <bruno@clisp.org>
23316         Tests for module 'rintl-ieee'.
23317         * modules/rintl-ieee-tests: New file.
23318         * tests/test-rintl-ieee.c: New file.
23320         New module 'rintl-ieee'.
23321         * modules/rintl-ieee: New file.
23323         Tests for module 'rint-ieee'.
23324         * modules/rint-ieee-tests: New file.
23325         * tests/test-rint-ieee.c: New file.
23327         New module 'rint-ieee'.
23328         * modules/rint-ieee: New file.
23330         Tests for module 'rintf-ieee'.
23331         * modules/rintf-ieee-tests: New file.
23332         * tests/test-rintf-ieee.c: New file.
23333         * tests/test-rint-ieee.h: New file.
23335         New module 'rintf-ieee'.
23336         * modules/rintf-ieee: New file.
23338 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
23340         regex: re_search etc. should return -2 when memory exhausted
23341         This bug was uncovered when testing 'grep'.  Without the fix,
23342         re_search and friends return -1 when memory is exhausted, but -1
23343         means no match, and this causes grep to falsely report no-match
23344         instead of memory-exhaustion.  See
23345         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
23346         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
23347         trouble; this can occur if re_search_internal ran out of memory.
23349 2012-02-26  Bruno Haible  <bruno@clisp.org>
23351         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
23352         * m4/modfl-ieee.m4: New file.
23353         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
23354         whether modfl works with Inf. Replace it if not.
23355         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
23356         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
23357         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
23358         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
23359         (Depends-on): Update dependencies.
23360         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
23361         m4/signbit.m4.
23362         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
23363         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
23365         modfl-ieee: Fix dependencies.
23366         * modules/modfl-ieee (Depends-on): Add modf-ieee.
23368         modfl-ieee: Fix test failures.
23369         * lib/modfl.c (modfl): Treat NaN and Inf specially.
23370         * modules/modfl (Depends-on): Add isfinite, isinf.
23372         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
23373         * m4/modff-ieee.m4: New file.
23374         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
23375         whether modff works with NaN and Inf. Replace it if not.
23376         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
23377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
23378         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
23379         * modules/modff (configure.ac): Consider REPLACE_MODFF.
23380         (Depends-on): Update dependencies.
23381         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
23382         m4/signbit.m4.
23383         (Depends-on): Add modf-ieee.
23384         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
23385         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
23387         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
23388         * m4/modf-ieee.m4: New file.
23389         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
23390         whether modf works with NaN and Inf. Replace it if not.
23391         * lib/math.in.h (modf): New declaration.
23392         * lib/modf.c: New file.
23393         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
23394         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
23395         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
23396         * modules/modf (Files): Add lib/modf.c.
23397         (Depends-on): Add math, isfinite, trunc, isinf.
23398         (configure.ac): Addrange to compile lib/modf.c if needed.
23399         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
23400         m4/signbit.m4.
23401         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
23402         * tests/test-math-c++.cc: Check the declaration of modf.
23403         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
23405         Tests for module 'modfl-ieee'.
23406         * modules/modfl-ieee-tests: New file.
23407         * tests/test-modfl-ieee.c: New file.
23409         New module 'modfl-ieee'.
23410         * modules/modfl-ieee: New file.
23412         Tests for module 'modf-ieee'.
23413         * modules/modf-ieee-tests: New file.
23414         * tests/test-modf-ieee.c: New file.
23416         New module 'modf-ieee'.
23417         * modules/modf-ieee: New file.
23419         Tests for module 'modff-ieee'.
23420         * modules/modff-ieee-tests: New file.
23421         * tests/test-modff-ieee.c: New file.
23422         * tests/test-modf-ieee.h: New file.
23424         New module 'modff-ieee'.
23425         * modules/modff-ieee: New file.
23427 2012-02-26  Bruno Haible  <bruno@clisp.org>
23429         Tests for module 'fabsl-ieee'.
23430         * modules/fabsl-ieee-tests: New file.
23431         * tests/test-fabsl-ieee.c: New file.
23433         New module 'fabsl-ieee'.
23434         * modules/fabsl-ieee: New file.
23436         Tests for module 'fabs-ieee'.
23437         * modules/fabs-ieee-tests: New file.
23438         * tests/test-fabs-ieee.c: New file.
23440         New module 'fabs-ieee'.
23441         * modules/fabs-ieee: New file.
23443         Tests for module 'fabsf-ieee'.
23444         * modules/fabsf-ieee-tests: New file.
23445         * tests/test-fabsf-ieee.c: New file.
23446         * tests/test-fabs-ieee.h: New file.
23448         New module 'fabsf-ieee'.
23449         * modules/fabsf-ieee: New file.
23451 2012-02-26  Bruno Haible  <bruno@clisp.org>
23453         Tests for module 'fmal-ieee'.
23454         * modules/fmal-ieee-tests: New file.
23455         * tests/test-fmal-ieee.c: New file.
23457         New module 'fmal-ieee'.
23458         * modules/fmal-ieee: New file.
23460         Tests for module 'fma-ieee'.
23461         * modules/fma-ieee-tests: New file.
23462         * tests/test-fma-ieee.c: New file.
23464         New module 'fma-ieee'.
23465         * modules/fma-ieee: New file.
23467         Tests for module 'fmaf-ieee'.
23468         * modules/fmaf-ieee-tests: New file.
23469         * tests/test-fmaf-ieee.c: New file.
23470         * tests/test-fma-ieee.h: New file.
23472         New module 'fmaf-ieee'.
23473         * modules/fmaf-ieee: New file.
23475 2012-02-26  Bruno Haible  <bruno@clisp.org>
23477         Tests for module 'ldexpl-ieee'.
23478         * modules/ldexpl-ieee-tests: New file.
23479         * tests/test-ldexpl-ieee.c: New file.
23481         New module 'ldexpl-ieee'.
23482         * modules/ldexpl-ieee: New file.
23484         Tests for module 'ldexp-ieee'.
23485         * modules/ldexp-ieee-tests: New file.
23486         * tests/test-ldexp-ieee.c: New file.
23488         New module 'ldexp-ieee'.
23489         * modules/ldexp-ieee: New file.
23491         Tests for module 'ldexpf-ieee'.
23492         * modules/ldexpf-ieee-tests: New file.
23493         * tests/test-ldexpf-ieee.c: New file.
23494         * tests/test-ldexp-ieee.h: New file.
23496         New module 'ldexpf-ieee'.
23497         * modules/ldexpf-ieee: New file.
23499 2012-02-26  Bruno Haible  <bruno@clisp.org>
23501         Refactor frexp*-ieee tests.
23502         * tests/test-frexp-ieee.h: New file.
23503         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
23504         (main): Just call test_function.
23505         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
23506         (main): Just call test_function.
23507         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
23508         (main): Just call test_function.
23509         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
23510         * modules/frexp-ieee-tests (Files): Likewise.
23511         * modules/frexpl-ieee-tests (Files): Likewise.
23513         Tests for module 'frexpl-ieee'.
23514         * modules/frexpl-ieee-tests: New file.
23515         * tests/test-frexpl-ieee.c: New file.
23517         New module 'frexpl-ieee'.
23518         * modules/frexpl-ieee: New file.
23520         Tests for module 'frexp-ieee'.
23521         * modules/frexp-ieee-tests: New file.
23522         * tests/test-frexp-ieee.c: New file.
23524         New module 'frexp-ieee'.
23525         * modules/frexp-ieee: New file.
23527         Tests for module 'frexpf-ieee'.
23528         * modules/frexpf-ieee-tests: New file.
23529         * tests/test-frexpf-ieee.c: New file.
23531         New module 'frexpf-ieee'.
23532         * modules/frexpf-ieee: New file.
23534 2012-02-26  Bruno Haible  <bruno@clisp.org>
23536         roundl-ieee tests: More tests.
23537         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23538         (main): Add tests for [MX] shaded specification in POSIX.
23539         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23540         (Depends-on): Add isnanl-nolibm.
23542         round-ieee tests: More tests.
23543         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23544         (main): Add tests for [MX] shaded specification in POSIX.
23545         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23546         (Depends-on): Add isnand-nolibm.
23548         roundf-ieee tests: More tests.
23549         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23550         (main): Add tests for [MX] shaded specification in POSIX.
23551         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23552         (Depends-on): Add isnanf-nolibm.
23554         truncl-ieee tests: More tests.
23555         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23556         (main): Add tests for [MX] shaded specification in POSIX.
23557         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23558         (Depends-on): Add isnanl-nolibm.
23560         trunc-ieee tests: More tests.
23561         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23562         (main): Add tests for [MX] shaded specification in POSIX.
23563         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23564         (Depends-on): Add isnand-nolibm.
23566         truncf-ieee tests: More tests.
23567         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23568         (main): Add tests for [MX] shaded specification in POSIX.
23569         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23570         (Depends-on): Add isnanf-nolibm.
23572         ceill-ieee tests: More tests.
23573         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23574         (main): Add tests for [MX] shaded specification in POSIX.
23575         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23576         (Depends-on): Add isnanl-nolibm.
23578         ceil-ieee tests: More tests.
23579         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23580         (main): Add tests for [MX] shaded specification in POSIX.
23581         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23582         (Depends-on): Add isnand-nolibm.
23584         ceilf-ieee tests: More tests.
23585         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23586         (main): Add tests for [MX] shaded specification in POSIX.
23587         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23588         (Depends-on): Add isnanf-nolibm.
23590         floorl-ieee tests: More tests.
23591         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23592         (main): Add tests for [MX] shaded specification in POSIX.
23593         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23594         (Depends-on): Add isnanl-nolibm.
23596         floor-ieee tests: More tests.
23597         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23598         (main): Add tests for [MX] shaded specification in POSIX.
23599         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23600         (Depends-on): Add isnand-nolibm.
23602         floorf-ieee tests: More tests.
23603         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23604         (main): Add tests for [MX] shaded specification in POSIX.
23605         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23606         (Depends-on): Add isnanf-nolibm.
23608 2012-02-26  Bruno Haible  <bruno@clisp.org>
23610         fpieee: More comments.
23611         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
23613 2012-02-25  Bruno Haible  <bruno@clisp.org>
23615         Tests for module 'log10l'.
23616         * modules/log10l-tests: New file.
23617         * tests/test-log10l.c: New file.
23618         * tests/test-math-c++.cc: Check the declaration of log10l.
23620         New module 'log10l'.
23621         * lib/math.in.h (log10l): New declaration.
23622         * lib/log10l.c: New file.
23623         * m4/log10l.m4: New file.
23624         * modules/log10l: New file.
23625         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
23626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
23627         HAVE_DECL_LOG10L.
23628         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
23629         HAVE_DECL_LOG10L.
23630         * doc/posix-functions/log10l.texi: Mention the new module.
23632 2012-02-25  Bruno Haible  <bruno@clisp.org>
23634         fmodl, remainder*: Avoid wrong results due to rounding errors.
23635         * lib/fmodl.c (fmodl): Correct the result if it is not within the
23636         expected bounds.
23637         * lib/remainderf.c (remainderf): Likewise.
23638         * lib/remainder.c (remainder): Likewise.
23639         * lib/remainderl.c (remainderl): Likewise.
23641 2012-02-25  Bruno Haible  <bruno@clisp.org>
23643         Tests for module 'remainderl'.
23644         * modules/remainderl-tests: New file.
23645         * tests/test-remainderl.c: New file.
23646         * tests/test-math-c++.cc: Check the declaration of remainderl.
23648         New module 'remainderl'.
23649         * lib/math.in.h (remainderl): New declaration.
23650         * lib/remainderl.c: New file.
23651         * m4/remainderl.m4: New file.
23652         * modules/remainderl: New file.
23653         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
23654         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
23655         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
23656         HAVE_REMAINDERL.
23657         * doc/posix-functions/remainderl.texi: Mention the new module.
23659 2012-02-25  Bruno Haible  <bruno@clisp.org>
23661         Tests for module 'remainderf'.
23662         * modules/remainderf-tests: New file.
23663         * tests/test-remainderf.c: New file.
23664         * tests/test-math-c++.cc: Check the declaration of remainderf.
23666         New module 'remainderf'.
23667         * lib/math.in.h (remainderf): New declaration.
23668         * lib/remainderf.c: New file.
23669         * m4/remainderf.m4: New file.
23670         * modules/remainderf: New file.
23671         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
23672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
23673         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
23674         HAVE_REMAINDERF.
23675         * doc/posix-functions/remainderf.texi: Mention the new module.
23677 2012-02-25  Bruno Haible  <bruno@clisp.org>
23679         remainder: Support for MSVC.
23680         * lib/math.in.h (remainder): New declaration.
23681         * lib/remainder.c: New file.
23682         * m4/remainder.m4: New file.
23683         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
23684         (Depends-on): Add math, round, fma.
23685         (configure.ac): Use results of gl_FUNC_REMAINDER.
23686         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
23687         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
23688         HAVE_DECL_REMAINDER.
23689         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
23690         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
23691         * tests/test-math-c++.cc: Check the declaration of remainder.
23692         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
23693         problems are fixed.
23695 2012-02-25  Bruno Haible  <bruno@clisp.org>
23697         Tests for module 'fmodl'.
23698         * modules/fmodl-tests: New file.
23699         * tests/test-fmodl.c: New file.
23700         * tests/test-math-c++.cc: Check the declaration of fmodl.
23702         New module 'fmodl'.
23703         * lib/math.in.h (fmodl): New declaration.
23704         * lib/fmodl.c: New file.
23705         * m4/fmodl.m4: New file.
23706         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
23707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
23708         REPLACE_FMODL.
23709         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
23710         REPLACE_FMODL.
23711         * modules/fmodl: New file.
23712         * doc/posix-functions/fmodl.texi: Mention the new module.
23714 2012-02-25  Bruno Haible  <bruno@clisp.org>
23716         Tests for module 'modfl'.
23717         * modules/modfl-tests: New file.
23718         * tests/test-modfl.c: New file.
23719         * tests/test-math-c++.cc: Check the declaration of modfl.
23721         New module 'modfl'.
23722         * lib/math.in.h (modfl): New declaration.
23723         * lib/modfl.c: New file.
23724         * m4/modfl.m4: New file.
23725         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
23726         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
23727         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
23728         * modules/modfl: New file.
23729         * doc/posix-functions/modfl.texi: Mention the new module.
23731 2012-02-25  Bruno Haible  <bruno@clisp.org>
23733         Tests for module 'fabsl'.
23734         * modules/fabsl-tests: New file.
23735         * tests/test-fabsl.c: New file.
23736         * tests/test-math-c++.cc: Check the declaration of fabsl.
23738         New module 'fabsl'.
23739         * lib/math.in.h (fabsl): New declaration.
23740         * lib/fabsl.c: New file.
23741         * m4/fabsl.m4: New file.
23742         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
23743         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
23744         REPLACE_FABSL.
23745         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
23746         REPLACE_FABSL.
23747         * modules/fabsl: New file.
23748         * doc/posix-functions/fabsl.texi: Mention the new module.
23750 2012-02-25  Bruno Haible  <bruno@clisp.org>
23752         fabs tests: More tests.
23753         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
23754         (zero): New variable.
23755         (main): Add tests for signed zero.
23756         * modules/fabs-tests (Files): Add tests/minus-zero.h.
23758         fabsf tests: More tests.
23759         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
23760         (zero): New variable.
23761         (main): Add tests for signed zero.
23762         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
23764 2012-02-24  Bruno Haible  <bruno@clisp.org>
23766         atanl: Provide function definition on MSVC.
23767         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
23768         function pointer.
23769         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
23771 2012-02-24  Bruno Haible  <bruno@clisp.org>
23773         acosl: Provide function definition on MSVC.
23774         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
23775         function pointer.
23776         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
23778 2012-02-24  Bruno Haible  <bruno@clisp.org>
23780         asinl: Provide function definition on MSVC.
23781         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
23782         function pointer.
23783         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
23785 2012-02-24  Bruno Haible  <bruno@clisp.org>
23787         tanl: Provide function definition on MSVC.
23788         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
23789         function pointer.
23790         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
23792 2012-02-24  Bruno Haible  <bruno@clisp.org>
23794         cosl: Provide function definition on MSVC.
23795         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
23796         function pointer.
23797         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
23799 2012-02-24  Bruno Haible  <bruno@clisp.org>
23801         sinl: Provide function definition on MSVC.
23802         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
23803         function pointer.
23804         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
23806 2012-02-24  Bruno Haible  <bruno@clisp.org>
23808         logl: Provide function definition on MSVC.
23809         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
23810         function pointer.
23811         * lib/math.in.h (logl): Undefine if it does not exist as a function.
23813 2012-02-24  Bruno Haible  <bruno@clisp.org>
23815         expl: Provide function definition on MSVC.
23816         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
23817         function pointer.
23818         * lib/math.in.h (expl): Undefine if it does not exist as a function.
23820 2012-02-24  Bruno Haible  <bruno@clisp.org>
23822         sqrtl: Provide function definition on MSVC.
23823         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
23824         a function pointer.
23825         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
23827 2012-02-24  Bruno Haible  <bruno@clisp.org>
23829         ceill: Provide function definition on MSVC.
23830         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
23831         used as a function pointer.
23832         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
23834 2012-02-24  Bruno Haible  <bruno@clisp.org>
23836         floorl: Provide function definition on MSVC.
23837         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
23838         used as a function pointer.
23839         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
23841 2012-02-24  Bruno Haible  <bruno@clisp.org>
23843         ceilf: Provide function definition on MSVC.
23844         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
23845         used as a function pointer.
23846         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
23848 2012-02-24  Bruno Haible  <bruno@clisp.org>
23850         floorf: Provide function definition on MSVC.
23851         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
23852         used as a function pointer.
23853         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
23855 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23857         stdnoreturn: new module
23858         This implements a replacement for C11's <stdnoreturn.h>.
23859         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
23860         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
23861         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
23862         * tests/test-stdnoreturn.c: New files.
23864 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
23866         regex: fix false multibyte matches in some regular expressions
23867         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
23868         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
23869         * lib/regex_internal.c (re_string_skip_chars):
23870         Fix miscomputation of remain_len that may cause incomplete
23871         multi-byte character and false match.
23873 2012-02-24  Jim Meyering  <meyering@redhat.com>
23875         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
23876         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
23877         uses with "==" *before* the call, e.g., 0 == strcmp (...)
23878         Remove now-unnecessary str''cmp obfuscation.
23879         Suggested by Akim Demaille.
23881 2012-02-24  Bruno Haible  <bruno@clisp.org>
23883         streq: Rename macro.
23884         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
23885         * NEWS: Mention the change.
23886         * lib/mbrtowc.c (mbrtowc): Update.
23887         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
23888         * lib/wcwidth.c (wcwidth): Update.
23889         Suggested by Akim Demaille and Jim Meyering.
23891 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
23893         regex: fix typo in definition of MIN
23894         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
23895         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
23897 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
23898             Bruno Haible  <bruno@clisp.org>
23900         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
23901         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
23902         entries into a stack-allocated buffer directly.
23903         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
23905 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
23906             Bruno Haible  <bruno@clisp.org>
23908         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
23910          - There were several instances of this pattern:
23912              for (;;) {
23913                n = acl (f, GETACLCNT, 0, NULL);
23914                [ allocate an array A of size N ]
23915                if (acl (f, GETACL, n, a) == n)
23916                  break;
23917              }
23919            This loop might never terminate if some other process is constantly
23920            manipulating the file's ACL.  The loop should be rewritten to
23921            terminate.
23923          - The acl (... GETACLNT ...) call is merely an optimization; its value
23924            is merely a hint as to how big to make the array.  A better
23925            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
23926            and just guess a reasonably-big size, growing the size and trying
23927            again if it's not large enough.  This guarantees termination, and
23928            saves a system call.
23930         * lib/acl-internal.h: Include <limits.h>.
23931         (MIN, SIZE_MAX): New macros.
23932         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
23933         a stack-allocated buffer, and use malloc if it does not fit. Don't
23934         use GETACLCNT.
23935         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
23937 2012-02-19  Bruno Haible  <bruno@clisp.org>
23939         acl: Fix endless loop on Solaris with vxfs.
23940         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
23941         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
23942         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
23943         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
23944         * tests/test-sameacls.c (main)[Solaris]: Likewise.
23945         Reported by Bill Jones in
23946         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
23948 2012-02-19  Bruno Haible  <bruno@clisp.org>
23950         acl: Fix copy-acl test failure on Solaris 11.0.
23951         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
23952         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
23953         that this function returns 0 in some more cases.
23955 2012-02-19  Bruno Haible  <bruno@clisp.org>
23957         acl: Update doc references.
23958         * doc/acl-resources.txt: Update links to Solaris documentation.
23960 2012-02-19  Bruno Haible  <bruno@clisp.org>
23962         Fix test failure in many locales on Solaris 11.
23963         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
23964         'tr' arguments.
23965         * tests/test-pipe-filter-ii1.c (main): Likewise.
23966         * build-aux/bootstrap (check_versions): Run 'tr' command with range
23967         expressions in the C locale.
23968         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23969         * m4/host-os.m4 (gl_HOST_OS): Likewise.
23971 2012-02-19  Bruno Haible  <bruno@clisp.org>
23973         gnulib-tool: Improve usage message.
23974         * gnulib-tool (func_usage): Move doc of --help and --version to the
23975         section "Operation modes".
23977 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
23979         README-release: make it easier to execute commands
23980         * top/README-release: break commands out on to separate lines.
23982 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
23984         GNUmakefile: simplify detection of unconfigured trees
23985         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
23986         whether the tree make is being run from is already configured or
23987         not.  Related simplifications.
23989 2012-02-13  Simon Josefsson  <simon@josefsson.org>
23991         * gnulib-tool (func_usage): Document --help and --version.
23993 2012-02-11  Jim Meyering  <meyering@redhat.com>
23995         bootstrap: don't exit 0 upon gnulib-tool failure
23996         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
23997         its exit status, not 0.
23999 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
24001         README-release: various improvements
24002         * top/README-release: Give a command to push changes for the
24003         release.  Add "distcheck" to list of other pre-release checks.
24004         Fix instance of "make stable" which should be "make TYPE".
24006 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24008         maint: replace FSF snail-mail addresses with URLs
24009         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
24010         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
24011         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
24012         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
24013         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
24014         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
24015         * lib/check-version.c, lib/check-version.h, lib/config.charset:
24016         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
24017         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
24018         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
24019         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
24020         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
24021         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
24022         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
24023         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
24024         * lib/glthread/thread.c, lib/glthread/thread.h:
24025         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
24026         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
24027         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
24028         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
24029         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
24030         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
24031         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
24032         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
24033         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
24034         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
24035         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
24036         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
24037         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
24038         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
24039         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
24040         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
24041         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
24042         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
24043         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
24044         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
24045         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
24046         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
24047         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
24048         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
24049         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
24050         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
24051         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
24052         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
24053         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
24054         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
24055         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
24056         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
24057         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
24058         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
24059         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
24060         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
24061         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
24062         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
24063         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
24064         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
24065         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
24066         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
24067         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
24068         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
24069         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
24070         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
24071         * tests/test-poll.c, tests/test-quotearg-simple.c:
24072         * tests/test-quotearg.c, tests/test-quotearg.h:
24073         * tests/test-round-ieee.c, tests/test-round1.c:
24074         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
24075         * tests/test-roundl-ieee.c, tests/test-roundl.c:
24076         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
24077         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
24078         * tests/test-strerror.c, tests/test-strerror_r.c:
24079         * tests/test-strsignal.c, tests/test-strverscmp.c:
24080         * tests/test-xmemdup0.c:
24081         Replace FSF snail mail addresses with URLs, as per GNU coding
24082         standards.  See glibc bug
24083         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
24085 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
24087         README-release: capitalize a word and split a line
24088         * top/README-release: Fix punctuation and spacing.
24090 2012-02-08  Akim Demaille  <demaille@gostai.com>
24092         fatal-signal: use C prototypes (with explicit void).
24093         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24094         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
24096 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24098         regex: spelling fix
24099         * lib/regexec.c: spelling fix
24101         regex: rely on stdint.h for SIZE_MAX
24102         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
24104 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24106         regex: merge glibc changes
24108         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
24109         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
24110         (init_word_char): Work even if bitset words are not exactly 32 or
24111         64 bits wide.  Don't assume there are no padding bits.
24112         * lib/regex.c [_LIBC]: Do not include <config.h>.
24113         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
24114         and -Wtype-limits.
24115         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
24116         needless disagreement with glibc.  All uses changed.  Define it to
24117         1 only if _GNU_SOURCE, to match glibc.
24118         (_REG_RM_NAME): Remove; no longer needed, since the names in
24119         question are now all protected by __USE_GNU.
24120         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
24121         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
24122         * lib/regex_internal.h (MIN): New macro.
24124         2012-01-03 Ulrich Drepper <drepper@gmail.com>
24125         * lib/regcomp.c (init_word_char): Optimize regex a bit.
24127         2011-12-30 Jakub Jelinek <jakub@redhat.com>
24128         * lib/regex_internal.c (re_string_fetch_byte_case):
24129         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
24130         is miscompiled, and it turns out it is because of an incorrect
24131         attribute on re_string_fetch_byte_case.  Unlike
24132         re_string_peek_byte_case, this one is really not pure, it modifies
24133         memory (increments pstr->cur_idx), and with the pure attribute GCC
24134         assumed it doesn't and it cached the presumed value of
24135         regexp->cur_idx in a variable across the
24136          for (;; ++i)
24137            {
24138              if (i >= BRACKET_NAME_BUF_SIZE)
24139                return REG_EBRACK;
24140              if (token->type == OP_OPEN_CHAR_CLASS)
24141                ch = re_string_fetch_byte_case (regexp);
24142              else
24143                ch = re_string_fetch_byte (regexp);
24144              if (re_string_eoi(regexp))
24145                return REG_EBRACK;
24146              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
24147                break;
24148              elem->opr.name[i] = ch;
24149            }
24151         2011-11-29 Andreas Schwab <schwab@redhat.com>
24152         * lib/regcomp.c (build_equiv_class):
24153         Fix access after end of search string in regex matcher.
24155         2011-11-12 Ulrich Drepper <drepper@redhat.com>
24156         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
24158         2011-10-12 Ulrich Drepper <drepper@redhat.com>
24159         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
24161         2011-10-11 Ulrich Drepper <drepper@redhat.com>
24162         * lib/regcomp.c (parse_branch, parse_sub_exp):
24163         More regex memory leak fixes and tests.
24164         (parse_sub_exp, parse_bracket_exp):
24165         Fix memory leak for some invalid regular expressions.
24167         2011-05-28 Ulrich Drepper <drepper@gmail.com>
24168         * lib/regex_internal.c, lib/regexec.c:
24169         Fix unnecessary overallocation due to incomplete character.  When
24170         incomplete characters are found at the end of a string the code
24171         ran amok and allocated lots of memory.  Stricter limits are now in
24172         place.
24174         2011-05-20 Reuben Thomas <rrt@sc3d.org>
24175         * lib/regex.h: Update documentation.
24177         2011-05-16 Aharon Robbins <arnold@skeeve.com>
24178         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
24180         2010-05-05 Andreas Schwab <schwab@redhat.com>
24181         * lib/regexec.c (find_collation_sequence_value):
24182         Fix lookup of collation sequence value during regexp matching.
24184         2010-01-22 Ulrich Drepper <drepper@redhat.com>
24185         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
24187         2008-01-16 Ulrich Drepper <drepper@redhat.com>
24188         * lib/regex.h: Cleanup namespace.
24190         2007-11-26 Ulrich Drepper <drepper@redhat.com>
24191         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
24193         2007-08-26 Ulrich Drepper <drepper@redhat.com>
24194         * lib/regex_internal.h: Prevent some declarations and definitions
24195         to be seen when used in tests.
24197         2005-05-06 Ulrich Drepper <drepper@redhat.com>
24198         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
24199         __libc_lock_* macros if not _LIBC.
24200         (struct re_dfa_t): Add lock.
24202 2012-02-07  Eric Blake  <eblake@redhat.com>
24204         maint.mk: also prohibit lower-case @var@
24205         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
24206         lower case, like @top_srcdir@.
24208 2012-02-04  Eric Blake  <eblake@redhat.com>
24210         canonicalize: avoid uninitialized memory use
24211         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
24212         random '/' left in dest.
24213         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
24215 2012-02-04  Bruno Haible  <bruno@clisp.org>
24217         isatty: Fix test failure of ptsname_r on native Windows.
24218         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
24219         and don't set errno.
24220         (isatty): Test first whether fd is valid. Set errno when returning 0.
24222 2012-02-04  Bruno Haible  <bruno@clisp.org>
24224         spawn-pipe tests: Fix a NULL program name in a diagnostic.
24225         * tests/test-spawn-pipe-main.c: Include progname.h.
24226         (main): Invoke set_program_name.
24227         * modules/spawn-pipe-tests (Depends-on): Add progname.
24229         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
24230         * tests/test-nonblocking-socket-main.c: Include progname.h.
24231         (main): Invoke set_program_name.
24232         * modules/nonblocking-socket-tests (Depends-on): Add progname.
24234         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
24235         * tests/test-nonblocking-pipe-main.c: Include progname.h.
24236         (main): Invoke set_program_name.
24237         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
24239 2012-02-04  Eric Blake  <eblake@redhat.com>
24241         canonicalize-lgpl: fix // handling
24242         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
24244         canonicalize: fix // handling
24245         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
24246         /// to //, since only // is special.
24248 2012-02-04  Bruno Haible  <bruno@clisp.org>
24250         ioctl: Fix test failure on native Windows.
24251         * lib/ioctl.c: Include msvc-nothrow.h.
24252         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
24254 2012-02-04  Bruno Haible  <bruno@clisp.org>
24256         fsync: Avoid test failure on native Windows.
24257         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
24258         read-only.
24260 2012-02-04  Bruno Haible  <bruno@clisp.org>
24262         sys_select: Avoid syntax error on OpenBSD 5.0.
24263         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
24264         currently being included, just include the system's <sys/select.h>.
24266 2012-02-04  Bruno Haible  <bruno@clisp.org>
24268         sys_select: Avoid syntax error on OpenBSD 5.0.
24269         * lib/sys_select.in.h: Include <signal.h> only after the include_next
24270         <sys/select.h>, not before.
24271         Reported by Jiri B <jirib@devio.us>.
24273 2012-02-04  Bruno Haible  <bruno@clisp.org>
24275         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
24276         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
24277         global variables.
24278         * tests/test-get-rusage-data.c (main): Likewise.
24279         Reported by Jim Meyering.
24281 2012-02-04  Bruno Haible  <bruno@clisp.org>
24283         stdioext: Fix last commit.
24284         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
24286 2012-02-03  Bruno Haible  <bruno@clisp.org>
24288         stdioext: Add tentative support for Plan9.
24289         * lib/stdio-impl.h: Include <errno.h>.
24290         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
24291         * lib/freadable.c (freadable): Likewise.
24292         * lib/fwritable.c (fwritable): Likewise.
24293         * lib/fbufmode.c (fbufmode): Likewise.
24294         * lib/freading.c (freading): Likewise.
24295         * lib/fwriting.c (fwriting): Likewise.
24296         * lib/freadptr.c (freadptr): Likewise.
24297         * lib/freadseek.c (freadptrinc): Likewise.
24298         * lib/freadahead.c (freadahead): Likewise.
24299         * lib/fpurge.c (fpurge): Likewise.
24300         * lib/fseeko.c (rpl_fseeko): Likewise.
24301         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
24302         Reported by Jens Staal <staal1978@gmail.com>.
24304 2012-02-02  Jim Meyering  <meyering@redhat.com>
24306         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
24307         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
24308         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
24309         not even to try to add the attribute.  Instead, add a pragma to suppress
24310         the suggestion/warning.
24312 2012-01-31  Karl Berry  <karl@gnu.org>
24314         setstate doc: typo.
24315         * doc/posix-functions/setstate.texi (setstate): { not (.
24317 2012-01-31  Bruno Haible  <bruno@clisp.org>
24319         popen: Make more robust on Windows.
24320         * lib/popen.c: On native Windows, use the _popen based code even if
24321         HAVE_POPEN is set.
24322         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
24323         environment variable on native Windows.
24325 2012-01-30  Bruno Haible  <bruno@clisp.org>
24327         pclose: Fix typo.
24328         * lib/stdio.in.h (pclose): Fix typo in warning message.
24330 2012-01-30  Bruno Haible  <bruno@clisp.org>
24332         doc about getlogin_r, setstate.
24333         * doc/posix-functions/getlogin_r.texi: List the incompatible
24334         declaration problem under "not fixed by gnulib".
24335         * doc/posix-functions/setstate.texi: Mention incompatible declaration
24336         problem on Solaris 11 and other platforms.
24338 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
24339             Bruno Haible  <bruno@clisp.org>
24341         poll tests: Make test more robust.
24342         * tests/test-poll.c: Include macros.h.
24343         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
24344         return value of various I/O operations.
24345         * modules/poll-tests (Files): Add tests/macros.h.
24347 2012-01-30  Bruno Haible  <bruno@clisp.org>
24349         sys_stat: Fix support for mingw64 and MSVC.
24350         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
24351         header files already do it.
24352         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
24353         stat itself.
24354         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
24356 2012-01-30  Bruno Haible  <bruno@clisp.org>
24358         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
24359         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
24360         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
24362 2012-01-29  Bruno Haible  <bruno@clisp.org>
24364         quotearg: Fix test failure on MacOS X 10.5.
24365         * tests/test-quotearg-simple.c: Include localcharset.h.
24366         (main): If the locale encoding is not ASCII, bypass the tests of
24367         locale_quoting_style and clocale_quoting_style.
24368         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
24370 2012-01-29  Jim Meyering  <meyering@redhat.com>
24372         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
24373         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
24374         detect uses of canonicalize_file_name.
24376 2012-01-28  Bruno Haible  <bruno@clisp.org>
24378         test-framework-sh: Fix test failure with AIX 7.1 diff.
24379         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
24380         in column 1, like 'diff -c' does.
24381         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
24382         whether 'diff -u' is used. Instead, test whether the output contains
24383         some '@' character.
24385 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24387         strtoimax: eliminate need for stdint.h, inttypes.h checks
24388         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
24389         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
24390         the prerequisites for a recently-introduced strtoimax test.
24391         I guess this might cause strtoimax to be replaced when not
24392         strictly necessary on older hosts, but this shouldn't introduce
24393         any bugs and it should make Emacs 'configure' faster on typical
24394         modern hosts.  Problem discovered when importing the latest gnulib
24395         to an Emacs test version.
24396         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
24398 2012-01-28  Bruno Haible  <bruno@clisp.org>
24400         sys_time: Override 'struct timeval' on some native Windows platforms.
24401         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
24402         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
24403         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
24404         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
24405         needs to be overridden.
24406         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
24407         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
24408         * tests/test-sys_select.c: Check that the tv_sec member has the same
24409         size as a 'time_t'.
24410         * tests/test-sys_time.c: Likewise.
24411         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
24412         is set, set also REPLACE_GETTIMEOFDAY.
24413         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
24414         convert the resulting 'struct timeval' before returning.
24415         * lib/select.c: Include <sys/time.h>.
24416         (select, timeval): Undefine at the right place.
24417         * modules/select (Depends-on): Add sys_time.
24418         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
24419         some Windows platforms.
24420         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
24422 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
24424         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
24425         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
24426         an integer.
24427         * lib/fcntl.c (dupfd): Likewise.
24428         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
24430 2012-01-28  Bruno Haible  <bruno@clisp.org>
24432         fcntl: Avoid compilation error on native Windows.
24433         * modules/fcntl (Depends-on): Add 'close'.
24435 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
24437         select, poll, isatty: Avoid warnings on x86_64 mingw64.
24438         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
24439         pointer to an integer.
24440         * lib/poll.c (IsConsoleHandle): Likewise.
24441         * lib/isatty.c (IsConsoleHandle): Likewise.
24443 2012-01-28  Jim Meyering  <meyering@redhat.com>
24445         doc: clarify README-release
24446         * top/README-release: Clarify: you should make a point to have
24447         the latest stable versions of build tools in your PATH, and the
24448         reference to buildreq is solely for its list of tool names, not
24449         for its minimal-functional version numbers.
24450         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
24452         maint.mk: use more readable (yet functionally equivalent) quoting
24453         It is common to quote a single quote in a single quoted string like
24454         this:  '...'\''...'.  Unless you know the idiom, that looks like
24455         gibberish, so prefer to double-quote the string when possible.
24456         Then you can use a more readable, lone single quote: "...'..."
24457         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
24458         "don't" is more readable than the equivalent 'don'\''t'.
24459         (sc_cast_of_x_alloc_return_value): Likewise.
24460         (sc_cast_of_alloca_return_value): Likewise.
24461         (sc_makefile_path_separator_check): Similar: use ":" in '...',
24462         rather than '\'':'\''.
24464 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
24466         stdalign: relax _Alignof and tighten _Alignas test
24467         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
24468         as it was too strict: alignof must divide offsetof, but it need
24469         not equal offsetof.  Inspired by Joseph S. Myers's comment
24470         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
24471         Conversely, tighten the _Alignas test a bit, as the resulting
24472         alignment must be exactly 8.
24474 2012-01-27  Bruno Haible  <bruno@clisp.org>
24476         stdalign: Document the last change.
24477         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
24479 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
24481         stdalign: check that alignof and offsetof are consistent
24482         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
24483         Problem reported for gnulib by Richard W.M. Jones in
24484         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
24486 2012-01-27  Jim Meyering  <meyering@redhat.com>
24488         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
24489         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
24490         convert a sequence with gaps to the minimal containing range.
24491         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
24492         * tests/test-update-copyright.sh: Test for this.
24493         The FSF confirmed it is ok to do this, assuming there is at
24494         least one significant change per year in the affected range:
24495         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
24497 2012-01-26  Bruno Haible  <bruno@clisp.org>
24499         pipe2: refine doc about thread-safety
24500         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
24501         multithread-safety problem.
24502         * doc/glibc-functions/accept4.texi: Likewise.
24504 2012-01-26  Bruno Haible  <bruno@clisp.org>
24506         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
24507         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
24508         In the test program, include <fcntl.h>, for O_RDONLY.
24510 2012-01-26  Eric Blake  <eblake@redhat.com>
24512         pipe2: document lack of thread-safety in replacement
24513         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
24514         issue in replacement.
24515         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24516         Based on a report by Eric Wong.
24518 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
24519             Bruno Haible  <bruno@clisp.org>
24521         malloca: Avoid warnings on x86_64 mingw64.
24522         * lib/malloca.c: Include <stdint.h>.
24523         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
24524         * modules/malloca (Depends-on): Add stdint.
24525         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
24527 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24529         obstack: remove __STDC__ conditionals
24530         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
24531         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
24532         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
24533         m4/include_next.m4 as the only gnulib-maintained places that still
24534         refer to __STDC__.
24536 2012-01-24  Bruno Haible  <bruno@clisp.org>
24538         havelib: Modern quoting.
24539         * build-aux/config.rpath: Quote 'like this', not `like this', as per
24540         the recent change to the GNU coding standards.
24542 2012-01-24  Bruno Haible  <bruno@clisp.org>
24544         stdint: Improve support for Android.
24545         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
24546         Reported by Simon Josefsson <simon@josefsson.org>.
24548 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24550         doc: omit trailing empty lines from INSTALL etc.
24551         * doc/Makefile (INSTALL): Omit trailing empty lines.
24552         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
24553         omit trailing empty lines.  This simplifies the build procedure.
24555 2012-01-23  Jim Meyering  <meyering@redhat.com>
24557         tests: avoid spurious warnings about gl_sockets_startup
24558         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
24559         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
24560         reporting a "statement with no effect".
24561         * tests/test-accept.c (main): Mark as "(void)".
24562         * tests/test-accept4.c (main): Likewise.
24563         * tests/test-bind.c (main): Likewise.
24564         * tests/test-connect.c (main): Likewise.
24565         * tests/test-getpeername.c (main): Likewise.
24566         * tests/test-getsockname.c (main): Likewise.
24567         * tests/test-getsockopt.c (main): Likewise.
24568         * tests/test-listen.c (main): Likewise.
24569         * tests/test-recv.c (main): Likewise.
24570         * tests/test-recvfrom.c (main): Likewise.
24571         * tests/test-send.c (main): Likewise.
24572         * tests/test-sendto.c (main): Likewise.
24573         * tests/test-setsockopt.c (main): Likewise.
24574         * tests/test-shutdown.c (main): Likewise.
24576 2012-01-21  Bruno Haible  <bruno@clisp.org>
24578         locale-fr.m4: Fix for Android.
24579         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
24580         failure of the test program on Bionic libc.
24582 2012-01-21  Jim Meyering  <meyering@redhat.com>
24584         bootstrap: fail when bootstrap_post_import_hook fails
24585         Otherwise, it's far too easy to miss diagnostics emitted
24586         between gnulib-tool's output and that of running configure.
24587         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
24589 2012-01-17  Jim Meyering  <meyering@redhat.com>
24591         maint: enable sc_trailing_blank
24592         * build-aux/pmccabe.css: Remove trailing blanks.
24593         * doc/acl-cygwin.txt: Likewise.
24594         * doc/gnu-oids.texi: Likewise
24595         * cfg.mk: Enable sc_trailing_blank.
24596         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
24598 2012-01-17  Jim Meyering  <meyering@redhat.com>
24600         maint: enable sc_prohibit_openat_without_use
24601         * cfg.mk: Enable sc_prohibit_openat_without_use.
24602         Exempt lib/selinux-at.c.
24604 2012-01-17  Jim Meyering  <meyering@redhat.com>
24606         maint: enable sc_prohibit_cloexec_without_use
24607         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
24608         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
24610 2012-01-17  Jim Meyering  <meyering@redhat.com>
24612         maint: enable sc_prohibit_intprops_without_use
24613         * cfg.mk: Enable sc_prohibit_intprops_without_use
24614         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
24616 2012-01-17  Jim Meyering  <meyering@redhat.com>
24618         maint: enable sc_prohibit_hash_pjw_without_use
24619         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
24620         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
24621         to match any use of \<hash_pjw\>, i.e., not necessarily with a
24622         following " (".
24624 2012-01-17  Jim Meyering  <meyering@redhat.com>
24626         maint: enable double-word-prohibiting rule
24627         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
24628         Exempt three files.
24630 2012-01-17  Jim Meyering  <meyering@redhat.com>
24632         maint: remove empty lines at EOF, but excluding modules/*
24633         Apply syntax rules at home as well as abroad.  Most changes
24634         were induced by running this:
24635           make srcdir=. _build-aux=build-aux -f top/maint.mk \
24636             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
24637             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
24638         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
24639         Exempt modules/* and two binary files.
24640         Also exempt doc/INSTALL*, per request from Bruno Haible.
24641         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
24642         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
24643         * doc/Copyright/request-assign.future: Likewise.
24644         * doc/Copyright/request-disclaim.changes: Likewise.
24645         * doc/INSTALL: Likewise.
24646         * doc/INSTALL.ISO: Likewise.
24647         * doc/INSTALL.UTF-8: Likewise.
24648         * doc/acl-cygwin.txt: Likewise.
24649         * doc/acl-resources.txt: Likewise.
24650         * doc/fdl-1.2.texi: Likewise.
24651         * doc/fdl-1.3.texi: Likewise.
24652         * doc/fdl.texi: Likewise.
24653         * lib/argp-pin.c: Likewise.
24654         * lib/round.c: Likewise.
24655         * lib/unicase/u16-totitle.c: Likewise.
24656         * lib/unictype/block_test.c: Likewise.
24657         * lib/uninorm/canonical-decomposition.c: Likewise.
24658         * m4/README: Likewise.
24659         * m4/relocatable-lib.m4: Likewise.
24660         * tests/test-isnand-nolibm.c: Likewise.
24661         * tests/test-isnand.c: Likewise.
24662         * tests/uninorm/NormalizationTest.txt: Likewise.
24664 2012-01-17  Jim Meyering  <meyering@redhat.com>
24666         maint: add framework to run syntax-check rules against gnulib sources
24667         * cfg.mk: New file, to disable all currently-failing tests.
24668         We'll enable them one by one, as they are made to pass.
24669         * Makefile (sc_maint): New rule.
24671 2012-01-21  Bruno Haible  <bruno@clisp.org>
24673         stdint: Add support for Android.
24674         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
24675         include the system's <stdint.h>.
24676         Reported by Simon Josefsson <simon@josefsson.org>.
24678 2012-01-19  Jim Meyering  <meyering@redhat.com>
24680         bootstrap: add bootstrap_post_import_hook
24681         Bison does still need something like the gnulib_mk_hook whose
24682         invocation I had to remove along with slurp in commit 767ccd40.
24683         Technically, we could get along without it, but doing so would
24684         have required living with a warning and a mandatory post-bootstrap
24685         automake rerun.
24686         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
24687         (bootstrap_post_import_hook): New function.
24688         Invoke it after gnulib-tool --import and before autoreconf.
24690 2012-01-18  Jim Meyering  <meyering@redhat.com>
24692         gitlog-to-changelog: don't use "no_"-prefixed variable name
24693         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
24694         to enable both --cluster and --no-cluster.  Change variable name,
24695         s/\$no_cluster/$cluster/, and reverse usage to match.
24697         gitlog-to-changelog: use "||", not "or" in expressions
24698         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
24699         expressions.
24701 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
24703         gitlog-to-changelog: new option --no-cluster
24704         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
24705         clustering of adjacent commit messages.
24707 2012-01-17  Jim Meyering  <meyering@redhat.com>
24709         maint: spell file systems with two words, not one
24710         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
24711         two words, not one.
24713 2012-01-16  Jim Meyering  <meyering@redhat.com>
24715         bootstrap: add a FIXME comment to ensure we eventually remove the hack
24716         * build-aux/bootstrap (gnulib_tool_options): Add comment.
24718 2012-01-16  Eric Blake  <eblake@redhat.com>
24720         bootstrap: cater to autoconf 2.59
24721         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
24722         is not available.
24724         bootstrap: properly check for libtool
24725         * build-aux/bootstrap (libtoolize): Also run libtool when older
24726         usage is detected.
24728 2012-01-15  Bruno Haible  <bruno@clisp.org>
24730         Improve support for MSVC 9.
24731         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
24732         clashes on MSVC.
24733         * lib/fcntl.in.h: Likewise.
24734         * lib/stdlib.in.h: Likewise.
24735         * lib/sys_stat.in.h: Likewise.
24737 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
24739         gnupload: we hold the master copy of this script now
24740         For motivation and more information, see:
24741         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
24742         * build-aux/gnupload: Make it clear in the heading comments that the
24743         master copy of this file is maintained by gnulib.  Since we are at
24744         it, bump its copyright year and ...
24745         ($scriptversion): ... the date in its version.
24746         ($usage): Patches and bug reports should be sent to the gnulib list,
24747         not the automake one.
24748         * config/srclist.txt: Don't try to sync 'gnupload' from automake
24749         anymore.
24751 2012-01-15  Bruno Haible  <bruno@clisp.org>
24753         Fix module 'random'.
24754         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
24755         initstate, setstate are declared.
24757 2012-01-14  Bruno Haible  <bruno@clisp.org>
24759         Tests for module 'random'.
24760         * modules/random-tests: New file.
24761         * tests/test-random.c: New file, based on tests/test-random_r.c.
24763         New module 'random'.
24764         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
24765         declarations.
24766         * lib/random.c: New file, based on glibc/stdlib/random.c.
24767         * m4/random.m4: New file.
24768         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
24769         HAVE_RANDOM.
24770         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
24771         * modules/random: New file.
24772         * config/srclist.txt: Add an entry for random.c.
24773         * doc/posix-functions/random.texi: Mention the 'random' module.
24774         * doc/posix-functions/initstate.texi: Likewise.
24775         * doc/posix-functions/setstate.texi: Likewise.
24776         * doc/posix-functions/srandom.texi: Likewise.
24778 2012-01-12  Bruno Haible  <bruno@clisp.org>
24780         random_r: Use common idioms.
24781         * lib/random_r.c: Include <stdlib.h> first.
24783         random_r: Override incompatible API on AIX, OSF/1.
24784         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
24785         Override the system function if REPLACE_RANDOM_R is 1.
24786         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
24787         and OSF/1, set REPLACE_RANDOM_R.
24788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
24789         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
24790         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
24791         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
24792         * doc/glibc-functions/random_r.texi: Likewise.
24793         * doc/glibc-functions/setstate_r.texi: Likewise.
24795         random_r: Support for MSVC 9.
24796         * lib/random_r.c: Include stdint.h, not inttypes.h.
24798 2012-01-12  Eric Blake  <eblake@redhat.com>
24800         inet_ntop: guard extra work by IF_LINT
24801         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
24802         better code generation when not checking for warnings.
24803         Suggested by Paul Eggert and Jim Meyering.
24805         strptime: fix regression on mingw
24806         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
24807         Fix regression.  Reported by Bruno Haible.
24809 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
24810             Bruno Haible  <bruno@clisp.org>
24812         copy-file: add error-code-returning variant.
24813         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
24814         (qcopy_file_preserving): New declaration.
24815         * lib/copy-file.c (qcopy_file_preserving): Renamed from
24816         copy_file_preserving. Change return type to 'int'. Don't emit an error
24817         message here.
24818         (copy_file_preserving): New function.
24819         * tests/test-copy-file.c: Include <stdlib.h>.
24820         (main): Test qcopy_file_preserving if the environment variable
24821         NO_STDERR_OUTPUT is set.
24822         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
24823         with NO_STDERR_OUTPUT
24824         * tests/test-copy-file-2.sh: Likewise.
24826 2012-01-10  Bruno Haible  <bruno@clisp.org>
24828         copy-file: Use 'quote' module consistently.
24829         * lib/copy-file.c (copy_file_preserving): Use quote().
24831         copy-file: Refactor.
24832         * lib/copy-file.c: Include quote.h.
24833         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
24834         message here.
24835         * modules/copy-file (Depends-on): Add quote.
24837         acl: Export qcopy_acl.
24838         * lib/acl.h (qcopy_acl): New declaration.
24839         * lib/copy-acl.c (qcopy_acl): Make non-static.
24841         acl: Rename a local variable.
24842         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
24844         acl: Align return values of copy_acl and qcopy_acl.
24845         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
24846         maybe < -1.
24848 2012-01-11  Eric Blake  <eblake@redhat.com>
24850         strptime: silence gcc warnings
24851         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
24852         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
24853         Reported by Daniel P. Berrange.
24855         inet_ntop: silence gcc warning
24856         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
24857         Reported by Daniel P. Berrange.
24859 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
24861         getloadavg test: skip the test on GNU/Linux without /proc mounted
24862         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
24863         file.  When /proc is not mounted, it always fails with ENOENT.
24864         * tests/test-getloadavg.c (main): Treat ENOENT return code from
24865         getloadavg(3) the same way as ENOSYS and ENOTSUP.
24867 2012-01-10  Bruno Haible  <bruno@clisp.org>
24869         regex: Avoid link error on MSVC 9.
24870         * modules/regex (Depends-on): Add wctype.
24872 2012-01-10  Bruno Haible  <bruno@clisp.org>
24874         doc: Mention --with-tests option.
24875         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
24876         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
24877         --with-tests.
24878         Reported by Reuben Thomas.
24880 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
24882         users.txt: order package names lexicographically.
24883         * users.txt: Order package names lexicographically.
24885 2012-01-10  Jim Meyering  <meyering@redhat.com>
24887         maint.mk: fix description in comment
24888         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
24890         ignore-value: remove deprecated ignore_ptr function
24891         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
24892         * NEWS: Note this.
24894 2012-01-09  Jim Meyering  <meyering@redhat.com>
24896         test-init.sh: avoid a subshell
24897         * tests/test-init.sh: Remove protective subshell.
24898         Suggested by Bernhard Voelker.  While a subshell is normally
24899         required to protect against older shells (Solaris, FreeBSD) that
24900         warn about a missing program before performing redirection, the
24901         shell-selection tests performed by init.sh probably exclude any
24902         offending shell.
24904 2012-01-08  Bruno Haible  <bruno@clisp.org>
24906         setlocale tests: Avoid test failure on Solaris 11.0.
24907         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
24908         variable.
24910 2012-01-08  Bruno Haible  <bruno@clisp.org>
24912         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
24913         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
24914         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
24915         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
24916         macro.
24917         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
24918         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
24919         * lib/spawn_faction_addopen.c: Add workaround implementation if
24920         HAVE_WORKING_POSIX_SPAWN.
24921         * modules/spawn (Makefile): Substitute
24922         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
24923         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
24924         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
24925         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
24926         (Depends-on): Update conditions.
24927         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
24928         the Solaris 11 bug.
24930 2012-01-08  Bruno Haible  <bruno@clisp.org>
24932         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
24933         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
24934         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
24935         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
24936         macro.
24937         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
24938         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
24939         * lib/spawn_faction_adddup2.c: Add workaround implementation if
24940         HAVE_WORKING_POSIX_SPAWN.
24941         * modules/spawn (Makefile): Substitute
24942         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
24943         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
24944         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
24945         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
24946         (Depends-on): Update conditions.
24947         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
24948         the Solaris 11 bug.
24950 2012-01-08  Bruno Haible  <bruno@clisp.org>
24952         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
24953         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
24954         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
24955         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
24956         HAVE_WORKING_POSIX_SPAWN.
24957         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
24958         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
24959         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
24960         * lib/spawn_faction_addclose.c: Add workaround implementation if
24961         HAVE_WORKING_POSIX_SPAWN.
24962         * modules/spawn (Makefile): Substitute
24963         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
24964         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
24965         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
24966         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
24967         (Depends-on): Update conditions.
24968         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
24969         the Solaris 11 bug.
24971 2012-01-08  Bruno Haible  <bruno@clisp.org>
24973         doc: Update for Solaris 11.0.
24974         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
24975         * m4/printf.m4: Update comments.
24977 2012-01-08  Bruno Haible  <bruno@clisp.org>
24979         mktime: Avoid compilation error on Solaris 11.
24980         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
24982 2012-01-08  Bruno Haible  <bruno@clisp.org>
24984         doc: Small fix.
24985         * doc/posix-headers/nl_types.texi: Correct platforms list.
24987 2012-01-08  Simon Josefsson  <simon@josefsson.org>
24989         Add lgpl-3.0 module.
24990         * MODULES.html.sh (Support for building documentation): Add
24991         lgpl-3.0.
24992         * modules/lgpl-3.0: New file.
24994 2012-01-08  Jim Meyering  <meyering@redhat.com>
24996         select.c: indent with spaces, not TABs
24997         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
24999 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25001         quotearg: do not use grave accent for left quote
25002         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
25003         locale_quoting_style.
25004         (quotearg_buffer_restyled): Fix example.
25005         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
25007 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25009         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
25010         Most programs do not have translation catalogs for English and much
25011         less separate catalogs for British and American English.  Drop the
25012         suggestion to translators about these two, and provide it
25013         automatically for Unicode locales.  Like most programs, even those
25014         using American English, we use single quotation marks.  This conflicts
25015         with the American typographic convention, but works better when you
25016         cite the entire error message within double quotes.  It also tries not
25017         to clash with established practice and with what non-gnulib programs
25018         will usually do.
25019         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
25020         using an UTF-8 or GB-18030 locale.  The list of other locales with
25021         quotes was provided by Bruno Haible.
25022         (quotearg_buffer_restyled): Adjust instructions to translators.
25023         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
25024         text, since this would be wrong when using Unicode.
25025         * modules/quotearg: Depend on c-strcaseeq.
25027 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25029         quotearg: fix Wikipedia link
25030         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
25032 2012-01-07  Simon Josefsson  <simon@josefsson.org>
25034         Fix for mingw with MSVC9.
25035         * m4/ld-version-script.m4: Check that compiler rejects version
25036         scripts with syntax errors.  Reported by Bruno Haible
25037         <bruno@clisp.org>.
25039 2012-01-06  Bruno Haible  <bruno@clisp.org>
25041         Talk about "native Windows API", not "Woe32".
25042         * lib/accept4.c: Update comments to mention native Windows.
25043         * lib/execute.c: Likewise.
25044         * lib/fatal-signal.c: Likewise.
25045         * lib/localcharset.c: Likewise.
25046         * lib/nanosleep.c: Likewise.
25047         * lib/nl_langinfo.c: Likewise.
25048         * lib/pclose.c: Likewise.
25049         * lib/pipe-filter-gi.c: Likewise.
25050         * lib/pipe-filter-ii.c: Likewise.
25051         * lib/pipe.c: Likewise.
25052         * lib/pipe2.c: Likewise.
25053         * lib/popen.c: Likewise.
25054         * lib/progreloc.c: Likewise.
25055         * lib/relocatable.c: Likewise.
25056         * lib/sigaction.c: Likewise.
25057         * lib/sigprocmask.c: Likewise.
25058         * lib/spawn-pipe.h: Likewise.
25059         * lib/spawn-pipe.c: Likewise.
25060         * lib/spawni.c: Likewise.
25061         * lib/stat-time.h: Likewise.
25062         * lib/w32spawn.h: Likewise.
25063         * tests/test-isatty.c: Likewise.
25064         * lib/config.charset: More comments.
25065         * doc/gnulib-intro.texi: Mention native Windows.
25066         * doc/posix-functions/_Exit_C99.texi: Likewise.
25067         * doc/posix-headers/fcntl.texi: Likewise.
25069 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
25071         argp: Avoid crash if translator uses % characters in a translation.
25072         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
25073         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
25075 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25077         doc: C11 and C++11 are now official
25078         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
25079         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
25080         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
25081         * modules/stdalign:
25082         Replace references to draft C1X to C11, and to draft C++0X to C++11.
25084 2012-01-06  Bruno Haible  <bruno@clisp.org>
25086         uc-is-grapheme-break tests: Tweak.
25087         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
25088         message.
25090 2012-01-06  Bruno Haible  <bruno@clisp.org>
25092         test-init.sh: correct the test for diff -u
25093         * tests/test-init.sh: Also redirect stdout to /dev/null.
25095 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
25097         Use ', not `, for quoting output.
25098         * build-aux/announce-gen (usage, sizes, print_news_deltas)
25099         (print_changelog_deltas, get_tool_versions, main program):
25100         * build-aux/git-version-gen:
25101         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
25102         * build-aux/move-if-change (help):
25103         * build-aux/useless-if-before-free (usage, main program):
25104         * check-module (parse_module_file, usage)
25105         (find_included_lib_files, check_module):
25106         * lib/argmatch.c (main) [TEST]:
25107         * lib/argp-help.c (_help):
25108         * lib/getopt1.c (main) [TEST]:
25109         * lib/git-merge-changelog.c (usage):
25110         * lib/xstrtol-error.c (xstrtol_error):
25111         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
25112         * m4/argz.m4 (gl_FUNC_ARGZ):
25113         * m4/bison.m4 (gl_BISON):
25114         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
25115         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
25116         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
25117         * m4/fpending.m4 (gl_PREREQ_FPENDING):
25118         * m4/gc-random.m4 (gl_GC_RANDOM):
25119         * m4/intl.m4 (gt_CHECK_DECL):
25120         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
25121         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
25122         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
25123         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
25124         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
25125         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
25126         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
25127         * tests/test-dirname.c (main):
25128         * tests/test-getpass.c (main):
25129         * tests/test-iconvme.c (main):
25130         * tests/test-parse-datetime.c (LOG):
25131         * tests/test-xstrtoimax.sh:
25132         * tests/test-xstrtol.sh:
25133         * tests/test-xstrtoll.sh:
25134         * tests/test-xstrtoumax.sh:
25135         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
25136         * top/GNUmakefile (abort-due-to-no-makefile):
25137         Quote 'like this', not `like this', as per the recent change to
25138         the GNU coding standards.
25140 2012-01-05  Bruno Haible  <bruno@clisp.org>
25142         strtoimax: Don't force a replacement on systems where intmax_t is int.
25143         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
25144         'intmax_t' is not larger than 'int'.
25145         Reported by Pádraig Brady <P@draigBrady.com>.
25147 2012-01-05  Bruno Haible  <bruno@clisp.org>
25149         doc: Mention NetBSD bugs.
25150         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
25151         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
25153 2012-01-05  Bruno Haible  <bruno@clisp.org>
25155         strtoumax tests: Enhance tests.
25156         * tests/test-strtoumax.c (main): Add tests for large values.
25158 2012-01-05  Bruno Haible  <bruno@clisp.org>
25160         strtoimax: Work around AIX 5.1 bug.
25161         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
25162         definition.
25163         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
25164         Set HAVE_STRTOIMAX.
25165         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
25166         REPLACE_STRTOIMAX.
25167         * modules/inttypes-incomplete (Makefile.am): Substitute
25168         REPLACE_STRTOIMAX.
25169         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
25170         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
25171         (Depends-on): Update conditions.
25172         * tests/test-strtoimax.c (main): Add tests for large values.
25173         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
25175 2012-01-05  Bruno Haible  <bruno@clisp.org>
25177         inttypes: Modernize.
25178         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
25179         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
25180         (Makefile.am): Update inttypes.h rule.
25182 2012-01-05  Jim Meyering  <meyering@redhat.com>
25184         init.sh: don't waste a subshell just to redirect stderr
25185         * tests/init.sh: In testing for diff -u and diff -c, use a
25186         stderr-redirecting exec inside `...` rather than a subshell.
25188         test-init.sh: avoid failure on HP-UX 11.00
25189         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
25190         resolves to diff -c or cmp.  Reported by Bruno Haible.
25192 2012-01-05  Bruno Haible  <bruno@clisp.org>
25194         Tests for module 'strtoull'.
25195         * modules/strtoull-tests: New file.
25196         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
25198 2012-01-05  Bruno Haible  <bruno@clisp.org>
25200         Tests for module 'strtoll'.
25201         * modules/strtoll-tests: New file.
25202         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
25204 2012-01-05  Bruno Haible  <bruno@clisp.org>
25206         Tests for module 'strtoul'.
25207         * modules/strtoul-tests: New file.
25208         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
25210 2012-01-05  Bruno Haible  <bruno@clisp.org>
25212         Tests for module 'strtol'.
25213         * modules/strtol-tests: New file.
25214         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
25216 2012-01-04  Jim Meyering  <meyering@redhat.com>
25218         test-init.sh: accommodate Solaris 5.10's different diff -u output
25219         * tests/test-init.sh: Also exempt @@ lines from the comparison
25220         of diff output, since Solaris 5.10 and GNU diff formats differ.
25221         Reported by Stefano Lattarini.
25223 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25225         test-posixtm: don't assume signed integer wraparound
25226         * tests/test-posixtm.c (main): Don't assume wraparound semantics
25227         after signed integer overflow.  Inspired by (though it may not
25228         fix) Bruno Haible's bug report in
25229         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
25231         Spell out "Windows 9x" and "Windows XP".
25232         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
25233         "Windows 9x" and "WinXP" with "Windows XP".
25235 2012-01-04  Jim Meyering  <meyering@redhat.com>
25237         test-vc-list-files-cvs.sh: remove obsolete comment
25238         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
25239         double exit.  Now that's all encapsulated via skip_ and Exit.
25241 2012-01-04  Bruno Haible  <bruno@clisp.org>
25243         Talk about "native Windows API", not "Win32".
25244         * lib/classpath.c: Update comments to mention native Windows.
25245         * lib/csharpexec.c: Likewise.
25246         * lib/dup2.c: Likewise.
25247         * lib/error.c: Likewise.
25248         * lib/fcntl.c: Likewise.
25249         * lib/filename.h: Likewise.
25250         * lib/findprog.c: Likewise.
25251         * lib/get-rusage-as.c: Likewise.
25252         * lib/get-rusage-data.c: Likewise.
25253         * lib/getpagesize.c: Likewise.
25254         * lib/javaexec.c: Likewise.
25255         * lib/msvc-inval.c: Likewise.
25256         * lib/msvc-nothrow.c: Likewise.
25257         * lib/nanosleep.c: Likewise.
25258         * lib/nonblocking.c: Likewise.
25259         * lib/printf-parse.c: Likewise.
25260         * lib/setlocale.c: Likewise.
25261         * lib/sigaction.c: Likewise.
25262         * lib/strerror_r.c: Likewise.
25263         * lib/tmpdir.c: Likewise.
25264         * lib/vasnprintf.c: Likewise.
25265         * lib/w32spawn.h: Likewise.
25266         * lib/waitpid.c: Likewise.
25267         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
25268         * m4/locale-ar.m4: Likewise.
25269         * m4/locale-fr.m4: Likewise.
25270         * m4/locale-ja.m4: Likewise.
25271         * m4/locale-tr.m4: Likewise.
25272         * m4/locale-zh.m4: Likewise.
25273         * m4/printf.m4: Likewise.
25274         * tests/test-cloexec.c: Likewise.
25275         * tests/test-copy-acl.sh: Likewise.
25276         * tests/test-copy-file.sh: Likewise.
25277         * tests/test-file-has-acl.sh: Likewise.
25278         * tests/test-set-mode-acl.sh: Likewise.
25279         * tests/test-dup-safer.c: Likewise.
25280         * tests/test-dup2.c: Likewise.
25281         * tests/test-dup3.c: Likewise.
25282         * tests/test-fcntl.c: Likewise.
25283         * tests/test-nonblocking-pipe.h: Likewise.
25284         * tests/test-nonblocking-socket.h: Likewise.
25285         * tests/test-pipe.c: Likewise.
25286         * tests/test-pipe2.c: Likewise.
25287         * tests/test-spawn-pipe-child.c: Likewise.
25288         * doc/acl-resources.txt: Likewise.
25289         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
25290         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
25291         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
25292         * lib/localcharset.c: Update comments to mention native Windows.
25293         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
25294         * lib/localename.c: Likewise.
25295         * lib/progreloc.c: Likewise.
25296         * lib/relocatable.c: Likewise.
25297         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
25298         (windows_compute_revents): Renamed from win32_compute_revents.
25299         (windows_compute_revents_socket): Renamed from
25300         win32_compute_revents_socket.
25301         * lib/select.c: Update comments to mention native Windows.
25302         (windows_poll_handle): Renamed from win32_poll_handle.
25303         * m4/threadlib.m4: Update comments to mention native Windows.
25304         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
25305         --enable-threads=windows instead of --enable-threads=win32. Set
25306         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
25307         * lib/glthread/lock.h: Update comments to mention native Windows.
25308         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
25309         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
25310         USE_WIN32_THREADS.
25311         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
25312         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
25313         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
25314         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
25315         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
25316         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
25317         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
25318         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
25319         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
25320         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
25321         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
25322         * tests/test-tls.c: Likewise.
25323         Rationale:
25324         Microsoft renamed the "Win32 API" to "Windows API", as it is available
25325         on both 32-bit and 64-bit Windows systems.
25326         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
25327         line of distinction is between "native Windows" on one side and Unix/
25328         POSIX systems on the other side. More details in
25329         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
25330         Suggested by Paul Eggert.
25332 2012-01-03  Bruno Haible  <bruno@clisp.org>
25334         isatty: Support for MSVC 9.
25335         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
25336         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
25337         (_isatty_nothrow): New function.
25338         (isatty): Use it instead of _isatty.
25339         (IsConsoleHandle): Add comment, from Paolo Bonzini.
25340         * lib/poll.c (IsConsoleHandle): Likewise.
25341         * lib/select.c (IsConsoleHandle): Likewise.
25342         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
25343         (gl_PREREQ_ISATTY): New macro.
25344         * modules/isatty (Depends-on): Add msvc-inval.
25345         (configure.ac): Invoke gl_PREREQ_ISATTY.
25347 2012-01-03  Jim Meyering  <meyering@redhat.com>
25349         maint.mk: remove temporary transition aid from over 1.5 years ago
25350         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
25351         purpose was to aid in the transition (avoiding silent malfunction)
25352         from that old name to the new _sc_search_regexp.  This shim was
25353         added by commit 219c504b.
25355         init.sh: do not try to accommodate compare arguments starting with "-"
25356         * tests/init.sh (compare_dev_null_): Do not try to accommodate
25357         compare arguments that start with "-".  Besides, we do not worry
25358         about this when invoking diff or cmp; why start now with sed?
25359         Using "--" to separate options from argument would trigger sed
25360         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
25361         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
25363 2012-01-02  Bruno Haible  <bruno@clisp.org>
25365         Enhance tests for module 'isatty'.
25366         * modules/isatty-tests (Depends-on): Add pipe-posix.
25367         * tests/test-isatty.c: Include <fcntl.h>.
25368         (DEV_NULL): New macro.
25369         (main): Test the resut of isatty() also on regular files, pipes, and
25370         /dev/null.
25372         New module 'isatty'.
25373         * lib/unistd.in.h (isatty): New declaration.
25374         * lib/isatty.c: New file, based on an idea of
25375         Bastien Roucariès <roucaries.bastien@gmail.com>.
25376         * m4/isatty.m4: New file.
25377         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
25378         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
25379         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
25380         REPLACE_ISATTY.
25381         * modules/isatty: New file.
25382         * doc/posix-functions/isatty.texi: Mention the new module.
25383         Suggested by Paolo Bonzini.
25385 2012-01-02  Bruno Haible  <bruno@clisp.org>
25387         canonicalize: Tweak 2011-12-29 commit.
25388         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
25389         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
25391 2012-01-02  Jim Meyering  <meyering@redhat.com>
25393         gitlog-to-changelog: describe input syntax in --help output
25394         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
25396         gitlog-to-changelog: fix typo in --help: show backslash before email @
25397         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
25398         in sources, but not in actual output.
25400 2011-12-30  Jim Meyering  <meyering@redhat.com>
25402         gitlog-to-changelog: don't malfunction when name contains %-directive
25403         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
25404         in a name string cause trouble.  E.g., with a user name of "%s",
25405         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
25407 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
25409         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
25410         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
25411         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
25412         the "  (tiny change)" notation that is appended to the standard
25413         ChangeLog "date  name  email" header line.
25415 2012-01-01  Jim Meyering  <meyering@redhat.com>
25417         test-framework-sh: init.sh: fix "make dist" failure
25418         When using gnulib-tool's --with-tests option and any module that
25419         depends on test-framework-sh, "make dist" would fail due to the
25420         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
25421         in the gltests directory, and not in the gllib/ directory.
25422         One way to work around that is to move the EXTRA_DIST += init.sh
25423         from the primary module to the -tests one:
25424         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
25425         * modules/test-framework-sh (Makefile.am): ...not here.
25426         Reported by Tom G. Christensen in
25427         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
25429         version-etc: update copyright year reported by --version
25430         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
25432 2011-12-31  Pádraig Brady  <P@draigBrady.com>
25434         canonicalize: only stat() if required
25435         * lib/canonicalize.c (canonicalize_filename_mode):
25436         Avoid calling l?stat() when both CAN_MISSING,
25437         and CAN_NOLINKS are set, as we neither need
25438         to resolve symlinks or test component existence.
25440 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
25442         doc: cover st_ino issues once; add OpenVMS etc.
25443         * doc/posix-functions/stat.texi (stat):
25444         * doc/posix-functions/lstat.texi (lstat):
25445         * doc/posix-functions/fstatat.texi (fstatat):
25446         * doc/posix-functions/fstat.texi (fstat):
25447         Move general 'struct stat' stuff to sys_stat.texi,
25448         leaving behind a pointer.
25449         * doc/posix-headers/sys_stat.texi (sys/stat.h):
25450         Merge duplicate info about 'struct stat' problems into here.
25451         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
25452         and suggest partial workarounds.
25454         same-inode: port to OpenVMS
25455         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
25456         three st_ino values.
25458 2011-12-30  Pádraig Brady  <P@draigBrady.com>
25460         canonicalize: fix references to stat() and lstat()
25461         * lib/canonicalize.c (canonicalize_filename_mode):
25462         Ensure references always resolve to a replacement
25463         function if required (even via a macro).
25465 2011-12-30  Jim Meyering  <meyering@redhat.com>
25467         gitlog-to-changelog: remove a little duplication
25468         * build-aux/gitlog-to-changelog (main): Grep @lines once,
25469         rather than twice.
25471 2011-12-29  Pádraig Brady  <P@draigBrady.com>
25473         canonicalize: add support for not resolving symlinks
25474         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
25475         indicate we don't want to follow symlinks.  Also
25476         provide CAN_MODE_MASK to aid setting these existing
25477         mutually exclusive values.
25478         * lib/canonicalize.c (canonicalize_filename_mode):
25479         Extract the flags from can_mode parameter, which
25480         are currently just used to select between stat()
25481         and lstat().  Also ensure that mutually exclusive
25482         values are flagged immediately as invalid.
25483         * tests/test-canonicalize.c: Verify symlinks are
25484         not followed, and that invalid flag combinations
25485         are diagnosed.
25487 2011-12-25  Jim Meyering  <meyering@redhat.com>
25489         gitlog-to-changelog: do not clump multi-paragraph entries
25490         Identical header lines (date,name,email+coauthors) are suppressed,
25491         thus putting all entries with those same characteristics under
25492         a single header.  However, when a log entry consists of two or
25493         more paragraphs, it may not be clear where it starts and ends.
25494         This change makes it so that such an entry is always separated
25495         from others by a header line, even when that header would
25496         otherwise be suppressed.
25497         * build-aux/gitlog-to-changelog: Implement the above.
25498         Inspired by a related request from Stefano Lattarini in
25499         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
25501 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25503         announce-gen: fix `cmd' typo in diagnostic
25504         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
25505         diagnostic: a missing '$' meant that the command was not output.
25507 2011-12-23  Jim Meyering  <meyering@redhat.com>
25509         test-framework-sh: distribute init.sh
25510         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
25511         Otherwise, "make -C gnulib-tests check" (at least in grep) would
25512         fail due to the lack of init.sh.
25514         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
25515         * modules/atexit-tests: Rather than listing tests/init.sh,
25516         now that there's a module for it, simply depend on that new module.
25517         * modules/closein-tests: Likewise.
25518         * modules/exclude-tests: Likewise.
25519         * modules/getcwd-tests: Likewise.
25520         * modules/perror-tests: Likewise.
25521         * modules/pread-tests: Likewise.
25522         * modules/pwrite-tests: Likewise.
25523         * modules/vc-list-files-tests: Likewise.
25524         * modules/verify-tests: Likewise.
25525         * modules/xalloc-die-tests: Likewise.
25526         * modules/xstrtoimax-tests: Likewise.
25527         * modules/xstrtol-tests: Likewise.
25528         * modules/xstrtoll-tests: Likewise.
25529         * modules/xstrtoumax-tests: Likewise.
25530         * modules/yesno-tests: Likewise.
25532 2011-12-22  Jim Meyering  <meyering@redhat.com>
25534         test-framework-sh: add minimal tests of init.sh's compare function
25535         * modules/test-framework-sh-tests: New file.
25536         * tests/test-init.sh: New file.
25538         test-framework-sh: new module
25539         * modules/test-framework-sh: New file.
25540         * MODULES.html.sh (Support for maintaining and releasing projects):
25541         List it.
25543         init.sh: do not emit simulated diff output to stderr
25544         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
25546 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
25548         .gitignore: ignore gnulib.dvi and regex.info
25549         * doc/.gitignore:add gnulib.dvi and regex.info
25551 2011-12-22  Jim Meyering  <meyering@redhat.com>
25553         init.sh: correct previous change
25554         * tests/init.sh (compare): My previous change was wrong.
25555         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
25557         init.sh: avoid unwarranted test failure when using "set -e"
25558         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
25559         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
25560         a use like "compare exp out" would get evoke an unconditional failure.
25562 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
25564         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
25565         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
25566         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
25567         autoreconf that did not.
25568         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
25569         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
25571 2011-12-17  Jim Meyering  <meyering@redhat.com>
25573         bootstrap: remove some now-unneeded code
25574         This script arose back when gnulib-tool was young.
25575         Since then, it has seen improvements that render much of this
25576         script unnecessary.  In particular, it can now make symlinks
25577         to the files it uses.  Also, I no longer see as much value in
25578         marking files as read-only via comments.
25579         If you relied on the symlink-creation feature of the preceding
25580         version of this script, you can get most of that functionality
25581         by adding the --symlink option to the definition of
25582         gnulib_tool_option_extras in your bootstrap.conf file.
25583         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
25584         Run autopoint and libtoolize *before* gnulib-tool.
25585         After it, run an abbreviated autoreconf, rather than a loop around
25586         all tools.
25587         (slirp, bt_mark_as_generated): Remove functions.
25589 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25591         ftoastr: fix typo
25592         * lib/ftoastr.h: Fix misspelling in comment.
25594 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
25596         * top/README-release: fix punctuation.
25598 2011-12-17  Jim Meyering  <meyering@redhat.com>
25600         bootstrap: correct the recent buildreq change
25601         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
25602         had no effect.
25603         * build-aux/bootstrap (buildreq): Bracket each search term with
25604         "*...*", so that the shell "case" statement works as intended.
25605         Add comments.
25607 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
25609         build: let bootstrap resort to wget when downloading .po files
25610         * build-aux/bootstrap (download_po_files): Fallback to wget when
25611         downloading the .po files via rsync fails.  This is necessary to
25612         bootstrap from behind a strict firewall.
25614 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25616         stdint: don't assume C++11 when compiling with g++
25617         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
25618         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
25619         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
25620         work also in C++ before C++11, as that improperly inhibits
25621         generating a substitute stdint.h for that case.
25623 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25625         alloca: protect comment from gnulib-tool
25626         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
25627         that gnulib-tool doesn't think it's a license, and munge it to
25628         say "GCC version 3".
25630 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
25632         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
25633         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
25634         $(abs_top_builddir) instead of $(top_builddir).
25636 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
25638         strftime-tests: also test nanoseconds
25639         * tests/test-strftime.c (T): Add a test of %N.
25641 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
25643         inttypes, stdint: add C++11 support
25644         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
25645         when including inttypes.h and stdint.h.  Support this change to
25646         the standard.
25647         * doc/posix-headers/inttypes.texi (inttypes.h):
25648         * doc/posix-headers/stdint.texi (stdint.h): Document this.
25649         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
25650         Define if not defined already, for the benefit of pre-C++11 hosts.
25651         Define the standard format macros (e.g., PRId8) always.
25652         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
25653         Likewise, if __cpluspus.  Define the standard constant and limit
25654         macros (e.g., INT8_C, INT8_MAX) always.
25655         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
25656         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
25657         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
25658         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
25659         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
25660         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
25661         Likewise.
25663 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
25665         nonblocking tests: Fix test failure on Linux/PPC.
25666         Suggested by Prerna Saxena in
25667         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
25668         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
25669         Set to 1100000.
25671 2011-12-12  Jim Meyering  <meyering@redhat.com>
25673         argmatch: don't hard-code `' when listing valid option arguments
25674         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
25675         use the quote function to add quotes.  Use fputs rather than
25676         fprintf for the format string with no format directive.
25678 2011-12-07  Eric Blake  <eblake@redhat.com>
25680         bootstrap: detect tools required by gnulib-tool
25681         * build-aux/bootstrap (buildreq): Provide minimum implicit
25682         dependencies.
25683         * DEPENDENCIES: Mention patch as a prereq.
25685 2011-12-04  Bruno Haible  <bruno@clisp.org>
25687         sethostname: Port to Windows platforms.
25688         * lib/sethostname.c: Provide an alternate implementation for Windows
25689         platforms.
25690         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
25691         (main): Skip the test if sethostname() fails with EPERM. On Windows
25692         platforms, don't check the result of gethostname().
25694 2011-12-04  Bruno Haible  <bruno@clisp.org>
25695             Jim Meyering  <meyering@redhat.com>
25697         tests: Avoid spurious error message on platforms without mktemp program.
25698         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
25700 2011-12-04  Bruno Haible  <bruno@clisp.org>
25702         sethostname: Fix documentation.
25703         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
25704         "not fixed" section.
25706 2011-12-03  Bruno Haible  <bruno@clisp.org>
25708         gnulib-tool: Verify that the License field is present and non-empty.
25709         * gnulib-tool (func_get_license_raw): New function, extracted from
25710         func_get_license.
25711         (func_get_license): Use it. Warn if the module is not a test module and
25712         has no license.
25713         Suggested by Jim Meyering.
25715 2011-12-03  Bruno Haible  <bruno@clisp.org>
25717         sethostname tests: Fix link error on mingw.
25718         * tests/test-sethostname1.c: New file, extracted from
25719         tests/test-sethostname.c.
25720         * tests/test-sethostname2.c: New file, extracted from
25721         tests/test-sethostname.c.
25722         * tests/test-sethostname.c: Remove file.
25723         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
25724         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
25725         (Depends-on): Add gethostname.
25726         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
25727         Link the latter with $(GETHOSTNAME_LIB).
25729         sethostname tests: Fix compilation error on mingw.
25730         * tests/test-sethostname.c: Don't include <sys/types.h>.
25731         (geteuid): Use a dummy value without uid_t.
25732         * modules/sethostname-tests (Depends-on): Remove sys_types.
25734         sethostname tests: Avoid a gcc warning.
25735         * tests/test-sethostname.c (main): Remove an unused variable.
25737         Tweak last commit.
25738         * modules/sethostname-tests (Files): Sort by decreasing importance.
25739         (configure.ac): Check for geteuid.
25740         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
25741         the test when there's nothing to test. Drop an unnecessary cast.
25742         Improve an error message. Verify that the final sethostname() call
25743         succeeds.
25745 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
25747         Add a test suite for the sethostname module.
25748         * modules/sethostname-tests: New file.  A test program
25749         for the sethostname module.
25750         * tests/test-sethostname.c: Likewise.
25752 2011-12-03  Bruno Haible  <bruno@clisp.org>
25754         Tweak last commit.
25755         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
25756         Fix preprocessor directives indentation. Fix typos.
25757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
25758         * modules/unistd (Makefile): Likewise.
25760 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
25762         Integrate the sethostname module into unistd.
25763         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
25764         into the unistd.h header.
25765         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
25766         preprocessor directives.
25767         * modules/unistd: Setup the Makefile substitutions of the
25768         SETHOSTNAME preprocessor directives.
25770 2011-12-03  Bruno Haible  <bruno@clisp.org>
25772         Tweak last commit.
25773         * lib/sethostname.c: Don't include <string.h>.
25774         (sethostname): No need to copy the argument string to the stack. Don't
25775         call clearerr. Preserve errno when fprintf failed.
25776         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
25777         Don't invoke AC_REPLACE_FUNCS.
25778         * modules/sethostname (Link): Remove empty section.
25779         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
25780         failure problem.
25782 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
25784         New module 'sethostname'.
25785         * lib/sethostname.c (sethostname): New file.  Provide sethostname
25786         for systems that lack it.
25787         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
25788         sethostname declaration and function.
25789         * modules/sethostname: New file.  Define the sethostname module.
25791 2011-12-03  Bruno Haible  <bruno@clisp.org>
25793         Tweak last commit.
25794         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
25796 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
25798         Split the HOST_NAME_MAX detection into a separate m4 macro.
25799         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
25800         macro so it can be used by the pending sethostname module.
25802 2011-12-03  Bruno Haible  <bruno@clisp.org>
25804         Fix module descriptions syntax.
25805         * modules/argv-iter (License): Fix syntax.
25806         * modules/di-set (License): Likewise.
25807         * modules/ino-map (License): Likewise.
25808         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
25810 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
25812         stdalign: port to Clang 3.0
25813         Problem reported by Simon Josefsson in
25814         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
25815         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
25816         which has <stdalign.h> but which does not define alignof.
25817         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
25819 2011-12-01  Eric Blake  <eblake@redhat.com>
25821         mktempd: silence dd usage
25822         * build-aux/mktempd (rand_bytes): Silence dd.
25824 2011-11-30  Simon Josefsson  <simon@josefsson.org>
25826         manywarnings: Don't mention gcc version in docstring.
25827         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
25828         Jim Meyering <meyering@redhat.com>.
25830 2011-11-30  Jim Meyering  <meyering@redhat.com>
25832         hash: mark a few floating point constants with "f" suffix
25833         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
25834         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
25835         floating point constants with "f", since they're destined to be
25836         saved/used as "float"s.
25838 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
25840         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
25841         * tests/test-float.c (test_long_double): Correct and re-enable the
25842         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
25844 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
25846         Avoid subtracting two pointers that don't point into the same block.
25847         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
25848         only pointers into the same memory block are subtracted. We cannot
25849         assume that sizeof (ptrdiff_t) == sizeof (void *).
25851 2011-11-29  Eric Blake  <eblake@redhat.com>
25853         maint.mk: add syntax check for use of compare from init.sh
25854         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
25855         moved here from coreutils.
25857         manywarnings: drop -Wunsuffixed-float-constants
25858         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
25859         '1.0D', which is the only way to silence this warning for 'double'.
25861 2011-11-29  Jim Meyering  <meyering@redhat.com>
25863         hash: mark compute_bucket_size with the pure attribute
25864         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
25866         quotearg, propername: correct pragma guard expression
25867         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
25868         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
25870 2011-11-28  Jim Meyering  <meyering@redhat.com>
25872         propername: do not mark proper_name with the const attribute
25873         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
25874         since it examines data pointed to by its parameter.
25875         * lib/propername.c (proper_name): Instead, add a pragma to suppress
25876         the suggestion from -Wsuggest-attribute=const.
25878         propername: mark one more function as const
25879         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
25881 2011-11-27  Jim Meyering  <meyering@redhat.com>
25883         mark functions with const and pure attributes
25885         Mark functions per suggestions from gcc-4.6 when using these options:
25886         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
25887         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
25888         Follow these guidelines: when possible, apply the attribute to
25889         an extern declaration, not to its definition.  Apply it to the
25890         definition only when the definition is static.
25891         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
25892         * lib/argv-iter.h (argv_iter_n_args): Likewise.
25893         * lib/base64.h (isbase64): Likewise.
25894         * lib/basename-lgpl.c (last_component, base_len): Likewise.
25895         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
25896         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
25897         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
25898         (c_tolower, c_toupper): Likewise.
25899         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
25900         * lib/chdir-long.c (find_non_slash): Likewise.
25901         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
25902         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
25903         * lib/file-type.h (file_type): Likewise.
25904         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
25905         * lib/filevercmp.c (verrevcmp): Likewise.
25906         * lib/freadahead.h (freadahead): Likewise.
25907         * lib/fts.c (fts_maxarglen): Likewise.
25908         * lib/hash-pjw.h (hash_pjw): Likewise.
25909         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
25910         * lib/hash.c (is_prime, next_prime): Likewise.
25911         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
25912         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
25913         (hash_table_ok, hash_get_first, hash_string): Likewise.
25914         (compute_bucket_size): Likewise.
25915         * lib/i-ring.h (i_ring_empty): Likewise.
25916         * lib/isnan.c (isnanl): Likewise.
25917         * lib/math.h (isnanl, rpl_isnanl): Likewise.
25918         * lib/memcasecmp.h (memcasecmp): Likewise.
25919         * lib/memchr2.h (memchr2): Likewise.
25920         * lib/memcmp2.h (memcmp2): Likewise.
25921         * lib/parse-datetime.y (lookup_zone): Likewise.
25922         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
25923         [!WINDOWS_SOCKETS]: Likewise.
25924         * lib/strnlen1.h (strnlen1): Likewise.
25925         * lib/uniwidth.in.h (uc_width): Likewise.
25926         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
25927         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
25928         (quoting_options_from_style): Add a comment.
25929         * lib/propername.h (proper_name): Add a comment.
25931 2011-11-27  Bruno Haible  <bruno@clisp.org>
25933         Remove unused macros from !_LIBC code in glibc-borrowed files.
25934         * lib/fnmatch.c (STRCOLL): Remove macro.
25935         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
25936         * lib/glob.c (__stat, __readdir64): Remove macros.
25937         * lib/tempname.c (__open64, __xstat64): Remove macros.
25938         Suggested by Paul Eggert.
25940 2011-11-27  Bruno Haible  <bruno@clisp.org>
25942         getcwd: Fix link error on MSVC 9.
25943         * modules/getcwd (Depends-on): Add readdir, rewinddir.
25945 2011-11-27  Bruno Haible  <bruno@clisp.org>
25947         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
25948         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
25949         HAVE_OPENDIR is 0.
25950         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
25951         HAVE_CLOSEDIR is 0.
25952         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
25953         is 0.
25954         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
25956 2011-11-27  Bruno Haible  <bruno@clisp.org>
25958         getcwd: Fix bug from 2011-08-17.
25959         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
25960         platforms that need it.
25961         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
25962         code of 4 to be a failure, not a success. This ensures that
25963         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
25965 2011-11-27  Bruno Haible  <bruno@clisp.org>
25967         binary-io tests: Avoid test failure on mingw when libtool is used.
25968         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
25969         Don't verify the size of t-bin-out1.tmp here.
25970         * tests/test-binary-io.sh: Verify it here.
25971         Reported by Simon Josefsson.
25973 2011-11-26  Bruno Haible  <bruno@clisp.org>
25975         Fix conflict between two instantiations of module 'unistd'.
25976         * gnulib-tool (func_emit_autoconf_snippet): Substitute
25977         ${include_guard_prefix} also in the autoconf snippet.
25978         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
25979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
25980         GNULIB_UNISTD_H_GETOPT.
25981         * modules/getopt-posix (configure.ac): Set the
25982         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
25983         * modules/getopt-gnu (configure.ac): Likewise.
25984         * modules/unistd (Makefile.am): Change the substitution value of
25985         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
25986         Reported by Simon Josefsson.
25988 2011-11-25  Bruno Haible  <bruno@clisp.org>
25990         pagealign_alloc: Doc and comments.
25991         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
25992         module.
25993         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
25995 2011-11-25  Jim Meyering  <meyering@redhat.com>
25997         test-update-copyright.sh: avoid false-positive failure
25998         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
25999         around false positive failure on Cygwin/Windows.  The latter was
26000         matching erroneously-created files with names like
26001         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
26003 2011-11-25  Simon Josefsson  <simon@josefsson.org>
26005         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
26006         * m4/valgrind-tests.m4: Check that the parameters that will be
26007         used works, not just a subset of them.  Reported by Bruno Haible
26008         <bruno@clisp.org>.
26010 2011-11-24  Jim Meyering  <meyering@redhat.com>
26012         test-stdalign.c: comment out long double tests
26013         * tests/test-stdalign.c: Don't try to reduce alignment of long double
26014         variables.  That provokes errors like this from gcc-4.7.0 20111124:
26015         error: '_Alignas' specifiers cannot reduce alignment of \
26016         'static_longdouble_alignas'.
26018 2011-11-22  Jim Meyering  <meyering@redhat.com>
26020         init.sh: make "compare /dev/null FILE" output more readable
26021         * tests/init.sh (compare_): Document the preferred order of arguments.
26022         (emit_diff_u_header_): New function.
26023         (compare_dev_null_): Emit a simulated diff, rather than just the
26024         contents of the unexpected file.  Suggestion from Bruno Haible.
26026 2011-11-21  Jim Meyering  <meyering@redhat.com>
26027             Eric Blake  <eblake@redhat.com>
26029         init.sh: work around OSF/1 5.1's mishandling of /dev/null
26030         * tests/init.sh: Make our compare function slightly more portable.
26031         Reported by Bruno Haible in
26032         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
26034 2011-11-21  Simon Josefsson  <simon@josefsson.org>
26036         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
26037         before using it, in code that ends up in config.h.
26039 2011-11-20  Bruno Haible  <bruno@clisp.org>
26041         getcwd: Work around getcwd bug on AIX 5..7.
26042         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
26043         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
26044         Use a different value for gl_cv_func_getcwd_path_max. Move the
26045         definition of HAVE_PARTLY_WORKING_GETCWD from here...
26046         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
26047         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
26048         Define HAVE_MINIMALLY_WORKING_GETCWD.
26049         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
26050         where it is not even minimally working, that is, on AIX.
26051         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
26052         m4/getcwd-path-max.m4.
26053         (main): Update exit code computation.
26054         * doc/posix-functions/getcwd.texi: Mention list of platforms where
26055         getcwd does not handle long file names.
26057 2011-11-20  Bruno Haible  <bruno@clisp.org>
26059         getcwd: Fix bug from 2009-09-10.
26060         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
26061         like "no".
26063 2011-11-20  Simon Josefsson  <simon@josefsson.org>
26065         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
26067 2011-11-20  Bruno Haible  <bruno@clisp.org>
26069         fma tests: Avoid shadowing local variables.
26070         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
26071         expected.
26073 2011-11-20  Bruno Haible  <bruno@clisp.org>
26075         copysignf tests: Fix.
26076         * tests/test-copysignf.c: Fix signature check.
26078 2011-11-20  Bruno Haible  <bruno@clisp.org>
26080         fma: Remove unused code.
26081         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
26082         unused macros.
26084 2011-11-20  Bruno Haible  <bruno@clisp.org>
26086         sethostname: Fix doc about AIX.
26087         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
26088         sethostname; it has it.
26090         sethostname: Mention more portability problems.
26091         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
26092         problem.
26093         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26095 2011-11-19  Bruno Haible  <bruno@clisp.org>
26097         Depend on module fcntl-h when AT_FDCWD is used.
26098         * modules/utimens (Depends-on): Add fcntl-h.
26099         * modules/areadlinkat (Depends-on): Likewise.
26100         * modules/areadlinkat-with-size (Depends-on): Likewise.
26101         * modules/faccessat (Depends-on): Likewise.
26102         * modules/fchmodat (Depends-on): Likewise.
26103         * modules/fchownat (Depends-on): Likewise.
26104         * modules/getcwd (Depends-on): Likewise.
26105         * modules/mkdirat (Depends-on): Likewise.
26106         * modules/mkfifoat (Depends-on): Likewise.
26107         * modules/readlinkat (Depends-on): Likewise.
26108         * modules/symlinkat (Depends-on): Likewise.
26109         * modules/dup2-tests (Depends-on): Likewise.
26110         * modules/fdutimensat-tests (Depends-on): Likewise.
26111         * modules/futimens-tests (Depends-on): Likewise.
26113 2011-11-19  Bruno Haible  <bruno@clisp.org>
26115         euidaccess: Update a comment.
26116         * lib/euidaccess.c: Update comment about platforms with faccessat.
26118 2011-11-19  Bruno Haible  <bruno@clisp.org>
26120         openat: Fix file list.
26121         * modules/openat (Files): Remove lib/at-func.c.
26123 2011-11-19  Bruno Haible  <bruno@clisp.org>
26125         fstatat: Simplify.
26126         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
26127         gnulib should define rpl_fstatat, there is a
26128         "#define fstatat rpl_fstatat" in <sys/stat.h>.
26130 2011-11-19  Bruno Haible  <bruno@clisp.org>
26132         Ensure 'inline' can be used in tests/test-utimens-common.h.
26133         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
26134         * modules/futimens-tests (configure.ac): Likewise.
26135         * modules/utimens-tests (configure.ac): Likewise.
26136         * modules/utimensat-tests (configure.ac): Likewise.
26138 2011-11-19  Simon Josefsson  <simon@josefsson.org>
26140         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
26141         not hash_insert0.
26142         (hash_insert_if_absent): Doc fix.
26144 2011-11-19  Simon Josefsson  <simon@josefsson.org>
26146         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
26148 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
26150         test-getcwd: disambiguate exit status
26151         * tests/test-getcwd.c (test_long_name): Return 0..7.
26152         (main): Exit with an unambiguous exit status.  The old
26153         code yielded a mysterious mixture of two failure codes.
26155         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
26156         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
26157         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
26158         rpl_fstatat or fstatat.  This should fix the other problem
26159         reported by Kai Habel in
26160         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
26161         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
26162         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
26163         and I reproduced it on a Solaris 8 host we still have in production.
26165 2011-11-18  Jim Meyering  <meyering@redhat.com>
26167         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
26168         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
26169         Add a sentence to the comment.
26170         (hash_insert0): New function that simply calls hash_insert_if_absent.
26171         * lib/hash.h (hash_insert_if_absent): Declare it.
26172         (hash_insert0): Add deprecation attribute.
26173         (_GL_ATTRIBUTE_DEPRECATED): Define.
26174         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
26175         not hash_insert0.
26176         * NEWS: Mention it, even though it's not really an incompatible change.
26178 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
26180         openat: avoid compilation failure due to lack of <errno.h> inclusion
26181         * lib/openat.c: Include <errno.h>.
26183 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26185         * modules/getcwd (Depends-on): Add fdopendir.
26186         This fixes one of the two problems reported by Kai Habel in
26187         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
26189         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
26190         stdalign problem reported by Ian Beckwith in
26191         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
26192         * modules/crypto/gc-arcfour (Depends-on):
26193         Depend conditionally on crypto/arcfour.
26194         * modules/crypto/gc-arctwo (Depends-on):
26195         Depend conditionally on crypto/arctwo.
26196         * modules/crypto/gc-des (Depends-on):
26197         Depend conditionally on crypto/des.
26198         * modules/crypto/gc-hmac-md5 (Depends-on):
26199         Depend conditionally on crypto/hmac-md5.
26200         * modules/crypto/gc-hmac-sha1 (Depends-on):
26201         Depend conditionally on crypto/hmac-sha1.
26202         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
26203         * modules/crypto/gc-md4 (Depends-on):
26204         Depend conditionally on crypto/md4.
26205         * modules/crypto/gc-md5 (Depends-on):
26206         Depend conditionally on crypto/md5.
26207         * modules/crypto/gc-rijndael (Depends-on):
26208         Depend conditionally on crypto/rijndael.
26209         * modules/crypto/gc-sha1 (Depends-on):
26210         Depend conditionally on crypto/sha1.
26211         * modules/crypto/gc-arcfour:
26212         * modules/crypto/gc-arctwo:
26213         * modules/crypto/gc-des:
26214         * modules/crypto/gc-hmac-md5:
26215         * modules/crypto/gc-hmac-sha1:
26216         * modules/crypto/gc-md2:
26217         * modules/crypto/gc-md4:
26218         * modules/crypto/gc-md5:
26219         * modules/crypto/gc-rijndael:
26220         * modules/crypto/gc-sha1:
26221         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
26222         now that the conditional dependencies do the work for us.
26224 2011-11-17  Jim Meyering  <meyering@redhat.com>
26226         tests: factor st_ctime-comparison out of two headers
26227         * tests/test-utimens-common.h (ctime_compare): Define.
26228         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
26229         * tests/test-lutimens.h (test_lutimens): Likewise.
26230         * tests/test-utimens.h (test_utimens): Likewise.
26232         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
26233         Invoke the test program via an init.sh-using wrapper.
26234         * tests/test-getcwd.sh: New file.
26235         * modules/getcwd-tests (Files): Add it.
26236         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
26238 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
26240         gitlog-to-changelog: support multi-author commits.
26241         The FSF cares about keeping track of all authors of patches to its
26242         projects, but Git doesn't provide obvious support for multi-author
26243         changesets. Consensus seems to be forming around the use of extra
26244         Signed-off-by inspired lines in the log message formatted as
26245         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
26246         multi-author commits between version control systems.
26247         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
26248         log message and output in standard ChangeLog multi-author format.
26249         Reported by Peter Rosin <peda@lysator.liu.se>
26251 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26252             Bruno Haible  <bruno@clisp.org>
26254         Fix some modules' file list.
26255         * modules/fstatat (Files): Add m4/lstat.m4.
26256         * modules/openat (Files): Likewise.
26257         * modules/unlinkat (Files): Likewise.
26259 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
26261         maint.mk: fix tight-scope.mk generation in VPATH builds.
26262         * top/maint.mk (tight-scope.mk): Make sure to prefix file
26263         reference with $(srcdir) so that the file is found correctly even
26264         when running `make syntax-check' in a VPATH build.
26266 2011-11-13  Bruno Haible  <bruno@clisp.org>
26267             Jim Meyering  <meyering@redhat.com>
26269         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
26270         * tests/init.sh (compare): Remove "No differences encountered" or
26271         synonymous output from the 'diff' program.
26273 2011-11-13  Bruno Haible  <bruno@clisp.org>
26275         Makefile: Tweak indentation.
26276         * Makefile: Use tab as first character in every line that contains rule
26277         commands.
26279 2011-11-13  Bruno Haible  <bruno@clisp.org>
26281         Syntax check for copyright statements.
26282         * check-copyright: New file.
26283         * Makefile (sc_check_copyright): New rule.
26285 2011-11-13  Simon Josefsson  <simon@josefsson.org>
26287         * build-aux/git-version-gen: Add --prefix to configure the tag
26288         match string.
26290 2011-11-13  Simon Josefsson  <simon@josefsson.org>
26292         * build-aux/git-version-gen: Add --help and --version.
26294 2011-11-12  Jim Meyering  <meyering@redhat.com>
26296         revamp the other test-exclude?.sh scripts to use init.sh, too
26297         * tests/test-exclude1.sh: Use init.sh.
26298         * tests/test-exclude2.sh: Likewise.
26299         * tests/test-exclude3.sh: Likewise.
26300         * tests/test-exclude4.sh: Likewise.
26301         * tests/test-exclude5.sh: Likewise.
26302         * tests/test-exclude6.sh: Likewise.
26303         * tests/test-exclude7.sh: Likewise.
26304         * tests/test-exclude8.sh: Likewise.
26305         * modules/exclude-tests (Files): List init.sh.
26307         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
26308         These shell scripts ignored failure of the binary test-exclude,
26309         so making the latter return 77 didn't cause them to be skipped.
26310         * tests/test-exclude5.sh: Exit with test-exclude's error status
26311         when that program fails.  Revamp to use init.sh.
26312         * tests/test-exclude2.sh: Likewise.
26314         test-exclude: fix a typo
26315         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
26317 2011-11-11  Bruno Haible  <bruno@clisp.org>
26319         obstack: Fix compilation error on MSVC 9.
26320         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
26322 2011-11-11  Jim Meyering  <meyering@redhat.com>
26324         test-exclude: skip tests rather than failing on deficient systems
26325         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
26326         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
26327         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
26328         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
26330 2011-11-10  Bruno Haible  <bruno@clisp.org>
26332         ptsname_r test: Avoid gcc warning on glibc systems.
26333         * tests/test-ptsname_r.c (null_ptr): New function.
26334         (test_errors): Use it.
26336 2011-11-10  Bruno Haible  <bruno@clisp.org>
26338         ptsname_r: Avoid compilation error on OSF/1 5.1.
26339         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
26340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
26341         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
26342         function is not declared or incompatibly declared.
26343         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
26344         * modules/ptsname_r (Depends-on, configure.ac): Update.
26345         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
26347 2011-11-10  Bruno Haible  <bruno@clisp.org>
26349         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
26350         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
26351         When cross-compiling, guess yes on all platforms except AIX.
26352         Reported by Ludovic Courtès <ludo@gnu.org>.
26354 2011-11-09  Bruno Haible  <bruno@clisp.org>
26356         ptsname_r tests: Fix bugs.
26357         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
26358         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
26360 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26362         fstatat: work with cross-compilation
26363         Problem reported by Ludovic Courtès in
26364         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
26365         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
26366         "cross-compiling" and assume the bug is present.  Replace
26367         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
26368         an inverted sense, to be more conservative about our assumptions.
26369         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
26371 2011-11-09  Bruno Haible  <bruno@clisp.org>
26373         Improve MODULES.html output.
26374         * modules/mkfifoat (Description): Use the word "function".
26375         * modules/readlinkat (Description): Likewise.
26376         * modules/symlinkat (Description): Likewise.
26378 2011-11-09  Eric Blake  <eblake@redhat.com>
26380         ptsname_r-tests: new test module
26381         * modules/ptsname_r-tests: New module.
26382         * tests/test-ptsname_r.c: New file.
26384         ptsname_r: new module
26385         * modules/ptsname_r: New module.
26386         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
26387         * lib/ptsname.c (__ptsname_r): Split...
26388         * lib/ptsname_r.c: ...into new file.
26389         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
26390         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
26391         * modules/stdlib (Makefile.am): Substitute witnesses.
26392         * lib/stdlib.in.h (ptsname_r): Declare it.
26393         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
26394         * MODULES.html.sh (Misc): Likewise.
26395         * modules/ptsname (Depends-on): Alter dependency.
26396         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
26398 2011-11-09  Jim Meyering  <meyering@redhat.com>
26400         announce-gen: be more concise when there's only one URL+tarball
26401         * build-aux/announce-gen (get_tool_versions): When you distribute
26402         only one type of tarball, combine the first two "Here are..."
26403         sections and make the key-checking grammar independent of
26404         how many tarballs there are.
26406 2011-11-09  Eric Blake  <eblake@redhat.com>
26408         openpty: provide a stub on mingw
26409         * lib/pty.in.h (includes): Provide forward declarations.
26410         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
26412         raise: fix mingw handling of SIGPIPE
26413         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
26415 2011-11-08  Bruno Haible  <bruno@clisp.org>
26417         More conditional dependencies.
26418         * modules/faccessat (Depends-on): Add conditions.
26419         * modules/fchmodat (Depends-on): Likewise.
26420         * modules/fchownat (Depends-on): Likewise.
26421         * modules/fstatat (Depends-on): Likewise.
26422         * modules/mkfifoat (Depends-on): Likewise.
26423         * modules/readlinkat (Depends-on): Likewise.
26424         * modules/symlinkat (Depends-on): Likewise.
26425         * modules/unlinkat (Depends-on): Likewise.
26426         * modules/utimensat (Depends-on): Likewise.
26427         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
26428         * modules/linkat (Depends-on): Refine the conditions.
26429         * modules/renameat (Depends-on): Likewise.
26431 2011-11-08  Bruno Haible  <bruno@clisp.org>
26433         faccessat: Move AC_LIBOBJ invocation to module description.
26434         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
26435         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
26436         invocation from here...
26437         * modules/faccessat (configure.ac): ... to here. Invoke
26438         gl_PREREQ_FACCESSAT.
26440 2011-11-08  Bruno Haible  <bruno@clisp.org>
26442         faccessat: Simplify autoconf macro.
26443         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
26444         gl_FUNC_EUIDACCESS.
26446 2011-11-08  Bruno Haible  <bruno@clisp.org>
26448         renameat: Fix dependencies.
26449         * modules/renameat (Depends-on): Add stdbool.
26451 2011-11-08  Bruno Haible  <bruno@clisp.org>
26453         mkfifoat: Fix module description.
26454         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
26455         not gl_UNISTD_MODULE_INDICATOR.
26457 2011-11-08  Bruno Haible  <bruno@clisp.org>
26459         fstatat: Remove unused dependency.
26460         * modules/fstatat (Depends-on): Remove fstat.
26462 2011-11-08  Simon Josefsson  <simon@josefsson.org>
26464         GNUmakefile: behave when Makefile is missing.
26465         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
26467 2011-11-08  Bruno Haible  <bruno@clisp.org>
26469         openat: Conditionalize dependencies.
26470         * lib/openat.c: Reduce the scope of some #includes.
26471         * modules/openat (Depends-on): Add conditions.
26473 2011-11-07  Jim Meyering  <meyering@redhat.com>
26475         maint.mk: extract GPG key ID without using a temporary file
26476         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
26477         without using a temporary file.  Based on a suggestion from Werner Koch
26478         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
26480 2011-11-07  Eric Blake  <eblake@redhat.com>
26482         grantpt: fix typo
26483         * lib/stdlib.in.h (grantpt): Check correct function.
26485         maint.mk: silence new syntax check
26486         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
26488 2011-11-06  Bruno Haible  <bruno@clisp.org>
26490         Doc about floating-point and math API.
26491         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
26492         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
26494 2011-11-06  Bruno Haible  <bruno@clisp.org>
26496         stdalign tests: Skip the test when compiled by Sun C.
26497         * tests/test-stdalign.c (main): Skip the test on Sun C.
26499 2011-11-06  Bruno Haible  <bruno@clisp.org>
26501         ansi-c++-opt: Complete the 2011-06-05 change.
26502         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
26503         does not support namespaces, set the variable to "no", not to ":".
26505 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
26507         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
26509 2011-11-06  Bruno Haible  <bruno@clisp.org>
26511         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
26512         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
26513         (minus_zerol) [HP-UX]: New macro.
26514         (unary_minus) [HP-UX]: New function.
26515         (copysignl) [HP-UX]: Use unary_minus function.
26517 2011-11-06  Bruno Haible  <bruno@clisp.org>
26519         ldexp, ldexpf, ldexpl: Enhance tests.
26520         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
26521         and tests/test-ldexpl.c.
26522         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
26523         LDEXP, MIN_EXP, MAX_EXP): New macros.
26524         Include test-ldexp.h.
26525         (main): Just call test_function.
26526         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
26527         infinity.h, nan.h.
26528         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
26529         MAX_EXP): New macros.
26530         Include test-ldexp.h.
26531         (x, y): Remove variables.
26532         (main): Just call test_function.
26533         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
26534         infinity.h, nan.h.
26535         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
26536         MAX_EXP): New macros.
26537         Include test-ldexp.h.
26538         (x, y): Remove variables.
26539         (main): Just call test_function.
26540         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
26541         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
26542         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
26543         (Depends-on): Add isnand-nolibm, signbit, float.
26544         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
26545         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
26546         (Depends-on): Add isnanf-nolibm, signbit, float.
26548 2011-11-06  Bruno Haible  <bruno@clisp.org>
26550         math tests: Cosmetics.
26551         * tests/test-math-c++.cc: Reorder declarations.
26553 2011-11-05  Bruno Haible  <bruno@clisp.org>
26555         fma*: Simplify test.
26556         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
26557         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
26559         Tests for module 'fmal'.
26560         * modules/fmal-tests: New file.
26561         * tests/test-fmal1.c: New file.
26562         * tests/test-fmal2.c: New file.
26564         New module 'fmal'.
26565         * lib/math.in.h (fmal): New declaration.
26566         * lib/fmal.c: New file.
26567         * m4/fmal.m4: New file.
26568         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
26569         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
26570         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
26571         REPLACE_FMAL.
26572         * modules/fmal: New file.
26573         * doc/posix-functions/fmal.texi: Mention the new module and the various
26574         bugs.
26576         Tests for module 'fmaf'.
26577         * modules/fmaf-tests: New file.
26578         * tests/test-fmaf1.c: New file.
26579         * tests/test-fmaf2.c: New file.
26581         New module 'fmaf'.
26582         * lib/math.in.h (fmaf): New declaration.
26583         * lib/fmaf.c: New file.
26584         * m4/fmaf.m4: New file.
26585         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
26586         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
26587         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
26588         REPLACE_FMAF.
26589         * modules/fmaf: New file.
26590         * doc/posix-functions/fmaf.texi: Mention the new module and the various
26591         bugs.
26593         Tests for module 'fma'.
26594         * modules/fma-tests: New file.
26595         * tests/test-fma1.c: New file.
26596         * tests/test-fma1.h: New file.
26597         * tests/test-fma2.c: New file.
26598         * tests/test-fma2.h: New file.
26600         New module 'fma'.
26601         * lib/math.in.h (fma): New declaration.
26602         * lib/fma.c: New file.
26603         * m4/fma.m4: New file.
26604         * m4/fegetround.m4: New file.
26605         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
26606         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
26607         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
26608         REPLACE_FMA.
26609         * modules/fma: New file.
26610         * doc/posix-functions/fma.texi: Mention the new module and the various
26611         bugs.
26613         Extend gl_MATHFUNC.
26614         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
26615         Support 'void' as argument type.
26616         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
26618 2011-11-05  Jim Meyering  <meyering@redhat.com>
26620         maint.mk: also prohibit inclusion of dirent.h without use
26621         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
26623 2011-11-05  Bruno Haible  <bruno@clisp.org>
26625         ldexpl tests: Avoid test failure on MSVC 9.
26626         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
26627         value. Needed in order to enforce the conversion from a value greater
26628         than LDBL_MAX to Infinity.
26630 2011-11-05  Bruno Haible  <bruno@clisp.org>
26632         New modules 'at-internal', 'openat-h', split off from module 'openat'.
26633         * modules/at-internal: New file, extracted from modules/openat.
26634         * modules/openat-h: New file.
26635         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
26636         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
26637         * modules/openat (Description): Add reference to POSIX function.
26638         (Files): Remove lib/openat.h, lib/openat-proc.c.
26639         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
26640         intprops, unistd.
26641         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
26642         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
26643         gl_FCNTL_MODULE_INDICATOR.
26644         (Include): Remove unistd.h, openat.h.
26645         * modules/areadlinkat (Files): Add lib/at-func.c.
26646         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
26647         openat-die, openat-h, save-cwd.
26648         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
26649         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
26650         openat-die, openat-h, save-cwd, unistd.
26651         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
26652         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26653         openat-h, save-cwd. Remove fcntl-h, openat.
26654         * modules/fchmodat (Files): Remove lib/openat.h.
26655         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
26656         openat, stdbool, unistd.
26657         * modules/fchownat (Files): Remove lib/openat.h.
26658         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
26659         openat, stdbool, sys_stat.
26660         * modules/fdopendir (Files): Remove lib/openat-priv.h,
26661         lib/openat-proc.c.
26662         (Depends-on): Add at-internal.
26663         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
26664         * modules/fstatat (Files): Remove lib/openat.h.
26665         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
26666         stdbool, unistd.
26667         * modules/fts (Depends-on): Add openat-h.
26668         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
26669         openat.
26670         * modules/mkdirat (Files): Remove lib/openat.h.
26671         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
26672         openat, stdbool, sys_stat.
26673         * modules/mkfifoat (Files): Add lib/at-func.c.
26674         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26675         openat-h, save-cwd. Remove fcntl-h, openat.
26676         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
26677         * modules/readlinkat (Files): Add lib/at-func.c.
26678         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26679         openat-h, save-cwd. Remove fcntl-h, openat.
26680         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
26681         openat.
26682         * modules/selinux-at (Files): Add lib/at-func.c.
26683         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
26684         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
26685         * modules/symlinkat (Files): Add lib/at-func.c.
26686         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26687         openat-h, save-cwd. Remove fcntl-h, openat.
26688         * modules/unlinkat (Files): Remove lib/openat.h.
26689         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
26690         stdbool.
26691         * modules/utimensat (Files): Add lib/at-func.c.
26692         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
26693         openat-die, openat-h, save-cwd.
26694         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
26695         * modules/fdutimensat-tests (Depends-on): Add openat.
26696         * modules/fstatat-tests (Depends-on): Add openat-h.
26697         * modules/readlinkat-tests (Depends-on): Add openat.
26698         * modules/symlinkat-tests (Depends-on): Add openat.
26700 2011-11-05  Bruno Haible  <bruno@clisp.org>
26702         openat: Include <stdbool.h>.
26703         * lib/openat.c: Include <stdbool.h>.
26705 2011-11-04  Bruno Haible  <bruno@clisp.org>
26707         fchownat, renameat, unlinkat: Fix dependencies.
26708         * modules/fchownat (Depends-on): Add fstatat.
26709         * modules/renameat (Depends-on): Likewise.
26710         * modules/unlinkat (Depends-on): Likewise.
26712 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
26714         openat: remove direct dependency on dirent
26715         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
26716         and hasn't been needed ever since fdopendir was split into its own
26717         module on 2009-08-31.
26718         * modules/openat (Depends-on): Remove dirent.
26720 2011-11-04  Bruno Haible  <bruno@clisp.org>
26722         renameat: Optimize code size.
26723         * modules/renameat (configure.ac): Don't compile at-func2.c if
26724         REPLACE_RENAMEAT is 1.
26726 2011-11-04  Bruno Haible  <bruno@clisp.org>
26728         openat tests: Fix file list.
26729         * modules/openat-tests (Files): Add tests/test-open.h.
26731 2011-11-04  Bruno Haible  <bruno@clisp.org>
26733         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
26734         * modules/fchmodat (Depends-on): Add openat-die.
26735         * modules/fchownat (Depends-on): Likewise.
26736         * modules/linkat (Depends-on): Likewise.
26737         * modules/renameat (Depends-on): Likewise.
26738         * modules/openat (Depends-on): Add dirent.
26740 2011-11-04  Jim Meyering  <meyering@redhat.com>
26742         at-func*.c: fix comments
26743         * lib/at-func2.c: Correct/improve first-line comment.
26744         * lib/at-func.c: Correct grammar in first-line comment.
26746 2011-11-04  Bruno Haible  <bruno@clisp.org>
26748         New module 'mkdirat', split off from module 'openat'.
26749         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
26750         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
26751         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
26752         * modules/mkdirat: New file, extracted from modules/openat.
26753         * modules/openat (Files): Remove lib/mkdirat.c.
26754         (Depends-on): Remove mkdir.
26755         (configure.ac): Remove AC_LIBOBJ of mkdirat.
26756         (Include): Remove <sys/stat.h>.
26757         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
26758         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
26759         tests/test-mkdir.h.
26760         (Depends-on): Remove ignore-value.
26761         (Makefile.am): Remove rules for test-mkdirat.
26762         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
26763         of module 'openat'.
26764         * NEWS: Mention the change.
26766 2011-11-04  Bruno Haible  <bruno@clisp.org>
26768         closedir: Avoid warning on mingw.
26769         * lib/closedir.c: Include <unistd.h>.
26771 2011-11-04  Bruno Haible  <bruno@clisp.org>
26773         New module 'fstatat', split off from module 'openat'.
26774         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
26775         defined.
26776         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
26777         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
26778         gl_FUNC_FSTATAT.
26779         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
26780         * modules/fstatat: New file, extracted from modules/openat.
26781         * modules/openat (Files): Remove lib/fstatat.c.
26782         (Depends-on): Remove lstat.
26783         (configure.ac): Remove AC_LIBOBJ of fstatat.
26784         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
26785         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
26786         tests/test-lstat.h, tests/test-stat.h.
26787         (Depends-on): Remove getcwd-lgpl.
26788         (Makefile.am): Remove rules for test-fstatat.
26789         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
26790         of module 'openat'.
26791         * NEWS: Mention the change.
26792         * modules/getcwd (Depends-on): Add fstatat.
26793         * modules/linkat (Depends-on): Likewise.
26794         * modules/mkfifoat-tests (Depends-on): Likewise.
26795         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
26797 2011-11-03  Bruno Haible  <bruno@clisp.org>
26799         New module 'unlinkat', split off from module 'openat'.
26800         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
26801         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
26802         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
26803         * modules/unlinkat: New file, extracted from modules/openat. Correct
26804         the dependency conditions.
26805         * modules/openat (Files): Remove lib/unlinkat.c.
26806         (Depends-on): Remove rmdir, unlink.
26807         (configure.ac): Remove AC_LIBOBJ of unlinkat.
26808         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
26809         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
26810         tests/test-rmdir.h, tests/test-unlink.h.
26811         (Depends-on): Remove unlinkdir.
26812         (Makefile.am): Remove rules for test-unlinkat.
26813         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
26814         of module 'openat'.
26815         * NEWS: Mention the change.
26816         * modules/linkat-tests (Depends-on): Add unlinkat.
26817         * modules/mkfifoat-tests (Depends-on): Likewise.
26818         * modules/readlinkat-tests (Depends-on): Likewise.
26820 2011-11-02  Bruno Haible  <bruno@clisp.org>
26822         New module 'fchmodat', split off from module 'openat'.
26823         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
26824         defined.
26825         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
26826         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
26827         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
26828         * modules/fchmodat: New file, extracted from modules/openat.
26829         * modules/openat (Files): Remove lib/fchmodat.c.
26830         (configure.ac): Remove AC_LIBOBJ of fchmodat.
26831         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
26832         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
26833         (Makefile.am): Remove rules for test-fchmodat.
26834         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
26835         of module 'openat'.
26836         * NEWS: Mention the change.
26838 2011-11-02  Jim Meyering  <meyering@redhat.com>
26840         putenv: indent #definition of "environ" to placate cppi
26841         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
26843         gitlog-to-changelog: provide a ChangeLog-repair mechanism
26844         Git logs are often treated as immutable, because editing them
26845         changes the SHA1 checksums of all descendants.  Thus, errors in
26846         git logs tend to stay there forever.  However, when we generate
26847         a ChangeLog file -- typically for distribution -- from that git log,
26848         we can actually make corrections in the generated file.  The key
26849         lies in recording in machine-readable/applicable form the desired
26850         corrections.  See --help for description and an example.
26851         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
26852         (usage): Describe it; alphabetize option descriptions.
26853         (main): Honor the new option, carefully.
26855 2011-11-01  Jim Meyering  <meyering@redhat.com>
26857         gitlog-to-changelog: avoid an infloop
26858         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
26859         that ends up being empty.
26861 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26863         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
26864         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
26865         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
26866         contains (possibly-quoted) backslashes.  This should avoid
26867         all-too-common shell bugs if COMPLICATED contains backslashes in
26868         the "wrong" places.  Reported by David Evans in
26869         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
26870         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
26871         because we want ASCII ranges.  Is there some reason we don't use
26872         the C locale everywhere in this script?
26873         (func_module, top level): Avoid unwanted pathname expansion when
26874         $repo_url_prefix or $repo_url_suffix_repl contain shell
26875         metacharacters like '?' and '*'.
26877 2011-11-01  Bruno Haible  <bruno@clisp.org>
26879         fchownat: Improve description.
26880         * modules/fchownat (Description): Add link to function.
26882 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26884         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
26885         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
26886         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
26887         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
26889 2011-11-01  Bruno Haible  <bruno@clisp.org>
26891         alignof: Avoid collision with stdalign module.
26892         * lib/alignof.h (alignof): Remove macro.
26893         * NEWS: Mention the change.
26894         Reported by Paul Eggert.
26896 2011-11-01  Bruno Haible  <bruno@clisp.org>
26898         New module 'fchownat', split off from module 'openat'.
26899         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
26900         defined.
26901         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
26902         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
26903         invoke gl_FUNC_FCHOWNAT.
26904         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
26905         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
26906         * modules/fchownat: New file, extracted from modules/openat.
26907         * modules/openat (Files): Remove lib/fchownat.c.
26908         (Depends-on): Remove lchown.
26909         (configure.ac): Remove AC_LIBOBJ of fchownat.
26910         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
26911         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
26912         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
26913         (Depends-on): Remove mgetgroups, usleep, stat-time.
26914         (configure.ac): Remove test for getegid.
26915         (Makefile.am): Remove rules for test-fchownat.
26916         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
26917         of module 'openat'.
26918         * NEWS: Mention the change.
26920 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
26922         stdalign: port better to MSVC and to Sun C 5.11
26923         This fixes some of the problems reported by Bruno Haible in
26924         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
26925         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
26926         shortcomings of MSVC and of Sun C 5.11.
26927         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
26928         around __declspec arg.
26929         * modules/stdalign-tests (Files): Add tests/macros.h.
26930         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
26931         Include macros.h, for ASSERT.
26932         (DECLARE_ALIGNED): Remove.
26933         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
26934         to catch bug), and to 1 if not (simplifies the rest of the code).
26935         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
26936         (CHECK_AUTO): Remove.
26937         (CHECK_ALIGNED): Check only the alignment of the static vars,
26938         since auto var alignment isn't supported by Sun C 5.11.
26939         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
26940         ASSERT failures are easier to diagnose.
26942 2011-10-31  Bruno Haible  <bruno@clisp.org>
26944         doc about some IRIX 5.3 problems.
26945         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
26946         on IRIX 5.3.
26947         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
26948         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
26949         5.3.
26950         * doc/posix-functions/grantpt.texi: Likewise.
26951         * doc/posix-functions/unlockpt.texi: Likewise.
26952         * doc/posix-functions/lgamma.texi: Likewise.
26953         * doc/posix-functions/nextafter.texi: Likewise.
26954         * doc/posix-functions/remainder.texi: Likewise.
26955         * doc/posix-functions/select.texi: Mention misplaced declaration on
26956         IRIX 5.3.
26957         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26959 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
26961         gitlog-to-changelog: fix git-log invocation.
26962         git-log mishandles date strings before 1970-01-01 UTC, and there is
26963         no use to specify --since=1970-01-01 by default anyway.
26964         * build-aux/gitlog-to-changelog: By default, when no --since option
26965         was given, do not specify explicit --since option to git-log.
26967 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
26969         gitlog-to-changelog: new option --append-dot.
26970         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
26971         first non-blank line of each commit message terminated with a dot.
26973 2011-10-30  Bruno Haible  <bruno@clisp.org>
26975         ffsl, ffsll: Avoid compilation error due to 'restrict'.
26976         * lib/ffsl.h: Include <config.h>.
26977         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
26979 2011-10-30  Jim Meyering  <meyering@redhat.com>
26981         GNUmakefile: reenable "make syntax-check" for most projects
26982         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
26983         build-aux variable", "syntax-check" would do nothing but succeed with
26984         the "No version control files detected..." diagnostic (unless you
26985         happened to override _build-aux via cfg.mk).
26986         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
26987         to precede inclusion of maint.mk.  Otherwise, these variables would
26988         be used undefined in any project that does not override the default.
26990 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
26992         gitlog-to-changelog: treat a message with only blank lines as empty.
26993         * build-aux/gitlog-to-changelog: Move the code that removes leading and
26994         trailing blank lines before the code that issues a warning about an
26995         empty commit message.
26997 2011-10-30  Jim Meyering  <meyering@redhat.com>
26999         test-parse-datetime.c: avoid new DST-related false positive test failure
27000         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
27001         based on the time/date we'll convert, not the current time.
27002         Otherwise, the moment we cross a DST boundary like today's in
27003         Europe, (CEST to CET), that offset ends up being one hour off.
27005 2011-10-27  Bruno Haible  <bruno@clisp.org>
27007         fstat: Tweak documentation.
27008         * modules/fstat (Description): More precise description.
27010 2011-10-27  Bruno Haible  <bruno@clisp.org>
27012         Update documentation regarding 'largefile' module.
27013         * doc/posix-functions/fstat.texi: Tweak wording.
27014         * doc/posix-functions/opendir.texi: Mention that the module fixes the
27015         problems with huge directories and/or small ino_t types.
27016         * doc/posix-functions/readdir.texi: Likewise.
27017         * doc/posix-functions/rewinddir.texi: Likewise.
27019 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
27021         maint.mk: don't maintain a second build-aux variable.
27022         * maint.mk (build_aux): Removed.  The maintainer-makefile module
27023         depends on GNUmakefile, which already maintains a cfg.mk
27024         overridable $(_build-aux) for projects with a non-standard
27025         build-aux directory location, although without the $(srcdir)
27026         prefix.  Use that variable consistently instead of introducing a
27027         second one.  Adjust all call sites.
27029 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27031         Add stdalign module and use it in other modules.
27032         This is based on a previous proposal by Bruno Haible
27033         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
27035         stdalign: new module
27036         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
27037         * modules/stdalign: New files.
27038         * MODULES.html.sh (c1x_core_properties): Add stdalign.
27039         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
27041         stdalign-tests: new module
27042         * modules/stdalign-tests, tests/test-stdalign.c: New files.
27044         argp: use stdalign
27045         * lib/argp-parse.c: Include <stdalign.h>.
27046         (alignof): Remove.
27047         * modules/argp (Depends-on): Add stdalign.
27049         crypto libraries: use stdalign
27050         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
27051         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
27052         Do not include <stdlib.h> twice, in md4.c.
27053         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
27054         because we are accessing a pointer's bit-pattern, not a size.
27055         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
27056         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
27057         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
27058         * modules/crypto/sha512: Likewise.
27060         sys_socket: use stdalign, not alignof
27061         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
27062         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
27064 2011-10-27  Bruno Haible  <bruno@clisp.org>
27066         raise test: Avoid a test failure on Linux/MIPS.
27067         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
27068         because 99 is a valid signal on Linux/MIPS.
27070 2011-10-27  Bruno Haible  <bruno@clisp.org>
27072         nonblocking tests: Fix test failure on Linux/MIPS.
27073         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
27074         Set to 270000.
27076 2011-10-27  Bruno Haible  <bruno@clisp.org>
27078         utimensat: Work around problem on Linux/hppa.
27079         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
27080         values.
27081         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
27083 2011-10-25  Jim Meyering  <meyering@redhat.com>
27085         maint.mk: fix a bug in sc_prohibit_stddef_without_use
27086         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
27087         after symbols like NULL, size_t, etc.
27088         Reported by Alfred M. Szmidt.
27090         maint.mk: exempt ENODATA from a syntax-check rule
27091         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
27092         from the sc_prohibit_always-defined_macros syntax-check rule.
27093         Add a comment.  See this for more details:
27094         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
27096 2011-10-23  Jim Meyering  <meyering@redhat.com>
27098         fts: close parent dir FD before returning from post-traversal fts_read
27099         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
27100         unlink A, even though an FD open on A remained.  This is suboptimal
27101         (holding a file descriptor open longer than needed), but otherwise not
27102         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
27103         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
27104         that represents a real problem: it causes the removal of A to fail
27105         with e.g., "rm: cannot remove `A': Device or resource busy"
27107         fts visits each directory twice and keeps a cache (fts_fd_ring) of
27108         directory file descriptors.  After completing the final, FTS_DP,
27109         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
27110         cache, but then proceeded to add a new FD to it via the subsequent
27111         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
27112         final file descriptor would be closed only via fts_close's call to
27113         fd_ring_clear.  Now, it is usually closed earlier, via the final
27114         FTS_DP-returning fts_read call.
27115         * lib/fts.c (restore_initial_cwd): New function, converted from
27116         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
27117         Update callers.
27118         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
27119         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
27121 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
27122             Bruno Haible  <bruno@clisp.org>
27123             Jim Meyering  <jim@meyering.net>
27125         readme-release: improve safety of release prep instructions.
27126         * README-release: Don't git pull all branches when only master
27127         is needed for the release process.
27128         Run make maintainer-clean before changing trees and merging.
27129         Don't try to run ./configure right after git pull in case files
27130         that influence the bootstrap process have changed, move the
27131         ./configure step to after running ./bootstrap.
27132         Don't bootstrap "one last time"... it's the first time!
27134 2011-10-22  Bruno Haible  <bruno@clisp.org>
27136         errno, strerror-override: Support for MSVC 10.
27137         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
27138         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
27139         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
27140         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
27141         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
27142         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
27143         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
27144         Assign values compatible with MSVC 10.
27145         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
27146         New macros.
27147         (GNULIB_defined_EWINSOCK): New macro.
27148         * lib/strerror-override.c (strerror_override): Update accordingly.
27149         * lib/strerror-override.h: Likewise.
27150         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
27151         longer equal to the corresponding errno value.
27152         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
27154 2011-10-22  Bruno Haible  <bruno@clisp.org>
27156         perror: Recognize when test program crashes.
27157         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
27158         strerror, set gl_cv_func_perror_works to no.
27159         Reported by Daniel Richard G. <skunk@iskunk.org>.
27161         perror: Fix indentation.
27162         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
27164 2011-10-22  Bruno Haible  <bruno@clisp.org>
27166         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
27167         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
27168         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
27169         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
27170         functions, not as a macro.
27171         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
27172         macros.
27173         (isfinite, isinf, isnan, signbit): Check overloaded functions and
27174         absence of macro.
27175         Suggested by Eric Blake.
27176         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
27178 2011-10-21  Bruno Haible  <bruno@clisp.org>
27180         relocatable-prog-wrapper: Don't leave object files behind.
27181         * build-aux/install-reloc: Re-synchronize list of .o files to be
27182         removed with list of compilation units.
27184 2011-10-20  Bruno Haible  <bruno@clisp.org>
27186         openpty, posix_openpt: Remove code duplication.
27187         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
27188         * lib/openpty.c: Include <stdlib.h>.
27189         (openpty): Use posix_openpt on all platforms except IRIX.
27190         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
27192 2011-10-20  Bruno Haible  <bruno@clisp.org>
27194         unlockpt: Detect invalid argument.
27195         * lib/unlockpt.c: Include <fcntl.h>.
27196         (unlockpt): Check whether fd is valid, using fcntl().
27197         * modules/unlockpt (Depends-on): Add fcntl-h.
27199 2011-10-20  Bruno Haible  <bruno@clisp.org>
27201         openpty: Avoid compilation error on AIX 6.1.
27202         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
27204 2011-10-20  Bruno Haible  <bruno@clisp.org>
27206         posix_openpt: Support for OpenBSD.
27207         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
27208         (posix_openpt) [OpenBSD]: New code.
27209         * lib/grantpt.c: Include <fcntl.h>.
27210         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
27211         * modules/grantpt (Depends-on): Add fcntl-h.
27213 2011-10-20  Bruno Haible  <bruno@clisp.org>
27215         posix_openpt test: Coding style.
27216         * tests/test-posix_openpt.c: Use GNU coding style.
27218 2011-10-20  Bruno Haible  <bruno@clisp.org>
27220         grantpt: Support --avoid=pt_chown.
27221         * modules/grantpt (Files): Add lib/pty-private.h.
27223 2011-10-20  Bruno Haible  <bruno@clisp.org>
27225         posix_openpt: Fix autoconf macro.
27226         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
27227         unneeded check for _getpty.
27229 2011-10-20  Bruno Haible  <bruno@clisp.org>
27231         openpty: Update comments.
27232         * lib/openpty.c: Add comments about Minix.
27234 2011-10-19  Eric Blake  <eblake@redhat.com>
27236         openpty: relax license
27237         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
27239         pt_chown: use configmake to simplify build
27240         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
27242         ptsname and others: relax license
27243         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
27244         * modules/unlockpt (License): Likewise.
27245         * modules/pt_chown (License): Likewise.
27246         * modules/ptsname (License): Likewise.
27247         * modules/ttyname_r (License): Likewise.
27249 2011-10-19  Jim Meyering  <meyering@redhat.com>
27251         posix_openpt: remove spurious #endif
27252         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
27254 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
27256         maint.mk: Respect $(build_aux) in web-manual rule.
27257         * top/maint.mk (web-manual): Find gen-announce script in user's
27258         $(build_aux) directory instead of hard-coding 'build-aux'.
27260 2011-10-19  Bruno Haible  <bruno@clisp.org>
27262         posix_openpt: Fix compilation error.
27263         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
27264         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
27265         Mention the openpty module as an alternative.
27267 2011-10-19  Bruno Haible  <bruno@clisp.org>
27269         Support for old NeXTstep 3.3 frexp().
27270         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
27271         execution time of the test to 5 seconds.
27272         Reported by Daniel Richard G. <skunk@iskunk.org>.
27274 2011-10-19  Bruno Haible  <bruno@clisp.org>
27276         Support for old NeXTstep 3.3 sed.
27277         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
27278         part, use /.../, not \|...|. Escape periods in the header file name.
27279         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
27280         Reported by Daniel Richard G. <skunk@iskunk.org>.
27282 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
27284         Support for old NeXTstep 3.3 gcc.
27285         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
27286         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
27287         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
27288         * lib/spawn.in.h (_Restrict_arr_): Likewise.
27289         * lib/regex.h (_Restrict_arr_): Likewise.
27290         * lib/regex_internal.h (re_token_t): Likewise.
27291         * lib/regexec.c (check_node_accept_bytes): Likewise.
27292         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
27294 2011-10-18  Eric Blake  <eblake@redhat.com>
27296         posix_openpt: new module
27297         * modules/posix_openpt: New module.
27298         * m4/posix_openpt.m4: New file.
27299         * lib/posix_openpt.c: Likewise.
27300         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
27301         (gl_STDLIB_H_DEFAULTS): Set defaults.
27302         * modules/stdlib (Makefile.am): Substitute macros.
27303         * lib/stdlib.in.h (posix_openpt): Declare.
27304         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
27305         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
27306         * modules/posix_openpt-tests: New test module.
27307         * tests/test-posix_openpt.c: New test.
27309 2011-10-15  Bruno Haible  <bruno@clisp.org>
27311         xstrtoll: Fix compilation failure.
27312         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
27313         from lib/strtol.c.
27314         * doc/posix-headers/limits.texi: Mention missing numerical limits on
27315         some platforms.
27316         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27318 2011-10-15  Bruno Haible  <bruno@clisp.org>
27320         vasnprintf: Optimize bit search operation.
27321         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
27322         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
27323         gl_DOUBLE_EXPONENT_LOCATION.
27324         * modules/vasnprintf (Files): Add m4/exponentd.m4.
27325         * modules/unistdio/u8-vasnprintf (Files): Likewise.
27326         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
27327         * modules/unistdio/u16-vasnprintf (Files): Likewise.
27328         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
27329         * modules/unistdio/u32-vasnprintf (Files): Likewise.
27330         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
27331         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
27332         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
27334 2011-10-15  Bruno Haible  <bruno@clisp.org>
27336         vasnprintf: Fix comments.
27337         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
27339 2011-10-14  Bruno Haible  <bruno@clisp.org>
27341         Tests for module 'integer_length_ll'.
27342         * modules/integer_length_ll-tests: New file.
27343         * tests/test-integer_length_ll.c: New file.
27345         New module 'integer_length_ll'.
27346         * lib/integer_length_ll.c: New file.
27347         * modules/integer_length_ll: New file.
27349 2011-10-14  Bruno Haible  <bruno@clisp.org>
27351         Tests for module 'integer_length_l'.
27352         * modules/integer_length_l-tests: New file.
27353         * tests/test-integer_length_l.c: New file.
27355         New module 'integer_length_l'.
27356         * lib/integer_length_l.c: New file.
27357         * modules/integer_length_l: New file.
27359 2011-10-14  Bruno Haible  <bruno@clisp.org>
27361         Tests for module 'integer_length'.
27362         * modules/integer_length-tests: New file.
27363         * tests/test-integer_length.c: New file.
27365         New module 'integer_length'.
27366         * lib/integer_length.h: New file.
27367         * lib/integer_length.c: New file.
27368         * modules/integer_length: New file.
27370 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
27372         popen: Fix dependency conditions.
27373         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
27375 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
27377         perror: Fix autoconf test.
27378         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
27379         <stdlib.h> and <string.h>.
27381 2011-10-14  Bruno Haible  <bruno@clisp.org>
27383         ffsl: Optimize on 64-bit platforms.
27384         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
27385         unrolling.
27387 2011-10-13  Bruno Haible  <bruno@clisp.org>
27389         ffsl: Optimize on 32-bit platforms.
27390         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
27391         use ffs() without a loop.
27393         ffsl, ffsll: Optimize for GCC.
27394         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
27395         * lib/ffsl.c (GCC_BUILTIN): New macro.
27396         * lib/ffsll.c (GCC_BUILTIN): Likewise.
27398 2011-10-13  Bruno Haible  <bruno@clisp.org>
27400         ffs, bcopy, memset: Support symbol renaming via config.h.
27401         * lib/ffs.c: Include <config.h>.
27402         * lib/bcopy.c: Likewise.
27403         * lib/memset.c: Likewise.
27405 2011-10-10  Bruno Haible  <bruno@clisp.org>
27407         atanl: Simplify for platforms where 'long double' == 'double'.
27408         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27409         alternative implementation.
27410         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27411         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27412         * modules/atanl (Depends-on): Add atan. Update conditions.
27414 2011-10-10  Bruno Haible  <bruno@clisp.org>
27416         acosl: Simplify for platforms where 'long double' == 'double'.
27417         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27418         alternative implementation.
27419         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27420         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27421         * modules/acosl (Depends-on): Add acos. Update conditions.
27423 2011-10-10  Bruno Haible  <bruno@clisp.org>
27425         asinl: Simplify for platforms where 'long double' == 'double'.
27426         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27427         alternative implementation.
27428         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27429         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27430         * modules/asinl (Depends-on): Add asin. Update conditions.
27432 2011-10-10  Bruno Haible  <bruno@clisp.org>
27434         tanl: Simplify for platforms where 'long double' == 'double'.
27435         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27436         implementation.
27437         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27438         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27439         * modules/tanl (Depends-on): Add tan. Update conditions.
27440         (configure.ac): Don't compile trigl.c if
27441         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27443 2011-10-10  Bruno Haible  <bruno@clisp.org>
27445         cosl: Simplify for platforms where 'long double' == 'double'.
27446         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27447         implementation.
27448         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27449         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27450         * modules/cosl (Depends-on): Add cos. Update conditions.
27451         (configure.ac): Don't compile sincosl.c and trigl.c if
27452         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27454 2011-10-10  Bruno Haible  <bruno@clisp.org>
27456         sinl: Simplify for platforms where 'long double' == 'double'.
27457         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27458         implementation.
27459         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27460         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27461         * modules/sinl (Depends-on): Add sin. Update conditions.
27462         (configure.ac): Don't compile sincosl.c and trigl.c if
27463         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27465 2011-10-10  Bruno Haible  <bruno@clisp.org>
27467         logl: Simplify for platforms where 'long double' == 'double'.
27468         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27469         implementation.
27470         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27471         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27472         * modules/logl (Depends-on): Add log. Update conditions.
27474 2011-10-10  Bruno Haible  <bruno@clisp.org>
27476         expl: Simplify for platforms where 'long double' == 'double'.
27477         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27478         implementation.
27479         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27480         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27481         * modules/expl (Depends-on): Add exp. Update conditions.
27483 2011-10-10  Bruno Haible  <bruno@clisp.org>
27485         sqrtl: Simplify for platforms where 'long double' == 'double'.
27486         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27487         alternative implementation.
27488         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27489         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27490         * modules/sqrtl (Depends-on): Update conditions.
27492 2011-10-10  Bruno Haible  <bruno@clisp.org>
27494         ldexpl: Simplify for platforms where 'long double' == 'double'.
27495         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27496         alternative implementation.
27497         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27498         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27499         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
27501 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
27503         ffsll: set correct witness
27504         * modules/ffsll (configure.ac): Fix typo.
27506 2011-10-10  Bruno Haible  <bruno@clisp.org>
27508         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
27509         * lib/printf-frexpl.c: Include <config.h>.
27510         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27511         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
27512         second time.
27513         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
27514         gl_LONG_DOUBLE_VS_DOUBLE.
27515         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
27516         conditions.
27518 2011-10-10  Bruno Haible  <bruno@clisp.org>
27520         frexpl: Simplify for platforms where 'long double' == 'double'.
27521         * lib/frexpl.c: Include <config.h>.
27522         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27523         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27524         time.
27525         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27526         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27527         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
27528         * modules/frexpl (Depends-on): Add frexp. Update conditions.
27529         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
27530         conditions.
27532 2011-10-10  Jim Meyering  <meyering@redhat.com>
27534         test-renameat: don't leave behind a temporary file
27535         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
27536           ERROR: files left in build directory after distclean:
27537           ./gltests/test-renameat.too
27538           make[1]: *** [distcleancheck] Error 1
27539         Reported by Tom G. Christensen.
27541 2011-10-09  Bruno Haible  <bruno@clisp.org>
27543         rint: Determine RINT_LIBM correctly on AIX 7.
27544         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
27545         directly, not only through a function pointer. Also accept an optional
27546         4th argument with extra code.
27547         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
27548         rintf() call by gcc when optimizing.
27550         mathfunc.m4: Refactor.
27551         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
27552         m4 variable.
27554 2011-10-09  Bruno Haible  <bruno@clisp.org>
27556         rintl: Simplify for platforms where 'long double' == 'double'.
27557         * lib/rintl.c: Include <config.h>.
27558         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27559         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27560         time.
27561         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27562         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27563         * modules/rintl (Depends-on): Add rint. Update conditions.
27565 2011-10-09  Bruno Haible  <bruno@clisp.org>
27567         roundl: Simplify for platforms where 'long double' == 'double'.
27568         * lib/roundl.c: Include <config.h>.
27569         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27570         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27571         time.
27572         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27573         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27574         * modules/roundl (Depends-on): Add round. Update conditions.
27576 2011-10-09  Bruno Haible  <bruno@clisp.org>
27578         truncl: Simplify for platforms where 'long double' == 'double'.
27579         * lib/truncl.c: Include <config.h>.
27580         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27581         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27582         time.
27583         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27584         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27585         * modules/truncl (Depends-on): Add trunc. Update conditions.
27587 2011-10-09  Bruno Haible  <bruno@clisp.org>
27589         ceill: Simplify for platforms where 'long double' == 'double'.
27590         * lib/ceill.c: Include <config.h>.
27591         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27592         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27593         time.
27594         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27595         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27596         * modules/ceill (Depends-on): Add ceil. Update conditions.
27598 2011-10-09  Bruno Haible  <bruno@clisp.org>
27600         floorl: Simplify for platforms where 'long double' == 'double'.
27601         * lib/floorl.c: Include <config.h>.
27602         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27603         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27604         time.
27605         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27606         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27607         * modules/floorl (Depends-on): Add floor. Update conditions.
27609 2011-10-09  Bruno Haible  <bruno@clisp.org>
27611         rint: Fix ordering constraints.
27612         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
27613         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
27614         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
27616 2011-10-09  Bruno Haible  <bruno@clisp.org>
27618         copysignl: Simplify for platforms where 'long double' == 'double'.
27619         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27620         alternative.
27621         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27622         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27623         * modules/copysignl (Depends-on): Add copysign. Update conditions.
27625 2011-10-09  Bruno Haible  <bruno@clisp.org>
27627         Tests for module 'rintl'.
27628         * modules/rintl-tests: New file.
27629         * tests/test-rintl.c: New file.
27631         New module 'rintl'.
27632         * lib/math.in.h (rintl): New declaration.
27633         * lib/rintl.c: New file.
27634         * m4/rintl.m4: New file.
27635         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
27636         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
27637         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
27638         * modules/rintl: New file.
27639         * tests/test-math-c++.cc: Check the declaration of rintl.
27640         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
27641         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
27642         * doc/posix-functions/rintl.texi: Mention the new module.
27644 2011-10-09  Bruno Haible  <bruno@clisp.org>
27646         Tests for module 'rintf'.
27647         * modules/rintf-tests: New file.
27648         * tests/test-rintf.c: New file.
27650         New module 'rintf'.
27651         * lib/math.in.h (rintf): New declaration.
27652         * lib/rintf.c: New file.
27653         * m4/rintf.m4: New file.
27654         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
27655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
27656         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
27657         * modules/rintf: New file.
27658         * tests/test-math-c++.cc: Check the declaration of rintf.
27659         * doc/posix-functions/rintf.texi: Mention the new module.
27661 2011-10-09  Bruno Haible  <bruno@clisp.org>
27663         rint: Support for MSVC.
27664         * lib/math.in.h (rint): New declaration.
27665         * lib/rint.c: New file.
27666         * m4/rint.m4: New file.
27667         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
27668         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
27669         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
27670         * modules/rint (Description): Fix.
27671         (Files): Add lib/rint.c, m4/rint.m4.
27672         (Depends-on): Add math.
27673         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
27674         gl_MATH_MODULE_INDICATOR.
27675         * tests/test-math-c++.cc: Check the declaration of rint.
27676         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
27677         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
27678         * doc/posix-functions/rint.texi: Mention the replacement provided by
27679         the module.
27681         rint tests: More tests.
27682         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
27683         minus-zero.h, infinity.h, nan.h.
27684         (main): Skip the test if the current rounding mode is not standard. Add
27685         tests for negative numbers, minus zero, infinity, NaN.
27686         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
27687         tests/nan.h.
27688         (Depends-on): Add isnand-nolibm.
27690 2011-10-09  Bruno Haible  <bruno@clisp.org>
27692         Tests for module 'copysignl'.
27693         * modules/copysignl-tests: New file.
27694         * tests/test-copysignl.c: New file.
27696         New module 'copysignl'.
27697         * lib/math.in.h (copysignl): New declaration.
27698         * lib/copysignl.c: New file.
27699         * m4/copysignl.m4: New file.
27700         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
27701         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
27702         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
27703         HAVE_COPYSIGNL.
27704         * modules/copysignl: New file.
27705         * tests/test-math-c++.cc: Check the declaration of copysignl.
27706         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
27707         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
27708         * doc/posix-functions/copysignl.texi: Mention the new module.
27710 2011-10-09  Bruno Haible  <bruno@clisp.org>
27712         Tests for module 'copysignf'.
27713         * modules/copysignf-tests: New file.
27714         * tests/test-copysignf.c: New file.
27716         New module 'copysignf'.
27717         * lib/math.in.h (copysignf): New declaration.
27718         * lib/copysignf.c: New file.
27719         * m4/copysignf.m4: New file.
27720         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
27721         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
27722         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
27723         HAVE_COPYSIGNF.
27724         * modules/copysignf: New file.
27725         * tests/test-math-c++.cc: Check the declaration of copysignf.
27726         * doc/posix-functions/copysignf.texi: Mention the new module.
27728 2011-10-09  Bruno Haible  <bruno@clisp.org>
27730         Ensure that HAVE_* variables are set to 1 before they are set to 0.
27731         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
27732         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
27733         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
27734         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
27735         gl_SIGNAL_H_DEFAULTS.
27737 2011-10-09  Bruno Haible  <bruno@clisp.org>
27739         poll: Make macro safer.
27740         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
27741         ac_cv_header_poll_h is not set.
27743 2011-10-09  Bruno Haible  <bruno@clisp.org>
27745         copysign: Provide replacement.
27746         * lib/math.in.h (copysign): New declaration.
27747         * lib/copysign.c: New file.
27748         * m4/copysign.m4: New file.
27749         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
27750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
27751         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
27752         HAVE_COPYSIGN.
27753         * modules/copysign (Description): Clarify.
27754         (Files): Add lib/copysign.c, m4/copysign.m4.
27755         (Depends-on): Add math, signbit.
27756         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
27757         gl_MATH_MODULE_INDICATOR.
27758         * tests/test-math-c++.cc: Check the declaration of copysign.
27759         * doc/posix-functions/copysign.texi: Mention the effects of the module
27760         on Minix and MSVC.
27762 2011-10-09  Bruno Haible  <bruno@clisp.org>
27764         isinf: Ensure macro on AIX 5.1.
27765         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
27766         macro.
27767         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
27769 2011-10-09  Bruno Haible  <bruno@clisp.org>
27771         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
27772         * modules/snprintf-posix-tests (configure.ac): Require
27773         gl_LONG_DOUBLE_VS_DOUBLE.
27774         * modules/sprintf-posix-tests (configure.ac): Likewise.
27775         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
27776         * modules/vasprintf-posix-tests (configure.ac): Likewise.
27777         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
27778         * modules/vsprintf-posix-tests (configure.ac): Likewise.
27779         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
27780         tests on platforms where 'long double' is the same as 'double'.
27781         * tests/test-sprintf-posix.h (test_function): Likewise.
27782         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27783         * tests/test-vasprintf-posix.c (test_function): Likewise.
27785         *printf: Fix for platforms where 'long double' == 'double'.
27786         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
27787         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
27788         * modules/dprintf-posix (Files): Add m4/math_h.m4.
27789         * modules/fprintf-posix (Files): Likewise.
27790         * modules/obstack-printf-posix (Files): Likewise.
27791         * modules/snprintf-posix (Files): Likewise.
27792         * modules/sprintf-posix (Files): Likewise.
27793         * modules/vasnprintf (Files): Likewise.
27794         * modules/vasnprintf-posix (Files): Likewise.
27795         * modules/vasprintf-posix (Files): Likewise.
27796         * modules/vdprintf-posix (Files): Likewise.
27797         * modules/vfprintf-posix (Files): Likewise.
27798         * modules/vsnprintf-posix (Files): Likewise.
27799         * modules/vsprintf-posix (Files): Likewise.
27800         * modules/unistdio/u8-vasnprintf (Files): Likewise.
27801         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
27802         * modules/unistdio/u16-vasnprintf (Files): Likewise.
27803         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
27804         * modules/unistdio/u32-vasnprintf (Files): Likewise.
27805         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
27806         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
27808         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
27809         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
27810         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27811         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
27812         'long double'.
27813         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
27815         isinf: Fix for platforms where 'long double' == 'double'.
27816         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
27817         Don't blindly assume 80-bit 'long double'.
27819         isfinite: Fix for platforms where 'long double' == 'double'.
27820         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
27821         Don't blindly assume 80-bit 'long double'.
27823         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
27824         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
27825         * modules/isfinite-tests (configure.ac): Require
27826         gl_LONG_DOUBLE_VS_DOUBLE.
27827         * modules/isinf-tests (configure.ac): Likewise.
27828         * modules/isnan-tests (configure.ac): Likewise.
27829         * modules/isnanl-tests (configure.ac): Likewise.
27830         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
27831         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
27832         tests on platforms where 'long double' is the same as 'double'.
27833         * tests/test-isinf.c (test_isinfl): Likewise.
27834         * tests/test-isnan.c (test_long_double): Likewise.
27835         * tests/test-isnanl.h (main): Likewise.
27837 2011-10-08  Bruno Haible  <bruno@clisp.org>
27839         Tests for module 'tanhf'.
27840         * modules/tanhf-tests: New file.
27841         * tests/test-tanhf.c: New file.
27843         New module 'tanhf'.
27844         * lib/math.in.h (tanhf): New declaration.
27845         * lib/tanhf.c: New file.
27846         * m4/tanhf.m4: New file.
27847         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
27848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
27849         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
27850         * modules/tanhf: New file.
27851         * tests/test-math-c++.cc: Check the declaration of tanhf.
27852         * doc/posix-functions/tanhf.texi: Mention the new module.
27854         tanh: Use a .m4 file.
27855         * m4/tanh.m4: New file.
27856         * modules/tanh (Files): Add it.
27857         (configure.ac): Just invoke gl_FUNC_TANH.
27859 2011-10-08  Bruno Haible  <bruno@clisp.org>
27861         Tests for module 'coshf'.
27862         * modules/coshf-tests: New file.
27863         * tests/test-coshf.c: New file.
27865         New module 'coshf'.
27866         * lib/math.in.h (coshf): New declaration.
27867         * lib/coshf.c: New file.
27868         * m4/coshf.m4: New file.
27869         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
27870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
27871         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
27872         * modules/coshf: New file.
27873         * tests/test-math-c++.cc: Check the declaration of coshf.
27874         * doc/posix-functions/coshf.texi: Mention the new module.
27876         cosh: Use a .m4 file.
27877         * m4/cosh.m4: New file.
27878         * modules/cosh (Files): Add it.
27879         (configure.ac): Just invoke gl_FUNC_COSH.
27881 2011-10-08  Bruno Haible  <bruno@clisp.org>
27883         Tests for module 'sinhf'.
27884         * modules/sinhf-tests: New file.
27885         * tests/test-sinhf.c: New file.
27887         New module 'sinhf'.
27888         * lib/math.in.h (sinhf): New declaration.
27889         * lib/sinhf.c: New file.
27890         * m4/sinhf.m4: New file.
27891         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
27892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
27893         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
27894         * modules/sinhf: New file.
27895         * tests/test-math-c++.cc: Check the declaration of sinhf.
27896         * doc/posix-functions/sinhf.texi: Mention the new module.
27898         sinh: Use a .m4 file.
27899         * m4/sinh.m4: New file.
27900         * modules/sinh (Files): Add it.
27901         (configure.ac): Just invoke gl_FUNC_SINH.
27903 2011-10-08  Bruno Haible  <bruno@clisp.org>
27905         Tests for module 'atan2f'.
27906         * modules/atan2f-tests: New file.
27907         * tests/test-atan2f.c: New file.
27909         New module 'atan2f'.
27910         * lib/math.in.h (atan2f): New declaration.
27911         * lib/atan2f.c: New file.
27912         * m4/atan2f.m4: New file.
27913         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
27914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
27915         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
27916         * modules/atan2f: New file.
27917         * tests/test-math-c++.cc: Check the declaration of atan2f.
27918         * doc/posix-functions/atan2f.texi: Mention the new module.
27920         atan2: Use a .m4 file.
27921         * m4/atan2.m4: New file.
27922         * modules/atan2 (Files): Add it.
27923         (configure.ac): Just invoke gl_FUNC_ATAN2.
27925 2011-10-08  Bruno Haible  <bruno@clisp.org>
27927         Tests for module 'atanf'.
27928         * modules/atanf-tests: New file.
27929         * tests/test-atanf.c: New file.
27931         New module 'atanf'.
27932         * lib/math.in.h (atanf): New declaration.
27933         * lib/atanf.c: New file.
27934         * m4/atanf.m4: New file.
27935         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
27936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
27937         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
27938         * modules/atanf: New file.
27939         * tests/test-math-c++.cc: Check the declaration of atanf.
27940         * doc/posix-functions/atanf.texi: Mention the new module.
27942         atan: Use a .m4 file.
27943         * m4/atan.m4: New file.
27944         * modules/atan (Files): Add it.
27945         (configure.ac): Just invoke gl_FUNC_ATAN.
27947 2011-10-08  Bruno Haible  <bruno@clisp.org>
27949         Tests for module 'acosf'.
27950         * modules/acosf-tests: New file.
27951         * tests/test-acosf.c: New file.
27953         New module 'acosf'.
27954         * lib/math.in.h (acosf): New declaration.
27955         * lib/acosf.c: New file.
27956         * m4/acosf.m4: New file.
27957         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
27958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
27959         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
27960         * modules/acosf: New file.
27961         * tests/test-math-c++.cc: Check the declaration of acosf.
27962         * doc/posix-functions/acosf.texi: Mention the new module.
27964         acos: Use a .m4 file.
27965         * m4/acos.m4: New file.
27966         * modules/acos (Files): Add it.
27967         (configure.ac): Just invoke gl_FUNC_ACOS.
27969 2011-10-08  Bruno Haible  <bruno@clisp.org>
27971         Tests for module 'asinf'.
27972         * modules/asinf-tests: New file.
27973         * tests/test-asinf.c: New file.
27975         New module 'asinf'.
27976         * lib/math.in.h (asinf): New declaration.
27977         * lib/asinf.c: New file.
27978         * m4/asinf.m4: New file.
27979         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
27980         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
27981         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
27982         * modules/asinf: New file.
27983         * tests/test-math-c++.cc: Check the declaration of asinf.
27984         * doc/posix-functions/asinf.texi: Mention the new module.
27986         asin: Use a .m4 file.
27987         * m4/asin.m4: New file.
27988         * modules/asin (Files): Add it.
27989         (configure.ac): Just invoke gl_FUNC_ASIN.
27991 2011-10-08  Bruno Haible  <bruno@clisp.org>
27993         Tests for module 'tanf'.
27994         * modules/tanf-tests: New file.
27995         * tests/test-tanf.c: New file.
27997         New module 'tanf'.
27998         * lib/math.in.h (tanf): New declaration.
27999         * lib/tanf.c: New file.
28000         * m4/tanf.m4: New file.
28001         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
28002         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
28003         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
28004         * modules/tanf: New file.
28005         * tests/test-math-c++.cc: Check the declaration of tanf.
28006         * doc/posix-functions/tanf.texi: Mention the new module.
28008         tan: Use a .m4 file.
28009         * m4/tan.m4: New file.
28010         * modules/tan (Files): Add it.
28011         (configure.ac): Just invoke gl_FUNC_TAN.
28013 2011-10-08  Bruno Haible  <bruno@clisp.org>
28015         Tests for module 'cosf'.
28016         * modules/cosf-tests: New file.
28017         * tests/test-cosf.c: New file.
28019         New module 'cosf'.
28020         * lib/math.in.h (cosf): New declaration.
28021         * lib/cosf.c: New file.
28022         * m4/cosf.m4: New file.
28023         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
28024         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
28025         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
28026         * modules/cosf: New file.
28027         * tests/test-math-c++.cc: Check the declaration of cosf.
28028         * doc/posix-functions/cosf.texi: Mention the new module.
28030         cos: Use a .m4 file.
28031         * m4/cos.m4: New file.
28032         * modules/cos (Files): Add it.
28033         (configure.ac): Just invoke gl_FUNC_COS.
28035 2011-10-08  Bruno Haible  <bruno@clisp.org>
28037         Tests for module 'sinf'.
28038         * modules/sinf-tests: New file.
28039         * tests/test-sinf.c: New file.
28041         New module 'sinf'.
28042         * lib/math.in.h (sinf): New declaration.
28043         * lib/sinf.c: New file.
28044         * m4/sinf.m4: New file.
28045         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
28046         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
28047         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
28048         * modules/sinf: New file.
28049         * tests/test-math-c++.cc: Check the declaration of sinf.
28050         * doc/posix-functions/sinf.texi: Mention the new module.
28052         sin: Use a .m4 file.
28053         * m4/sin.m4: New file.
28054         * modules/sin (Files): Add it.
28055         (configure.ac): Just invoke gl_FUNC_SIN.
28057 2011-10-08  Bruno Haible  <bruno@clisp.org>
28059         Tests for module 'powf'.
28060         * modules/powf-tests: New file.
28061         * tests/test-powf.c: New file.
28063         New module 'powf'.
28064         * lib/math.in.h (powf): New declaration.
28065         * lib/powf.c: New file.
28066         * m4/powf.m4: New file.
28067         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
28068         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
28069         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
28070         * modules/powf: New file.
28071         * tests/test-math-c++.cc: Check the declaration of powf.
28072         * doc/posix-functions/powf.texi: Mention the new module.
28074         pow: Use a .m4 file.
28075         * m4/pow.m4: New file.
28076         * modules/pow (Files): Add it.
28077         (configure.ac): Just invoke gl_FUNC_POW.
28079 2011-10-08  Bruno Haible  <bruno@clisp.org>
28081         Tests for module 'log10f'.
28082         * modules/log10f-tests: New file.
28083         * tests/test-log10f.c: New file.
28085         New module 'log10f'.
28086         * lib/math.in.h (log10f): New declaration.
28087         * lib/log10f.c: New file.
28088         * m4/log10f.m4: New file.
28089         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
28090         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
28091         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
28092         * modules/log10f: New file.
28093         * tests/test-math-c++.cc: Check the declaration of log10f.
28094         * doc/posix-functions/log10f.texi: Mention the new module.
28096         log10: Use a .m4 file.
28097         * m4/log10.m4: New file.
28098         * modules/log10 (Files): Add it.
28099         (configure.ac): Just invoke gl_FUNC_LOG10.
28101 2011-10-08  Bruno Haible  <bruno@clisp.org>
28103         Tests for module 'logf'.
28104         * modules/logf-tests: New file.
28105         * tests/test-logf.c: New file.
28107         New module 'logf'.
28108         * lib/math.in.h (logf): New declaration.
28109         * lib/logf.c: New file.
28110         * m4/logf.m4: New file.
28111         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
28112         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
28113         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
28114         * modules/logf: New file.
28115         * tests/test-math-c++.cc: Check the declaration of logf.
28116         * doc/posix-functions/logf.texi: Mention the new module.
28118         log: Use a .m4 file.
28119         * m4/log.m4: New file.
28120         * modules/log (Files): Add it.
28121         (configure.ac): Just invoke gl_FUNC_LOG.
28123 2011-10-08  Bruno Haible  <bruno@clisp.org>
28125         Tests for module 'expf'.
28126         * modules/expf-tests: New file.
28127         * tests/test-expf.c: New file.
28129         New module 'expf'.
28130         * lib/math.in.h (expf): New declaration.
28131         * lib/expf.c: New file.
28132         * m4/expf.m4: New file.
28133         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
28134         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
28135         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
28136         * modules/expf: New file.
28137         * tests/test-math-c++.cc: Check the declaration of expf.
28138         * doc/posix-functions/expf.texi: Mention the new module.
28140         exp: Use a .m4 file.
28141         * m4/exp.m4: New file.
28142         * modules/exp (Files): Add it.
28143         (configure.ac): Just invoke gl_FUNC_EXP.
28145 2011-10-08  Bruno Haible  <bruno@clisp.org>
28147         Tests for module 'sqrtf'.
28148         * modules/sqrtf-tests: New file.
28149         * tests/test-sqrtf.c: New file.
28151         New module 'sqrtf'.
28152         * lib/math.in.h (sqrtf): New declaration.
28153         * lib/sqrtf.c: New file.
28154         * m4/sqrtf.m4: New file.
28155         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
28156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
28157         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
28158         * modules/sqrtf: New file.
28159         * tests/test-math-c++.cc: Check the declaration of sqrtf.
28160         * doc/posix-functions/sqrtf.texi: Mention the new module.
28162 2011-10-08  Bruno Haible  <bruno@clisp.org>
28164         Tests: Avoid link failures w.r.t. libintl.
28165         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
28166         $(LIBINTL).
28167         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
28168         $(LIBINTL).
28169         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
28170         against $(LIBINTL).
28171         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
28172         $(LIBINTL).
28173         * modules/openat-tests (Makefile.am): Link test-fchmodat against
28174         $(LIBINTL).
28175         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
28177 2011-10-08  Bruno Haible  <bruno@clisp.org>
28179         pow tests: Defeat compiler optimizations.
28180         * tests/test-pow.c (main): Assign arguments to x and y before use.
28182 2011-10-08  Bruno Haible  <bruno@clisp.org>
28184         gnulib-tool: Improve last commit.
28185         * gnulib-tool (func_modules_transitive_closure): Simplify code.
28186         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
28187         ignore dependencies that are not among the modules list.
28189 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
28191         gnulib-tool: don't follow dependencies to avoided modules
28192         This fixes a bug that is related to the previous one.
28193         * gnulib-tool (func_modules_transitive_closure)
28194         (func_emit_autoconf_snippets):
28195         Check whether a dependency is acceptable before using it.
28196         (--extract-dependencies): Report an error if --avoid is also used,
28197         since this combination of options is not yet supported.
28199         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
28200         Problem reported by Peter Dyballa in
28201         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
28202         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
28203         when echoing "$condition".
28205 2011-10-07  Bruno Haible  <bruno@clisp.org>
28207         Fix documentation about math functions on MacOS X.
28208         * doc/posix-functions/exp2.texi: Don't say the function is missing on
28209         MacOS X 10.5.
28210         * doc/posix-functions/fdim.texi: Likewise.
28211         * doc/posix-functions/feclearexcept.texi: Likewise.
28212         * doc/posix-functions/fegetenv.texi: Likewise.
28213         * doc/posix-functions/fegetround.texi: Likewise.
28214         * doc/posix-functions/feholdexcept.texi: Likewise.
28215         * doc/posix-functions/feraiseexcept.texi: Likewise.
28216         * doc/posix-functions/fesetenv.texi: Likewise.
28217         * doc/posix-functions/fesetround.texi: Likewise.
28218         * doc/posix-functions/fetestexcept.texi: Likewise.
28219         * doc/posix-functions/feupdateenv.texi: Likewise.
28220         * doc/posix-functions/fmax.texi: Likewise.
28221         * doc/posix-functions/fmin.texi: Likewise.
28222         * doc/posix-functions/log2.texi: Likewise.
28223         * doc/posix-functions/modff.texi: Likewise.
28224         * doc/posix-functions/nan.texi: Likewise.
28225         * doc/posix-functions/nanf.texi: Likewise.
28226         * doc/posix-functions/nextafterf.texi: Likewise.
28227         * doc/posix-functions/remquo.texi: Likewise.
28229 2011-10-07  Bruno Haible  <bruno@clisp.org>
28231         modff: Drop assumption about library that defines modff.
28232         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
28233         AC_CHECK_FUNCS.
28234         * modules/modff (Files): Add m4/mathfunc.m4.
28236 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
28238         raise tests: Avoid a GCC warning.
28239         * tests/test-raise.c (handler): Use _Noreturn.
28241 2011-10-07  Bruno Haible  <bruno@clisp.org>
28243         Tests for module 'ldexpf'.
28244         * modules/ldexpf-tests: New file.
28245         * tests/test-ldexpf.c: New file.
28247         New module 'ldexpf'.
28248         * lib/math.in.h (ldexpf): New declaration.
28249         * lib/ldexpf.c: New file.
28250         * m4/ldexpf.m4: New file.
28251         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
28252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
28253         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
28254         * modules/ldexpf: New file.
28255         * tests/test-math-c++.cc: Check the declaration of ldexpf.
28256         * doc/posix-functions/ldexpf.texi: Mention the new module.
28258 2011-10-06  Bruno Haible  <bruno@clisp.org>
28260         frexpf: Work around problems on IRIX and mingw.
28261         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
28262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
28263         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
28264         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
28265         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
28266         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
28267         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
28269 2011-10-06  Bruno Haible  <bruno@clisp.org>
28271         fabsf: Drop assumption about library that defines fabsf.
28272         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
28273         AC_CHECK_FUNCS.
28274         * modules/fabsf (Files): Add m4/mathfunc.m4.
28276 2011-10-06  Bruno Haible  <bruno@clisp.org>
28278         frexpf: Drop assumption about library that defines frexpf.
28279         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
28280         'int *', 'float *', 'long double *', 'float', 'long double'.
28281         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
28282         AC_CHECK_FUNCS.
28283         * modules/frexpf (Files): Add m4/mathfunc.m4.
28285         Tests for module 'frexpf'.
28286         * modules/frexpf-tests: New file.
28287         * tests/test-frexpf.c: New file.
28289         New module 'frexpf'.
28290         * lib/math.in.h (frexpf): New declaration.
28291         * lib/frexpf.c: New file.
28292         * m4/frexpf.m4: New file.
28293         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
28294         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
28295         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
28296         * modules/frexpf: New file.
28297         * tests/test-math-c++.cc: Check the declaration of frexpf.
28298         * doc/posix-functions/frexpf.texi: Mention the new module.
28300 2011-10-06  Bruno Haible  <bruno@clisp.org>
28302         math: Sort function declarations of math.in.h.
28303         * lib/math.in.h (frexp, logb): Move declarations.
28305 2011-10-05  Bruno Haible  <bruno@clisp.org>
28307         Tests for module 'modff'.
28308         * modules/modff-tests: New file.
28309         * tests/test-modff.c: New file.
28311         New module 'modff'.
28312         * lib/math.in.h (modff): New declaration.
28313         * lib/modff.c: New file.
28314         * m4/modff.m4: New file.
28315         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
28316         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
28317         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
28318         * modules/modff: New file.
28319         * tests/test-math-c++.cc: Check the declaration of modff.
28320         * doc/posix-functions/modff.texi: Mention the new module.
28322         modf tests: Make test sharper.
28323         * tests/test-modf.c (main): Strengthen upper bound.
28325         modf: Use a .m4 file.
28326         * m4/modf.m4: New file.
28327         * modules/modf (Files): Add it.
28328         (configure.ac): Just invoke gl_FUNC_MODF.
28330 2011-10-05  Bruno Haible  <bruno@clisp.org>
28332         Tests for module 'fmodf'.
28333         * modules/fmodf-tests: New file.
28334         * tests/test-fmodf.c: New file.
28336         New module 'fmodf'.
28337         * lib/math.in.h (fmodf): New declaration.
28338         * lib/fmodf.c: New file.
28339         * m4/fmodf.m4: New file.
28340         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
28341         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
28342         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
28343         * modules/fmodf: New file.
28344         * tests/test-math-c++.cc: Check the declaration of fmodf.
28345         * doc/posix-functions/fmodf.texi: Mention the new module.
28347         fmod: Use a .m4 file.
28348         * m4/fmod.m4: New file.
28349         * modules/fmod (Files): Add it.
28350         (configure.ac): Just invoke gl_FUNC_FMOD.
28352 2011-10-05  Bruno Haible  <bruno@clisp.org>
28354         Tests for module 'fabsf'.
28355         * modules/fabsf-tests: New file.
28356         * tests/test-fabsf.c: New file.
28358         New module 'fabsf'.
28359         * lib/math.in.h (fabsf): New declaration.
28360         * lib/fabsf.c: New file.
28361         * m4/fabsf.m4: New file.
28362         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
28363         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
28364         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
28365         * modules/fabsf: New file.
28366         * tests/test-math-c++.cc: Check the declaration of fabsf.
28367         * doc/posix-functions/fabsf.texi: Mention the new module.
28369         fabs: Use a .m4 file.
28370         * m4/fabs.m4: New file.
28371         * modules/fabs (Files): Add it.
28372         (configure.ac): Just invoke gl_FUNC_FABS.
28374 2011-10-05  Jim Meyering  <meyering@redhat.com>
28376         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
28377         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
28378         ls -lL regression introduced in coreutils-8.12, it does so at the
28379         cost of an additional stat call in the common case.  Besides, now
28380         that the kernel change that prompted commit 95f7c57f has been reverted
28381         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
28382         we have no use for commit 95f7c57f, "file-has-acl: use
28383         acl_extended_file_nofollow if available".
28385 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
28387         file-has-acl: revert unintended change in behavior of ls -L
28388         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
28389         derived from...
28390         (file_has_acl): ...code here.  Call it.
28391         This problem was introduced with 2011-07-22 commit 95f7c57f,
28392         "file-has-acl: use acl_extended_file_nofollow if available".
28393         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
28395 2011-10-03  Bruno Haible  <bruno@clisp.org>
28397         poll: Avoid link errors on MSVC.
28398         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
28399         * modules/poll (Depends-on): Add sockets.
28400         (Link): New section.
28401         * NEWS: Mention the change.
28402         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
28403         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
28404         $(LIB_POLL) instead of $(LIBSOCKET).
28406 2011-10-03  Bruno Haible  <bruno@clisp.org>
28408         sys_select tests: Fix link error on MSVC 9.
28409         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
28410         with $(LIB_SELECT) instead of $(LIBSOCKET).
28412 2011-10-03  Bruno Haible  <bruno@clisp.org>
28414         sys_select: Fix compilation error on mingw.
28415         * lib/sys_select.in.h: On native Windows, include <io.h>.
28417 2011-10-03  Bruno Haible  <bruno@clisp.org>
28419         wmemset: Support for MSVC.
28420         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
28421         whether wmemset() exists.
28423 2011-10-03  Bruno Haible  <bruno@clisp.org>
28425         wmemmove: Support for MSVC.
28426         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
28427         whether wmemmove() exists.
28429 2011-10-03  Bruno Haible  <bruno@clisp.org>
28431         wmemcpy: Support for MSVC.
28432         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
28433         whether wmemcpy() exists.
28435 2011-10-03  Bruno Haible  <bruno@clisp.org>
28437         wmemcmp: Support for MSVC.
28438         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
28439         whether wmemcmp() exists.
28441 2011-10-03  Bruno Haible  <bruno@clisp.org>
28443         wmemchr: Support for MSVC.
28444         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
28445         whether wmemchr() exists.
28447 2011-10-03  Bruno Haible  <bruno@clisp.org>
28449         glthread/*, strsignal: Support for MSVC.
28450         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
28451         including <winsock.h> on MSVC 9.
28452         * lib/glthread/lock.h: Likewise.
28453         * lib/glthread/thread.h: Likewise.
28454         * lib/glthread/tls.h: Likewise.
28455         * lib/glthread/yield.h: Likewise.
28456         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
28457         if HAVE_UNISTD_H is false.
28458         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
28460 2011-10-03  Bruno Haible  <bruno@clisp.org>
28462         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
28463         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
28464         Set to 100000.
28466 2011-10-03  Bruno Haible  <bruno@clisp.org>
28468         acl: Fix specification.
28469         * lib/file-has-acl.c (file_has_acl): Fix specification.
28471 2011-10-03  Bruno Haible  <bruno@clisp.org>
28473         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
28474         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
28475         (compute_curr_prefix, shared_library_fullname,
28476         find_shared_library_fullname, get_shared_library_fullname, relocate):
28477         Use it together with PIC && INSTALLDIR.
28478         Reported by <jojelino@gmail.com>
28479         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
28481 2011-10-01  Jim Meyering  <meyering@redhat.com>
28483         maint.mk: adjust a release-related rule not to require use of gzip
28484         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
28485         Instead, check each file in $(DIST_ARCHIVES).  This is better for
28486         projects that build only .tar.xz files.  Also fix an erroneous test.
28488         test-linkat: don't leave behind a temporary file
28489         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
28490         Otherwise, coreutils' "make distcheck" would fail with this:
28491           Only in /c/cu/tests/torture/coreutils/test/\
28492             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
28493           make[2]: *** [my-distcheck] Error 1
28495         float, math: add omitted file
28496         * lib/itold.c: Add file, required for yesterday's float change.
28498 2011-10-01  Bruno Haible  <bruno@clisp.org>
28500         isinf: Fix for OpenBSD/x86.
28501         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
28502         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
28503         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
28505 2011-10-01  Bruno Haible  <bruno@clisp.org>
28507         isfinite: Fix syntax error in configure test.
28508         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
28510         isfinite: Fix typo.
28511         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
28512         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
28514 2011-10-01  Bruno Haible  <bruno@clisp.org>
28516         nonblocking tests: Fix test failure on Linux/IA-64.
28517         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
28518         Set to 270000.
28520 2011-10-01  Bruno Haible  <bruno@clisp.org>
28522         mkfifoat tests: Fix a test failure on mingw.
28523         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
28524         with error ENOSYS.
28526 2011-09-30  Bruno Haible  <bruno@clisp.org>
28528         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
28529         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
28530         'long double'. Set REPLACE_ITOLD.
28531         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
28532         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
28533         * lib/itold.c: New file.
28534         * modules/float (Files): Add lib/itold.c.
28535         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
28536         (Makefile.am): Substitute REPLACE_ITOLD.
28537         * modules/math (Depends-on): Add float.
28538         (Makefile.am): Substitute REPLACE_ITOLD.
28539         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
28540         * doc/posix-headers/math.texi: Likewise.
28541         * doc/posix-functions/logl.texi: Likewise.
28543 2011-09-30  Bruno Haible  <bruno@clisp.org>
28545         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
28546         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
28547         Set to 140000.
28549 2011-09-30  Bruno Haible  <bruno@clisp.org>
28551         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
28552         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
28553         invocation, say "right after AC_PROG_CC_STDC", not "right after
28554         AC_PROG_CC".
28555         Reported by Gary V. Vaughan <gary@gnu.org>.
28557 2011-09-30  Bruno Haible  <bruno@clisp.org>
28559         Centralize C99 requirement.
28560         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
28561         * modules/stdarg (configure.ac-early): Invoke it instead of
28562         AC_PROG_CC_STDC.
28563         Reported by Gary V. Vaughan and Paul Eggert.
28565 2011-09-29  Bruno Haible  <bruno@clisp.org>
28567         float: Fix LDBL_MAX value on Linux/PowerPC.
28568         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
28569         on Linux/PowerPC.
28570         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
28571         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
28572         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
28573         platform.
28574         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
28576 2011-09-29  Bruno Haible  <bruno@clisp.org>
28578         doc: Improve doc about gl_EARLY.
28579         * doc/gnulib-tool.texi (Initial import): Mention where to place an
28580         AC_PROG_CC_STDC invocation.
28581         Reported by Gary V. Vaughan <gary@gnu.org>.
28583 2011-09-28  Bruno Haible  <bruno@clisp.org>
28585         fgetc, fputc, fread, fwrite tests: Fix link error.
28586         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
28587         on non-MSVC platforms.
28588         * tests/test-fputc.c (main): Likewise.
28589         * tests/test-fread.c (main): Likewise.
28590         * tests/test-fwrite.c (main): Likewise.
28591         Reported by Jim Meyering.
28593 2011-09-27  Bruno Haible  <bruno@clisp.org>
28595         fputc, fwrite tests: Avoid test failure on MSVC.
28596         * tests/test-fgetc.c: Include msvc-inval.h.
28597         (main): Invoke gl_msvc_inval_ensure_handler.
28598         * tests/test-fputc.c: Include msvc-inval.h.
28599         (main): Invoke gl_msvc_inval_ensure_handler.
28600         * tests/test-fread.c: Include msvc-inval.h.
28601         (main): Invoke gl_msvc_inval_ensure_handler.
28602         * tests/test-fwrite.c: Include msvc-inval.h.
28603         (main): Invoke gl_msvc_inval_ensure_handler.
28604         * modules/fgetc-tests (Depends-on): Add msvc-inval.
28605         * modules/fputc-tests (Depends-on): Likewise.
28606         * modules/fread-tests (Depends-on): Likewise.
28607         * modules/fwrite-tests (Depends-on): Likewise.
28609 2011-09-27  Bruno Haible  <bruno@clisp.org>
28611         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
28612         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
28613         (raise): Remove older, duplicated declaration.
28614         (_gl_raise_SIGPIPE): New declaration.
28615         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
28616         (rpl_raise): Remove function.
28617         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
28618         a gnulib-defined SIGPIPE here.
28619         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
28620         'sigprocmask' has detected missing signal-blocking and the module
28621         'sigpipe' is enabled.
28622         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28624 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
28626         base64-tests: avoid memory leak
28627         * tests/test-base64.c (main): Plug memory leak.
28629         base32: new module
28630         * modules/base32: New module.
28631         * lib/base32.c: New file.
28632         * lib/base32.h: Likewise.
28633         * m4/base32.m4: Likewise.
28634         * modules/base32-tests: New test.
28635         * tests/test-base32.c: Likewise.
28636         * MODULES.html.sh (Misc): Mention it.
28638 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28640         gnulib: use more-standard license notice wording
28641         * gnulib-tool (func_emit_copyright_notice): When emitting a
28642         license notice into a file, use the standard wording as suggested
28643         by the current information for GNU maintainers, except say "file"
28644         rather than "program".  The new wording gives a license version
28645         number, which addresses an issue raised by Glenn Morris in
28646         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
28647         * m4/onceonly.m4: Use that same wording here, too.
28649         dup2: minor simplification
28650         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
28651         as lib/dup2.c no longer uses 'inline'.
28653 2011-09-25  Bruno Haible  <bruno@clisp.org>
28655         strings: Fix compilation error on MSVC.
28656         * lib/strings.in.h: Include <stddef.h> for size_t.
28658 2011-09-25  Bruno Haible  <bruno@clisp.org>
28660         fflush et al.: Document limitation on MSVC.
28661         * doc/posix-functions/fflush.texi: Document possible crash in handling
28662         mode other than DEFAULT_HANDLING.
28663         * doc/posix-functions/fgetc.texi: Likewise.
28664         * doc/posix-functions/fputc.texi: Likewise.
28665         * doc/posix-functions/fread.texi: Likewise.
28666         * doc/posix-functions/fwrite.texi: Likewise.
28668 2011-09-25  Bruno Haible  <bruno@clisp.org>
28670         msvc-inval: Allow three invalid parameter handling modes.
28671         * lib/msvc-inval.h: Don't include <stdlib.h> here.
28672         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
28673         macros.
28674         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
28675         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
28676         SANE_LIBRARY_HANDLING as a no-op.
28677         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
28678         <stdlib.h>.
28679         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
28681 2011-09-25  Bruno Haible  <bruno@clisp.org>
28683         msvc-inval: Make handler multithread-safe.
28684         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
28685         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
28686         declarations.
28687         (gl_msvc_inval_current): New declaration.
28688         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
28689         Operate on the structure returned by gl_msvc_inval_current().
28690         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
28691         Remove varaiables.
28692         (tls_index, tls_initialized): New variables.
28693         (not_per_thread): New variable.
28694         (gl_msvc_inval_current): New function.
28695         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
28696         returned by gl_msvc_inval_current().
28698 2011-09-25  Bruno Haible  <bruno@clisp.org>
28700         msvc-inval: Install handler globally.
28701         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
28702         !_MSC_VER.
28703         (gl_msvc_invalid_parameter_handler): Remove declaration.
28704         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
28705         declarations.
28706         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
28707         Install the handler globally, don't uninstall it.
28708         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
28709         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
28710         currently valid, call RaiseException instead.
28711         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
28712         for !_MSC_VER.
28714 2011-09-25  Bruno Haible  <bruno@clisp.org>
28716         strerror_r-posix: Fix for MSVC 9.
28717         * lib/strerror_r.c (local_snprintf): New function.
28718         (snprintf): Define to local_snprintf, not to _snprintf.
28720 2011-09-25  Bruno Haible  <bruno@clisp.org>
28722         ftruncate: Support for MSVC 9.
28723         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
28724         (chsize_nothrow): New function.
28725         (chsize): Redefine as a macro.
28726         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
28727         * modules/ftruncate (Depends-on): Add msvc-inval.
28729 2011-09-25  Bruno Haible  <bruno@clisp.org>
28731         New module 'fstat'.
28732         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
28733         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
28734         * lib/fchdir.c (rpl_fstat): Remove function.
28735         * m4/fstat.m4: New file.
28736         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
28737         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
28738         declared.
28739         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
28740         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
28741         * modules/fstat: New file.
28742         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
28743         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
28744         is set.
28745         * doc/posix-functions/fstat.texi: Mention the new module and the
28746         problem on MSVC.
28747         * NEWS: Mention the change.
28748         * modules/acl (Depends-on): Add fstat.
28749         * modules/chdir-safer (Depends-on): Likewise.
28750         * modules/chown (Depends-on): Likewise.
28751         * modules/copy-file (Depends-on): Likewise.
28752         * modules/fchdir (Depends-on): Likewise.
28753         * modules/fdopendir (Depends-on): Likewise.
28754         * modules/fopen (Depends-on): Likewise.
28755         * modules/fts (Depends-on): Likewise.
28756         * modules/getcwd (Depends-on): Likewise.
28757         * modules/isapipe (Depends-on): Likewise.
28758         * modules/linkat (Depends-on): Likewise.
28759         * modules/lseek (Depends-on): Likewise.
28760         * modules/mkdir-p (Depends-on): Likewise.
28761         * modules/open (Depends-on): Likewise.
28762         * modules/openat (Depends-on): Likewise.
28763         * modules/read-file (Depends-on): Likewise.
28764         * modules/renameat (Depends-on): Likewise.
28765         * modules/utimens (Depends-on): Likewise.
28767 2011-09-25  Bruno Haible  <bruno@clisp.org>
28769         linkat: Fix compilation on MSVC 9.
28770         * lib/linkat.c: Don't include <stdint.h>.
28772 2011-09-25  Bruno Haible  <bruno@clisp.org>
28774         fclose: Support for MSVC 9.
28775         * lib/fclose.c: Include msvc-inval.h.
28776         (fclose_nothrow): New function.
28777         (rpl_fclose): Use it.
28778         * modules/fclose (Depends-on): Add msvc-inval.
28779         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
28781 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
28783         dup2: minor simplifications
28784         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
28785         that it's a performance win.
28786         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
28787         ! defined __CYGWIN__)" to "ifdef F_GETFL".
28789 2011-09-24  Jim Meyering  <meyering@redhat.com>
28791         test-futimens: avoid a warning from gcc -Wshadow
28792         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
28793         to avoid a shadowing warning.
28795 2011-09-24  Bruno Haible  <bruno@clisp.org>
28797         fdopen: Support for MSVC 9.
28798         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
28799         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
28800         * lib/fdopen.c: Include msvc-inval.h.
28801         (fdopen_nothrow): New function.
28802         (rpl_fdopen): Use it.
28803         * modules/fdopen (Depends-on): Add msvc-inval.
28804         * modules/fclose-tests (Depends-on): Add fdopen.
28805         * modules/fflush-tests (Depends-on): Likewise.
28806         * modules/fgetc-tests (Depends-on): Likewise.
28807         * modules/fputc-tests (Depends-on): Likewise.
28808         * modules/fread-tests (Depends-on): Likewise.
28809         * modules/freopen-tests (Depends-on): Likewise.
28810         * modules/fseeko-tests (Depends-on): Likewise.
28811         * modules/ftello-tests (Depends-on): Likewise.
28812         * modules/fwrite-tests  (Depends-on): Likewise.
28813         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
28815 2011-09-24  Bruno Haible  <bruno@clisp.org>
28817         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
28818         * modules/fgetc-tests (Depends-on): Add unistd.
28819         * modules/fputc-tests (Depends-on): Likewise.
28820         * modules/fread-tests (Depends-on): Likewise.
28821         * modules/fwrite-tests (Depends-on): Likewise.
28823 2011-09-24  Bruno Haible  <bruno@clisp.org>
28825         dup: Simplify autoconf test.
28826         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
28827         on gl_MSVC_INVAL's result.
28829 2011-09-24  Bruno Haible  <bruno@clisp.org>
28831         Tests for function fwrite().
28832         * modules/fwrite-tests: New file.
28833         * tests/test-fwrite.c: New file.
28834         * modules/stdio-tests (Depends-on): Add fwrite-tests.
28836         Tests for function fread().
28837         * modules/fread-tests: New file.
28838         * tests/test-fread.c: New file.
28839         * modules/stdio-tests (Depends-on): Add fread-tests.
28841         Activate fputc tests.
28842         * modules/stdio-tests (Depends-on): Add fputc-tests.
28844         Enhance fgetc, fputc tests.
28845         * tests/test-fgetc.c (main): Also test the stream's error indicator.
28846         * tests/test-fputc.c (main): Likewise.
28848 2011-09-24  Bruno Haible  <bruno@clisp.org>
28850         write: Support for MSVC 9.
28851         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
28852         is not 1.
28853         * lib/write.c (write_nothrow): New function.
28854         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
28855         not 1. Use write_nothrow.
28856         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
28857         invalid parameter handler.
28858         (gl_PREREQ_WRITE): New macro.
28859         * modules/write (Depends-on): Add msvc-inval.
28860         (configure.ac): Invoke gl_PREREQ_WRITE.
28861         * doc/posix-functions/write.texi: Mention the problem on MSVC.
28863 2011-09-24  Bruno Haible  <bruno@clisp.org>
28865         read: Fix last commit.
28866         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
28868 2011-09-24  Bruno Haible  <bruno@clisp.org>
28870         dup2: Fix last commit.
28871         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
28872         (rpl_dup2): Disable fcntl workaround on native Windows.
28874         sigprocmask: Make code safer.
28875         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
28876         section that changes macro definitions for this compilation unit.
28878 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28880         dup2: clarify by coalescing Windows-specific material
28881         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
28882         "msvc-nothrow.h"' to the Windows-specific section, so that the
28883         Emacs source need not contain these include files.
28884         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
28885         Windows-specific fixes into this function rather than just the
28886         nothrow fix, as this shortens and clarifies the code.  Always
28887         define as a function, as that's a bit cleaner than having it be
28888         sometimes a function and sometimes a macro.
28889         (rpl_dup2): Move the Windows-specific stuff out of here and into
28890         ms_windows_dup2.  Don't protect the Haiku-related fix with
28891         "#if !defined __linux__", as the same code also works around
28892         a Linux kernel bug, and it doesn't add any system calls on any
28893         platform.  Add comment about FreeBSD 6.1.
28895         sigprocmask: move #include directive
28896         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
28897         Windows-specific section, so that the Emacs source need not
28898         contain msvc-inval.h.
28900 2011-09-23  Bruno Haible  <bruno@clisp.org>
28902         read: Support for MSVC 9.
28903         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
28904         is not 1.
28905         * lib/read.c (read_nothrow): New function.
28906         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
28907         read_nothrow.
28908         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
28909         invalid parameter handler.
28910         (gl_PREREQ_READ): New macro.
28911         * modules/read (Depends-on): Add msvc-inval.
28912         (configure.ac): Invoke gl_PREREQ_READ.
28913         * doc/posix-functions/read.texi: Mention the problem on MSVC.
28915 2011-09-23  Bruno Haible  <bruno@clisp.org>
28917         close: Support for MSVC 9.
28918         * lib/close.c: Include <errno.h>, msvc-inval.h.
28919         (close_nothrow): New function.
28920         (rpl_close): Use it.
28921         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
28922         invalid parameter handler.
28923         * modules/close (Depends-on): Add msvc-inval.
28924         * modules/dup2-tests (Depends-on): Add close.
28925         * modules/dup3-tests (Depends-on): Likewise.
28926         * modules/fcntl-tests (Depends-on): Likewise.
28927         * modules/spawn-pipe-tests (Depends-on): Likewise.
28928         * modules/unistd-safer-tests (Depends-on): Likewise.
28929         * doc/posix-functions/close.texi: Mention the problem on MSVC.
28931 2011-09-23  Bruno Haible  <bruno@clisp.org>
28933         New module 'dup'.
28934         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
28935         Allow replacement.
28936         * lib/dup.c: New file.
28937         * lib/fchdir.c (rpl_dup): Remove function.
28938         * m4/dup.m4: New file.
28939         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
28940         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
28941         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
28942         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
28943         * modules/dup: New file.
28944         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
28945         'dup' module is in use.
28946         * modules/fdopendir (Depends-on): Add dup.
28947         * modules/fdutimensat-tests (Depends-on): Likewise.
28948         * modules/fts (Depends-on): Likewise.
28949         * modules/futimens-tests (Depends-on): Likewise.
28950         * modules/posix_spawnp-tests (Depends-on): Likewise.
28951         * modules/unistd-safer-tests (Depends-on): Likewise.
28952         * modules/utimens-tests (Depends-on): Likewise.
28953         * doc/posix-functions/dup.texi: Mention the new module and the problem
28954         on MSVC.
28956 2011-09-23  Bruno Haible  <bruno@clisp.org>
28958         getdtablesize: Support for MSVC 9.
28959         * lib/getdtablesize.c: Include msvc-inval.h.
28960         (_setmaxstdio_nothrow): New function.
28961         (_setmaxstdio): Redefine it.
28962         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
28963         * modules/getdtablesize (Depends-on): Add msvc-inval.
28964         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
28966 2011-09-23  Bruno Haible  <bruno@clisp.org>
28968         signal-h: Rename from signal.
28969         * modules/signal-h: Renamed from modules/signal.
28970         * modules/pthread_sigmask (Depends-on): Update.
28971         * modules/raise (Depends-on): Likewise.
28972         * modules/sigaction (Depends-on): Likewise.
28973         * modules/sigpipe (Depends-on): Likewise.
28974         * modules/sigprocmask (Depends-on): Likewise.
28975         * modules/sys_select (Depends-on): Likewise.
28976         * modules/signal-h-tests: Renamed from modules/signal-tests.
28977         (Files, Depends-on, Makefile.am): Update.
28978         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
28979         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
28980         (Files, Makefile.am): Update.
28981         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
28982         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
28983         * modules/signal: New placeholder file.
28984         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
28985         * doc/posix-headers/signal.texi: Update.
28986         * NEWS: Mention the change.
28988 2011-09-23  Bruno Haible  <bruno@clisp.org>
28990         sigprocmask: Avoid crashes through signal() on MSVC 9.
28991         * lib/sigprocmask.c: Include msvc-inval.h.
28992         (signal_nothrow): New function.
28993         (signal): Redefine it.
28994         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
28995         * modules/sigprocmask (Depends-on): Add msvc-inval.
28996         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
28998 2011-09-23  Bruno Haible  <bruno@clisp.org>
29000         Tests for module 'raise'.
29001         * modules/raise-tests: New file.
29002         * tests/test-raise.c: New file.
29004         raise: Support for MSVC.
29005         * lib/signal.in.h (raise): New declaration.
29006         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
29007         for native Windows platforms.
29008         * m4/raise.m4: New file.
29009         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
29010         HAVE_RAISE, REPLACE_RAISE.
29011         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
29012         REPLACE_RAISE.
29013         * modules/raise (Status, Notice): Remove fields.
29014         (Files): Add m4/raise.m4.
29015         (Depends-on): Add signal, msvc-inval.
29016         (configure.ac): Use the common idioms.
29017         (Maintainer): Add me.
29018         * tests/test-signal-c++.cc: Check the signature of raise.
29019         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
29021 2011-09-23  Bruno Haible  <bruno@clisp.org>
29023         pipe2: Fix compilation on pre-C99 compilers.
29024         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
29026 2011-09-23  Bruno Haible  <bruno@clisp.org>
29028         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
29029         * lib/msvc-nothrow.h: New file.
29030         * lib/msvc-nothrow.c: New file.
29031         * m4/msvc-nothrow.m4: New file.
29032         * modules/msvc-nothrow: New file.
29033         * lib/dup2.c: Include msvc-nothrow.h.
29034         (rpl_dup2): No need to protect _get_osfhandle call here.
29035         * lib/accept4.c: Include msvc-nothrow.h.
29036         * lib/error.c: Likewise.
29037         * lib/fcntl.c: Likewise.
29038         * lib/lseek.c: Likewise.
29039         * lib/nonblocking.c: Likewise.
29040         * lib/poll.c: Likewise.
29041         * lib/read.c: Likewise.
29042         * lib/select.c: Likewise.
29043         * lib/sockets.h: Likewise.
29044         * lib/sockets.c: Likewise.
29045         * lib/stdio-read.c: Likewise.
29046         * lib/stdio-write.c: Likewise.
29047         * lib/write.c: Likewise.
29048         * lib/w32sock.h: Likewise.
29049         * lib/w32spawn.h: Likewise.
29050         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
29051         * lib/fsync.c: Likewise.
29052         * lib/isapipe.c: Likewise.
29053         * modules/dup2 (Depends-on): Add msvc-nothrow.
29054         * modules/accept4 (Depends-on): Likewise.
29055         * modules/error (Depends-on): Likewise.
29056         * modules/fcntl (Depends-on): Likewise.
29057         * modules/lseek (Depends-on): Likewise.
29058         * modules/nonblocking (Depends-on): Likewise.
29059         * modules/poll (Depends-on): Likewise.
29060         * modules/read (Depends-on): Likewise.
29061         * modules/select (Depends-on): Likewise.
29062         * modules/sockets (Depends-on): Likewise.
29063         * modules/sigpipe (Depends-on): Likewise.
29064         * modules/write (Depends-on): Likewise.
29065         * modules/accept (Depends-on): Likewise.
29066         * modules/bind (Depends-on): Likewise.
29067         * modules/connect (Depends-on): Likewise.
29068         * modules/gethostname (Depends-on): Likewise.
29069         * modules/getpeername (Depends-on): Likewise.
29070         * modules/getsockname (Depends-on): Likewise.
29071         * modules/getsockopt (Depends-on): Likewise.
29072         * modules/ioctl (Depends-on): Likewise.
29073         * modules/listen (Depends-on): Likewise.
29074         * modules/recv (Depends-on): Likewise.
29075         * modules/recvfrom (Depends-on): Likewise.
29076         * modules/send (Depends-on): Likewise.
29077         * modules/sendto (Depends-on): Likewise.
29078         * modules/setsockopt (Depends-on): Likewise.
29079         * modules/shutdown (Depends-on): Likewise.
29080         * modules/socket (Depends-on): Likewise.
29081         * modules/execute (Depends-on): Likewise.
29082         * modules/spawn-pipe (Depends-on): Likewise.
29083         * modules/flock (Depends-on): Likewise.
29084         * modules/fsync (Depends-on): Likewise.
29085         * modules/isapipe (Depends-on): Likewise.
29086         * tests/test-cloexec.c: Include msvc-nothrow.h.
29087         * tests/test-dup-safer.c: Likewise.
29088         * tests/test-dup2.c: Likewise.
29089         * tests/test-dup3.c: Likewise.
29090         * tests/test-fcntl.c: Likewise.
29091         * tests/test-pipe.c: Likewise.
29092         * tests/test-pipe2.c: Likewise.
29093         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
29094         * modules/unistd-safer-tests (Depends-on): Likewise.
29095         * modules/dup2-tests (Depends-on): Likewise.
29096         * modules/dup3-tests (Depends-on): Likewise.
29097         * modules/fcntl-tests (Depends-on): Likewise.
29098         * modules/pipe-posix-tests (Depends-on): Likewise.
29099         * modules/pipe2-tests (Depends-on): Likewise.
29101 2011-09-23  Bruno Haible  <bruno@clisp.org>
29103         dup2: Make code more maintainable.
29104         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
29105         (rpl_dup2): Use it.
29106         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
29107         * modules/dup2 (configure.ac): Invoke it.
29108         Reported by Paul Eggert.
29110 2011-09-23  Bruno Haible  <bruno@clisp.org>
29112         msvc-inval: Fix compilation error.
29113         * lib/msvc-inval.h: Include <excpt.h>.
29115 2011-09-23  Bruno Haible  <bruno@clisp.org>
29117         mkdir: Tweak for MSVC 9.
29118         * lib/sys_stat.in.h: Update comments.
29119         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
29121         Tests for module 'chdir'.
29122         * modules/chdir-tests: New file.
29123         * tests/test-chdir.c: New file.
29125         New module 'chdir'.
29126         * modules/chdir: New file.
29127         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
29128         (chdir): New declaration.
29129         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
29130         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
29131         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
29132         * tests/test-unistd-c++.cc: Check signature of chdir.
29133         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
29134         * modules/chdir-long (Depends-on): Add chdir.
29135         * modules/fchdir (Depends-on): Likewise.
29136         * modules/rename (Depends-on): Likewise.
29137         * modules/savewd (Depends-on): Likewise.
29139         rmdir: Support for mingw, MSVC 9.
29140         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
29141         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
29143         getcwd: Tweak for MSVC 9.
29144         * lib/unistd.in.h: Update comments.
29145         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
29147 2011-09-22  Bruno Haible  <bruno@clisp.org>
29149         strerror_r-posix: Avoid a link error on MSVC.
29150         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
29151         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
29153 2011-09-22  Bruno Haible  <bruno@clisp.org>
29155         select: Avoid link errors on MSVC.
29156         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
29157         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
29158         * modules/pselect (Link): Likewise.
29159         * NEWS: Mention the change.
29160         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
29161         test-select-stdin against $(LIB_SELECT).
29162         * modules/pselect-tests (Makefile.am): Link test-pselect against
29163         $(LIB_SELECT).
29165 2011-09-22  Bruno Haible  <bruno@clisp.org>
29167         select: Avoid compilation error on MSVC.
29168         * lib/select.c: Don't include <stdbool.h>.
29170 2011-09-21  Bruno Haible  <bruno@clisp.org>
29172         Consolidate all uses of PATH_MAX in *.m4 files.
29173         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
29174         macros.
29175         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
29176         and gl_PATHMAX_SNIPPET.
29177         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
29178         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29179         * modules/chdir-long (Files): Add m4/pathmax.m4.
29180         * modules/getcwd (Files): Likewise.
29182 2011-09-21  Bruno Haible  <bruno@clisp.org>
29184         ftruncate: Un-deprecate, concentrate on Win32 support.
29185         * modules/ftruncate (Status, Notice): Remove sections.
29186         (Depends-on): Add largefile.
29187         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
29188         non-mingw platforms.
29189         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
29190         include <io.h>.
29191         * modules/perror-tests (Depends-on): Add ftruncate.
29192         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
29193         'ftruncate' module.
29195 2011-09-21  Bruno Haible  <bruno@clisp.org>
29197         Add dependencies to new dirent related modules.
29198         * modules/opendir (Depends-on): Add closedir.
29199         * modules/getcwd (Depends-on): Add opendir, closedir.
29200         * modules/dirent-safer-tests (Depends-on): Likewise.
29201         * modules/fdopendir-tests (Depends-on): Likewise.
29202         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
29203         * modules/renameat-tests (Depends-on): Likewise.
29205 2011-09-21  Bruno Haible  <bruno@clisp.org>
29207         opendir: Avoid compilation error on mingw.
29208         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
29209         * modules/opendir (Depends-on): Add unistd.
29211 2011-09-21  Bruno Haible  <bruno@clisp.org>
29213         ftruncate tests: Avoid a test failure on mingw.
29214         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
29216 2011-09-21  Bruno Haible  <bruno@clisp.org>
29218         select tests: Avoid test failures on OSF/1 5.1 and mingw.
29219         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
29220         native Windows.
29222 2011-09-21  Bruno Haible  <bruno@clisp.org>
29224         New module 'fdopen'.
29225         * lib/stdio.in.h (fdopen): New declaration.
29226         * lib/fdopen.c: New file.
29227         * m4/fdopen.m4: New file.
29228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
29229         REPLACE_FDOPEN.
29230         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
29231         REPLACE_FDOPEN.
29232         * modules/fdopen: New file.
29233         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
29234         * tests/test-stdio-c++.cc: Check signature of fdopen.
29235         * doc/posix-functions/fdopen.texi: Mention the new module.
29237 2011-09-21  Bruno Haible  <bruno@clisp.org>
29239         unlockpt tests: Avoid test failure on NetBSD 5.1.
29240         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
29241         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
29243 2011-09-21  Bruno Haible  <bruno@clisp.org>
29245         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
29246         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
29247         * tests/test-getlogin_r.c (main): Likewise.
29249 2011-09-20  Bruno Haible  <bruno@clisp.org>
29251         time tests: Don't require pid_t.
29252         * doc/posix-headers/time.texi: Revert last change.
29253         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
29254         * tests/test-time.c: Comment out the check for pid_t.
29256 2011-09-20  Bruno Haible  <bruno@clisp.org>
29258         fsync tests: Avoid a test failure on mingw.
29259         * tests/test-fsync.c (main): Allow a failure with EIO.
29261 2011-09-20  Bruno Haible  <bruno@clisp.org>
29263         euidaccess: Update comments.
29264         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
29266 2011-09-20  Bruno Haible  <bruno@clisp.org>
29268         Ensure EBADF returns for socket functions on mingw.
29269         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
29270         descriptor is invalid.
29271         * lib/bind.c (rpl_bind): Likewise.
29272         * lib/connect.c (rpl_connect): Likewise.
29273         * lib/getpeername.c (rpl_getpeername): Likewise.
29274         * lib/getsockname.c (rpl_getsockname): Likewise.
29275         * lib/getsockopt.c (rpl_getsockopt): Likewise.
29276         * lib/listen.c (rpl_listen): Likewise.
29277         * lib/recv.c (rpl_recv): Likewise.
29278         * lib/recvfrom.c (rpl_recvfrom): Likewise.
29279         * lib/send.c (rpl_send): Likewise.
29280         * lib/sendto.c (rpl_sendto): Likewise.
29281         * lib/setsockopt.c (rpl_setsockopt): Likewise.
29282         * lib/shutdown.c (rpl_shutdown): Likewise.
29284 2011-09-20  Bruno Haible  <bruno@clisp.org>
29286         select tests: EBADF tests.
29287         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
29288         test_bad_fd): New functions.
29289         (test_function): Invoke also test_bad_fd.
29291 2011-09-20  Bruno Haible  <bruno@clisp.org>
29293         Tests for module 'posix_spawn_file_actions_addopen.
29294         * modules/posix_spawn_file_actions_addopen-tests: New file.
29295         * tests/test-posix_spawn_file_actions_addopen.c: New file.
29297         Tests for module 'posix_spawn_file_actions_adddup2'.
29298         * modules/posix_spawn_file_actions_adddup2-tests: New file.
29299         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
29301         Tests for module 'posix_spawn_file_actions_addclose'.
29302         * modules/posix_spawn_file_actions_addclose-tests: New file.
29303         * tests/test-posix_spawn_file_actions_addclose.c: New file.
29305 2011-09-20  Bruno Haible  <bruno@clisp.org>
29307         Tests for module 'unlockpt'.
29308         * modules/unlockpt-tests: New file.
29309         * tests/test-unlockpt.c: New file.
29310         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
29312         Tests for module 'grantpt'.
29313         * modules/grantpt-tests: New file.
29314         * tests/test-grantpt.c: New file.
29315         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
29317 2011-09-20  Bruno Haible  <bruno@clisp.org>
29319         freopen tests: EBADF tests.
29320         * tests/test-freopen.c: Include errno.h, unistd.h.
29321         (main): Add tests for EBADF, commented out for the moment.
29323         fclose tests: EBADF tests.
29324         * tests/test-fclose.c (main): Add tests for EBADF.
29326         fflush tests: EBADF tests.
29327         * tests/test-fflush.c: Include errno.h, macros.h.
29328         (main): Add tests for EBADF.
29330         ftello tests: EBADF tests.
29331         * tests/test-ftello4.sh: New file.
29332         * tests/test-ftello4.c: New file.
29333         * modules/ftello-tests (Files): Add them.
29334         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
29336         fseeko tests: EBADF tests.
29337         * tests/test-fseeko4.sh: New file.
29338         * tests/test-fseeko4.c: New file.
29339         * modules/fseeko-tests (Files): Add them.
29340         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
29342         Tests for function fputc().
29343         * modules/fputc-tests: New file.
29344         * tests/test-fputc.c: New file.
29345         * modules/stdio-tests (Depends-on): Add fputc-tests.
29347         Tests for function fgetc().
29348         * modules/fgetc-tests: New file.
29349         * tests/test-fgetc.c: New file.
29350         * modules/stdio-tests (Depends-on): Add fgetc-tests.
29352         Tests for function fdopen().
29353         * modules/fdopen-tests: New file.
29354         * tests/test-fdopen.c: New file.
29355         * modules/stdio-tests (Depends-on): Add fdopen-tests.
29357         Tests for module 'vdprintf'.
29358         * modules/vdprintf-tests: New file.
29359         * tests/test-vdprintf.c: New file.
29361         Tests for module 'dprintf'.
29362         * modules/dprintf-tests: New file.
29363         * tests/test-dprintf.c: New file.
29365 2011-09-20  Bruno Haible  <bruno@clisp.org>
29367         Tests for module 'ioctl'.
29368         * modules/ioctl-tests: New file.
29369         * tests/test-ioctl.c: New file.
29371 2011-09-20  Bruno Haible  <bruno@clisp.org>
29373         fcntl tests: EBADF tests.
29374         * tests/test-fcntl.c (main): Add more tests for EBADF.
29376 2011-09-20  Bruno Haible  <bruno@clisp.org>
29378         utimensat tests: EBADF tests.
29379         * tests/test-utimensat.c (main): Add tests for EBADF.
29381         renameat tests: EBADF tests.
29382         * tests/test-renameat.c (main): Add tests for EBADF.
29384         mkfifoat tests: EBADF tests.
29385         * tests/test-mkfifoat.c (main): Add tests for EBADF.
29387         readlinkat tests: EBADF tests.
29388         * tests/test-readlinkat.c (main): Add tests for EBADF.
29390         symlinkat tests: EBADF tests.
29391         * tests/test-symlinkat.c (main): Add tests for EBADF.
29393         linkat tests: EBADF tests.
29394         * tests/test-linkat.c (main): Add tests for EBADF.
29396         Tests for module 'faccessat'.
29397         * modules/faccessat-tests: New file.
29398         * tests/test-faccessat.c: New file.
29400         fdopendir tests: EBADF tests.
29401         * tests/test-fdopendir.c (main): Add more tests for EBADF.
29403         openat tests: EBADF tests.
29404         * tests/test-fchownat.c (main): Add tests for EBADF.
29405         * tests/test-fstatat.c (main): Likewise.
29406         * tests/test-mkdirat.c (main): Likewise.
29407         * tests/test-openat.c (main): Likewise.
29408         * tests/test-unlinkat.c (main): Likewise.
29409         * tests/test-fchmodat.c: New file.
29410         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
29411         (Makefile.am): Also run 'test-fchmodat'.
29413 2011-09-20  Bruno Haible  <bruno@clisp.org>
29415         utimens, futimens, fdutimensat tests: EBADF tests.
29416         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
29418         Tests for function fstat().
29419         * modules/fstat-tests: New file.
29420         * tests/test-fstat.c: New file.
29421         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
29423 2011-09-20  Bruno Haible  <bruno@clisp.org>
29425         test-ttyname_r tests: EBADF tests.
29426         * tests/test-ttyname_r.c (main): Add tests for EBADF.
29428         Tests for module 'isatty'.
29429         * modules/isatty-tests: New file.
29430         * tests/test-isatty.c: New file.
29432         Tests for module 'write'.
29433         * modules/write-tests: New file.
29434         * tests/test-write.c: New file.
29436         Tests for module 'read'.
29437         * modules/read-tests: New file.
29438         * tests/test-read.c: New file.
29440         pwrite tests: EBADF tests.
29441         * tests/test-pwrite.c (main): Add tests for EBADF.
29443         pread tests: EBADF tests.
29444         * tests/test-pread.c (main): Add tests for EBADF.
29446         lseek tests: EBADF tests.
29447         * tests/test-lseek.c (main): Add more tests for EBADF.
29449         Tests for module 'ftruncate'.
29450         * modules/ftruncate-tests: New file.
29451         * tests/test-ftruncate.sh: New file.
29452         * tests/test-ftruncate.c: New file.
29454         fsync tests: EBADF tests.
29455         * tests/test-fsync.c (main): Add more tests for EBADF.
29457         fdatasync tests: EBADF tests.
29458         * tests/test-fdatasync.c (main): Add more tests for EBADF.
29460         Tests for module 'fchown'.
29461         * modules/fchown-tests: New file.
29462         * tests/test-fchown.c: New file.
29464         Tests for module 'fchmod'.
29465         * modules/fchmod-tests: New file.
29466         * tests/test-fchmod.c: New file.
29468         fchdir tests: EBADF tests.
29469         * tests/test-fchdir.c (main): Add more tests for EBADF.
29471         dup2 tests: EBADF tests.
29472         * tests/test-dup2.c (main): Add more tests for EBADF.
29474         Tests for module 'dup'.
29475         * modules/dup-tests: New file.
29476         * tests/test-dup.c: New file.
29478         Tests for module 'close'.
29479         * modules/close-tests: New file.
29480         * tests/test-close.c: New file.
29482 2011-09-20  Bruno Haible  <bruno@clisp.org>
29484         Tests for module 'shutdown'.
29485         * modules/shutdown-tests: New file.
29486         * tests/test-shutdown.c: New file.
29488         Tests for module 'setsockopt'.
29489         * modules/setsockopt-tests: New file.
29490         * tests/test-setsockopt.c: New file.
29492         Tests for module 'sendto'.
29493         * modules/sendto-tests: New file.
29494         * tests/test-sendto.c: New file.
29496         Tests for module 'send'.
29497         * modules/send-tests: New file.
29498         * tests/test-send.c: New file.
29500         Tests for module 'recvfrom'.
29501         * modules/recvfrom-tests: New file.
29502         * tests/test-recvfrom.c: New file.
29504         Tests for module 'recv'.
29505         * modules/recv-tests: New file.
29506         * tests/test-recv.c: New file.
29508         Tests for module 'listen'.
29509         * modules/listen-tests: New file.
29510         * tests/test-listen.c: New file.
29512         Tests for module 'getsockopt'.
29513         * modules/getsockopt-tests: New file.
29514         * tests/test-getsockopt.c: New file.
29516         Tests for module 'getsockname'.
29517         * modules/getsockname-tests: New file.
29518         * tests/test-getsockname.c: New file.
29520         Tests for module 'getpeername'.
29521         * modules/getpeername-tests: New file.
29522         * tests/test-getpeername.c: New file.
29524         Tests for module 'connect'.
29525         * modules/connect-tests: New file.
29526         * tests/test-connect.c: New file.
29528         Tests for module 'bind'.
29529         * modules/bind-tests: New file.
29530         * tests/test-bind.c: New file.
29532         accept4 tests: Fix for native Windows.
29533         * tests/test-accept4.c: Include sockets.h.
29534         (main): Invoke gl_sockets_startup.
29535         * modules/accept4-tests (Depends-on): Add sockets.
29537         accept tests: Fix for native Windows.
29538         * tests/test-accept.c: Include sockets.h.
29539         (main): Invoke gl_sockets_startup.
29540         * modules/accept-tests (Depends-on): Add sockets.
29542 2011-09-19  Bruno Haible  <bruno@clisp.org>
29544         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
29545         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
29546         do...while(0).
29547         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
29548         Suggested by Paul Eggert.
29550 2011-09-19  Bruno Haible  <bruno@clisp.org>
29552         sched: Ensure pid_t is defined.
29553         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
29554         not define pid_t.
29555         * lib/sched.in.h: Include <sys/types.h>.
29556         * doc/posix-headers/sched.texi: Mention the pid_t problem.
29557         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29559 2011-09-19  Bruno Haible  <bruno@clisp.org>
29561         msvc-inval: Ensure the entire expansion is a single statement.
29562         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
29563         of braces.
29565 2011-09-19  Jim Meyering  <meyering@redhat.com>
29567         tests: use printf, not echo in init.sh's warn_ function
29568         * tests/init.sh (warn_): Use printf, not echo.  The latter would
29569         misbehave when given strings containing a backslash or starting
29570         with e.g., -n.  James Youngman suggested setting IFS.
29572 2011-09-19  Eric Blake  <eblake@redhat.com>
29574         futimens: enhance test
29575         * tests/test-futimens.h (test_futimens): Also check for EBADF on
29576         closed non-negative fd.
29578         date: accept 'hence' as opposite of 'ago'
29579         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
29580         * tests/test-parse-datetime.c (main): Enhance test.
29581         Suggested by Jesse Wilson.
29583 2011-09-19  Jim Meyering  <meyering@redhat.com>
29585         getcwd: don't fail in a deep directory on a system without openat
29586         Before this change, getcwd would fail when called from a directory
29587         of depth PATH_MAX / 3 or greater.  That was due to the fact that
29588         the non-openat implementation used "..", "../..", "../../..", etc.
29589         to access ancestor directories.  With too many, that string would
29590         be longer than PATH_MAX.
29591         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
29592         using gnulib's openat replacement.
29593         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
29594         we're using the replacement function.
29596 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
29598         maint.mk: avoid warnings from perl about missing files
29599         * top/maint.mk (def_sym_regex): Ignore files listed in
29600         $(gl_other_headers_) that do not exist, say because a project
29601         does not use a corresponding module.
29603 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
29605         stat: use pathmax.h only if needed
29606         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
29607         This is better for Emacs, which does not have a mingw port and
29608         therefore can avoid the pathmax module.
29610         utimens: remove dependency on dup2
29611         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
29612         to work around the Linux kernel bug.
29613         * modules/utimens (Depends-on): Remove dup2.
29615 2011-09-18  Bruno Haible  <bruno@clisp.org>
29617         inet_ntop, inet_pton: Look for it also in libresolv.
29618         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
29619         libnsl, search for it in libresolv.
29620         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
29621         Needed on Solaris 7.
29623 2011-09-18  Bruno Haible  <bruno@clisp.org>
29625         accept, accept4 tests: Avoid link error on Solaris.
29626         * modules/accept-tests (Makefile.am): Link test-accept against
29627         $(LIBSOCKET).
29628         * modules/accept4-tests (Makefile.am): Link test-accept4 against
29629         $(LIBSOCKET).
29631         accept4: Avoid link error on Solaris.
29632         * modules/accept4 (Link): New section.
29634         socket functions: Avoid link errors on Solaris.
29635         * modules/accept (Depends-on): Add socketlib.
29636         (Link): New section.
29637         * modules/bind (Depends-on): Add socketlib.
29638         (Link): New section.
29639         * modules/connect (Depends-on): Add socketlib.
29640         (Link): New section.
29641         * modules/getpeername (Depends-on): Add socketlib.
29642         (Link): New section.
29643         * modules/getsockname (Depends-on): Add socketlib.
29644         (Link): New section.
29645         * modules/getsockopt (Depends-on): Add socketlib.
29646         (Link): New section.
29647         * modules/listen (Depends-on): Add socketlib.
29648         (Link): New section.
29649         * modules/recv (Depends-on): Add socketlib.
29650         (Link): New section.
29651         * modules/recvfrom (Depends-on): Add socketlib.
29652         (Link): New section.
29653         * modules/send (Depends-on): Add socketlib.
29654         (Link): New section.
29655         * modules/sendto (Depends-on): Add socketlib.
29656         (Link): New section.
29657         * modules/setsockopt (Depends-on): Add socketlib.
29658         (Link): New section.
29659         * modules/shutdown (Depends-on): Add socketlib.
29660         (Link): New section.
29661         * modules/socket (Depends-on): Add socketlib.
29662         (Link): New section.
29664 2011-09-18  Bruno Haible  <bruno@clisp.org>
29666         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
29667         * tests/test-ptsname.c (main): Terminate the test if it takes longer
29668         than 5 seconds.
29669         * modules/ptsname-tests (configure.ac): Test for alarm.
29671 2011-09-18  Bruno Haible  <bruno@clisp.org>
29673         posix_spawn_file_actions_add*: Fix module dependencies.
29674         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
29675         posix_spawn_file_actions_init.
29676         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
29677         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
29679 2011-09-18  Bruno Haible  <bruno@clisp.org>
29681         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
29682         * tests/test-rename.h (test_rename): Allow error code EEXIST.
29683         * tests/test-renameat.c (main): Likewise.
29685 2011-09-18  Bruno Haible  <bruno@clisp.org>
29687         Tests for module 'accept4'.
29688         * modules/accept4-tests: New file.
29689         * tests/test-accept4.c: New file.
29691 2011-09-18  Bruno Haible  <bruno@clisp.org>
29693         Tests for module 'accept'.
29694         * modules/accept-tests: New file.
29695         * tests/test-accept.c: New file.
29697 2011-09-18  Bruno Haible  <bruno@clisp.org>
29699         dup2: Support for MSVC.
29700         * lib/dup2.c: Include msvc-inval.h.
29701         (rpl_dup2): Handle invalid parameter notifications during dup2 and
29702         _get_osfhandle calls.
29703         * modules/dup2 (Depends-on): Add msvc-inval.
29704         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
29706         New module 'msvc-inval'.
29707         * lib/msvc-inval.h: New file.
29708         * lib/msvc-inval.c: New file.
29709         * m4/msvc-inval.m4: New file.
29710         * modules/msvc-inval: New file.
29712 2011-09-17  Bruno Haible  <bruno@clisp.org>
29714         Tests for module 'pclose'.
29715         * modules/pclose-tests: New file.
29717         New module 'pclose'.
29718         * lib/stdio.in.h (pclose): New declaration.
29719         * lib/pclose.c: New file.
29720         * m4/pclose.m4: New file.
29721         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
29722         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
29723         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
29724         * modules/pclose: New file.
29725         * modules/popen-tests (Depends-on): Add pclose.
29726         * modules/popen-safer-tests (Depends-on): Likewise.
29727         * doc/posix-functions/pclose.texi: Mention the new module.
29729 2011-09-17  Bruno Haible  <bruno@clisp.org>
29731         popen: Support for MSVC.
29732         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
29733         * lib/popen.c (popen): Provide alternate definition for native Windows.
29734         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
29735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
29736         * modules/popen (Depends-on, configure.ac): Update condition.
29737         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
29738         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
29739         fixed.
29741 2011-09-17  Bruno Haible  <bruno@clisp.org>
29743         isnanl, isnand, isnanf: Work around MSVC bug.
29744         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
29746 2011-09-17  Bruno Haible  <bruno@clisp.org>
29748         sys_socket tests: Fix recent mistake.
29749         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
29751 2011-09-17  Bruno Haible  <bruno@clisp.org>
29753         putenv: Support for MSVC.
29754         * modules/putenv (Depends-on): Add environ.
29755         * lib/putenv.c (environ): Disable declaration.
29756         * lib/unistd.in.h: Update comment.
29758 2011-09-17  Bruno Haible  <bruno@clisp.org>
29760         math: Avoid macro redefinition warnings on MSVC.
29761         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
29762         Undefine before redefining.
29764 2011-09-17  Bruno Haible  <bruno@clisp.org>
29766         doc: Mention functions which are declared as macros.
29767         * doc/posix-functions/*[fl].texi: Mention that some functions are
29768         defined as macros with arguments only.
29770 2011-09-17  Bruno Haible  <bruno@clisp.org>
29772         Add dependencies to new dirent related modules.
29773         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
29774         * modules/fts (Depends-on): Likewise.
29775         * modules/glob (Depends-on): Likewise.
29776         * modules/savedir (Depends-on): Likewise.
29777         * modules/scandir (Depends-on): Likewise.
29778         * modules/dirent-safer (Depends-on): Add opendir, closedir.
29779         * modules/fdopendir (Depends-on): Add opendir.
29781 2011-09-17  Bruno Haible  <bruno@clisp.org>
29783         inet_pton: Support for MSVC on Windows Vista or newer.
29784         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
29785         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
29786         HAVE_DECL_INET_PTON is defined.
29787         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
29788         On platforms with <winsock2.h>, test whether inet_pton is declared in
29789         <ws2tcpip.h>. If so, arrange to replace it.
29790         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
29791         REPLACE_INET_PTON.
29792         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
29793         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
29794         (Depends-on, configure.ac): Update condition.
29795         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
29797 2011-09-17  Bruno Haible  <bruno@clisp.org>
29799         inet_ntop: Support for MSVC on Windows Vista or newer.
29800         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
29801         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
29802         HAVE_DECL_INET_NTOP is defined.
29803         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
29804         On platforms with <winsock2.h>, test whether inet_ntop is declared in
29805         <ws2tcpip.h>. If so, arrange to replace it.
29806         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
29807         REPLACE_INET_NTOP.
29808         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
29809         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
29810         (Depends-on, configure.ac): Update condition.
29811         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
29813 2011-09-16  Eric Blake  <eblake@redhat.com>
29815         test-fsync: yet another enhancement
29816         * tests/test-fsync.c (main): Also test behavior on read-only text
29817         file.
29819 2011-09-16  Bruno Haible  <bruno@clisp.org>
29821         Enhance fsync, fdatasync tests.
29822         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
29823         * tests/test-fdatasync.c (main): Likewise.
29825 2011-09-16  Bruno Haible  <bruno@clisp.org>
29827         Support for MSVC compiler: Ensure mode_t gets defined.
29828         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
29829         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29830         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29831         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
29832         * tests/test-fcntl-h.c: Check that mode_t is defined.
29833         * tests/test-sys_stat.c: Likewise.
29834         * tests/test-sys_types.c: Likewise.
29835         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
29836         * doc/posix-headers/sys_stat.texi: Likewise.
29837         * doc/posix-headers/sys_types.texi: Likewise.
29839 2011-09-16  Bruno Haible  <bruno@clisp.org>
29841         sys_stat: Support for MSVC.
29842         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
29843         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
29844         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
29845         MSVC.
29847 2011-09-16  Bruno Haible  <bruno@clisp.org>
29849         Support for MSVC compiler: Ensure off_t gets defined.
29850         * lib/unistd.in.h: Include <sys/types.h>.
29851         * tests/test-fcntl-h.c: Check that off_t is defined.
29852         * tests/test-sys_stat.c: Likewise.
29853         * tests/test-sys_types.c: Likewise.
29855 2011-09-16  Eric Blake  <eblake@redhat.com>
29857         fdatasync: port to Solaris
29858         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
29859         * modules/fdatasync (Link): Document it.
29860         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
29862         fdatasync: port to MacOS X 10.7
29863         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
29864         declared.
29865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
29866         * modules/unistd (Makefile.am): Substitute it.
29867         * lib/unistd.in.h (fdatasync): Declare on MacOS.
29868         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
29870         fdatasync: minor improvements
29871         * modules/fdatasync (Depends-on): Add condition for fsync.
29872         * lib/fdatasync.c (fdatasync): Add comment.
29873         * tests/test-unistd-c++.cc: Test fdatasync.
29875         unistd: update refs to newer POSIX
29876         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
29877         Suggested by Bruno Haible.
29879         fdatasync: new module
29880         * modules/fsync (Description): Document difference to fdatasync.
29881         * modules/fdatasync: New module.
29882         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
29883         * lib/fdatasync.c (fdatasync): Likewise.
29884         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
29885         defaults.
29886         * modules/unistd (Makefile.am): Set witnesses.
29887         * lib/unistd.in.h (fdatasync): Declare.
29888         * MODULES.html.sh: Document it.
29889         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
29890         * modules/fdatasync-tests: New test.
29891         * tests/test-fdatasync.c: Likewise.
29893 2011-09-16  Eric Blake  <eblake@redhat.com>
29895         test-fsync: enhance tests
29896         * modules/fsync-tests (Depends-on): Add errno, for mingw.
29897         * tests/test-fsync.c (main): Enhance test.
29899 2011-09-15  Bruno Haible  <bruno@clisp.org>
29901         Support for MSVC compiler: Ensure ssize_t gets defined.
29902         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
29903         * doc/posix-headers/stdio.texi: Likewise.
29904         * modules/stdio (Depends-on): Add ssize_t.
29905         * modules/sys_socket (Depends-on): Likewise.
29906         * modules/sys_types (Depends-on): Likewise.
29907         * modules/sys_uio (Depends-on): Likewise.
29908         * modules/unistd (Depends-on): Likewise.
29909         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
29910         * tests/test-sys_types.c: Check that ssize_t is defined.
29912 2011-09-14  Bruno Haible  <bruno@clisp.org>
29914         Avoid using #, the m4 comment starter character, near brackets.
29915         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
29916         delimiter character in sed expressions.
29917         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
29918         Suggested by Eric Blake.
29920         Properly quote AC_CHECK_DECLS' 4th argument.
29921         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
29922         argument.
29923         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29924         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29925         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29926         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29927         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29928         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
29929         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
29930         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
29931         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
29932         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
29933         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
29934         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
29935         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29936         * m4/isinf.m4 (gl_ISINF): Likewise.
29937         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29938         * m4/readutmp.m4 (gl_READUTMP): Likewise.
29939         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29940         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29941         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29942         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
29943         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29944         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
29945         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
29946         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29947         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29948         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29949         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
29950         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29951         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29952         Reported by Eric Blake.
29954         Properly quote AC_CHECK_DECL's 4th argument.
29955         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
29956         argument.
29957         * m4/argp.m4 (gl_ARGP): Likewise.
29958         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29959         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29960         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29961         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29962         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
29963         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
29964         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
29965         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29966         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29967         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29968         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29969         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29970         Reported by Eric Blake.
29972 2011-09-14  Eric Blake  <eblake@redhat.com>
29974         opendir: avoid compile warning
29975         * lib/opendir.c (includes): Always include errno.h.
29976         Reported by Tatsuro MATSUOKA.
29978 2011-09-14  Jim Meyering  <meyering@redhat.com>
29980         maint.mk: sc_tight_scope: propagate failure from sub-make
29981         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
29982         Reported by Martin von Gagern.
29984 2011-09-13  Bruno Haible  <bruno@clisp.org>
29986         tempname: Support for MSVC.
29987         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
29988         MSVC.
29989         * modules/tempname (Depends-on): Add fcntl-h.
29991 2011-09-13  Bruno Haible  <bruno@clisp.org>
29993         sys_time: Support for MSVC.
29994         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
29995         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
29996         include <winsock2.h>.
29997         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
29998         function declarations that collide with POSIX.
29999         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
30000         (Makefile.am): Substitute HAVE_WINSOCK2_H.
30002 2011-09-13  Bruno Haible  <bruno@clisp.org>
30004         stat: Support for MSVC.
30005         * lib/stat.c: Include pathmax.h.
30006         * modules/stat (Depends-on): Add pathmax.
30008         pathmax: Support for native Windows.
30009         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
30011 2011-09-12  Bruno Haible  <bruno@clisp.org>
30013         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
30014         * lib/dirent.in.h (struct dirent): New type.
30015         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
30016         DT_WHT): New macros.
30017         (DIR): New type.
30018         (opendir, closedir): Declare only if the module 'opendir' is enabled.
30019         (readdir, rewinddir): New declarations.
30020         * lib/dirent-private.h: New file.
30021         * lib/opendir.c: New file.
30022         * lib/readdir.c: New file.
30023         * lib/rewinddir.c: New file.
30024         * lib/closedir.c: New file.
30025         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
30026         * m4/opendir.m4: New file.
30027         * m4/readdir.m4: New file.
30028         * m4/rewinddir.m4: New file.
30029         * m4/closedir.m4: New file.
30030         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
30031         REPLACE_CLOSEDIR here.
30032         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
30033         readdir, rewinddir are declared.
30034         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
30035         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
30036         HAVE_REWINDDIR, HAVE_CLOSEDIR.
30037         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
30038         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
30039         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
30040         * modules/opendir: New file.
30041         * modules/readdir: New file.
30042         * modules/rewinddir: New file.
30043         * modules/closedir: New file.
30044         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
30045         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
30046         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
30047         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
30048         * NEWS: Mention the 'fchdir' change.
30050 2011-09-11  Bruno Haible  <bruno@clisp.org>
30052         asm-underscore.m4: Support for MSVC.
30053         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
30054         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
30056 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
30058         Doc about crypt functions.
30059         * doc/posix-functions/crypt.texi: Expand range of glibc versions
30060         needing for _GNU_SOURCE to get crypt.
30061         * doc/posix-functions/encrypt.texi: Likewise.
30062         * doc/posix-functions/setkey.texi: Likewise.
30064 2011-09-11  Bruno Haible  <bruno@clisp.org>
30066         doc: Update regarding MSVC 9.
30067         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
30068         tested".
30069         * doc/posix-functions/*.texi: Update with info about MSVC 9.
30070         * doc/posix-headers/*.texi: Likewise.
30071         * doc/pastposix-functions/*.texi: Likewise.
30072         * doc/glibc-functions/*.texi: Likewise.
30073         * doc/glibc-headers/*.texi: Likewise.
30075 2011-09-11  Bruno Haible  <bruno@clisp.org>
30077         unistd et al.: Don't assume <unistd.h> exists.
30078         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
30079         does not exist.
30080         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
30081         exist. But include <stdlib.h>.
30082         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
30083         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
30084         symlink() does not exist.
30085         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
30086         include <io.h> instead.
30087         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
30088         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
30089         include <direct.h> instead.
30090         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
30091         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
30092         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
30093         <io.h> instead.
30094         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
30095         correctly if the system does not have hard links.
30096         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
30097         <direct.h> instead.
30098         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
30099         it when looking for function declarations.
30100         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
30101         <direct.h> and <io.h> instead.
30102         * doc/posix-headers/unistd.texi: More details about MSVC problem.
30104 2011-09-11  Bruno Haible  <bruno@clisp.org>
30106         strcase: Support for MSVC.
30107         * modules/strcase (Status, Notice): Remove obsoletion mark.
30108         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
30109         * doc/posix-functions/strncasecmp.texi: Likewise.
30111         strings: Don't assume <strings.h> exists.
30112         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
30113         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
30114         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
30115         * doc/posix-headers/strings.texi: Mention the MSVC problem.
30117 2011-09-11  Bruno Haible  <bruno@clisp.org>
30119         dirent: Don't assume <dirent.h> exists.
30120         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
30121         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
30122         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
30123         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
30125 2011-09-11  Bruno Haible  <bruno@clisp.org>
30127         Fix wint_t on MSVC.
30128         * lib/wchar.in.h (wint_t): On MSVC, override it.
30129         * lib/wctype.in.h (wint_t): Likewise.
30130         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
30131         MSVC.
30132         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
30133         * doc/posix-headers/wctype.texi: Likewise.
30135 2011-09-11  Bruno Haible  <bruno@clisp.org>
30137         sys_types: Fix typo.
30138         * lib/sys_types.in.h: Fix typo in comment.
30139         Reported by Paul Eggert.
30141         Support for MSVC compiler: Ensure size_t gets defined.
30142         * modules/strings (Depends-on): Add 'sys_types'.
30143         * modules/sys_uio (Depends-on): Likewise.
30144         * lib/sys_uio.in.h: Update comment.
30146         C++ tests for module 'sys_types'.
30147         * modules/sys_types-c++-tests: New file.
30148         * tests/test-sys_types-c++.cc: New file.
30150         Tests for module 'sys_types'.
30151         * modules/sys_types-tests: New file.
30152         * tests/test-sys_types.c: New file.
30154         New module 'sys_types'.
30155         * lib/sys_types.in.h: New file.
30156         * m4/sys_types_h.m4: New file.
30157         * modules/sys_types: New file.
30158         * doc/posix-headers/sys_types.texi: Mention the new module and the
30159         size_t problem on MSVC 9.
30161 2011-09-11  Bruno Haible  <bruno@clisp.org>
30163         Support for MSVC compiler: Avoid division by a literal 0.
30164         * lib/math.in.h (NAN): Define through a function call also on MSVC.
30165         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
30166         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
30167         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
30168         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
30169         * tests/infinity.h: New file.
30170         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
30171         on MSVC.
30172         * tests/test-ceilf1.c: Include infinity.h.
30173         (main): Use Infinityf.
30174         * tests/test-ceil1.c: Include infinity.h.
30175         (main): Use Infinityd.
30176         * tests/test-ceill.c: Include infinity.h.
30177         (main): Use Infinityl.
30178         * tests/test-dprintf-posix.c: Include infinity.h.
30179         (test_function): Use Infinityd.
30180         * tests/test-floorf1.c: Include infinity.h.
30181         (main): Use Infinityf.
30182         * tests/test-floor1.c: Include infinity.h.
30183         (main): Use Infinityd.
30184         * tests/test-floorl.c: Include infinity.h.
30185         (main): Use Infinityl.
30186         * tests/test-fprintf-posix.c: Include infinity.h.
30187         (test_function): Use Infinityd.
30188         * tests/test-frexp.c: Include infinity.h.
30189         (main): Use Infinityd.
30190         * tests/test-frexpl.c: Include infinity.h.
30191         (main): Use Infinityl.
30192         * tests/test-isfinite.c: Include infinity.h.
30193         (test_isfinitef): Use Infinityf.
30194         (test_isfinited): Use Infinityd.
30195         (test_isfinitel): Use Infinityl.
30196         * tests/test-isinf.c: Include infinity.h.
30197         (test_isinff): Use Infinityf.
30198         (test_isinfd): Use Infinityd.
30199         (test_isinfl): Use Infinityl.
30200         * tests/test-isnan.c: Include infinity.h.
30201         (test_float): Use Infinityf.
30202         (test_double): Use Infinityd.
30203         (test_long_double): Use Infinityl.
30204         * tests/test-isnanf.h: Include infinity.h.
30205         (main): Use Infinityf.
30206         * tests/test-isnand.h: Include infinity.h.
30207         (main): Use Infinityd.
30208         * tests/test-isnanl.h: Include infinity.h.
30209         (main): Use Infinityl.
30210         * tests/test-ldexpl.c: Include infinity.h.
30211         (main): Use Infinityl.
30212         * tests/test-printf-posix.h: Include infinity.h.
30213         (test_function): Use Infinityd.
30214         * tests/test-roundf1.c: Include infinity.h.
30215         (main): Use Infinityf.
30216         * tests/test-round1.c: Include infinity.h.
30217         (main): Use Infinityd.
30218         * tests/test-roundl.c: Include infinity.h.
30219         (main): Use Infinityl.
30220         * tests/test-signbit.c: Include infinity.h.
30221         (test_signbitf): Use Infinityf.
30222         (test_signbitd): Use Infinityd.
30223         (test_signbitl): Use Infinityl.
30224         * tests/test-snprintf-posix.h: Include infinity.h.
30225         (test_function): Use Infinityd, Infinityl.
30226         * tests/test-sprintf-posix.h: Include infinity.h.
30227         (test_function): Use Infinityd, Infinityl.
30228         * tests/test-truncf1.c: Include infinity.h.
30229         (main): Use Infinityf.
30230         * tests/test-trunc1.c: Include infinity.h.
30231         (main): Use Infinityd.
30232         * tests/test-truncl.c: Include infinity.h.
30233         (main): Use Infinityl.
30234         * tests/test-vasnprintf-posix.c: Include infinity.h.
30235         (test_function): Use Infinityd, Infinityl.
30236         * tests/test-vasprintf-posix.c: Include infinity.h.
30237         (test_function): Use Infinityd, Infinityl.
30238         * modules/ceilf-tests (Files): Add tests/infinity.h.
30239         * modules/ceil-tests (Files): Likewise.
30240         * modules/ceill-tests (Files): Likewise.
30241         * modules/dprintf-posix-tests (Files): Likewise.
30242         * modules/floorf-tests (Files): Likewise.
30243         * modules/floor-tests (Files): Likewise.
30244         * modules/floorl-tests (Files): Likewise.
30245         * modules/fprintf-posix-tests (Files): Likewise.
30246         * modules/frexp-tests (Files): Likewise.
30247         * modules/frexp-nolibm-tests (Files): Likewise.
30248         * modules/frexpl-tests (Files): Likewise.
30249         * modules/frexpl-nolibm-tests (Files): Likewise.
30250         * modules/isfinite-tests (Files): Likewise.
30251         * modules/isinf-tests (Files): Likewise.
30252         * modules/isnan-tests (Files): Likewise.
30253         * modules/isnanf-tests (Files): Likewise.
30254         * modules/isnanf-nolibm-tests (Files): Likewise.
30255         * modules/isnand-tests (Files): Likewise.
30256         * modules/isnand-nolibm-tests (Files): Likewise.
30257         * modules/isnanl-tests (Files): Likewise.
30258         * modules/isnanl-nolibm-tests (Files): Likewise.
30259         * modules/ldexpl-tests (Files): Likewise.
30260         * modules/printf-posix-tests (Files): Likewise.
30261         * modules/roundf-tests (Files): Likewise.
30262         * modules/round-tests (Files): Likewise.
30263         * modules/roundl-tests (Files): Likewise.
30264         * modules/signbit-tests (Files): Likewise.
30265         * modules/snprintf-posix-tests (Files): Likewise.
30266         * modules/sprintf-posix-tests (Files): Likewise.
30267         * modules/truncf-tests (Files): Likewise.
30268         * modules/trunc-tests (Files): Likewise.
30269         * modules/truncl-tests (Files): Likewise.
30270         * modules/vasnprintf-posix-tests (Files): Likewise.
30271         * modules/vasprintf-posix-tests (Files): Likewise.
30272         * modules/vdprintf-posix-tests (Files): Likewise.
30273         * modules/vfprintf-posix-tests (Files): Likewise.
30274         * modules/vprintf-posix-tests (Files): Likewise.
30275         * modules/vsnprintf-posix-tests (Files): Likewise.
30276         * modules/vsprintf-posix-tests (Files): Likewise.
30277         * modules/xprintf-posix-tests (Files): Likewise.
30279 2011-09-11  Bruno Haible  <bruno@clisp.org>
30281         Ensure pid_t gets defined.
30282         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
30283         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
30284         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30285         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30286         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
30287         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
30288         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
30289         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30290         * tests/test-fcntl-h.c: Check that pid_t is defined.
30291         * tests/test-sched.c: Likewise.
30292         * tests/test-termios.c: Likewise.
30293         * tests/test-time.c: Likewise.
30294         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
30295         * doc/posix-headers/signal.texi: Likewise.
30296         * doc/posix-headers/sys_types.texi: Likewise.
30297         * doc/posix-headers/time.texi: Likewise.
30299 2011-09-11  Bruno Haible  <bruno@clisp.org>
30301         acl: Fix compilation on Solaris 10 (older version).
30302         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
30303         of ACE_EVERYONE.
30304         * lib/set-mode-acl.c (qset_acl): Likewise.
30305         Reported by Christian Jullien <eligis@orange.fr>.
30307 2011-09-10  Bruno Haible  <bruno@clisp.org>
30309         iconv, unsetenv: Add support for MSVC compiler.
30310         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
30311         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
30313 2011-09-10  Bruno Haible  <bruno@clisp.org>
30315         *printf: Add support for MSVC compiler.
30316         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
30317         handles the exception caused by the %n directive. When cross-compiling,
30318         guess no on native Windows.
30319         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30320         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
30321         emulate it through vsnprintf.
30322         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
30323         * doc/posix-functions/dprintf.texi: Update documentation regarding
30324         MSVC 9.
30325         * doc/posix-functions/fprintf.texi: Likewise.
30326         * doc/posix-functions/printf.texi: Likewise.
30327         * doc/posix-functions/snprintf.texi: Likewise.
30328         * doc/posix-functions/sprintf.texi: Likewise.
30329         * doc/posix-functions/swprintf.texi: Likewise.
30330         * doc/posix-functions/vdprintf.texi: Likewise.
30331         * doc/posix-functions/vfprintf.texi: Likewise.
30332         * doc/posix-functions/vprintf.texi: Likewise.
30333         * doc/posix-functions/vsnprintf.texi: Likewise.
30334         * doc/posix-functions/vsprintf.texi: Likewise.
30335         * doc/glibc-functions/asprintf.texi: Likewise.
30336         * doc/glibc-functions/obstack_printf.texi: Likewise.
30337         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30338         * doc/glibc-functions/vasprintf.texi: Likewise.
30340 2011-09-10  Bruno Haible  <bruno@clisp.org>
30342         nocrash: Add support for native Windows.
30343         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
30345 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
30346             Bruno Haible  <bruno@clisp.org>
30348         absolute-header, include-next: Add support for MSVC compiler.
30349         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
30350         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
30351         directory separator in #line directives.
30352         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
30353         recognize also backslash as directory separator in #line directives.
30355 2011-09-08  Jim Meyering  <meyering@redhat.com>
30357         maint.mk: mark the post-release commit log with "maint: " prefix
30358         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
30359         one-line commit-log summary.
30361 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
30362             Bruno Haible  <bruno@clisp.org>
30364         Doc about crypt functions.
30365         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
30366         systems.
30367         * doc/posix-functions/encrypt.texi: Likewise.
30368         * doc/posix-functions/setkey.texi: Likewise.
30370 2011-09-08  Simon Josefsson  <simon@josefsson.org>
30372         * lib/gc.h: Fix copyright header.
30374 2011-09-07  Bruno Haible  <bruno@clisp.org>
30376         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
30377         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
30378         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
30380 2011-09-07  Bruno Haible  <bruno@clisp.org>
30382         openat: Work around compilation error with OSF/1 5.1 DTK cc.
30383         * lib/fopen.c: Use different syntax for include of <stdio.h>.
30384         * lib/freopen.c: Likewise.
30385         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
30386         * lib/lstat.c: Likewise.
30387         * lib/stat.c: Likewise.
30388         * lib/open.c: Use different syntax for include of <fcntl.h>.
30389         * lib/openat.c: Include fcntl.h again, explicitly.
30391 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
30393         parse-datetime: document the newly accepted format
30394         * doc/parse-datetime.texi (Combined date and time of day items):
30395         New section.
30397 2011-09-06  Bruno Haible  <bruno@clisp.org>
30399         acl: Fix a test failure on newer Solaris 10 with ZFS.
30400         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
30401         ENOSYS as no ACL.
30402         Reported by Jim Meyering.
30404 2011-09-06  Bruno Haible  <bruno@clisp.org>
30406         acl: Update for AIX >= 5.3 with NFS.
30407         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
30408         ENOSYS as no ACL.
30410         acl: Fix a test failure on AIX >= 5.3 with NFS.
30411         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
30412         as no ACL.
30414 2011-09-06  Bruno Haible  <bruno@clisp.org>
30416         acl: Fix a test failure on IRIX 6.5 with NFS.
30417         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
30418         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
30419         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
30420         * lib/copy-acl.c (qcopy_acl): Likewise.
30422 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
30424         openat: port to AIX 7.1 with large files
30425         AIX 7.1 does a "#define openat open64at" if large files are in use,
30426         so we can't simply #undef openat.  Use the orig_openat trick (similar
30427         to orig_open in lib/open.c) to work around the problem.  Problem
30428         reported by Kevin Brott for GNU tar, in the thread containing
30429         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
30430         * lib/openat.c (__need_system_fcntl_h): Define first.
30431         Include <fcntl.h> and <sys/types.h> before undefining.
30432         (orig_openat) [HAVE_OPENAT]: New inline function.
30433         (openat) [HAVE_OPENAT]: Do not undef.
30434         (rpl_openat): Use orig_openat, not openat.
30436 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30437             Bruno Haible  <bruno@clisp.org>
30439         acl: Avoid errors on NonStop Kernel.
30440         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
30441         ENOTSUP errors.
30443 2011-09-05  Bruno Haible  <bruno@clisp.org>
30445         acl: Clean up Solaris code.
30446         * lib/acl-internal.h: Remove no-op #if.
30447         * lib/file-has-acl.c: Likewise.
30448         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
30449         * lib/copy-acl.c (qcopy_acl): Likewise.
30451 2011-09-05  Bruno Haible  <bruno@clisp.org>
30453         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
30454         binaries built on the original Solaris 10.
30455         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
30456         trivial.
30458 2011-09-05  Bruno Haible  <bruno@clisp.org>
30460         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
30461         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
30462         10.
30463         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
30464         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
30465         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
30466         instead of acl_get, facl_get, acl_set, facl_set.
30468 2011-09-05  Bruno Haible  <bruno@clisp.org>
30470         copy-file: Try unit tests on more file systems.
30471         * tests/test-copy-file-1.sh: New file.
30472         * tests/test-copy-file-2.sh: New file.
30473         * modules/copy-file-tests (Files): Add them.
30474         (Makefile.am): Add them to TESTS.
30476         acl: Try unit tests on more file systems.
30477         * tests/test-file-has-acl-1.sh: New file.
30478         * tests/test-file-has-acl-2.sh: New file.
30479         * tests/test-set-mode-acl-1.sh: New file.
30480         * tests/test-set-mode-acl-2.sh: New file.
30481         * tests/test-copy-acl-1.sh: New file.
30482         * tests/test-copy-acl-2.sh: New file.
30483         * modules/acl-tests (Files): Add them.
30484         (Makefile.am): Add them to TESTS.
30486 2011-09-04  Bruno Haible  <bruno@clisp.org>
30488         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
30489         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
30490         10.
30491         (OLD_ALLOW, OLD_DENY): New macros.
30492         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
30493         ACE_ACCESS_ALLOWED_ACE_TYPE.
30494         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
30495         ACE_ACCESS_DENIED_ACE_TYPE.
30496         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
30497         (NEW_ACE_EXECUTE): Fix value.
30498         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
30499         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
30500         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
30501         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
30502         NEW_ACE_SYNCHRONIZE): New macros.
30503         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
30504         instead of acl_fromtext, acl_set, facl_set.
30505         Fixes a coreutils/tests/cp/perm failure.
30507 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
30509         openat: test for fstatat (..., 0) bug
30510         Further testing with tar suggests that fstatat (..., 0)
30511         does not work in general, on AIX 7.1; see
30512         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
30513         So, give up entirely on AIX 7.1's fstatat, and fall back on our
30514         replacement fstatat (which is what older AIX releases were using
30515         anyway).
30516         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
30517         use is now changed to orig_fstatat.  This was probably the right
30518         thing to do anyway.
30519         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
30520         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
30521         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
30522         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
30523         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
30524         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
30525         if the bug is found.
30527         openat: test for fstatat (AT_FDCWD, ..., 0) bug
30528         This tests for another fstatat bug on AIX 7.1:
30529         fstatat (AT_FDCWD, ..., 0) does not work.  See
30530         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
30531         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
30532         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
30533         (rpl_fstatat): Adjust so that it works around either (or both)
30534         bugs if present.
30535         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
30537 2011-09-03  Karl Berry  <karl@gnu.org>
30539         * doc/regex.texi (Character Class Operators): Avoid literal ":"
30540         in index entries.
30542 2011-09-02  Bruno Haible  <bruno@clisp.org>
30544         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
30545         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
30546         values of AR, ARFLAGS, RANLIB.
30547         Reported by John W. Eaton <jwe@gnu.org> for Octave.
30549 2011-09-02  Bruno Haible  <bruno@clisp.org>
30551         Find 'ar' program that fits with --host argument.
30552         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
30554 2011-09-02  Bruno Haible  <bruno@clisp.org>
30556         tests: init.sh: Support any non-GNU diff.
30557         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
30558         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
30559         Solaris 8.
30561 2011-09-02  Bruno Haible  <bruno@clisp.org>
30563         tests: init.sh: work also with any non-GNU diff that supports -u
30564         * tests/init.sh: Relax check for diff -u support.
30565         Rather than checking for GNU diff via --version, simply check
30566         for support for -u itself.  Useful at least on OpenBSD 4.9,
30567         AIX 7.1, IRIX 6.5, and Solaris 10.
30569 2011-09-01  Bruno Haible  <bruno@clisp.org>
30571         strtoimax, strtoumax: Document problem on HP-UX 11.
30572         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
30573         * doc/posix-functions/strtoumax.texi: Likewise.
30575 2011-09-01  Bruno Haible  <bruno@clisp.org>
30577         strtoumax: Avoid link error on OSF/1 with DTK cc.
30578         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
30579         defined as a function.
30580         * modules/strtoumax (Depends-on, configure.ac): Test only whether
30581         strtoumax is defined, not whether it is declared.
30583 2011-09-01  Bruno Haible  <bruno@clisp.org>
30585         strtoimax: Avoid link error on OSF/1 with DTK cc.
30586         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
30587         defined as a function.
30588         * modules/strtoimax (Depends-on, configure.ac): Test only whether
30589         strtoimax is defined, not whether it is declared.
30591 2011-09-01  Bruno Haible  <bruno@clisp.org>
30593         imaxdiv: Avoid link error on OSF/1 with DTK cc.
30594         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
30595         as a function.
30596         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
30597         whether it is declared.
30599 2011-09-01  Bruno Haible  <bruno@clisp.org>
30601         imaxabs: Avoid link error on OSF/1 with DTK cc.
30602         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
30603         as a function.
30604         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
30605         whether it is declared.
30607 2011-09-01  Bruno Haible  <bruno@clisp.org>
30609         Tests for module 'strtoumax'.
30610         * modules/strtoumax-tests: New file.
30611         * tests/test-strtoumax.c: New file.
30613         Tests for module 'strtoimax'.
30614         * modules/strtoimax-tests: New file.
30615         * tests/test-strtoimax.c: New file.
30617         Tests for module 'imaxdiv'.
30618         * modules/imaxdiv-tests: New file.
30619         * tests/test-imaxdiv.c: New file.
30621         Tests for module 'imaxabs'.
30622         * modules/imaxabs-tests: New file.
30623         * tests/test-imaxabs.c: New file.
30625 2011-09-01  Bruno Haible  <bruno@clisp.org>
30627         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
30628         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
30629         pthread_create.
30631 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30633         openat: work around AIX 7.1 fstatat issue
30634         This should fix the problem that was not properly fixed
30635         in the previous change, dated 2011-08-30.
30636         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
30637         __need_system_stat_h defined.
30638         (orig_fstatat) [HAVE_FSTATAT]: New function.
30639         (rpl_fstatat): Go back to the old way of doing things,
30640         except call orig_fstatat instead of fstatat.
30641         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
30642         Remove unnecessary check whether fstatat fills in st_size etc.
30644 2011-09-01  Bruno Haible  <bruno@clisp.org>
30646         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
30647         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
30648         just include the system's header.
30650 2011-08-31  Jim Meyering  <meyering@redhat.com>
30652         tests: avoid spurious assertion failure in test-float.c on ppc64
30653         * tests/test-float.c (test_long_double): Comment out an assertion,
30654         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
30655         with gcc-4.4.4.
30657         maint: indent with spaces, not TABs
30658         I need to get in the habit of running gnulib's "make check".
30659         Both of these would have been caught.
30660         * m4/largefile.m4: Indent with spaces, not TABs.
30661         * lib/parse-datetime.y (iso_8601_time): Likewise.
30662         Spotted by Pádraig Brady.
30664         test-parse-datetime.c: accommodate a relatively strict gcc warning
30665         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
30666         to avoid a warning from gcc's -Werror=missing-declarations.
30667         Insert a few spaces-before-funcall-parenthesis.
30669 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
30671         parse-datetime: accept ISO 8601 date and time rep with "T" separator
30672         The parser now accepts ISO 8601 date-time strings with "T" as the
30673         separator.  It has long parsed dates like "2004-02-29 16:21:42"
30674         with a space between the date and time strings.  Now it also parses
30675         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
30676         variants like "2004-02-29T16:21:42.333-07:00"
30677         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
30678         of day representation using the 'T' separator character.
30679         * doc/parse-datetime.texi (General date syntax): replace use of
30680         deprecated --iso-8601 option with --rfc-3339 in example of date
30681         command output formats that can be parsed.
30682         * tests/test-parse-datetime.c (tm_diff): New function, taken from
30683         lib/parse-datetime.y.
30684         (gmt_offset): New function.
30685         (main): Add additional test cases to validate ISO8601 extended
30686         date and time of day parsing.
30688 2011-08-31  Bruno Haible  <bruno@clisp.org>
30690         freopen: Documentation.
30691         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
30692         name.
30693         Reported by Claudio Bley <claudio.bley@gmail.com>.
30695 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
30697         freopen: Don't crash if the filename argument is NULL.
30698         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
30699         NULL.
30701 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
30703         openat: work around AIX 7.1 fstatat bug
30704         Problem reported by Kevin Brott for GNU tar, in the thread containing
30705         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
30706         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
30707         FSTATAT_ST_SIZE_ETC_BROKEN.
30708         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
30709         rpl_fstatat.
30710         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
30711         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
30712         AC_CHECK_FUNCS_ONCE for fstatat.
30713         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
30714         fchmodat, mkdirat, openat and unlinkat.
30716 2011-08-30  Bruno Haible  <bruno@clisp.org>
30718         Avoid endless recursions if config.h includes some header files.
30719         * lib/fopen.c (__need_FILE): Define already before including config.h.
30720         * lib/freopen.c (__need_FILE): Likewise.
30721         * lib/open.c (__need_system_fcntl_h): Likewise.
30722         * lib/stat.c (__need_system_sys_stat_h): Likewise.
30723         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
30724         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30726 2011-08-25  Karl Berry  <karl@gnu.org>
30728         * config/srclist.txt (ylwrap): new try.
30729         * build-aux/ylwrap: new file.
30731 2011-08-23  Bruno Haible  <bruno@clisp.org>
30733         tmpdir: Use a good default directory on native Windows.
30734         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
30735         (P_tmpdir): Default to _P_tmpdir on native Windows.
30736         (path_search): On native Windows, try the value returned by GetTempPath
30737         before trying P_tmpdir.
30738         * modules/tmpdir (Depends-on): Add pathmax.
30739         Suggested by John Darrington <john@darrington.wattle.id.au>.
30741 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
30743         doc: fix typo in README-release
30744         * top/README-release: Capitalize first word of a sentence.
30746 2011-08-19  Jim Meyering  <meyering@redhat.com>
30748         fts: do not exhaust memory when processing million-entry directories
30749         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
30750         directory would require about 256*N bytes of memory.  Thus, it was
30751         easy to construct a directory too large to be processed by any of
30752         those tools.  With this change, fts' maximum memory utilization is
30753         now limited to around 30MB.
30754         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
30755         (fts_read): When we've processed the final entry (i.e., when
30756         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
30757         using the parent entry to read any remaining entries.  Dispatch
30758         depending on what fts_build returns:
30759         - NULL+stop, aka failure: stop
30760         - NULL otherwise: move up in the dir hierarchy
30761         - non-NULL: handle this new entry
30762         (fts_build): Declare and use new local, continue_readdir.
30763         Prepare to be called from fts_read, when the entries
30764         from a partially-read directory have just been exhausted.
30765         In that case, we'll skip the opendir and instead use the parent's
30766         fts_dirp and derive dir_fd from that.
30767         Finally, in the readdir loop, if we read max_entries entries,
30768         exit the loop ensuring *not* to call closedir.  This is required
30769         so that fts_dirp can be reused on a subsequent call.
30770         Prompted by Ben England's report of memory exhaustion in find
30771         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
30773         maint: fts: move decl of `dp' down into while loop; split a long line
30774         * lib/fts.c (fts_build): No semantic change.
30776         fts: add/use new struct member, fts_dirp
30777         We are about to use this to manage any directory with
30778         too many entries to read all of them into memory at once.
30779         To do that, we'll need to save the DIR* pointer in each
30780         affected FTSENT struct.
30781         * lib/fts_.h: Include <dirent.h>.
30782         (struct FTSENT) [fts_dirp]: New member.
30783         * lib/fts.c (closedir_and_clear): Define.
30784         Use it in place of closedir so that we are sure to
30785         clear the new fts_dirp member when done with it.
30786         (fts_alloc): Initialize the new member.
30787         (fts_lfree): Free, if needed.
30789         maint: fts: give __opendir2 a new parameter and rename
30790         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
30791         than surreptitiously using sole caller's "dir_fd".
30792         (fts_opendir): Rename from __opendir2.
30794         maint: fts.c: remove __opendir2's now-unused parameter, oflag
30795         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
30797         maint: fts.c: correct off-by-one indentation
30798         * lib/fts.c (fts_build): Correct indentation, change style
30799         of a couple of block comments, and bracing style.
30801         maint: fts.c: move __opendir2 #define "up" out of function body
30802         * lib/fts.c (__opendir2): Move "up".  No semantic change.
30804         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
30805         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
30806         out for a long time and besides was useful only on BSD systems.
30808 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
30810         regex: port to Stratus OpenVOS
30811         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
30812         define to empty, rather than attempting nonportable optimizations.
30813         Problem reported by Paul Green in:
30814         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
30815         and fix suggested by Eric Blake in:
30816         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
30818 2011-08-17  Eric Blake  <eblake@redhat.com>
30820         getcwd: fix test failures on mingw
30821         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
30822         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
30823         test if long directory cannot be created, and allow mingw errno.
30825         getcwd-lgpl: fix m4 to match relaxed test for BSD
30826         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
30827         (gl_FUNC_GETCWD_SIGNATURE): New macro.
30828         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
30829         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
30830         signature problem.
30832         getcwd: fix compilation on mingw64
30833         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
30834         getcwd.
30835         Reported by Marc-André Lureau.
30837         pipe2: silence compiler warning
30838         * lib/pipe2.c (pipe2): Hide label if it is not used.
30840 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
30842         relocatable-prog: fix link error
30843         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
30844         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
30845         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
30846         into modules/relocatable-lib without noticing that
30847         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
30848         also needs to build relocatable.c.
30850 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30852         getaddrinfo: fix sh typo in gai_strerrorA decl checking
30853         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
30854         shell code: it contained a 'break' that was not in a loop.
30855         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
30856         via a shell-language loop; this may have been true in old Autoconf
30857         versions, but it's not true in Autoconf 2.68.  I found this bug
30858         when testing coreutils git on Solaris 8, whose shell complains
30859         about the syntax error.
30861 2011-08-12  Simon Josefsson  <simon@josefsson.org>
30863         * lib/base64.c: Fix comment to reference RFC 4648.
30864         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
30865         <gvtulder@gmail.com>.
30867 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30869         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
30871         po/Makefile.in.in: fix make -q problem
30872         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
30873         rule, since there's no file named 'check-macro-version' and its
30874         use as a file breaks make -q.
30875         (all): Don't depend on check-macro-version.
30876         (CHECK_MACRO_VERSION): New macro.
30877         (stamp-po): Use it.
30879         configmake: fix make -q problem
30880         * modules/configmake (configmake.h): Update configmake.h's time stamp
30881         even if the file does not change.  Otherwise, 'make -q' fails.
30882         Problem reported by Simon Josefsson in
30883         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
30885 2011-08-11  Jim Meyering  <meyering@redhat.com>
30887         git-version-gen: correct the advice in a comment
30888         * build-aux/git-version-gen: Correct comment.
30889         Don't recommend to list .tarball-version in .gitignore.
30891 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30893         base64: fix off-by-one buffer size bug
30894         Problem and (trivial) fix reported by Gijs van Tulder in
30895         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
30896         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
30897         * tests/test-base64.c (main): Catch the bug.
30899 2011-08-10  Eric Blake  <eblake@redhat.com>
30901         closein: correct comments
30902         * lib/closein.c (close_stdin): Improve comments.
30904 2011-08-09  Bruno Haible  <bruno@clisp.org>
30906         More tests for 'fseeko'.
30907         * tests/test-fseeko3.c: New file, from Eric Blake.
30908         * tests/test-fseeko3.sh: New file.
30909         * modules/fseeko-tests (Files): Add them.
30910         (TESTS): Add test-fseeko3.sh.
30911         (check_PROGRAMS): Add test-fseeko3.
30913 2011-08-09  Eric Blake  <eblake@redhat.com>
30915         fseeko: remove unneeded hack
30916         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
30918         fseeko: fix bug on glibc
30919         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
30920         Reported by John W. Eaton.
30922 2011-08-08  Bruno Haible  <bruno@clisp.org>
30924         unictype/base: Fix interoperability with preinstalled libunistring.
30925         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
30926         Reported by Simon Josefsson.
30928 2011-08-08  Bruno Haible  <bruno@clisp.org>
30930         iswblank: Detect declaration correctly.
30931         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
30932         AC_CHECK_DECLS invocation.
30934 2011-08-08  Bruno Haible  <bruno@clisp.org>
30936         tcgetsid: Detect declaration correctly.
30937         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
30938         AC_CHECK_DECLS invocation.
30939         Reported by Simon Josefsson.
30941 2011-08-08  Eric Blake  <eblake@redhat.com>
30943         largefile: fix typo that regressed large file support
30944         * modules/largefile (configure.ac-early): Fix section name.
30946 2011-08-06  Karl Berry  <karl@gnu.org>
30948         * MODULES.html.sh (func_all_files): _Noreturn is no longer
30949         a separate module.
30951 2011-08-05  Simon Josefsson  <simon@josefsson.org>
30953         openat: Fix warnings and commens when building unlinkat.c on Hurd.
30954         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
30955         get prototype for free.
30957 2011-08-04  Bruno Haible  <bruno@clisp.org>
30959         Tests for module 'pathmax'.
30960         * modules/pathmax-tests: New file.
30961         * tests/test-pathmax.c: New file.
30963         canonicalize-lgpl: Support larger filenames on the Hurd.
30964         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
30965         Reported by Paul Eggert.
30967         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
30968         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
30969         * lib/chdir-long.h: Include pathmax.h.
30970         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
30971         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
30972         (PATH_MAX): Remove code that is done by pathmax.h.
30973         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
30974         * lib/tmpfile.c: Add a comment.
30975         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
30976         * modules/chdir-long (Depends-on): Add pathmax.
30977         * modules/getcwd (Depends-on): Add pathmax.
30978         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
30979         is not defined.
30980         * doc/posix-headers/limits.texi: Mention the pathmax module.
30981         * NEWS: Mention the change.
30983 2011-08-02  Bruno Haible  <bruno@clisp.org>
30985         pthread_sigmask: Actually use results of gl_THREADLIB.
30986         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
30987         gl_THREADLIB, not gl_[]THREADLIB.
30988         Reported by Eric Blake.
30990 2011-08-02  Jim Meyering  <meyering@redhat.com>
30992         maint.mk: relax the default _gl_TS_function_match regexp
30993         * top/maint.mk (_gl_TS_function_match): Don't require at least one
30994         space between function name and "(" in an "extern" declaration.
30995         That would fail to match a decl with no space there: extern void foo();
30997 2011-07-31  Iain Nicol  <iain@thenicols.net>
30999         git-version-gen: document that EXTRA_DIST must include .version
31000         * build-aux/git-version-gen: In the how-to-use comment, document
31001         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
31002         will fail when run from an unpacked distribution tarball.
31004 2011-08-01  Bruno Haible  <bruno@clisp.org>
31006         wctype-h: Fix last change.
31007         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
31008         REPLACE_TOWLOWER to 0.
31009         Reported by Sam Steingold <sds@gnu.org>.
31011 2011-07-31  Bruno Haible  <bruno@clisp.org>
31013         frexpl: Update autoconf test.
31014         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
31015         according to changes of 2011-06-20.
31017 2011-07-31  Bruno Haible  <bruno@clisp.org>
31019         sys_utsname: Add support for Minix.
31020         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
31021         <sys/utsname.h>.
31022         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31023         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
31025 2011-07-31  Bruno Haible  <bruno@clisp.org>
31027         strings: Add support for Minix.
31028         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
31029         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
31030         * doc/posix-headers/strings.texi: Document the Minix problem.
31032 2011-07-31  Bruno Haible  <bruno@clisp.org>
31034         wctype-h: Add support for Minix.
31035         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
31036         REPLACE_TOWLOWER.
31037         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
31038         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
31039         REPLACE_ISWCNTRL.
31041 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
31043         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
31044         This is a performance improvement for 64-bit hosts: it causes the
31045         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
31047 2011-07-31  Bruno Haible  <bruno@clisp.org>
31049         stdioext: Add support for Minix.
31050         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
31051         * lib/fpurge.c (fpurge): Likewise.
31052         * lib/freadahead.c (freadahead): Likewise.
31053         * lib/freadable.c (freadable): Likewise.
31054         * lib/freading.c (freading): Likewise.
31055         * lib/freadptr.c (freadptr): Likewise.
31056         * lib/freadseek.c (freadptrinc): Likewise.
31057         * lib/fseeko.c (rpl_fseeko): Likewise.
31058         * lib/fseterr.c (fseterr): Likewise.
31059         * lib/fwritable.c (fwritable): Likewise.
31060         * lib/fwriting.c (fwriting): Likewise.
31061         * lib/fflush.c (clear_ungetc_buffer): Update comment.
31062         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
31064 2011-07-31  Bruno Haible  <bruno@clisp.org>
31066         errno: Port to Minix.
31067         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
31068         ECONNABORTED are defined.
31069         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
31070         GNULIB_defined_ECONNABORTED): New macros.
31071         * lib/strerror-override.h (strerror_override): Test also
31072         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
31073         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
31074         ECONNABORTED.
31075         * doc/posix-headers/errno.texi: Mention the Minix problem.
31077 2011-07-31  Bruno Haible  <bruno@clisp.org>
31079         Work around declaration collisions on Minix.
31080         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
31081         defined, set REPLACE_MBSINIT.
31082         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
31083         defined, set REPLACE_MBRTOWC.
31084         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
31085         set REPLACE_MBRLEN.
31086         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
31087         defined, set REPLACE_MBSRTOWCS.
31088         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
31089         defined, set REPLACE_WCRTOMB.
31090         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
31091         defined, set REPLACE_WCSRTOMBS.
31093 2011-07-31  Bruno Haible  <bruno@clisp.org>
31095         Add support for Minix with ACK compiler.
31096         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
31097         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
31098         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
31100 2011-07-31  Bruno Haible  <bruno@clisp.org>
31102         Documentation about Minix.
31103         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
31104         * doc/glibc-headers/*.texi: Likewise.
31105         * doc/posix-functions/*.texi: Likewise.
31106         * doc/glibc-functions/*.texi: Likewise.
31108 2011-07-31  Bruno Haible  <bruno@clisp.org>
31110         snippet/warn-on-use: Fix indentation.
31111         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
31113 2011-07-25  Jim Meyering  <meyering@redhat.com>
31115         tests: test-update-copyright.sh: remove unnecessary "rm" commands
31116         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
31117         commands.
31119 2011-07-27  Jim Meyering  <meyering@redhat.com>
31121         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
31122         * top/maint.mk (gl_extract_significant_defines_): Now that
31123         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
31124         gnulib/lib/signal.in.h, and now that we recommend to
31125         define-if-undefined those two symbols in application code,
31126         we must filter them out of the "significant" list.
31127         This avoids a "make syntax-check" failure in coreutils.
31129 2011-07-26  Eric Blake  <eblake@redhat.com>
31131         warnings: add comments about previous patch
31132         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
31133         * m4/include_next.m4: Likewise.
31134         * m4/warn-on-use.m4: Likewise.
31135         * m4/warnings.m4: Likewise, and simplify use.
31136         Suggested by Stefano Lattarini.
31138         include-next, warnings: support older autoconf
31139         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
31140         AS_VAR_PUSHDEF in a way that works with older autoconf.
31141         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
31142         Reported by Daniel P. Berrange.
31144 2011-07-25  Bruno Haible  <bruno@clisp.org>
31146         fseek, ftell: Fix doc.
31147         * doc/posix-functions/fseek.texi: Reword statement about
31148         AC_SYS_LARGEFILE.
31149         * doc/posix-functions/ftell.texi: Likewise.
31151 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
31152             Bruno Haible  <bruno@clisp.org>
31154         Add dependencies to the 'largefile' module.
31155         * modules/fopen (Depends-on): Add 'largefile'.
31156         * modules/freopen (Depends-on): Likewise.
31157         * modules/fseeko (Depends-on): Likewise.
31158         * modules/ftello (Depends-on): Likewise.
31159         * modules/glob (Depends-on): Likewise.
31160         * modules/lseek (Depends-on): Likewise.
31161         * modules/lstat (Depends-on): Likewise.
31162         * modules/mkostemp (Depends-on): Likewise.
31163         * modules/mkostemps (Depends-on): Likewise.
31164         * modules/mkstemp (Depends-on): Likewise.
31165         * modules/mkstemps (Depends-on): Likewise.
31166         * modules/open (Depends-on): Likewise.
31167         * modules/openat (Depends-on): Likewise.
31168         * modules/pread (Depends-on): Likewise.
31169         * modules/pwrite (Depends-on): Likewise.
31170         * modules/scandir (Depends-on): Likewise.
31171         * modules/stat (Depends-on): Likewise.
31172         * modules/tmpfile (Depends-on): Likewise.
31173         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
31174         since the containing module now depends on the largefile module.
31175         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
31176         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
31177         off_t is fixed by gnulib.
31178         * doc/posix-functions/freopen.texi: Likewise.
31179         * doc/posix-functions/fseeko.texi: Likewise.
31180         * doc/posix-functions/fstatat.texi: Likewise.
31181         * doc/posix-functions/ftello.texi: Likewise.
31182         * doc/posix-functions/glob.texi: Likewise.
31183         * doc/posix-functions/lseek.texi: Likewise.
31184         * doc/posix-functions/lstat.texi: Likewise.
31185         * doc/posix-functions/mkstemp.texi: Likewise.
31186         * doc/posix-functions/open.texi: Likewise.
31187         * doc/posix-functions/openat.texi: Likewise.
31188         * doc/posix-functions/pread.texi: Likewise.
31189         * doc/posix-functions/pwrite.texi: Likewise.
31190         * doc/posix-functions/scandir.texi: Likewise.
31191         * doc/posix-functions/stat.texi: Likewise.
31192         * doc/posix-functions/tmpfile.texi: Likewise.
31193         * doc/glibc-functions/mkostemp.texi: Likewise.
31194         * doc/glibc-functions/mkostemps.texi: Likewise.
31195         * doc/glibc-functions/mkstemps.texi: Likewise.
31197 2011-07-25  Bruno Haible  <bruno@clisp.org>
31199         fcntl: Move AC_LIBOBJ invocation to module description.
31200         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
31201         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
31203         fcntl: Remove call-in from fchdir.m4.
31204         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
31205         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
31207         dup3: Remove potential call-in from fchdir.m4.
31208         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
31209         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
31211         dup2: Move AC_LIBOBJ invocation to module description.
31212         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
31213         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
31214         Don't invoke AC_LIBOBJ.
31215         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
31217         dup2: Remove call-in from fchdir.m4.
31218         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
31219         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
31221         fclose: Move AC_LIBOBJ invocation to module description.
31222         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
31223         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
31224         to 1.
31225         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
31227         fclose: Remove call-in from close.m4.
31228         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
31229         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
31231         close: Move AC_LIBOBJ invocation to module description.
31232         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
31233         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
31234         1.
31235         * modules/close (configure.ac): Invoke AC_LIBOBJ.
31237         close: Remove call-in from fchdir.m4.
31238         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
31239         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
31241         open: Move AC_LIBOBJ invocation to module description.
31242         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
31243         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
31244         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
31246         open: Remove call-in from fchdir.m4.
31247         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
31248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
31250         fchdir: Start to remove gl_REPLACE_* idiom.
31251         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
31252         (gl_FUNC_FCHDIR): Invoke it.
31254 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
31256         * lib/ftell.c (ftell): Comment out cast.
31258         close: use gl_REPLACE_FCLOSE only if defined
31259         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
31260         is defined.  The close module doesn't depend on the fclose module
31261         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
31262         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
31263         I reproduced the problem with "./gnulib-tool --test close sys_socket".
31265 2011-07-24  Jim Meyering  <meyering@redhat.com>
31267         test-select.h: avoid warning when using gcc's -Wmissing-declarations
31268         * tests/test-select.h (test_function): Declare as "static".
31270 2011-07-24  Bruno Haible  <bruno@clisp.org>
31272         doc: Mention the effects of AC_SYS_LARGEFILE.
31273         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
31274         on this function.
31275         * doc/posix-functions/aio_error.texi: Likewise.
31276         * doc/posix-functions/aio_fsync.texi: Likewise.
31277         * doc/posix-functions/aio_read.texi: Likewise.
31278         * doc/posix-functions/aio_return.texi: Likewise.
31279         * doc/posix-functions/aio_suspend.texi: Likewise.
31280         * doc/posix-functions/aio_write.texi: Likewise.
31281         * doc/posix-functions/fgetpos.texi: Likewise.
31282         * doc/posix-functions/fopen.texi: Likewise.
31283         * doc/posix-functions/freopen.texi: Likewise.
31284         * doc/posix-functions/fsetpos.texi: Likewise.
31285         * doc/posix-functions/fstatvfs.texi: Likewise.
31286         * doc/posix-functions/ftruncate.texi: Likewise.
31287         * doc/posix-functions/ftw.texi: Likewise.
31288         * doc/posix-functions/getrlimit.texi: Likewise.
31289         * doc/posix-functions/glob.texi: Likewise.
31290         * doc/posix-functions/lio_listio.texi: Likewise.
31291         * doc/posix-functions/lockf.texi: Likewise.
31292         * doc/posix-functions/mkstemp.texi: Likewise.
31293         * doc/posix-functions/mmap.texi: Likewise.
31294         * doc/posix-functions/nftw.texi: Likewise.
31295         * doc/posix-functions/openat.texi: Likewise.
31296         * doc/posix-functions/opendir.texi: Likewise.
31297         * doc/posix-functions/posix_fadvise.texi: Likewise.
31298         * doc/posix-functions/posix_fallocate.texi: Likewise.
31299         * doc/posix-functions/pread.texi: Likewise.
31300         * doc/posix-functions/pwrite.texi: Likewise.
31301         * doc/posix-functions/readdir.texi: Likewise.
31302         * doc/posix-functions/readdir_r.texi: Likewise.
31303         * doc/posix-functions/rewinddir.texi: Likewise.
31304         * doc/posix-functions/scandir.texi: Likewise.
31305         * doc/posix-functions/seekdir.texi: Likewise.
31306         * doc/posix-functions/setrlimit.texi: Likewise.
31307         * doc/posix-functions/statvfs.texi: Likewise.
31308         * doc/posix-functions/telldir.texi: Likewise.
31309         * doc/posix-functions/tmpfile.texi: Likewise.
31310         * doc/posix-functions/truncate.texi: Likewise.
31311         * doc/glibc-functions/fallocate.texi: Likewise.
31312         * doc/glibc-functions/fstatfs.texi: Likewise.
31313         * doc/glibc-functions/fts_children.texi: Likewise.
31314         * doc/glibc-functions/fts_read.texi: Likewise.
31315         * doc/glibc-functions/getdirentries.texi: Likewise.
31316         * doc/glibc-functions/mkostemp.texi: Likewise.
31317         * doc/glibc-functions/mkostemps.texi: Likewise.
31318         * doc/glibc-functions/mkstemps.texi: Likewise.
31319         * doc/glibc-functions/preadv.texi: Likewise.
31320         * doc/glibc-functions/pwritev.texi: Likewise.
31321         * doc/glibc-functions/sendfile.texi: Likewise.
31322         * doc/glibc-functions/statfs.texi: Likewise.
31324 2011-07-24  Bruno Haible  <bruno@clisp.org>
31326         doc: Fix typo.
31327         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
31329 2011-07-24  Bruno Haible  <bruno@clisp.org>
31331         doc: Mention fsusage.
31332         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
31334 2011-07-24  Bruno Haible  <bruno@clisp.org>
31336         doc: Mention new glibc headers and functions.
31337         * doc/glibc-headers/gshadow.texi: New file.
31338         * doc/glibc-functions/endsgent.texi: New file.
31339         * doc/glibc-functions/fgetsgent.texi: New file.
31340         * doc/glibc-functions/fgetsgent_r.texi: New file.
31341         * doc/glibc-functions/getsgent.texi: New file.
31342         * doc/glibc-functions/getsgent_r.texi: New file.
31343         * doc/glibc-functions/getsgnam.texi: New file.
31344         * doc/glibc-functions/getsgnam_r.texi: New file.
31345         * doc/glibc-functions/putsgent.texi: New file.
31346         * doc/glibc-functions/setsgent.texi: New file.
31347         * doc/glibc-functions/sgetsgent.texi: New file.
31348         * doc/glibc-functions/sgetsgent_r.texi: New file.
31349         * doc/glibc-functions/malloc_info.texi: New file.
31350         * doc/glibc-functions/preadv.texi: New file.
31351         * doc/glibc-functions/pwritev.texi: New file.
31352         * doc/glibc-functions/register_printf_modifier.texi: New file.
31353         * doc/glibc-functions/register_printf_specifier.texi: New file.
31354         * doc/glibc-functions/register_printf_type.texi: New file.
31355         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
31356         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
31357         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
31358         * doc/glibc-functions/pthread_getname_np.texi: New file.
31359         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
31360         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
31361         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
31362         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
31363         * doc/glibc-functions/pthread_setname_np.texi: New file.
31364         * doc/glibc-functions/pthread_sigqueue.texi: New file.
31365         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
31366         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
31367         * doc/glibc-functions/qsort_r.texi: New file.
31368         * doc/glibc-functions/quick_exit.texi: New file.
31369         * doc/glibc-functions/syncfs.texi: New file.
31370         * doc/gnulib.texi: Include them.
31371         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
31372         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
31373         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
31374         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
31375         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
31376         * doc/glibc-functions/execvpe.texi: Likewise.
31378 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
31380         ftell: don't include <unistd.h>
31381         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
31382         guaranteed to define off_t, and the ftell module depends on the
31383         stdio module.
31385         ftell: do not assume wraparound signed arithmetic
31386         * lib/ftell.c: Include <limits.h>.
31387         (ftell): Don't assume wraparound signed arithmetic.
31389 2011-07-24  Bruno Haible  <bruno@clisp.org>
31391         close: No longer depend on module 'fclose'.
31392         * modules/close (Depends-on): Remove fclose.
31393         * NEWS: Mention the change.
31394         Suggested by Sam Steingold <sds@gnu.org>.
31396 2011-07-24  Bruno Haible  <bruno@clisp.org>
31398         fsusage: Enable large volume support on AIX >= 5.2.
31399         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
31400         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
31401         instead of STAT_STATVFS.
31402         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
31404         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
31405         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
31406         f_blocks field only on MacOS X.
31408         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
31409         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
31410         * modules/fsusage (Depends-on): Add largefile.
31412 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
31414         * README: Modernize discussion of signed integers.
31415         Assuming overflow wraparound is no longer safe.
31416         Mention ones' complement and signed magnitude.
31418 2011-07-22  Bruno Haible  <bruno@clisp.org>
31420         select tests, pselect tests: Refactor.
31421         * tests/test-select.h: New file, extracted from tests/test-select.c.
31422         (select_fn): New type.
31423         (test, do_select, do_select_nowait, do_select_wait, test_tty,
31424         test_connect_first, test_accept_first, test_pair, test_socket_pair,
31425         test_pipe): Add my_select argument.
31426         (test_function): Renamed from main. Add my_select argument.
31427         * tests/test-select.c: Move most code to tests/test-select.h. Include
31428         test-select.h.
31429         * modules/select-tests (Files): Add tests/test-select.h.
31430         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
31431         (my_select, main): New functions.
31432         * modules/pselect-tests (Files): Add tests/test-select.h,
31433         tests/macros.h, tests/signature.h.
31434         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
31435         (configure.ac): Check for <sys/wait.h>.
31437 2011-07-22  Bruno Haible  <bruno@clisp.org>
31439         sys_select tests: Check the signature of FD_*.
31440         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
31441         signature tests from here...
31442         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
31443         here.
31444         * modules/sys_select-tests (Files): Add tests/signature.h.
31446 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31448         largefile: new module, replacing large-inode
31449         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
31450         * MODULES.html.sh: Add largefile, remove large-inode.
31451         * modules/largefile, m4/largefile.m4: New files.
31452         * modules/large-inode, m4/large-inode.m4: Remove.
31454         fsusage: port to MacOS X 10.7 with 4 TiB file systems
31455         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
31456         implementations that use only 32 bits to count blocks.
31457         On typical hosts with 1024-byte blocks, this fails with file
31458         systems as small as 4 TiB.  Problem reported by Herb Wartens
31459         <http://debbugs.gnu.org/9140> and this should also fix a similar
31460         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
31462         large-inode: New module
31463         * MODULES.html.sh: Add it.
31464         * modules/large-inode, m4/large-inode.m4: New files.
31466         extensions: Enable extensions on MacOS X 10.5 and later.
31467         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
31469 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
31471         file-has-acl: use acl_extended_file_nofollow if available
31472         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
31473         (acl_extended_file): New macro.
31474         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
31475         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
31477 2011-07-21  Bruno Haible  <bruno@clisp.org>
31479         Declare system functions in a way that works with C++.
31480         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
31481         declare fdopendir as extern "C".
31482         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
31483         declare frexpl as extern "C".
31484         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
31485         declare gai_strerror as extern "C".
31486         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
31487         programs, declare gai_strerror as extern "C".
31488         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
31489         declare getlogin_r as extern "C".
31490         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
31491         as extern "C".
31492         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
31493         declare ldexpl as extern "C".
31494         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
31495         as extern "C".
31496         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
31497         program, declare getmntinfo as extern "C".
31498         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
31499         stpncpy as extern "C".
31500         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
31501         program, declare __xpg_strerror_r as extern "C".
31502         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
31503         strndup as extern "C".
31504         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
31505         declare memset and bzero as extern "C".
31506         Reported by Sam Steingold <sds@gnu.org>.
31508 2011-07-12  Jim Meyering  <meyering@redhat.com>
31510         maint.mk: prohibit inclusion of "verify.h" without use
31511         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
31513 2011-07-19  Pádraig Brady  <P@draigBrady.com>
31515         timer-time: A new module to check for timer_settime()
31516         * m4/timer_time.m4: Check for the posix function.
31517         * modules/timer-time: Add the new module.
31518         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
31519         Mention it.
31521 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
31522             Bruno Haible  <bruno@clisp.org>
31524         pthread_sigmask: assume POSIX threads if --avoid=threadlib
31525         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
31526         not defined, assume POSIX threads and look for pthread_sigmask in
31527         $LIBS, without changing $CPPFLAGS.
31529 2011-07-19  Bruno Haible  <bruno@clisp.org>
31531         strstr: Update cross-compilation guess.
31532         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
31533         CPUs, guess no, in view of glibc
31534         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
31535         Suggested by Eric Blake. Reported by Reuben Thomas.
31537 2011-07-19  Pádraig Brady  <P@draigBrady.com>
31539         getopt-gnu: suppress core dumps from detection code
31540         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
31541         to suppress core dumps that may well occur on glibc systems.
31542         * modules/getopt-gnu: Depend on nocrash.
31544 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31546         pthread_sigmask: ensure usleep is declared
31547         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
31548         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
31550 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
31552         doc: Document NonStop portability issues.
31553         * doc/posix-functions/sigaction.texi (sigaction):
31554         * doc/posix-headers/signal.texi (signal.h):
31555         Document NonStop.  See Joachim Schmitz in
31556         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
31558 2011-07-15  Bruno Haible  <bruno@clisp.org>
31560         ffsl, ffsll: Avoid unportable behaviour.
31561         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
31563 2011-07-15  Bruno Haible  <bruno@clisp.org>
31565         ffs: More tests.
31566         * tests/test-ffs.c (NBITS): New macro.
31567         (main): Add more tests.
31568         * tests/test-ffsl.c (NBITS): New macro.
31569         (main): Add more tests.
31570         * tests/test-ffsll.c (NBITS): New macro.
31571         (main): Add more tests.
31573 2011-07-15  Eric Blake  <eblake@redhat.com>
31575         ffsl, ffsll: new modules
31576         * modules/ffsl: New file.
31577         * modules/ffsll: Likewise.
31578         * m4/ffsl.m4: Likewise.
31579         * m4/ffsll.m4: Likewise.
31580         * lib/ffsl.c: Likewise.
31581         * lib/ffsl.h: Likewise.
31582         * lib/ffsll.c: Likewise.
31583         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
31584         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
31585         * modules/string (Makefile.am): Substitute witnesses.
31586         * lib/strings.in.h (ffsl, ffsll): Declare.
31587         * modules/ffsl-tests: New test file.
31588         * modules/ffsll-tests: Likewise.
31589         * tests/test-ffsl.c: Likewise.
31590         * tests/test-ffsll.c: Likewise.
31591         * MODULES.html.sh (Integer arithmetic functions): Mention it.
31592         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
31593         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
31595         ffs: fix m4 prerequisite
31596         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
31598         ffs: avoid undefined behavior
31599         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
31600         * tests/test-ffs.c (naive, main): Avoid signed shifts.
31601         Reported by Bruno Haible.
31603 2011-07-12  Bruno Haible  <bruno@clisp.org>
31605         pthread_sigmask: Rely on module 'threadlib'.
31606         * modules/pthread_sigmask (Depends-on): Add threadlib.
31607         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
31608         is defined.
31610 2011-07-12  Bruno Haible  <bruno@clisp.org>
31612         regex: Depend on module 'strcase'.
31613         * modules/regex (Depends-on): Add strcase, for strcasecmp().
31615 2011-07-12  Jim Meyering  <meyering@redhat.com>
31617         warn-on-use: fix typo in file name
31618         * modules/snippet/warn-on-use (Files): Correct file name:
31619         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
31621 2011-07-12  Bruno Haible  <bruno@clisp.org>
31623         strings: Document module.
31624         * doc/posix-headers/strings.texi: Mention module 'strings'.
31626 2011-07-12  Bruno Haible  <bruno@clisp.org>
31628         Rename module '_Noreturn' to 'snippet/_Noreturn'.
31629         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
31630         (Files, Makefile.am): Update.
31631         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
31632         * modules/stdlib (Depends-on): Update.
31634 2011-07-12  Bruno Haible  <bruno@clisp.org>
31636         * NEWS: Mention the changes.
31638         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
31639         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
31640         (Files, Makefile.am): Update.
31641         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
31642         * modules/arpa_inet (Depends-on): Update.
31643         * modules/ctype (Depends-on): Update.
31644         * modules/dirent (Depends-on): Update.
31645         * modules/fcntl-h (Depends-on): Update.
31646         * modules/glob (Depends-on): Update.
31647         * modules/iconv-h (Depends-on): Update.
31648         * modules/inttypes-incomplete (Depends-on): Update.
31649         * modules/langinfo (Depends-on): Update.
31650         * modules/locale (Depends-on): Update.
31651         * modules/math (Depends-on): Update.
31652         * modules/netdb (Depends-on): Update.
31653         * modules/poll-h (Depends-on): Update.
31654         * modules/pty (Depends-on): Update.
31655         * modules/search (Depends-on): Update.
31656         * modules/signal (Depends-on): Update.
31657         * modules/spawn (Depends-on): Update.
31658         * modules/stdio (Depends-on): Update.
31659         * modules/stdlib (Depends-on): Update.
31660         * modules/string (Depends-on): Update.
31661         * modules/strings (Depends-on): Update.
31662         * modules/sys_file (Depends-on): Update.
31663         * modules/sys_ioctl (Depends-on): Update.
31664         * modules/sys_select (Depends-on): Update.
31665         * modules/sys_socket (Depends-on): Update.
31666         * modules/sys_stat (Depends-on): Update.
31667         * modules/sys_time (Depends-on): Update.
31668         * modules/sys_times (Depends-on): Update.
31669         * modules/sys_utsname (Depends-on): Update.
31670         * modules/sys_wait (Depends-on): Update.
31671         * modules/termios (Depends-on): Update.
31672         * modules/time (Depends-on): Update.
31673         * modules/unistd (Depends-on): Update.
31674         * modules/wchar (Depends-on): Update.
31675         * modules/wctype-h (Depends-on): Update.
31676         * MODULES.html.sh (Support for building libraries and executables):
31677         Update.
31679         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
31680         * modules/snippet/unused-parameter: Renamed from
31681         modules/unused-parameter.
31682         (Files, Makefile.am): Update.
31683         * build-aux/snippet/unused-parameter.h: Renamed from
31684         build-aux/unused-parameter.h.
31685         * modules/selinux-h (Depends-on): Update.
31686         * modules/unistr/base (Depends-on): Update.
31687         * MODULES.html.sh (Core language properties): Update.
31689         Rename module 'link-warning' to 'snippet/link-warning'.
31690         * modules/snippet/link-warning: Renamed from modules/link-warning.
31691         (Files, Makefile.am): Update.
31692         * build-aux/snippet/link-warning.h: Renamed from
31693         build-aux/link-warning.h.
31694         * MODULES.html.sh (Support for building libraries and executables):
31695         Update.
31697         Rename module 'c++defs' to 'snippet/c++defs'.
31698         * modules/snippet/c++defs: Renamed from modules/c++defs.
31699         (Files, Makefile.am): Update.
31700         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
31701         * modules/arpa_inet (Depends-on): Update.
31702         * modules/ctype (Depends-on): Update.
31703         * modules/dirent (Depends-on): Update.
31704         * modules/fcntl-h (Depends-on): Update.
31705         * modules/glob (Depends-on): Update.
31706         * modules/iconv-h (Depends-on): Update.
31707         * modules/langinfo (Depends-on): Update.
31708         * modules/locale (Depends-on): Update.
31709         * modules/math (Depends-on): Update.
31710         * modules/netdb (Depends-on): Update.
31711         * modules/poll-h (Depends-on): Update.
31712         * modules/pty (Depends-on): Update.
31713         * modules/search (Depends-on): Update.
31714         * modules/signal (Depends-on): Update.
31715         * modules/spawn (Depends-on): Update.
31716         * modules/stdio (Depends-on): Update.
31717         * modules/stdlib (Depends-on): Update.
31718         * modules/string (Depends-on): Update.
31719         * modules/strings (Depends-on): Update.
31720         * modules/sys_ioctl (Depends-on): Update.
31721         * modules/sys_select (Depends-on): Update.
31722         * modules/sys_socket (Depends-on): Update.
31723         * modules/sys_stat (Depends-on): Update.
31724         * modules/sys_time (Depends-on): Update.
31725         * modules/sys_wait (Depends-on): Update.
31726         * modules/termios (Depends-on): Update.
31727         * modules/time (Depends-on): Update.
31728         * modules/unistd (Depends-on): Update.
31729         * modules/wchar (Depends-on): Update.
31730         * modules/wctype-h (Depends-on): Update.
31732         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
31733         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
31734         (Files, Makefile.am): Update.
31735         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
31736         * modules/argv-iter (Depends-on): Update.
31737         * modules/arpa_inet (Depends-on): Update.
31738         * modules/dirent (Depends-on): Update.
31739         * modules/fcntl-h (Depends-on): Update.
31740         * modules/fnmatch (Depends-on): Update.
31741         * modules/getopt-posix (Depends-on): Update.
31742         * modules/glob (Depends-on): Update.
31743         * modules/iconv-h (Depends-on): Update.
31744         * modules/inttypes-incomplete (Depends-on): Update.
31745         * modules/locale (Depends-on): Update.
31746         * modules/math (Depends-on): Update.
31747         * modules/netdb (Depends-on): Update.
31748         * modules/search (Depends-on): Update.
31749         * modules/signal (Depends-on): Update.
31750         * modules/spawn (Depends-on): Update.
31751         * modules/stdio (Depends-on): Update.
31752         * modules/stdlib (Depends-on): Update.
31753         * modules/string (Depends-on): Update.
31754         * modules/strings (Depends-on): Update.
31755         * modules/sys_socket (Depends-on): Update.
31756         * modules/sys_stat (Depends-on): Update.
31757         * modules/sys_time (Depends-on): Update.
31758         * modules/sys_times (Depends-on): Update.
31759         * modules/sys_utsname (Depends-on): Update.
31760         * modules/time (Depends-on): Update.
31761         * modules/unistd (Depends-on): Update.
31762         * modules/wchar (Depends-on): Update.
31763         * MODULES.html.sh (Support for building libraries and executables):
31764         Update.
31766 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
31768         Improvements on _Noreturn and related modules.
31770         modules/_Exit-tests: test _Noreturn too
31771         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
31772         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
31773         (main): Use them.
31775         stdnoreturn, stdnoreturn-tests: remove modules
31776         They're not needed here and a bit premature for use elsewhere.  See
31777         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
31778         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
31779         * tests/test-stdnoreturn.c: Remove files.
31780         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
31781         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
31782         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
31783         and using noreturn.
31784         * modules/openat, modules/sigpipe-die, modules/xalloc:
31785         * modules/xmemdup0, modules/xstrtol:
31786         Remove dependency on stdnoreturn.
31788         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
31789         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
31790         Reparenthesize to avoid GCC warning.
31791         Support Microsoft's syntax.
31792         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
31794         _Noreturn-tests: remove module
31795         * modules/_Noreturn-tests: Remove.
31796         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
31797         * tests/test-_Noreturn.c: Remove.
31798         * tests/test-stdnoreturn.c: Merge from the old
31799         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
31801 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
31803         _Noreturn, stdnoreturn, and related modules.
31805         * top/maint.mk: Adjust to new noreturn support.
31806         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
31807         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
31809         xalloc: use stdnoreturn.h
31810         * lib/xalloc.h: Include <stdnoreturn.h>.
31811         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
31812         * modules/xalloc (Depends-on): Add stdnoreturn.
31814         xstrtol: use stdnoreturn.h
31815         * lib/xstrtol.h: Include <stdnoreturn.h>.
31816         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
31817         * modules/xstrtol (Depends-on): Add stdnoreturn.
31819         xmemdup0: use stdnoreturn.h
31820         * lib/xmemdup0.h: Include <stdnoreturn.h>.
31821         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
31822         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
31824         sigpipe-die: use stdnoreturn.h
31825         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
31826         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
31827         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
31829         openat: use stdnoreturn.h
31830         * lib/openat.h: Include <stdnoreturn.h>.
31831         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
31832         * modules/openat (Depends-on): Add stdnoreturn.
31834         * lib/openat-die.c (openat_save_fail): Modernize comment.
31836         * lib/xalloc-die.c (xalloc_die): Modernize comment.
31838         * lib/glthread/thread.h: Modernize comment.
31840         obstack: use _Noreturn
31841         * lib/obstack.c (__attribute__): Remove macro.
31842         (print_and_abort): Use _Noreturn.
31844         c-stack: use _Noreturn
31845         * lib/c-stack.c (die, overflow_handler, segv_handler):
31846         Use _Noreturn rather than __attribute__((noreturn)).
31848         argmatch-tests, exclude_tests: use _Noreturn
31849         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
31850         Remove.
31851         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
31853         stdlib: use _Noreturn
31854         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
31855         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
31856         * modules/stdlib (Depends-on): Add _Noreturn.
31857         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
31859         stdnoreturn-tests: new module
31860         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
31862         stdnoreturn: new module
31863         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
31864         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
31866         _Noreturn-tests: new module
31867         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
31869         _Noreturn: new module
31870         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
31871         New section, mentioning it.
31872         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
31874         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
31876 2011-07-11  Eric Blake  <eblake@redhat.com>
31878         ffs: new module
31879         * modules/ffs: New file.
31880         * m4/ffs.m4: Likewise.
31881         * lib/ffs.c: Likewise.
31882         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
31883         * modules/strings (Makefile.am): Substitute witness.
31884         (Depends-on): Add c++defs.
31885         * lib/strings.in.h (ffs): Declare.
31886         * modules/ffs-tests: New test file.
31887         * tests/test-ffs.c: Test new module.
31888         * MODULES.html.sh (Integer arithmetic functions): Mention it.
31889         * doc/posix-functions/ffs.texi (ffs): Likewise.
31891         regex: avoid compiler warning
31892         * lib/regex.c (includes): Include <strings.h>, for use of
31893         strcasecmp in regcomp.c.
31894         Reported by Joachim Schmitz.
31896 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31898         stdint: respect system's intmax_t if INTMAX_MAX
31899         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
31900         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
31901         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
31902         long but int64_t is long long, and where we will clash with the
31903         system intmax_t if we override it.  See
31904         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
31905         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
31906         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
31907         similarly for UINTMAX_C.
31909 2011-07-08  Bruno Haible  <bruno@clisp.org>
31911         pthread_sigmask tests: Avoid a compiler warning.
31912         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
31913         non-zero.
31915         sigprocmask tests: A better way to avoid a compiler warning.
31916         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
31917         (main): Complain if system() returns non-zero.
31918         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
31920 2011-07-08  Bruno Haible  <bruno@clisp.org>
31922         pthread_sigmask: Work around IRIX bug.
31923         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
31924         bug.
31925         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
31926         there may be unblocked pending signals.
31927         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
31929 2011-07-08  Bruno Haible  <bruno@clisp.org>
31931         pthread_sigmask: Work around Cygwin bug.
31932         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
31933         bug.
31934         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
31935         the system's pthread_sigmask function.
31936         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
31938 2011-07-08  Bruno Haible  <bruno@clisp.org>
31940         pthread_sigmask: Work around bug in single-threaded implementation.
31941         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
31942         FreeBSD, HP-UX, Solaris bug.
31943         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
31944         * lib/pthread_sigmask.c: Include <stddef.h>.
31945         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
31946         the system's pthread_sigmask function.
31947         * modules/pthread_sigmask (configure.ac): Invoke
31948         gl_PREREQ_PTHREAD_SIGMASK.
31949         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
31950         HP-UX, Solaris.
31952 2011-07-08  Eric Blake  <eblake@redhat.com>
31954         test-sigprocmask: avoid compiler warning
31955         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
31956         * tests/test-sigprocmask.c (main): Use it to silence warning.
31957         Reported by Jim Meyering.
31959         test-snprintf: avoid compiler warning
31960         * tests/test-snprintf.c (main): Avoid shadowed declaration.
31961         * tests/test-vsnprintf.c (main): Likewise.
31962         Reported by Jim Meyering.
31964 2011-07-08  Bruno Haible  <bruno@clisp.org>
31966         Tests for module 'pthread_sigmask'.
31967         * modules/pthread_sigmask-tests: New file.
31968         * tests/test-pthread_sigmask1.c: New file, based on
31969         tests/test-sigprocmask.c.
31970         * tests/test-pthread_sigmask2.c: New file.
31972 2011-07-08  Jim Meyering  <meyering@redhat.com>
31974         test-getopt.h: avoid warning about an unused variable
31975         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
31977 2011-07-07  Jim Meyering  <meyering@redhat.com>
31979         maint: reduce list of files exempt from sc_prohibit_leading_TABs
31980         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
31981         now that it no longer contains leading TABs.
31982         Remove unused "url=FIXME" statement.
31984 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31986         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
31987         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31988         When gl_THREADLIB is not in use, assume that the POSIX sematics
31989         are desired.  This is better for Emacs, which uses POSIX semantics
31990         on GNUish and/or POSIXish platforms, and does not use threads at
31991         all otherwise.
31993         pthread_sigmask: fix typo when testing for libraries
31994         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31995         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
31997 2011-07-08  Eric Blake  <eblake@redhat.com>
31999         fts: introduce FTS_NOATIME
32000         * lib/fts_.h (FTS_NOATIME): New bit flag.
32001         (FTS_OPTIONMASK): Adjust.
32002         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
32003         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
32005 2011-07-08  Bruno Haible  <bruno@clisp.org>
32007         Tests for module 'thread'.
32008         * modules/thread-tests: New file.
32009         * tests/test-thread_self.c: New file.
32010         * tests/test-thread_create.cc: New file.
32012 2011-07-08  Bruno Haible  <bruno@clisp.org>
32014         thread: Avoid gcc warnings when using gl_thread_self().
32015         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
32016         'void *'.
32017         (gl_thread_self_pointer): Update.
32019 2011-07-07  Bruno Haible  <bruno@clisp.org>
32021         signal-c++-tests: Check declaration of pthread_sigmask.
32022         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
32023         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
32024         $(LIB_PTHREAD_SIGMASK).
32026 2011-07-07  Bruno Haible  <bruno@clisp.org>
32028         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
32029         * lib/signal.in.h (pthread_sigmask): Override if
32030         REPLACE_PTHREAD_SIGMASK is 1.
32031         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32032         REPLACE_PTHREAD_SIGMASK.
32033         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
32034         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
32035         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
32036         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
32037         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
32039 2011-07-07  Bruno Haible  <bruno@clisp.org>
32041         pthread_sigmask: Ensure declaration in <signal.h>.
32042         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
32043         include <pthread.h>.
32044         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
32045         problem.
32047 2011-07-07  Bruno Haible  <bruno@clisp.org>
32049         pthread_sigmask: Document the module.
32050         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
32052 2011-07-07  Bruno Haible  <bruno@clisp.org>
32054         pthread_sigmask: Follow gnulib conventions.
32055         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
32056         gl_PTHREAD_SIGMASK.
32057         * modules/pthread_sigmask (configure.ac): Update.
32059 2011-07-07  Bruno Haible  <bruno@clisp.org>
32061         pthread_sigmask: Make declaration C++ safe.
32062         * lib/signal.in.h: In two special conditions, just do an #include_next.
32063         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
32064         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
32065         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32066         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
32067         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
32068         not REPLACE_PTHREAD_MASK.
32069         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
32070         not REPLACE_PTHREAD_MASK.
32071         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
32073 2011-07-07  Bruno Haible  <bruno@clisp.org>
32075         pthread_sigmask: Fix return value.
32076         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
32077         * lib/pthread_sigmask.c: New file.
32078         * modules/pthread_sigmask (Files): Add it.
32079         (configure.ac): Invoke AC_LIBOBJ.
32081 2011-07-07  Eric Blake  <eblake@redhat.com>
32083         getopt: more portable argv creation
32084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
32085         const, use char arrays rather than strings.
32086         Suggested by Paul Eggert.
32088 2011-07-07  Bruno Haible  <bruno@clisp.org>
32090         Tests for module 'sigprocmask'.
32091         * modules/sigprocmask-tests: New file.
32092         * tests/test-sigprocmask.c: New file.
32094 2011-07-07  Bruno Haible  <bruno@clisp.org>
32096         float tests: Tweak.
32097         * tests/test-float.c (main): Tweak skip message.
32099 2011-07-07  Eric Blake  <eblake@redhat.com>
32101         getopt: avoid compiler warning during configure
32102         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
32103         assigning string literals to non-const pointer.
32105         getopt-gnu: avoid crash in glibc getopt
32106         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
32107         * tests/test-getopt.h (test_getopt): Enhance test.
32108         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32109         * doc/posix-functions/getopt.texi (getopt): Document it.
32110         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32111         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32112         Likewise.
32114 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
32116         getopt: handle W; without long options in getopt [BZ #12922]
32117         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
32118         but no long options are defined, just return 'W'.
32120 2011-07-07  Bruno Haible  <bruno@clisp.org>
32122         Avoid literal tabs.
32123         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
32124         variable containing a tab instead of a literal tab.
32125         Reported by Jim Meyering.
32127 2011-07-07  Bruno Haible  <bruno@clisp.org>
32129         Comments.
32130         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
32132 2011-07-06  Bruno Haible  <bruno@clisp.org>
32134         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
32135         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
32136         <winsock2.h>.
32137         (rpl_fd_isset, FD_ISSET): New definitions, copied from
32138         lib/sys_socket.in.h.
32139         (close, gethostname): Hide declarations from <winsock2.h>.
32140         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32141         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
32142         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
32143         (select): Don't override if gnulib's <sys/select.h> was already
32144         included.
32145         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32146         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32147         setsockopt, shutdown, select): Tweak indentation.
32149 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32151         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
32152         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
32153         in an application that does not use the sys_select module.
32155 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
32157         poll: do not return 0 on timeout=-1
32158         * lib/poll.c: Loop with yield if no events occurred.
32160 2011-07-06  Eric Blake  <eblake@redhat.com>
32162         pthread_sigmask: always replace when not using pthread
32163         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
32164         replacement when using some threading other than pthread.  Fix
32165         logic bug.
32167 2011-07-06  Bruno Haible  <bruno@clisp.org>
32169         Comments.
32170         * m4/printf.m4: Update comments about mingw.
32172 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32174         sys_select: define sigset_t more portably
32175         * lib/sys_select.in.h: Always include <sys/types.h>, since
32176         we now need sigset_t and mingw defines it there.
32177         Include <signal.h> before split inclusion guard, to avoid
32178         mishaps on Solaris, whose <signal.h> eventually includes us.
32179         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
32180         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
32181         which come from ...
32182         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
32183         gl_CHECK_TYPE_SIGSET_T.
32184         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
32185         does the real work.
32186         * modules/sys_select (Depends-on): Add 'signal'.
32188         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
32189         Suggested by Bruno Haible.
32191         pselect: Use pthread_sigmask, not sigprocmask.
32192         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
32193         multithreaded apps better than sigprocmask does.
32194         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
32195         sigprocmask directly.
32197 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32199         * lib/pselect.c (pselect): Use plain name, without "rpl_".
32200         Don't #undef,  since we don't need any underlying pselect.
32201         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
32202         (Depends-on): Add select.
32203         (Link): Add $(LIBSOCKET).
32204         These changes suggested by Bruno Haible.
32206         pselect: document better
32207         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
32208         * doc/posix-functions/pselect.texi (pselect): Document new module.
32210         pthread_sigmask: new module
32211         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
32212         * doc/posix-functions/pthread_sigmask.texi: Document new module.
32213         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
32214         This is done only as a macro; I don't know how well that'll
32215         work for C++.  Move <sys/types.h> include before the include_next,
32216         to avoid mishap on Solaris.
32217         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
32218         * modules/signal (Makefile.am): Substitute the check's results.
32219         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
32221         test-pselect: new module
32222         * modules/pselect-tests, tests/test-pselect.c: New files.
32223         * tests/test-select.c, tests/test-sys_select-c++.cc:
32224         If TEST_PSELECT is defined, test pselect instead of testing select.
32226         * tests/test-sys_select.c (sigset_t): Test for it, too.
32227         Suggested by Bruno Haible.
32229 2011-07-05  Eric Blake  <eblake@redhat.com>
32231         snprintf: guarantee %1$d, for libintl
32232         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
32233         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
32234         * doc/posix-functions/snprintf.texi (snprintf): Update.
32235         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32236         * tests/test-snprintf.c (main): Enhance test.
32237         * tests/test-vsnprintf.c (main): Likewise.
32239 2011-07-05  Jim Meyering  <meyering@redhat.com>
32241         maint: exempt stdio-read.c and stdio-write.c from the cppi check
32242         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
32243         per Bruno's request, to accommodate this idiom (no space after "#")
32244         even when the function is inside an #if block:
32245         char *
32246         gets (char *s)
32247         #undef gets
32248         {
32249           ...
32250         }
32252 2011-07-04  Jim Meyering  <meyering@redhat.com>
32254         maint: indent with spaces, not TABs, and add a rule to check this
32255         * tests/test-userspec.c: Indent with spaces, not TABs.
32256         * tests/test-argp.c: Likewise.
32257         * tests/test-c-stack2.sh: Likewise.
32258         * tests/test-parse-duration.sh: Likewise
32259         * m4/strtod.m4: Likewise.
32260         * m4/alloca.m4: Likewise.
32261         * m4/pselect.m4: Likewise.
32262         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
32264 2011-07-03  Jim Meyering  <meyering@redhat.com>
32266         maint.mk: correct omissions in prohibit_argmatch_without_use check
32267         This rule would mistakenly report that argmatch.h is included without
32268         use even when both the argmatch and invalid_arg macro were used.
32269         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
32270         of argmatch and invalid_arg.
32272 2011-07-03  Bruno Haible  <bruno@clisp.org>
32274         Comments about EINTR.
32275         * lib/safe-read.h: Explain the purpose of this module.
32276         * lib/safe-write.h: Likewise.
32277         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
32278         module.
32279         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
32280         module.
32281         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32283 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
32285         xnanosleep: Rewrite to use new dtotimespec module.
32286         It has the conversion code that used to be in xnanosleep.
32287         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
32288         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
32289         (TIME_T_MAX): Remove.
32290         (xnanosleep): Rewrite in terms of dtotimespec.
32291         * modules/xnanosleep (Depends-on): Add dtotimespec.
32292         Remove intprops, stdbool.
32294         timespec-add, timespec-sub: new modules
32295         * lib/timespec.h (timespec_add, timespec_sub): New decls.
32296         * lib/timespec-add.c, lib/timespec-sub.c:
32297         * modules/timespec-add, modules/timespec-sub: New files.
32299         dtotimespec: new module
32300         * lib/timespec.h (dtotimespec): New decl.
32301         * lib/dtotimespec.c, modules/dtotimespec: New files.
32303         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
32305         pselect: new module
32306         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
32307         (pselect): New decls.
32308         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
32309         since the standard pselect decl uses 'restrict'.
32310         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
32311         HAVE_PSELECT, REPLACE_PSELECT.
32312         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
32313         HAVE_PSELECT, REPLACE_PSELECT.
32314         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
32316         sys_select: don't depend on sys_socket
32317         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
32318         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
32319         This fix works on GNU and GNU-like platforms, but has not been tested
32320         on native Windows.
32321         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
32322         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
32323         gl_HEADER_SYS_SOCKET.
32324         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
32325         gl_PREREQ_SYS_H_WINSOCK2.
32327 2011-06-29  Eric Blake  <eblake@redhat.com>
32329         pipe2: fix C89 compile problem
32330         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
32331         Reported by Bruno Haible.
32333         pipe, pipe2: don't corrupt fd on error
32334         * lib/pipe.c (pipe): Leave fd unchanged on error.
32335         * lib/pipe2.c (pipe2): Likewise.
32336         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
32337         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32339 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
32341         mmap-anon: do not use regular expressions inadvertently
32342         * m4/mmap-anon.m4: Remove trailing period from strings sought
32343         in the output.
32345 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
32347         nanosleep: fix integer overflow problem
32348         * lib/nanosleep.c (my_usleep): Don't assume signed integer
32349         arithmetic wraps around on overflow.
32351         nanosleep: simplify carrying
32352         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
32353         first call to the underyling nanosleep, not for the last one.
32354         This doesn't fix any bugs, but it simplifies the computation of
32355         the remaining delay.  Found while auditing integer overflow issues.
32357         dup2: remove test for existence of fcntl
32358         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
32359         "#if HAVE_FCNTL", in the configure-time test program.
32360         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
32361         and therefore speeds up "configure" a bit.  Found while
32362         adding the dup2 module to Emacs.
32364 2011-06-24  Eric Blake  <eblake@redhat.com>
32366         maint.mk: enhance useless header checks
32367         * top/maint.mk (_sc_header_without_use): Check both include
32368         styles.
32369         (sc_prohibit_assert_without_use)
32370         (sc_prohibit_close_stream_without_use)
32371         (sc_prohibit_getopt_without_use)
32372         (sc_prohibit_quotearg_without_use)
32373         (sc_prohibit_quote_without_use)
32374         (sc_prohibit_long_options_without_use)
32375         (sc_prohibit_inttostr_without_use)
32376         (sc_prohibit_ignore_value_without_use)
32377         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
32378         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
32379         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
32380         (sc_prohibit_hash_pjw_without_use)
32381         (sc_prohibit_safe_read_without_use)
32382         (sc_prohibit_argmatch_without_use)
32383         (sc_prohibit_canonicalize_without_use)
32384         (sc_prohibit_root_dev_ino_without_use)
32385         (sc_prohibit_openat_without_use)
32386         (sc_prohibit_c_ctype_without_use)
32387         (sc_prohibit_signal_without_use)
32388         (sc_prohibit_stdio--_without_use)
32389         (sc_prohibit_stdio-safer_without_use)
32390         (sc_prohibit_strings_without_use)
32391         (sc_prohibit_intprops_without_use)
32392         (sc_prohibit_stddef_without_use)
32393         (sc_prohibit_xfreopen_without_use): Update clients.
32395 2011-06-24  Jim Meyering  <meyering@redhat.com>
32397         syntax-check: keep one maint.mk rule in sync with its header
32398         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
32399         of the bug Eric has just fixed, with today's commit 25e4c2ec.
32400         I prefer to avoid temporary files here, so use <(...), but that
32401         is not supported by /bin/sh, so...
32402         (SHELL): Define to /bin/bash.
32404 2011-06-24  Eric Blake  <eblake@redhat.com>
32406         maint.mk: update sc_prohibit_intprops_without_use
32407         * top/maint.mk (_intprops_names): Match recent changes.
32409 2011-06-24  Bruno Haible  <bruno@clisp.org>
32411         strerror-override: No-op tweak.
32412         * lib/strerror-override.h (strerror_override): Reorder conditions,
32413         for consistency with lib/strerror-override.c.
32415 2011-06-23  Eric Blake  <eblake@redhat.com>
32417         maint.mk: test further PATH_MAX issues
32418         * top/maint.mk (sc_prohibit_path_max_array): Rename...
32419         (sc_prohibit_path_max_allocation): ...and also test alloca.
32420         Suggested by Jim Meyering.
32422 2011-06-22  Eric Blake  <eblake@redhat.com>
32424         maint.mk: add syntax-check to avoid char[PATH_MAX]
32425         * top/maint.mk (sc_prohibit_path_max_array): New rule.
32427         stat: be robust to PATH_MAX definition
32428         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
32429         * modules/stat (Depends-on): Add verify.
32431         link: work around IRIX bug
32432         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
32433         * lib/link.c (rpl_link): Work around it.
32434         * tests/test-link.h (test_link): Enhance test.
32435         * doc/posix-functions/link.texi (link): Document the bug.
32437         getopt: silence clang warning
32438         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
32439         dereference.
32440         Reported by Gustavo Martin Domato.
32442 2011-06-22  Jim Meyering  <meyering@redhat.com>
32444         bootstrap: do not insert a blank line into each .gitignore file
32445         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
32447 2011-06-21  Eric Blake  <eblake@redhat.com>
32449         perror: test for output mismatch
32450         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
32451         perror on IRIX.
32453         strerror_r: fix OpenBSD behavior on out-of-range
32454         * lib/strerror_r.c (strerror_r): Always use maximal string.
32455         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
32457         strerror_r: fix OpenBSD behavior on 0
32458         * lib/strerror-override.c (strerror_override): Also override 0
32459         when needed.
32460         * lib/strerror-override.h (strerror_override): Likewise.
32461         * lib/strerror.c (strerror): Simplify, now that 0 override is done
32462         earlier.
32463         * lib/strerror_r.c (strerror_r): Likewise.
32464         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
32465         behavior...
32466         (gl_FUNC_STRERROR_0): ...into new macro.
32467         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
32468         is overridden.
32469         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
32470         * modules/strerror-override (Files): Add strerror.m4.
32471         (configure.ac): Also provide override for 0 when needed.
32472         * doc/posix-functions/strerror.texi (strerror): Document this.
32473         * doc/posix-functions/perror.texi (perror): Likewise.
32475         perror: adjust array size
32476         * modules/perror (Depends-on): Add strerror-override.
32477         * lib/perror.c (perror): Use it to avoid magic number.
32479         strerror-override: reduce size
32480         * lib/strerror-override.c (strerror_override): Use fewer lines.
32482 2011-06-20  Bruno Haible  <bruno@clisp.org>
32484         pathmax: Ensure correct value for PATH_MAX on HP-UX.
32485         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
32487 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32489         alloca: port to compilers that can optimize like GCC 4.6.0
32490         * lib/alloca.c (find_stack_direction): New signature, taken from
32491         Autoconf git.  This works with GCC 4.6.0.  This code should never
32492         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
32493         be used with other compilers that optimize as well as GCC 4.6.0 does.
32494         (alloca): Adjust to new signature.
32495         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
32496         New macro, which patches Autoconf in a similar way.
32498         c-stack: stop worrying about stack direction
32499         * lib/c-stack.c (find_stack_direction): Remove.
32500         (segv_handler): Don't worry about stack direction growth, as it's
32501         too much of a pain to configure this correctly, given how compilers
32502         are optimizing-away our stack-growth detection code.  Instead, assume
32503         that any access to just before or just after the stack is OK.
32504         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
32505         Don't require AC_FUNC_ALLOCA; no longer needed.
32507 2011-06-20  Eric Blake  <eblake@redhat.com>
32509         test-stat: don't allocate PATH_MAX bytes
32510         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
32511         PATH_MAX-sized buffer.
32512         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
32513         * modules/stat-tests (Depends-on): Likewise.
32514         * tests/test-fstatat.c (includes): Drop pathmax.h.
32515         * tests/test-stat.c (includes): Likewise.
32516         Reported by Bruno Haible.
32518 2011-06-20  Bruno Haible  <bruno@clisp.org>
32520         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
32521         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
32522         * lib/float.c: New file.
32523         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
32524         REPLACE_FLOAT_LDBL.
32525         * modules/float (Files): Add lib/float.c.
32526         (configure.ac): Invoke AC_LIBOBJ.
32527         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
32529 2011-06-20  Bruno Haible  <bruno@clisp.org>
32531         Tests for module 'float'.
32532         * modules/float-tests: New file.
32533         * tests/test-float.c: New file.
32535 2011-06-19  Bruno Haible  <bruno@clisp.org>
32537         isinf: Coding style.
32538         * lib/isinf.c: Use GNU coding style.
32540 2011-06-19  Bruno Haible  <bruno@clisp.org>
32542         linkat test: Avoid test failure on AIX 7.1.
32543         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
32544         * tests/test-link.h (test_link): Likewise.
32546 2011-06-19  Bruno Haible  <bruno@clisp.org>
32548         pread test: Avoid test failure on OpenBSD 4.9.
32549         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
32551 2011-06-19  Bruno Haible  <bruno@clisp.org>
32553         sprintf-posix: Fix test failure on AIX 7.1.
32554         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
32555         * doc/posix-functions/dprintf.texi: Mention limited precision problem
32556         on AIX.
32557         * doc/posix-functions/fprintf.texi: Likewise.
32558         * doc/posix-functions/printf.texi: Likewise.
32559         * doc/posix-functions/snprintf.texi: Likewise.
32560         * doc/posix-functions/sprintf.texi: Likewise.
32561         * doc/posix-functions/vdprintf.texi: Likewise.
32562         * doc/posix-functions/vfprintf.texi: Likewise.
32563         * doc/posix-functions/vprintf.texi: Likewise.
32564         * doc/posix-functions/vsnprintf.texi: Likewise.
32565         * doc/posix-functions/vsprintf.texi: Likewise.
32567 2011-06-19  Bruno Haible  <bruno@clisp.org>
32569         roundl-ieee: Fix test failure on AIX 7.1.
32570         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
32571         * doc/posix-functions/roundl.texi: Mention problem with negative
32572         arguments.
32574 2011-06-19  Bruno Haible  <bruno@clisp.org>
32576         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
32577         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
32578         * doc/posix-functions/round.texi: Mention problem with negative
32579         arguments.
32580         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
32582 2011-06-19  Bruno Haible  <bruno@clisp.org>
32584         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
32585         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
32586         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
32587         * doc/posix-functions/roundf.texi: Mention problem with negative
32588         arguments.
32589         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
32591 2011-06-19  Bruno Haible  <bruno@clisp.org>
32593         ceilf-ieee: Work around bug on MacOS X 10.5.
32594         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
32596         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
32597         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
32598         IEEE compliant, avoid compiler optimizations.
32599         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
32600         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
32601         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
32602         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32603         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32604         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32605         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32606         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32607         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32608         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
32610 2011-06-19  Bruno Haible  <bruno@clisp.org>
32612         ceilf-ieee: Work around bug on AIX 7.1.
32613         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
32614         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
32616 2011-06-19  Bruno Haible  <bruno@clisp.org>
32618         ceil-ieee: Work around bug on AIX 7.1.
32619         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
32620         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
32622 2011-06-18  Bruno Haible  <bruno@clisp.org>
32624         fsync test: Avoid test failure on MacOS X and AIX.
32625         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
32626         EINVAL.
32628 2011-06-18  Bruno Haible  <bruno@clisp.org>
32630         openat, fdopendir tests: Fix link errors.
32631         * modules/openat-tests (Depends-on): Add progname.
32632         * modules/fdopendir-tests (Depends-on): Likewise.
32633         * tests/test-fchownat.c: Include progname.h.
32634         (main): Call set_program_name.
32635         * tests/test-fstatat.c: Include progname.h.
32636         (main): Call set_program_name.
32637         * tests/test-mkdirat.c: Include progname.h.
32638         (main): Call set_program_name.
32639         * tests/test-openat.c: Include progname.h.
32640         (main): Call set_program_name.
32641         * tests/test-unlinkat.c: Include progname.h.
32642         (main): Call set_program_name.
32643         * tests/test-fdopendir.c: Include progname.h.
32644         (main): Call set_program_name.
32646 2011-06-18  Bruno Haible  <bruno@clisp.org>
32648         Doc update.
32649         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
32650         HP-UX.
32651         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
32653 2011-06-18  Bruno Haible  <bruno@clisp.org>
32655         getcwd tests: Avoid compilation error on HP-UX 11.31.
32656         * modules/getcwd-tests (Depends-on): Add pathmax.
32657         * tests/test-getcwd.c: Include pathmax.h.
32659 2011-06-18  Bruno Haible  <bruno@clisp.org>
32661         isfinite, isinf: Fix link error on AIX 6 and 7.
32662         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
32663         needed, also test the macro with a 'float' argument.
32664         * m4/isinf.m4 (gl_ISINF): Likewise.
32666 2011-06-18  Bruno Haible  <bruno@clisp.org>
32668         getloadavg: Don't clobber LIBS. Regression from previous commit.
32669         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
32670         AC_CHECK_LIB from here...
32671         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
32672         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
32673         gl_func_getloadavg_done.
32674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32676 2011-06-18  Bruno Haible  <bruno@clisp.org>
32678         clean-temp: Improve documentation.
32679         * lib/clean-temp.h: Explain better how to use this module.
32680         Reported by John Darrington <john@darrington.wattle.id.au>.
32682 2011-06-17  Bruno Haible  <bruno@clisp.org>
32684         pread, pwrite: Avoid cc warning on AIX.
32685         * lib/unistd.in.h (pread): Undefine before defining as a macro.
32686         (pwrite): Likewise.
32688 2011-06-17  Bruno Haible  <bruno@clisp.org>
32690         spawn-pipe tests: Fix link error.
32691         * tests/test-spawn-pipe-child.c: Undefine fprintf.
32692         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32694 2011-06-17  Bruno Haible  <bruno@clisp.org>
32696         Tests: Remove unnecessary dependency.
32697         * modules/canonicalize-tests (Depends-on): Remove progname.
32698         * modules/chown-tests (Depends-on): Likewise.
32699         * modules/dirname-tests (Depends-on): Likewise.
32700         * modules/fdopendir-tests (Depends-on): Likewise.
32701         * modules/fdutimensat-tests (Depends-on): Likewise.
32702         * modules/hash-tests (Depends-on): Likewise.
32703         * modules/lchown-tests (Depends-on): Likewise.
32704         * modules/linkat-tests (Depends-on): Likewise.
32705         * modules/renameat-tests (Depends-on): Likewise.
32706         * modules/spawn-pipe-tests (Depends-on): Likewise.
32707         * modules/utimensat-tests (Depends-on): Likewise.
32709 2011-06-17  Bruno Haible  <bruno@clisp.org>
32711         spawn-pipe tests: Fix link error.
32712         * tests/test-spawn-pipe-child.c: Undefine fflush.
32714 2011-06-17  Bruno Haible  <bruno@clisp.org>
32716         Fix tests link errors.
32717         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
32718         * modules/chown-tests (Makefile.am): Don't link test-chown with
32719         LIBINTL.
32720         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
32721         LIBINTL.
32722         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
32723         LIBINTL.
32724         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
32725         LIBINTL.
32727 2011-06-16  Bruno Haible  <bruno@clisp.org>
32729         crypto/gc-sha1: Fix recent regression.
32730         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
32731         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
32733         crypto/gc-md5: Fix recent regression.
32734         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
32736         crypto/gc-md4: Fix recent regression.
32737         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
32738         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
32740         crypto/gc-arctwo: Fix recent regression.
32741         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
32742         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
32744         crypto/gc-rijndael: Fix recent regression.
32745         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
32746         (configure.ac): Invoke AC_LIBOBJ here.
32747         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
32748         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32750         crypto/gc-hmac-sha1: Fix recent regression.
32751         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
32752         (configure.ac): Invoke AC_LIBOBJ here.
32753         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
32754         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32756         crypto/gc-hmac-md5: Fix recent regression.
32757         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
32758         (configure.ac): Invoke AC_LIBOBJ here.
32759         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
32760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32762         crypto/gc-des: Fix recent regression.
32763         * modules/crypto/gc-des (Files): Remove m4/des.m4.
32764         (configure.ac): Invoke AC_LIBOBJ here.
32765         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
32766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32768         crypto/gc-arcfour: Fix recent regression.
32769         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
32770         (configure.ac): Invoke AC_LIBOBJ here.
32771         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
32772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32774 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
32776         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
32777         After the 2011-05-21 change, this macro requires
32778         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
32779         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32781 2011-06-16  Bruno Haible  <bruno@clisp.org>
32783         fprintftime: Move AC_LIBOBJ invocations to module description.
32784         * m4/fprintftime.m4: Remove file.
32785         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
32786         (configure.ac): Remove gl_FPRINTFTIME call.
32787         (Makefile.am): Augment lib_SOURCES.
32788         Reported by Jim Meyering.
32790 2011-06-16  Bruno Haible  <bruno@clisp.org>
32792         tmpfile-safer: Finish 2011-05-23 commit.
32793         * m4/stdio-safer.m4: Really remove file.
32794         Reported by Jim Meyering.
32796 2011-06-16  Bruno Haible  <bruno@clisp.org>
32798         syntax-check: Fix typo.
32799         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
32800         printf-posix.m4.
32801         Reported by Jim Meyering.
32803 2011-06-13  Jim Meyering  <meyering@redhat.com>
32805         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
32806         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
32808 2011-05-23  Bruno Haible  <bruno@clisp.org>
32810         yesno: Move AC_LIBOBJ invocations to module description.
32811         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
32812         * modules/yesno (Makefile.am): Augment lib_SOURCES.
32814 2011-05-23  Bruno Haible  <bruno@clisp.org>
32816         xstrtol: Move AC_LIBOBJ invocations to module description.
32817         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
32818         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
32820 2011-05-23  Bruno Haible  <bruno@clisp.org>
32822         xstrtold: Move AC_LIBOBJ invocations to module description.
32823         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
32824         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
32826 2011-05-23  Bruno Haible  <bruno@clisp.org>
32828         xstrtod: Move AC_LIBOBJ invocations to module description.
32829         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
32830         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
32832 2011-05-23  Bruno Haible  <bruno@clisp.org>
32834         xnanosleep: Move AC_LIBOBJ invocations to module description.
32835         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
32836         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
32838 2011-05-23  Bruno Haible  <bruno@clisp.org>
32840         xgetcwd: Move AC_LIBOBJ invocations to module description.
32841         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
32842         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
32844 2011-05-23  Bruno Haible  <bruno@clisp.org>
32846         xalloc: Move AC_LIBOBJ invocations to module description.
32847         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
32848         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
32850 2011-05-23  Bruno Haible  <bruno@clisp.org>
32852         write-any-file: Move AC_LIBOBJ invocations to module description.
32853         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
32854         invocation.
32855         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
32857 2011-05-23  Bruno Haible  <bruno@clisp.org>
32859         utimens: Move AC_LIBOBJ invocations to module description.
32860         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
32861         * modules/utimens (Makefile.am): Augment lib_SOURCES.
32863 2011-05-23  Bruno Haible  <bruno@clisp.org>
32865         utimecmp: Move AC_LIBOBJ invocations to module description.
32866         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
32867         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
32869 2011-05-23  Bruno Haible  <bruno@clisp.org>
32871         userspec: Move AC_LIBOBJ invocations to module description.
32872         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
32873         * modules/userspec (Makefile.am): Augment lib_SOURCES.
32875 2011-05-23  Bruno Haible  <bruno@clisp.org>
32877         unlinkdir: Move AC_LIBOBJ invocations to module description.
32878         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
32879         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
32881 2011-05-23  Bruno Haible  <bruno@clisp.org>
32883         unistd-safer: Move AC_LIBOBJ invocations to module description.
32884         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
32885         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
32887 2011-05-23  Bruno Haible  <bruno@clisp.org>
32889         tempname: Move AC_LIBOBJ invocations to module description.
32890         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
32891         * modules/tempname (Makefile.am): Augment lib_SOURCES.
32893 2011-05-23  Bruno Haible  <bruno@clisp.org>
32895         strftime: Move AC_LIBOBJ invocations to module description.
32896         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
32897         * modules/strftime (Makefile.am): Augment lib_SOURCES.
32899 2011-05-23  Bruno Haible  <bruno@clisp.org>
32901         stdlib-safer: Move AC_LIBOBJ invocations to module description.
32902         * m4/stdlib-safer.m4: Remove file.
32903         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
32904         (configure.ac): Remove gl_STDLIB_SAFER call.
32905         (Makefile.am): Augment lib_SOURCES.
32907 2011-05-23  Bruno Haible  <bruno@clisp.org>
32909         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
32910         * m4/stdio-safer.m4: Remove file.
32911         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
32912         (configure.ac): Remove gl_TMPFILE_SAFER call.
32913         (Makefile.am): Augment lib_SOURCES.
32915 2011-05-23  Bruno Haible  <bruno@clisp.org>
32917         popen-safer: Move AC_LIBOBJ invocations to module description.
32918         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
32919         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
32920         (configure.ac): Remove gl_POPEN_SAFER call.
32921         (Makefile.am): Augment lib_SOURCES.
32923 2011-05-23  Bruno Haible  <bruno@clisp.org>
32925         freopen-safer: Move AC_LIBOBJ invocations to module description.
32926         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
32927         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
32928         (configure.ac): Remove gl_FREOPEN_SAFER call.
32929         (Makefile.am): Augment lib_SOURCES.
32931 2011-05-23  Bruno Haible  <bruno@clisp.org>
32933         fopen-safer: Move AC_LIBOBJ invocations to module description.
32934         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
32935         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
32936         (configure.ac): Remove gl_FOPEN_SAFER call.
32937         (Makefile.am): Augment lib_SOURCES.
32939 2011-05-23  Bruno Haible  <bruno@clisp.org>
32941         crypto/sha512: Move AC_LIBOBJ invocations to module description.
32942         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
32943         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
32945 2011-05-23  Bruno Haible  <bruno@clisp.org>
32947         crypto/sha256: Move AC_LIBOBJ invocations to module description.
32948         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
32949         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
32951 2011-05-23  Bruno Haible  <bruno@clisp.org>
32953         crypto/sha1: Move AC_LIBOBJ invocations to module description.
32954         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
32955         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
32957 2011-05-23  Bruno Haible  <bruno@clisp.org>
32959         settime: Move AC_LIBOBJ invocations to module description.
32960         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
32961         * modules/settime (Makefile.am): Augment lib_SOURCES.
32963 2011-05-23  Bruno Haible  <bruno@clisp.org>
32965         savedir: Move AC_LIBOBJ invocations to module description.
32966         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
32967         * modules/savedir (Makefile.am): Augment lib_SOURCES.
32969 2011-05-23  Bruno Haible  <bruno@clisp.org>
32971         save-cwd: Move AC_LIBOBJ invocations to module description.
32972         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
32973         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
32975 2011-05-23  Bruno Haible  <bruno@clisp.org>
32977         same: Move AC_LIBOBJ invocations to module description.
32978         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
32979         * modules/same (Makefile.am): Augment lib_SOURCES.
32981 2011-05-23  Bruno Haible  <bruno@clisp.org>
32983         safe-write: Move AC_LIBOBJ invocations to module description.
32984         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
32985         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
32986         instead of gl_SAFE_WRITE.
32987         (Makefile.am): Augment lib_SOURCES.
32989 2011-05-23  Bruno Haible  <bruno@clisp.org>
32991         safe-read: Move AC_LIBOBJ invocations to module description.
32992         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
32993         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
32994         of gl_SAFE_READ.
32995         (Makefile.am): Augment lib_SOURCES.
32997 2011-05-23  Bruno Haible  <bruno@clisp.org>
32999         safe-alloc: Move AC_LIBOBJ invocations to module description.
33000         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
33001         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
33003 2011-05-23  Bruno Haible  <bruno@clisp.org>
33005         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
33006         * m4/rijndael.m4: Remove file.
33007         * modules/crypto/rijndael (Files): Remove it.
33008         (configure.ac): Remove gl_RIJNDAEL call.
33009         (Makefile.am): Augment lib_SOURCES.
33011 2011-05-23  Bruno Haible  <bruno@clisp.org>
33013         readtokens: Move AC_LIBOBJ invocations to module description.
33014         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
33015         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
33017 2011-05-23  Bruno Haible  <bruno@clisp.org>
33019         read-file: Move AC_LIBOBJ invocations to module description.
33020         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
33021         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
33022         of gl_FUNC_READ_FILE.
33023         (Makefile.am): Augment lib_SOURCES.
33025 2011-05-23  Bruno Haible  <bruno@clisp.org>
33027         quotearg: Move AC_LIBOBJ invocations to module description.
33028         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
33029         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
33031 2011-05-23  Bruno Haible  <bruno@clisp.org>
33033         quote: Move AC_LIBOBJ invocations to module description.
33034         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
33035         * modules/quote (Makefile.am): Augment lib_SOURCES.
33037 2011-05-23  Bruno Haible  <bruno@clisp.org>
33039         posixver: Move AC_LIBOBJ invocations to module description.
33040         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
33041         * modules/posixver (Makefile.am): Augment lib_SOURCES.
33043 2011-05-23  Bruno Haible  <bruno@clisp.org>
33045         posixtm: Move AC_LIBOBJ invocations to module description.
33046         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
33047         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
33049 2011-05-23  Bruno Haible  <bruno@clisp.org>
33051         physmem: Move AC_LIBOBJ invocations to module description.
33052         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
33053         * modules/physmem (Makefile.am): Augment lib_SOURCES.
33055 2011-05-23  Bruno Haible  <bruno@clisp.org>
33057         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
33058         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
33059         invocation.
33060         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
33062 2011-05-23  Bruno Haible  <bruno@clisp.org>
33064         mpsort: Move AC_LIBOBJ invocations to module description.
33065         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
33066         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
33068 2011-05-23  Bruno Haible  <bruno@clisp.org>
33070         modechange: Move AC_LIBOBJ invocations to module description.
33071         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
33072         * modules/modechange (Makefile.am): Augment lib_SOURCES.
33074 2011-05-23  Bruno Haible  <bruno@clisp.org>
33076         mkdir-p: Move AC_LIBOBJ invocations to module description.
33077         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
33078         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
33080 2011-05-23  Bruno Haible  <bruno@clisp.org>
33082         mkancesdirs: Move AC_LIBOBJ invocations to module description.
33083         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
33084         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
33086 2011-05-23  Bruno Haible  <bruno@clisp.org>
33088         mgetgroups: Move AC_LIBOBJ invocations to module description.
33089         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
33090         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
33092 2011-05-23  Bruno Haible  <bruno@clisp.org>
33094         memxor: Move AC_LIBOBJ invocations to module description.
33095         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
33096         * modules/memxor (Makefile.am): Augment lib_SOURCES.
33098 2011-05-23  Bruno Haible  <bruno@clisp.org>
33100         memcoll: Move AC_LIBOBJ invocations to module description.
33101         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
33102         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
33104 2011-05-23  Bruno Haible  <bruno@clisp.org>
33106         memcasecmp: Move AC_LIBOBJ invocations to module description.
33107         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
33108         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
33110 2011-05-23  Bruno Haible  <bruno@clisp.org>
33112         crypto/md5: Move AC_LIBOBJ invocations to module description.
33113         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
33114         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
33116 2011-05-23  Bruno Haible  <bruno@clisp.org>
33118         crypto/md4: Move AC_LIBOBJ invocations to module description.
33119         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
33120         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
33122 2011-05-23  Bruno Haible  <bruno@clisp.org>
33124         crypto/md2: Move AC_LIBOBJ invocations to module description.
33125         * m4/md2.m4: Remove file.
33126         * modules/crypto/md2 (Files): Remove it.
33127         (configure.ac): Remove gl_MD2 call.
33128         (Makefile.am): Augment lib_SOURCES.
33130 2011-05-23  Bruno Haible  <bruno@clisp.org>
33132         long-options: Move AC_LIBOBJ invocations to module description.
33133         * m4/long-options.m4: Remove file.
33134         * modules/long-options (Files): Remove it.
33135         (configure.ac): Remove gl_LONG_OPTIONS call.
33136         (Makefile.am): Augment lib_SOURCES.
33138 2011-05-23  Bruno Haible  <bruno@clisp.org>
33140         i-ring: Move AC_LIBOBJ invocations to module description.
33141         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
33142         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
33144 2011-05-23  Bruno Haible  <bruno@clisp.org>
33146         idcache: Move AC_LIBOBJ invocations to module description.
33147         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
33148         * modules/idcache (Makefile.am): Augment lib_SOURCES.
33150 2011-05-23  Bruno Haible  <bruno@clisp.org>
33152         human: Move AC_LIBOBJ invocations to module description.
33153         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
33154         * modules/human (Makefile.am): Augment lib_SOURCES.
33156 2011-05-23  Bruno Haible  <bruno@clisp.org>
33158         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
33159         * m4/hmac-sha1.m4: Remove file.
33160         * modules/crypto/hmac-sha1 (Files): Remove it.
33161         (configure.ac): Remove gl_HMAC_SHA1 call.
33162         (Makefile.am): Augment lib_SOURCES.
33164 2011-05-23  Bruno Haible  <bruno@clisp.org>
33166         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
33167         * m4/hmac-md5.m4: Remove file.
33168         * modules/crypto/hmac-md5 (Files): Remove it.
33169         (configure.ac): Remove gl_HMAC_MD5 call.
33170         (Makefile.am): Augment lib_SOURCES.
33172 2011-05-23  Bruno Haible  <bruno@clisp.org>
33174         hash: Move AC_LIBOBJ invocations to module description.
33175         * m4/hash.m4: Remove file.
33176         * modules/hash (Files): Remove it.
33177         (configure.ac): Remove gl_HASH call.
33178         (Makefile.am): Augment lib_SOURCES.
33180 2011-05-23  Bruno Haible  <bruno@clisp.org>
33182         hard-locale: Move AC_LIBOBJ invocations to module description.
33183         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
33184         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
33186 2011-05-23  Bruno Haible  <bruno@clisp.org>
33188         getugroups: Move AC_LIBOBJ invocations to module description.
33189         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
33190         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
33192 2011-05-23  Bruno Haible  <bruno@clisp.org>
33194         gettime: Move AC_LIBOBJ invocations to module description.
33195         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
33196         * modules/gettime (Makefile.am): Augment lib_SOURCES.
33198 2011-05-23  Bruno Haible  <bruno@clisp.org>
33200         getndelim2: Move AC_LIBOBJ invocations to module description.
33201         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
33202         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
33204 2011-05-23  Bruno Haible  <bruno@clisp.org>
33206         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
33207         * m4/gc-pbkdf2-sha1.m4: Remove file.
33208         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
33209         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
33210         (Makefile.am): Augment lib_SOURCES.
33212 2011-05-23  Bruno Haible  <bruno@clisp.org>
33214         fts: Move AC_LIBOBJ invocations to module description.
33215         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
33216         * modules/fts (configure.ac): ... to here.
33218 2011-05-23  Bruno Haible  <bruno@clisp.org>
33220         file-type: Move AC_LIBOBJ invocations to module description.
33221         * m4/file-type.m4: Remove file.
33222         * modules/file-type (Files): Remove it.
33223         (configure.ac): Remove gl_FILE_TYPE call.
33224         (Makefile.am): Augment lib_SOURCES.
33226 2011-05-23  Bruno Haible  <bruno@clisp.org>
33228         filenamecat*: Respect rules for use of AC_LIBOBJ.
33229         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
33230         Remove AC_LIBOBJ invocation.
33231         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
33232         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
33234 2011-05-23  Bruno Haible  <bruno@clisp.org>
33236         filemode: Move AC_LIBOBJ invocations to module description.
33237         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
33238         * modules/filemode (Makefile.am): Augment lib_SOURCES.
33240 2011-05-23  Bruno Haible  <bruno@clisp.org>
33242         openat-safer: Move AC_LIBOBJ invocations to module description.
33243         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
33244         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
33246 2011-05-23  Bruno Haible  <bruno@clisp.org>
33248         fcntl-safer: Move AC_LIBOBJ invocations to module description.
33249         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
33250         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
33252 2011-05-23  Bruno Haible  <bruno@clisp.org>
33254         exclude: Move AC_LIBOBJ invocations to module description.
33255         * m4/exclude.m4: Remove file.
33256         * modules/exclude (Files): Remove it.
33257         (configure.ac): Remove gl_EXCLUDE call.
33258         (Makefile.am): Augment lib_SOURCES.
33260 2011-05-23  Bruno Haible  <bruno@clisp.org>
33262         dirname*: Respect rules for use of AC_LIBOBJ.
33263         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
33264         invocations.
33265         * modules/dirname (Makefile.am): Augment lib_SOURCES.
33266         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
33268 2011-05-23  Bruno Haible  <bruno@clisp.org>
33270         dirent-safer: Move AC_LIBOBJ invocations to module description.
33271         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
33272         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
33274 2011-05-23  Bruno Haible  <bruno@clisp.org>
33276         crypto/des: Move AC_LIBOBJ invocations to module description.
33277         * m4/des.m4: Remove file.
33278         * modules/crypto/des (Files): Remove it.
33279         (configure.ac): Remove gl_DES call.
33280         (Makefile.am): Augment lib_SOURCES.
33282 2011-05-23  Bruno Haible  <bruno@clisp.org>
33284         cycle-check: Move AC_LIBOBJ invocations to module description.
33285         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
33286         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
33288 2011-05-23  Bruno Haible  <bruno@clisp.org>
33290         c-strtold: Move AC_LIBOBJ invocations to module description.
33291         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
33292         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
33294 2011-05-23  Bruno Haible  <bruno@clisp.org>
33296         c-strtod: Move AC_LIBOBJ invocations to module description.
33297         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
33298         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
33300 2011-05-23  Bruno Haible  <bruno@clisp.org>
33302         crc: Move AC_LIBOBJ invocations to module description.
33303         * m4/crc.m4: Remove file.
33304         * modules/crc (Files): Remove it.
33305         (configure.ac): Remove gl_CRC call.
33306         (Makefile.am): Augment lib_SOURCES.
33308 2011-05-23  Bruno Haible  <bruno@clisp.org>
33310         close-stream: Move AC_LIBOBJ invocations to module description.
33311         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
33312         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
33314 2011-05-23  Bruno Haible  <bruno@clisp.org>
33316         closeout: Move AC_LIBOBJ invocations to module description.
33317         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
33318         * modules/closeout (Makefile.am): Augment lib_SOURCES.
33320 2011-05-23  Bruno Haible  <bruno@clisp.org>
33322         closein: Move AC_LIBOBJ invocations to module description.
33323         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
33324         * modules/closein (Makefile.am): Augment lib_SOURCES.
33326 2011-05-23  Bruno Haible  <bruno@clisp.org>
33328         cloexec: Move AC_LIBOBJ invocations to module description.
33329         * m4/cloexec.m4: Remove file.
33330         * modules/cloexec (Files): Remove it.
33331         (configure.ac): Remove gl_CLOEXEC call.
33332         (Makefile.am): Augment lib_SOURCES.
33334 2011-05-23  Bruno Haible  <bruno@clisp.org>
33336         check-version: Move AC_LIBOBJ invocations to module description.
33337         * m4/check-version.m4: Remove file.
33338         * modules/check-version (Files): Remove it.
33339         (configure.ac): Remove gl_CHECK_VERSION call.
33340         (Makefile.am): Augment lib_SOURCES.
33342 2011-05-23  Bruno Haible  <bruno@clisp.org>
33344         chdir-safer: Move AC_LIBOBJ invocations to module description.
33345         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
33346         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
33348 2011-05-23  Bruno Haible  <bruno@clisp.org>
33350         canonicalize: Move AC_LIBOBJ invocations to module description.
33351         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
33352         AC_LIBOBJ invocation.
33353         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
33355 2011-05-23  Bruno Haible  <bruno@clisp.org>
33357         canon-host: Move AC_LIBOBJ invocations to module description.
33358         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
33359         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
33360         instead of gl_CANON_HOST.
33361         (Makefile.am): Augment lib_SOURCES.
33363 2011-05-23  Bruno Haible  <bruno@clisp.org>
33365         backupfile: Move AC_LIBOBJ invocations to module description.
33366         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
33367         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
33369 2011-05-23  Bruno Haible  <bruno@clisp.org>
33371         argmatch: Move AC_LIBOBJ invocations to module description.
33372         * m4/argmatch.m4: Remove file.
33373         * modules/argmatch (Files): Remove it.
33374         (configure.ac): Remove gl_ARGMATCH call.
33375         (Makefile.am): Augment lib_SOURCES.
33377 2011-05-23  Bruno Haible  <bruno@clisp.org>
33379         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
33380         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
33381         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
33383 2011-05-23  Bruno Haible  <bruno@clisp.org>
33385         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
33386         * m4/arcfour.m4: Remove file.
33387         * modules/crypto/arcfour (Files): Remove it.
33388         (configure.ac): Remove gl_ARCFOUR call.
33389         (Makefile.am): Augment lib_SOURCES.
33391 2011-05-22  Bruno Haible  <bruno@clisp.org>
33393         write: Move AC_LIBOBJ invocations to module description.
33394         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
33395         * modules/write (configure.ac): ... to here.
33397 2011-05-22  Bruno Haible  <bruno@clisp.org>
33399         wmemset: Move AC_LIBOBJ invocations to module description.
33400         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
33401         here...
33402         * modules/wmemset (configure.ac): ... to here.
33404 2011-05-22  Bruno Haible  <bruno@clisp.org>
33406         wmemmove: Move AC_LIBOBJ invocations to module description.
33407         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
33408         here...
33409         * modules/wmemmove (configure.ac): ... to here.
33411 2011-05-22  Bruno Haible  <bruno@clisp.org>
33413         wmemcpy: Move AC_LIBOBJ invocations to module description.
33414         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
33415         here...
33416         * modules/wmemcpy (configure.ac): ... to here.
33418 2011-05-22  Bruno Haible  <bruno@clisp.org>
33420         wmemcmp: Move AC_LIBOBJ invocations to module description.
33421         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
33422         here...
33423         * modules/wmemcmp (configure.ac): ... to here.
33425 2011-05-22  Bruno Haible  <bruno@clisp.org>
33427         wmemchr: Move AC_LIBOBJ invocations to module description.
33428         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
33429         here...
33430         * modules/wmemchr (configure.ac): ... to here.
33432 2011-05-22  Bruno Haible  <bruno@clisp.org>
33434         wcswidth: Move AC_LIBOBJ invocations to module description.
33435         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
33436         here...
33437         * modules/wcswidth (configure.ac): ... to here.
33439 2011-05-22  Bruno Haible  <bruno@clisp.org>
33441         wcwidth: Respect rules for use of AC_LIBOBJ.
33442         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
33443         invocation from here...
33444         * modules/wcwidth (configure.ac): ... to here.
33445         (Depends-on): Update conditions.
33447 2011-05-22  Bruno Haible  <bruno@clisp.org>
33449         wctype: Move AC_LIBOBJ invocations to module description.
33450         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
33451         invocation from here...
33452         * modules/wctype (configure.ac): ... to here.
33453         (Depends-on): Update conditions.
33455 2011-05-22  Bruno Haible  <bruno@clisp.org>
33457         wctrans: Move AC_LIBOBJ invocations to module description.
33458         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
33459         invocation from here...
33460         * modules/wctrans (configure.ac): ... to here.
33462 2011-05-22  Bruno Haible  <bruno@clisp.org>
33464         wctomb: Move AC_LIBOBJ invocations to module description.
33465         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
33466         invocations from here...
33467         * modules/wctomb (configure.ac): ... to here.
33469 2011-05-22  Bruno Haible  <bruno@clisp.org>
33471         wctob: Move AC_LIBOBJ invocations to module description.
33472         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
33473         gl_PREREQ_WCTOB invocations from here...
33474         * modules/wctob (configure.ac): ... to here.
33475         (Depends-on): Update conditions.
33477 2011-05-22  Bruno Haible  <bruno@clisp.org>
33479         wcsxfrm: Move AC_LIBOBJ invocations to module description.
33480         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
33481         here...
33482         * modules/wcsxfrm (configure.ac): ... to here.
33484 2011-05-22  Bruno Haible  <bruno@clisp.org>
33486         wcstok: Move AC_LIBOBJ invocations to module description.
33487         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
33488         * modules/wcstok (configure.ac): ... to here.
33490 2011-05-22  Bruno Haible  <bruno@clisp.org>
33492         wcsstr: Move AC_LIBOBJ invocations to module description.
33493         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
33494         * modules/wcsstr (configure.ac): ... to here.
33496 2011-05-22  Bruno Haible  <bruno@clisp.org>
33498         wcsspn: Move AC_LIBOBJ invocations to module description.
33499         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
33500         * modules/wcsspn (configure.ac): ... to here.
33502 2011-05-22  Bruno Haible  <bruno@clisp.org>
33504         wcsrtombs: Move AC_LIBOBJ invocations to module description.
33505         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
33506         gl_PREREQ_WCSRTOMBS invocations from here...
33507         * modules/wcsrtombs (configure.ac): ... to here.
33509 2011-05-22  Bruno Haible  <bruno@clisp.org>
33511         wcsrchr: Move AC_LIBOBJ invocations to module description.
33512         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
33513         here...
33514         * modules/wcsrchr (configure.ac): ... to here.
33516 2011-05-22  Bruno Haible  <bruno@clisp.org>
33518         wcspbrk: Move AC_LIBOBJ invocations to module description.
33519         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
33520         here...
33521         * modules/wcspbrk (configure.ac): ... to here.
33523 2011-05-22  Bruno Haible  <bruno@clisp.org>
33525         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
33526         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
33527         gl_PREREQ_WCSNRTOMBS invocations from here...
33528         * modules/wcsnrtombs (configure.ac): ... to here.
33530 2011-05-22  Bruno Haible  <bruno@clisp.org>
33532         wcsnlen: Move AC_LIBOBJ invocations to module description.
33533         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
33534         here...
33535         * modules/wcsnlen (configure.ac): ... to here.
33537 2011-05-22  Bruno Haible  <bruno@clisp.org>
33539         wcsncpy: Move AC_LIBOBJ invocations to module description.
33540         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
33541         here...
33542         * modules/wcsncpy (configure.ac): ... to here.
33544 2011-05-22  Bruno Haible  <bruno@clisp.org>
33546         wcsncmp: Move AC_LIBOBJ invocations to module description.
33547         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
33548         here...
33549         * modules/wcsncmp (configure.ac): ... to here.
33551 2011-05-22  Bruno Haible  <bruno@clisp.org>
33553         wcsncat: Move AC_LIBOBJ invocations to module description.
33554         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
33555         here...
33556         * modules/wcsncat (configure.ac): ... to here.
33558 2011-05-22  Bruno Haible  <bruno@clisp.org>
33560         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
33561         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
33562         from here...
33563         * modules/wcsncasecmp (configure.ac): ... to here.
33565 2011-05-22  Bruno Haible  <bruno@clisp.org>
33567         wcslen: Move AC_LIBOBJ invocations to module description.
33568         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
33569         * modules/wcslen (configure.ac): ... to here.
33571 2011-05-22  Bruno Haible  <bruno@clisp.org>
33573         wcsdup: Move AC_LIBOBJ invocations to module description.
33574         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
33575         * modules/wcsdup (configure.ac): ... to here.
33577 2011-05-22  Bruno Haible  <bruno@clisp.org>
33579         wcscspn: Move AC_LIBOBJ invocations to module description.
33580         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
33581         here...
33582         * modules/wcscspn (configure.ac): ... to here.
33584 2011-05-22  Bruno Haible  <bruno@clisp.org>
33586         wcscpy: Move AC_LIBOBJ invocations to module description.
33587         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
33588         * modules/wcscpy (configure.ac): ... to here.
33590 2011-05-22  Bruno Haible  <bruno@clisp.org>
33592         wcscoll: Move AC_LIBOBJ invocations to module description.
33593         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
33594         here...
33595         * modules/wcscoll (configure.ac): ... to here.
33597 2011-05-22  Bruno Haible  <bruno@clisp.org>
33599         wcscmp: Move AC_LIBOBJ invocations to module description.
33600         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
33601         * modules/wcscmp (configure.ac): ... to here.
33603 2011-05-22  Bruno Haible  <bruno@clisp.org>
33605         wcschr: Move AC_LIBOBJ invocations to module description.
33606         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
33607         * modules/wcschr (configure.ac): ... to here.
33609 2011-05-22  Bruno Haible  <bruno@clisp.org>
33611         wcscat: Move AC_LIBOBJ invocations to module description.
33612         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
33613         * modules/wcscat (configure.ac): ... to here.
33615 2011-05-22  Bruno Haible  <bruno@clisp.org>
33617         wcscasecmp: Move AC_LIBOBJ invocations to module description.
33618         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
33619         here...
33620         * modules/wcscasecmp (configure.ac): ... to here.
33622 2011-05-22  Bruno Haible  <bruno@clisp.org>
33624         wcrtomb: Move AC_LIBOBJ invocations to module description.
33625         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
33626         invocations from here...
33627         * modules/wcrtomb (configure.ac): ... to here.
33629 2011-05-22  Bruno Haible  <bruno@clisp.org>
33631         wcpncpy: Move AC_LIBOBJ invocations to module description.
33632         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
33633         here...
33634         * modules/wcpncpy (configure.ac): ... to here.
33636 2011-05-22  Bruno Haible  <bruno@clisp.org>
33638         wcpcpy: Move AC_LIBOBJ invocations to module description.
33639         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
33640         * modules/wcpcpy (configure.ac): ... to here.
33642 2011-05-22  Bruno Haible  <bruno@clisp.org>
33644         waitpid: Move AC_LIBOBJ invocations to module description.
33645         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
33646         invocation from here...
33647         * modules/waitpid (configure.ac): ... to here.
33649 2011-05-22  Bruno Haible  <bruno@clisp.org>
33651         utimensat: Move AC_LIBOBJ invocations to module description.
33652         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
33653         here...
33654         * modules/utimensat (configure.ac): ... to here.
33656 2011-05-22  Bruno Haible  <bruno@clisp.org>
33658         usleep: Move AC_LIBOBJ invocations to module description.
33659         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
33660         here...
33661         * modules/usleep (configure.ac): ... to here.
33663 2011-05-22  Bruno Haible  <bruno@clisp.org>
33665         unlockpt: Move AC_LIBOBJ invocations to module description.
33666         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
33667         gl_PREREQ_UNLOCKPT invocations from here...
33668         * modules/unlockpt (configure.ac): ... to here.
33670 2011-05-22  Bruno Haible  <bruno@clisp.org>
33672         unlink: Respect rules for use of AC_LIBOBJ.
33673         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
33674         * modules/unlink (configure.ac): ... to here.
33676 2011-05-22  Bruno Haible  <bruno@clisp.org>
33678         uname: Move AC_LIBOBJ invocations to module description.
33679         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
33680         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
33681         here...
33682         * modules/uname (configure.ac): ... to here.
33684 2011-05-22  Bruno Haible  <bruno@clisp.org>
33686         ttyname_r: Move AC_LIBOBJ invocations to module description.
33687         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
33688         gl_PREREQ_TTYNAME_R invocations from here...
33689         * modules/ttyname_r (configure.ac): ... to here.
33691 2011-05-22  Bruno Haible  <bruno@clisp.org>
33693         tsearch: Move AC_LIBOBJ invocations to module description.
33694         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
33695         invocations from here...
33696         * modules/tsearch (configure.ac): ... to here.
33698 2011-05-22  Bruno Haible  <bruno@clisp.org>
33700         towctrans: Move AC_LIBOBJ invocations to module description.
33701         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
33702         AC_LIBOBJ invocation from here...
33703         * modules/towctrans (configure.ac): ... to here.
33705 2011-05-22  Bruno Haible  <bruno@clisp.org>
33707         tmpfile: Move AC_LIBOBJ invocations to module description.
33708         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
33709         invocations from here...
33710         * modules/tmpfile (configure.ac): ... to here.
33712 2011-05-22  Bruno Haible  <bruno@clisp.org>
33714         times: Move AC_LIBOBJ invocations to module description.
33715         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
33716         * modules/times (configure.ac): ... to here.
33718 2011-05-22  Bruno Haible  <bruno@clisp.org>
33720         time_r: Move AC_LIBOBJ invocations to module description.
33721         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
33722         invocations from here...
33723         * modules/time_r (configure.ac): ... to here.
33725 2011-05-22  Bruno Haible  <bruno@clisp.org>
33727         timegm: Move AC_LIBOBJ invocations to module description.
33728         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
33729         invocations from here...
33730         * modules/timegm (configure.ac): ... to here.
33732 2011-05-22  Bruno Haible  <bruno@clisp.org>
33734         tcgetsid: Move AC_LIBOBJ invocations to module description.
33735         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
33736         and gl_PREREQ_TCGETSID invocations from here...
33737         * modules/tcgetsid (configure.ac): ... to here.
33738         (Depends-on): Update conditions.
33740 2011-05-22  Bruno Haible  <bruno@clisp.org>
33742         symlinkat: Move AC_LIBOBJ invocations to module description.
33743         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
33744         here...
33745         * modules/symlinkat (configure.ac): ... to here.
33747 2011-05-22  Bruno Haible  <bruno@clisp.org>
33749         symlink: Move AC_LIBOBJ invocations to module description.
33750         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
33751         here...
33752         * modules/symlink (configure.ac): ... to here.
33754 2011-05-22  Bruno Haible  <bruno@clisp.org>
33756         strverscmp: Move AC_LIBOBJ invocations to module description.
33757         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
33758         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
33759         from here...
33760         * modules/strverscmp (configure.ac): ... to here.
33762 2011-05-22  Bruno Haible  <bruno@clisp.org>
33764         strtok_r: Move AC_LIBOBJ invocations to module description.
33765         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
33766         and gl_PREREQ_STRTOK_R invocations from here...
33767         * modules/strtok_r (configure.ac): ... to here.
33768         (Depends-on): Update conditions.
33770 2011-05-22  Bruno Haible  <bruno@clisp.org>
33772         strtoumax: Move AC_LIBOBJ invocations to module description.
33773         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
33774         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
33775         from here...
33776         * modules/strtoumax (configure.ac): ... to here.
33778 2011-05-22  Bruno Haible  <bruno@clisp.org>
33780         strtoimax: Move AC_LIBOBJ invocations to module description.
33781         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
33782         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
33783         from here...
33784         * modules/strtoimax (configure.ac): ... to here.
33786 2011-05-22  Bruno Haible  <bruno@clisp.org>
33788         strtoull: Move AC_LIBOBJ invocations to module description.
33789         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
33790         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
33791         from here...
33792         * modules/strtoull (configure.ac): ... to here.
33794 2011-05-22  Bruno Haible  <bruno@clisp.org>
33796         strtoll: Move AC_LIBOBJ invocations to module description.
33797         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
33798         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
33799         here...
33800         * modules/strtoll (configure.ac): ... to here.
33802 2011-05-22  Bruno Haible  <bruno@clisp.org>
33804         strtoul: Move AC_LIBOBJ invocations to module description.
33805         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
33806         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
33807         * modules/strtoul (configure.ac): ... to here.
33809 2011-05-22  Bruno Haible  <bruno@clisp.org>
33811         strtol: Move AC_LIBOBJ invocations to module description.
33812         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
33813         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
33814         * modules/strtol (configure.ac): ... to here.
33816 2011-05-22  Bruno Haible  <bruno@clisp.org>
33818         strtod: Move AC_LIBOBJ invocations to module description.
33819         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
33820         invocations from here...
33821         * modules/strtod (configure.ac): ... to here.
33823 2011-05-22  Bruno Haible  <bruno@clisp.org>
33825         strstr*: Move AC_LIBOBJ invocations to module description.
33826         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
33827         invocations from here...
33828         * modules/strstr-simple (configure.ac): ... to here.
33829         * modules/strstr (configure.ac): ... and here.
33831 2011-05-22  Bruno Haible  <bruno@clisp.org>
33833         strsignal: Move AC_LIBOBJ invocations to module description.
33834         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
33835         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
33836         * modules/strsignal (configure.ac): ... to here.
33837         (Depends-on): Update conditions.
33839 2011-05-22  Bruno Haible  <bruno@clisp.org>
33841         strsep: Move AC_LIBOBJ invocations to module description.
33842         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
33843         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
33844         here...
33845         * modules/strsep (configure.ac): ... to here.
33847 2011-05-22  Bruno Haible  <bruno@clisp.org>
33849         strptime: Move AC_LIBOBJ invocations to module description.
33850         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
33851         gl_PREREQ_STRPTIME invocations from here...
33852         * modules/strptime (configure.ac): ... to here.
33854 2011-05-22  Bruno Haible  <bruno@clisp.org>
33856         strpbrk: Move AC_LIBOBJ invocations to module description.
33857         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
33858         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
33859         here...
33860         * modules/strpbrk (configure.ac): ... to here.
33862 2011-05-22  Bruno Haible  <bruno@clisp.org>
33864         strnlen: Move AC_LIBOBJ invocations to module description.
33865         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
33866         invocations from here...
33867         * modules/strnlen (configure.ac): ... to here.
33869 2011-05-22  Bruno Haible  <bruno@clisp.org>
33871         strndup: Move AC_LIBOBJ invocations to module description.
33872         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
33873         invocations from here...
33874         * modules/strndup (configure.ac): ... to here.
33875         (Depends-on): Update conditions.
33877 2011-05-22  Bruno Haible  <bruno@clisp.org>
33879         strncat: Move AC_LIBOBJ invocations to module description.
33880         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
33881         invocations from here...
33882         * modules/strncat (configure.ac): ... to here.
33884 2011-05-22  Bruno Haible  <bruno@clisp.org>
33886         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
33887         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
33888         invocations from here...
33889         * modules/strdup (configure.ac): ... to here.
33890         * modules/strdup-posix (configure.ac): ... and here.
33892 2011-05-22  Bruno Haible  <bruno@clisp.org>
33894         strcspn: Move AC_LIBOBJ invocations to module description.
33895         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
33896         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
33897         here...
33898         * modules/strcspn (configure.ac): ... to here.
33900 2011-05-22  Bruno Haible  <bruno@clisp.org>
33902         strchrnul: Move AC_LIBOBJ invocations to module description.
33903         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
33904         gl_PREREQ_STRCHRNUL invocations from here...
33905         * modules/strchrnul (configure.ac): ... to here.
33907 2011-05-22  Bruno Haible  <bruno@clisp.org>
33909         strcasestr*: Move AC_LIBOBJ invocations to module description.
33910         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
33911         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
33912         * modules/strcasestr-simple (configure.ac): ... to here.
33913         * modules/strcasestr (configure.ac): ... and here.
33915 2011-05-22  Bruno Haible  <bruno@clisp.org>
33917         strcase: Move AC_LIBOBJ invocations to module description.
33918         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
33919         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
33920         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
33921         gl_PREREQ_STRNCASECMP invocations from here...
33922         * modules/strcase (configure.ac): ... to here.
33924 2011-05-22  Bruno Haible  <bruno@clisp.org>
33926         stpncpy: Move AC_LIBOBJ invocations to module description.
33927         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
33928         here...
33929         * modules/stpncpy (configure.ac): ... to here.
33931 2011-05-22  Bruno Haible  <bruno@clisp.org>
33933         stpcpy: Move AC_LIBOBJ invocations to module description.
33934         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
33935         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
33936         here...
33937         * modules/stpcpy (configure.ac): ... to here.
33939 2011-05-21  Bruno Haible  <bruno@clisp.org>
33941         stat: Move AC_LIBOBJ invocations to module description.
33942         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
33943         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
33944         here...
33945         * modules/stat (configure.ac): ... to here.
33947 2011-05-21  Bruno Haible  <bruno@clisp.org>
33949         sleep: Move AC_LIBOBJ invocations to module description.
33950         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
33951         * modules/sleep (configure.ac): ... to here.
33953 2011-05-21  Bruno Haible  <bruno@clisp.org>
33955         signbit: Move AC_LIBOBJ invocations to module description.
33956         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
33957         * modules/signbit (configure.ac): ... to here.
33959 2011-05-21  Bruno Haible  <bruno@clisp.org>
33961         sigprocmask: Move AC_LIBOBJ invocations to module description.
33962         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
33963         gl_PREREQ_SIGPROMASK invocations from here...
33964         * modules/sigprocmask (configure.ac): ... to here.
33966 2011-05-21  Bruno Haible  <bruno@clisp.org>
33968         sigaction: Move AC_LIBOBJ invocations to module description.
33969         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
33970         gl_PREREQ_SIGACTION invocations from here...
33971         * modules/sigaction (configure.ac): ... to here.
33973 2011-05-21  Bruno Haible  <bruno@clisp.org>
33975         sig2str: Move AC_LIBOBJ invocations to module description.
33976         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
33977         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
33978         here...
33979         * modules/sig2str (configure.ac): ... to here.
33981 2011-05-21  Bruno Haible  <bruno@clisp.org>
33983         setlocale: Move AC_LIBOBJ invocations to module description.
33984         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
33985         gl_PREREQ_SETLOCALE invocations from here...
33986         * modules/setlocale (configure.ac): ... to here.
33988 2011-05-21  Bruno Haible  <bruno@clisp.org>
33990         unsetenv: Move AC_LIBOBJ invocations to module description.
33991         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
33992         and gl_PREREQ_UNSETENV invocations from here...
33993         * modules/unsetenv (configure.ac): ... to here.
33994         (Depends-on): Update.
33996 2011-05-21  Bruno Haible  <bruno@clisp.org>
33998         setenv: Move AC_LIBOBJ invocations to module description.
33999         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
34000         here...
34001         * modules/setenv (configure.ac): ... to here.
34003 2011-05-21  Bruno Haible  <bruno@clisp.org>
34005         selinux-h: Move AC_LIBOBJ invocations to module description.
34006         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
34007         AC_LIBOBJ invocation from here...
34008         * modules/selinux-h (configure.ac): ... to here.
34010 2011-05-21  Bruno Haible  <bruno@clisp.org>
34012         select: Respect rules for use of AC_LIBOBJ.
34013         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
34014         here...
34015         * modules/select (configure.ac): ... to here.
34017 2011-05-21  Bruno Haible  <bruno@clisp.org>
34019         scandir: Move AC_LIBOBJ invocations to module description.
34020         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
34021         invocations from here...
34022         * modules/scandir (configure.ac): ... to here.
34024 2011-05-21  Bruno Haible  <bruno@clisp.org>
34026         rpmatch: Move AC_LIBOBJ invocations to module description.
34027         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
34028         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
34029         here...
34030         * modules/rpmatch (configure.ac): ... to here.
34032 2011-05-21  Bruno Haible  <bruno@clisp.org>
34034         rmdir: Respect rules for use of AC_LIBOBJ.
34035         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
34036         * modules/rmdir (configure.ac): ... to here.
34038 2011-05-21  Bruno Haible  <bruno@clisp.org>
34040         renameat: Move AC_LIBOBJ invocations to module description.
34041         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
34042         here...
34043         * modules/renameat (configure.ac): ... to here.
34045 2011-05-21  Bruno Haible  <bruno@clisp.org>
34047         rename: Respect rules for use of AC_LIBOBJ.
34048         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
34049         here...
34050         * modules/rename (configure.ac): ... to here.
34052 2011-05-21  Bruno Haible  <bruno@clisp.org>
34054         remove: Move AC_LIBOBJ invocations to module description.
34055         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
34056         here...
34057         * modules/remove (configure.ac): ... to here.
34059 2011-05-21  Bruno Haible  <bruno@clisp.org>
34061         relocatable-lib: Move AC_LIBOBJ invocations to module description.
34062         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
34063         macro.
34064         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
34065         * modules/relocatable-lib (configure.ac): ... to here.
34066         * modules/relocatable-prog-wrapper (configure.ac): Invoke
34067         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
34069 2011-05-21  Bruno Haible  <bruno@clisp.org>
34071         relocatable-prog: Move AC_LIBOBJ invocations to module description.
34072         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
34073         here...
34074         * modules/relocatable-prog (configure.ac): ... to here.
34076 2011-05-21  Bruno Haible  <bruno@clisp.org>
34078         regex: Move AC_LIBOBJ invocations to module description.
34079         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
34080         invocations from here...
34081         * modules/regex (configure.ac): ... to here.
34083 2011-05-21  Bruno Haible  <bruno@clisp.org>
34085         realloc-*: Move AC_LIBOBJ invocations to module description.
34086         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
34087         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
34088         AC_LIBOBJ invocations from here...
34089         * modules/realloc-gnu (configure.ac): ... to here.
34090         * modules/realloc-posix (configure.ac): ... and here.
34092 2011-05-21  Bruno Haible  <bruno@clisp.org>
34094         readutmp: Move AC_LIBOBJ invocations to module description.
34095         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
34096         * modules/readutmp (configure.ac): ... to here.
34098 2011-05-21  Bruno Haible  <bruno@clisp.org>
34100         readlinkat: Move AC_LIBOBJ invocations to module description.
34101         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
34102         here...
34103         * modules/readlinkat (configure.ac): ... to here.
34105 2011-05-21  Bruno Haible  <bruno@clisp.org>
34107         readlink: Move AC_LIBOBJ invocations to module description.
34108         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
34109         gl_PREREQ_READLINK invocations from here...
34110         * modules/readlink (configure.ac): ... to here.
34112 2011-05-21  Bruno Haible  <bruno@clisp.org>
34114         readline: Move AC_LIBOBJ invocations to module description.
34115         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
34116         gl_PREREQ_READLINE invocations from here...
34117         * modules/readline (configure.ac): ... to here.
34119 2011-05-21  Bruno Haible  <bruno@clisp.org>
34121         read: Move AC_LIBOBJ invocations to module description.
34122         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
34123         * modules/read (configure.ac): ... to here.
34125 2011-05-21  Bruno Haible  <bruno@clisp.org>
34127         rawmemchr: Move AC_LIBOBJ invocations to module description.
34128         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
34129         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
34130         from here...
34131         * modules/rawmemchr (configure.ac): ... to here.
34133 2011-05-21  Bruno Haible  <bruno@clisp.org>
34135         random_r: Move AC_LIBOBJ invocations to module description.
34136         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
34137         gl_PREREQ_RANDOM_R invocations from here...
34138         * modules/random_r (configure.ac): ... to here.
34140 2011-05-21  Bruno Haible  <bruno@clisp.org>
34142         pwrite: Move AC_LIBOBJ invocations to module description.
34143         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
34144         * modules/pwrite (configure.ac): ... to here.
34146 2011-05-21  Bruno Haible  <bruno@clisp.org>
34148         putenv: Move AC_LIBOBJ invocations to module description.
34149         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
34150         * modules/putenv (configure.ac): ... to here.
34152 2011-05-21  Bruno Haible  <bruno@clisp.org>
34154         login_tty: Move AC_LIBOBJ invocations to module description.
34155         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
34156         * modules/login_tty (configure.ac): ... to here.
34158 2011-05-21  Bruno Haible  <bruno@clisp.org>
34160         openpty: Move AC_LIBOBJ invocations to module description.
34161         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
34162         * modules/openpty (configure.ac): ... to here.
34164 2011-05-21  Bruno Haible  <bruno@clisp.org>
34166         forkpty: Move AC_LIBOBJ invocations to module description.
34167         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
34168         * modules/forkpty (configure.ac): ... to here.
34170 2011-05-21  Bruno Haible  <bruno@clisp.org>
34172         ptsname: Move AC_LIBOBJ invocations to module description.
34173         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
34174         invocations from here...
34175         * modules/ptsname (configure.ac): ... to here.
34177 2011-05-21  Bruno Haible  <bruno@clisp.org>
34179         pread: Move AC_LIBOBJ invocations to module description.
34180         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
34181         * modules/pread (configure.ac): ... to here.
34183 2011-05-21  Bruno Haible  <bruno@clisp.org>
34185         posix_spawn*: Move AC_LIBOBJ invocations to module description.
34186         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
34187         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
34188         * modules/posix_spawn (configure.ac): ... to here.
34189         * modules/posix_spawnp (configure.ac): ... and here.
34191 2011-05-21  Bruno Haible  <bruno@clisp.org>
34193         popen: Move AC_LIBOBJ invocations to module description.
34194         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
34195         invocations from here...
34196         * modules/popen (configure.ac): ... to here.
34198 2011-05-21  Bruno Haible  <bruno@clisp.org>
34200         poll: Move AC_LIBOBJ invocations to module description.
34201         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
34202         invocations from here...
34203         * modules/poll (configure.ac): ... to here.
34205 2011-05-21  Bruno Haible  <bruno@clisp.org>
34207         pipe-posix: Move AC_LIBOBJ invocations to module description.
34208         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
34209         * modules/pipe-posix (configure.ac): ... to here.
34211 2011-05-21  Bruno Haible  <bruno@clisp.org>
34213         openat: Respect rules for use of AC_LIBOBJ.
34214         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
34215         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
34216         * modules/openat (configure.ac): ... to here.
34218 2011-05-21  Bruno Haible  <bruno@clisp.org>
34220         obstack-printf*: Move AC_LIBOBJ invocations to module description.
34221         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
34222         invocation from here...
34223         * modules/obstack-printf (configure.ac): ... to here.
34224         * modules/obstack-printf-posix (configure.ac): ... and here.
34226 2011-05-21  Bruno Haible  <bruno@clisp.org>
34228         nl_langinfo: Move AC_LIBOBJ invocations to module description.
34229         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
34230         from here...
34231         * modules/nl_langinfo (configure.ac): ... to here.
34233 2011-05-21  Bruno Haible  <bruno@clisp.org>
34235         nanosleep: Move AC_LIBOBJ invocations to module description.
34236         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
34237         gl_PREREQ_NANOSLEEP invocations from here...
34238         * modules/nanosleep (configure.ac): ... to here.
34240 2011-05-21  Bruno Haible  <bruno@clisp.org>
34242         mountlist: Move AC_LIBOBJ invocations to module description.
34243         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
34244         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
34245         * modules/mountlist (configure.ac): ... to here.
34247 2011-05-21  Bruno Haible  <bruno@clisp.org>
34249         mktime: Respect rules for use of AC_LIBOBJ.
34250         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
34251         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
34252         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
34253         (gl_FUNC_MKTIME_INTERNAL): ... and here...
34254         * modules/mktime (configure.ac): ... to here.
34255         * modules/mktime-internal (configure.ac): ... and here.
34256         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
34258 2011-05-21  Bruno Haible  <bruno@clisp.org>
34260         mkstemps: Move AC_LIBOBJ invocations to module description.
34261         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
34262         here...
34263         * modules/mkstemps (configure.ac): ... to here.
34265 2011-05-21  Bruno Haible  <bruno@clisp.org>
34267         mkstemp: Move AC_LIBOBJ invocations to module description.
34268         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
34269         gl_PREREQ_MKSTEMP invocations from here...
34270         * modules/mkstemp (configure.ac): ... to here.
34272 2011-05-21  Bruno Haible  <bruno@clisp.org>
34274         mkostemps: Move AC_LIBOBJ invocations to module description.
34275         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
34276         here...
34277         * modules/mkostemps (configure.ac): ... to here.
34279 2011-05-21  Bruno Haible  <bruno@clisp.org>
34281         mkostemp: Move AC_LIBOBJ invocations to module description.
34282         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
34283         gl_PREREQ_MKOSTEMP invocations from here...
34284         * modules/mkostemp (configure.ac): ... to here.
34286 2011-05-21  Bruno Haible  <bruno@clisp.org>
34288         mknod: Move AC_LIBOBJ invocations to module description.
34289         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
34290         * modules/mknod (configure.ac): ... to here.
34292 2011-05-21  Bruno Haible  <bruno@clisp.org>
34294         mkfifoat: Move AC_LIBOBJ invocations to module description.
34295         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
34296         here...
34297         * modules/mkfifoat (configure.ac): ... to here.
34299 2011-05-21  Bruno Haible  <bruno@clisp.org>
34301         mkfifo: Respect rules for use of AC_LIBOBJ.
34302         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
34303         here...
34304         * modules/mkfifo (configure.ac): ... to here.
34306 2011-05-21  Bruno Haible  <bruno@clisp.org>
34308         mkdtemp: Move AC_LIBOBJ invocations to module description.
34309         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
34310         invocations from here...
34311         * modules/mkdtemp (configure.ac): ... to here.
34313 2011-05-21  Bruno Haible  <bruno@clisp.org>
34315         mkdir: Move AC_LIBOBJ invocations to module description.
34316         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
34317         * modules/mkdir (configure.ac): ... to here.
34319 2011-05-21  Bruno Haible  <bruno@clisp.org>
34321         memset: Move AC_LIBOBJ invocations to module description.
34322         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
34323         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
34324         here...
34325         * modules/memset (configure.ac): ... to here.
34327 2011-05-21  Bruno Haible  <bruno@clisp.org>
34329         memrchr: Move AC_LIBOBJ invocations to module description.
34330         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
34331         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
34332         here...
34333         * modules/memrchr (configure.ac): ... to here.
34335 2011-05-21  Bruno Haible  <bruno@clisp.org>
34337         mempcpy: Move AC_LIBOBJ invocations to module description.
34338         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
34339         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
34340         here...
34341         * modules/mempcpy (configure.ac): ... to here.
34343 2011-05-21  Bruno Haible  <bruno@clisp.org>
34345         memmove: Move AC_LIBOBJ invocations to module description.
34346         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
34347         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
34348         here...
34349         * modules/memmove (configure.ac): ... to here.
34351 2011-05-21  Bruno Haible  <bruno@clisp.org>
34353         memmem*: Move AC_LIBOBJ invocations to module description.
34354         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
34355         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
34356         here...
34357         (gl_FUNC_MEMMEM): ... and here...
34358         * modules/memmem-simple (configure.ac): ... to here.
34359         * modules/memmem (configure.ac): ... and here.
34361 2011-05-21  Bruno Haible  <bruno@clisp.org>
34363         memcpy: Move AC_LIBOBJ invocations to module description.
34364         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
34365         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
34366         here...
34367         * modules/memcpy (configure.ac): ... to here.
34369 2011-05-21  Bruno Haible  <bruno@clisp.org>
34371         memcmp: Simplify autoconf macro.
34372         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
34373         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
34374         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
34376 2011-05-21  Bruno Haible  <bruno@clisp.org>
34378         memcmp: Move AC_LIBOBJ invocations to module description.
34379         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
34380         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
34381         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
34382         * modules/memcmp (configure.ac): ... to here.
34383         (Depends-on): Update conditions.
34385 2011-05-21  Bruno Haible  <bruno@clisp.org>
34387         memchr: Respect rules for use of AC_LIBOBJ.
34388         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
34389         invocations from here...
34390         * modules/memchr (configure.ac): ... to here.
34392 2011-05-21  Bruno Haible  <bruno@clisp.org>
34394         mbtowc: Move AC_LIBOBJ invocations to module description.
34395         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
34396         invocations from here...
34397         * modules/mbtowc (configure.ac): ... to here.
34399 2011-05-21  Bruno Haible  <bruno@clisp.org>
34401         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
34402         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
34403         gl_PREREQ_MBSRTOWCS invocations from here...
34404         * modules/mbsrtowcs (configure.ac): ... to here.
34406 2011-05-21  Bruno Haible  <bruno@clisp.org>
34408         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
34409         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
34410         gl_PREREQ_MBSNRTOWCS invocations from here...
34411         * modules/mbsnrtowcs (configure.ac): ... to here.
34413 2011-05-21  Bruno Haible  <bruno@clisp.org>
34415         mbsinit: Move AC_LIBOBJ invocations to module description.
34416         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
34417         invocations from here...
34418         * modules/mbsinit (configure.ac): ... to here.
34420 2011-05-21  Bruno Haible  <bruno@clisp.org>
34422         mbrlen: Move AC_LIBOBJ invocations to module description.
34423         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
34424         invocations from here...
34425         * modules/mbrlen (configure.ac): ... to here.
34427 2011-05-21  Bruno Haible  <bruno@clisp.org>
34429         mbrtowc: Respect rules for use of AC_LIBOBJ.
34430         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
34431         invocations from here...
34432         * modules/mbrtowc (configure.ac): ... to here.
34434 2011-05-21  Bruno Haible  <bruno@clisp.org>
34436         malloc-*: Move AC_LIBOBJ invocations to module description.
34437         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
34438         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
34439         AC_LIBOBJ invocations from here...
34440         * modules/malloc-gnu (configure.ac): ... to here.
34441         * modules/malloc-posix (configure.ac): ... and here.
34443 2011-05-21  Bruno Haible  <bruno@clisp.org>
34445         lstat, openat: Respect rules for use of AC_LIBOBJ.
34446         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
34447         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
34448         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
34449         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
34450         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
34451         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
34452         here.
34453         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
34455 2011-05-21  Bruno Haible  <bruno@clisp.org>
34457         lseek: Move AC_LIBOBJ invocations to module description.
34458         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
34459         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
34460         * modules/lseek (configure.ac): ... to here.
34462 2011-05-21  Bruno Haible  <bruno@clisp.org>
34464         linkat: Move AC_LIBOBJ invocations to module description.
34465         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
34466         here...
34467         * modules/linkat (configure.ac): ... to here.
34469 2011-05-21  Bruno Haible  <bruno@clisp.org>
34471         link: Respect rules for use of AC_LIBOBJ.
34472         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
34473         * modules/link (configure.ac): ... to here.
34475 2011-05-21  Bruno Haible  <bruno@clisp.org>
34477         lchown: Move AC_LIBOBJ invocations to module description.
34478         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
34479         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
34480         * modules/lchown (configure.ac): ... to here.
34482 2011-05-21  Bruno Haible  <bruno@clisp.org>
34484         iswctype: Move AC_LIBOBJ invocations to module description.
34485         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
34486         here...
34487         * modules/iswctype (configure.ac): ... to here.
34489 2011-05-21  Bruno Haible  <bruno@clisp.org>
34491         iswblank: Move AC_LIBOBJ invocations to module description.
34492         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
34493         here...
34494         * modules/iswblank (configure.ac): ... to here.
34496 2011-05-21  Bruno Haible  <bruno@clisp.org>
34498         atanl: Move AC_LIBOBJ invocations to module description.
34499         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
34500         * modules/atanl (configure.ac): ... to here.
34502 2011-05-21  Bruno Haible  <bruno@clisp.org>
34504         acosl: Move AC_LIBOBJ invocations to module description.
34505         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
34506         * modules/acosl (configure.ac): ... to here.
34508 2011-05-21  Bruno Haible  <bruno@clisp.org>
34510         asinl: Respect rules for use of AC_LIBOBJ.
34511         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
34512         * modules/asinl (configure.ac): ... to here.
34514 2011-05-21  Bruno Haible  <bruno@clisp.org>
34516         tanl: Move AC_LIBOBJ invocations to module description.
34517         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
34518         * modules/tanl (configure.ac): ... to here.
34520 2011-05-21  Bruno Haible  <bruno@clisp.org>
34522         cosl: Move AC_LIBOBJ invocations to module description.
34523         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
34524         * modules/cosl (configure.ac): ... to here.
34526 2011-05-21  Bruno Haible  <bruno@clisp.org>
34528         sinl: Move AC_LIBOBJ invocations to module description.
34529         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
34530         * modules/sinl (configure.ac): ... to here.
34532 2011-05-21  Bruno Haible  <bruno@clisp.org>
34534         logl: Move AC_LIBOBJ invocations to module description.
34535         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
34536         * modules/logl (configure.ac): ... to here.
34538 2011-05-21  Bruno Haible  <bruno@clisp.org>
34540         expl: Move AC_LIBOBJ invocations to module description.
34541         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
34542         * modules/expl (configure.ac): ... to here.
34544 2011-05-21  Bruno Haible  <bruno@clisp.org>
34546         roundl: Move AC_LIBOBJ invocations to module description.
34547         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
34548         * modules/roundl (configure.ac): ... to here.
34550 2011-05-21  Bruno Haible  <bruno@clisp.org>
34552         round: Move AC_LIBOBJ invocations to module description.
34553         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
34554         * modules/round (configure.ac): ... to here.
34556 2011-05-21  Bruno Haible  <bruno@clisp.org>
34558         roundf: Move AC_LIBOBJ invocations to module description.
34559         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
34560         * modules/roundf (configure.ac): ... to here.
34562 2011-05-21  Bruno Haible  <bruno@clisp.org>
34564         truncl: Move AC_LIBOBJ invocations to module description.
34565         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
34566         * modules/truncl (configure.ac): ... to here.
34568 2011-05-21  Bruno Haible  <bruno@clisp.org>
34570         trunc: Move AC_LIBOBJ invocations to module description.
34571         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
34572         * modules/trunc (configure.ac): ... to here.
34574 2011-05-21  Bruno Haible  <bruno@clisp.org>
34576         truncf: Move AC_LIBOBJ invocations to module description.
34577         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
34578         * modules/truncf (configure.ac): ... to here.
34580 2011-05-21  Bruno Haible  <bruno@clisp.org>
34582         ceill: Move AC_LIBOBJ invocations to module description.
34583         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
34584         * modules/ceill (configure.ac): ... to here.
34586 2011-05-21  Bruno Haible  <bruno@clisp.org>
34588         ceil: Move AC_LIBOBJ invocations to module description.
34589         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
34590         * modules/ceil (configure.ac): ... to here.
34592 2011-05-21  Bruno Haible  <bruno@clisp.org>
34594         ceilf: Move AC_LIBOBJ invocations to module description.
34595         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
34596         * modules/ceilf (configure.ac): ... to here.
34598 2011-05-21  Bruno Haible  <bruno@clisp.org>
34600         floorl: Respect rules for use of AC_LIBOBJ.
34601         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
34602         * modules/floorl (configure.ac): ... to here.
34604 2011-05-21  Bruno Haible  <bruno@clisp.org>
34606         floor: Respect rules for use of AC_LIBOBJ.
34607         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
34608         * modules/floor (configure.ac): ... to here.
34610 2011-05-21  Bruno Haible  <bruno@clisp.org>
34612         floorf: Move AC_LIBOBJ invocations to module description.
34613         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
34614         * modules/floorf (configure.ac): ... to here.
34616 2011-05-20  Bruno Haible  <bruno@clisp.org>
34618         sqrtl: Respect rules for use of AC_LIBOBJ.
34619         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
34620         * modules/sqrtl (configure.ac): ... to here.
34622 2011-05-20  Bruno Haible  <bruno@clisp.org>
34624         ldexpl: Respect rules for use of AC_LIBOBJ.
34625         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
34626         * modules/ldexpl (configure.ac): ... to here.
34628 2011-05-20  Bruno Haible  <bruno@clisp.org>
34630         frexpl*: Respect rules for use of AC_LIBOBJ.
34631         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
34632         invocation from here...
34633         * modules/frexpl (configure.ac): ... to here.
34634         * modules/frexpl-nolibm (configure.ac): ... and here.
34636 2011-05-20  Bruno Haible  <bruno@clisp.org>
34638         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
34639         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
34640         invocation from here...
34641         * modules/frexp (configure.ac): ... to here.
34642         * modules/frexp-nolibm (configure.ac): ... and here.
34644 2011-05-20  Bruno Haible  <bruno@clisp.org>
34646         isnan: Respect rules for use of AC_LIBOBJ.
34647         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
34648         invocations here.
34649         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
34650         REPLACE_ISNAN.
34651         * modules/isnand (configure.ac): Likewise.
34652         * modules/isnanl (configure.ac): Likewise.
34654 2011-05-20  Bruno Haible  <bruno@clisp.org>
34656         isnanl*: Respect rules for use of AC_LIBOBJ.
34657         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
34658         invocation from here...
34659         * modules/isnanl (configure.ac): ... to here.
34660         * modules/isnanl-nolibm (configure.ac): ... and here.
34662 2011-05-20  Bruno Haible  <bruno@clisp.org>
34664         isnand*: Move AC_LIBOBJ invocations to module description.
34665         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
34666         invocation from here...
34667         * modules/isnand (configure.ac): ... to here.
34668         * modules/isnand-nolibm (configure.ac): ... and here.
34670 2011-05-20  Bruno Haible  <bruno@clisp.org>
34672         isnanf*: Move AC_LIBOBJ invocations to module description.
34673         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
34674         invocation from here...
34675         * modules/isnanf (configure.ac): ... to here.
34676         * modules/isnanf-nolibm (configure.ac): ... and here.
34678 2011-05-20  Bruno Haible  <bruno@clisp.org>
34680         isnan*: Separate the AC_LIBOBJ invocations.
34681         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
34682         AC_LIBOBJ invocation.
34683         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
34684         here.
34685         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
34686         AC_LIBOBJ invocation.
34687         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
34688         here.
34689         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
34690         AC_LIBOBJ invocation.
34691         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
34692         here.
34693         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
34695 2011-05-08  Bruno Haible  <bruno@clisp.org>
34697         isinf: Move AC_LIBOBJ invocations to module description.
34698         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
34699         * modules/isinf (configure.ac): ... to here.
34701 2011-05-08  Bruno Haible  <bruno@clisp.org>
34703         isfinite: Move AC_LIBOBJ invocations to module description.
34704         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
34705         * modules/isfinite (configure.ac): ... to here.
34707 2011-05-08  Bruno Haible  <bruno@clisp.org>
34709         isblank: Move AC_LIBOBJ invocations to module description.
34710         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
34711         here...
34712         * modules/isblank (configure.ac): ... to here.
34714 2011-05-08  Bruno Haible  <bruno@clisp.org>
34716         isapipe: Move AC_LIBOBJ invocations to module description.
34717         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
34718         gl_PREREQ_ISAPIPE invocations from here...
34719         * modules/isapipe (configure.ac): ... to here.
34720         (Depends-on): Update condition.
34722 2011-05-08  Bruno Haible  <bruno@clisp.org>
34724         ioctl: Move AC_LIBOBJ invocations to module description.
34725         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
34726         invocations from here...
34727         * modules/ioctl (configure.ac): ... to here.
34728         (Depends-on): Update condition.
34730 2011-05-08  Bruno Haible  <bruno@clisp.org>
34732         imaxdiv: Move AC_LIBOBJ invocations to module description.
34733         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
34734         invocations from here...
34735         * modules/imaxdiv (configure.ac): ... to here.
34737 2011-05-08  Bruno Haible  <bruno@clisp.org>
34739         imaxabs: Move AC_LIBOBJ invocations to module description.
34740         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
34741         invocations from here...
34742         * modules/imaxabs (configure.ac): ... to here.
34744 2011-05-08  Bruno Haible  <bruno@clisp.org>
34746         getaddrinfo: Move AC_LIBOBJ invocations to module description.
34747         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
34748         AC_LIBOBJ invocations from here...
34749         * modules/getaddrinfo (configure.ac): ... to here.
34750         (Depends-on): Add conditions.
34752 2011-05-08  Bruno Haible  <bruno@clisp.org>
34754         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
34755         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
34756         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
34757         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
34758         (gl_PREREQ_INET_PTON): ... from here.
34759         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
34760         gl_PREREQ_INET_PTON here.
34761         (Depends-on): Update condition.
34763 2011-05-08  Bruno Haible  <bruno@clisp.org>
34765         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
34766         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
34767         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
34768         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
34769         (gl_PREREQ_INET_NTOP): ... from here.
34770         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
34771         gl_PREREQ_INET_NTOP here.
34772         (Depends-on): Update condition.
34774 2011-05-08  Bruno Haible  <bruno@clisp.org>
34776         iconv_open: Move AC_LIBOBJ invocations to module description.
34777         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
34778         AC_LIBOBJ invocations from here...
34779         * modules/iconv_open (configure.ac): ... to here.
34781 2011-05-08  Bruno Haible  <bruno@clisp.org>
34783         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
34784         If module 'iconv_open' is among the main modules and module
34785         'iconv_open-utf' is among the tests dependencies, then
34786         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
34787         return the special iconv_t values. Therefore iconv() and iconv_close()
34788         must support these special iconv_t values, already in lib, not only in
34789         tests.
34790         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
34791         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
34792         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
34793         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
34794         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
34795         (Depends-on): Add the dependencies of iconv_open-utf.
34796         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
34797         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
34798         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
34800 2011-05-08  Bruno Haible  <bruno@clisp.org>
34802         group-member: Move AC_LIBOBJ invocations to module description.
34803         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
34804         gl_PREREQ_GROUP_MEMBER invocations from here...
34805         * modules/group-member (configure.ac): ... to here.
34807 2011-05-08  Bruno Haible  <bruno@clisp.org>
34809         grantpt: Move AC_LIBOBJ invocations to module description.
34810         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
34811         invocations from here...
34812         * modules/grantpt (configure.ac): ... to here.
34814 2011-05-08  Bruno Haible  <bruno@clisp.org>
34816         glob: Move AC_LIBOBJ invocations to module description.
34817         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
34818         from here...
34819         * modules/glob (configure.ac): ... to here.
34821 2011-05-08  Bruno Haible  <bruno@clisp.org>
34823         getusershell: Move AC_LIBOBJ invocations to module description.
34824         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
34825         Move AC_LIBOBJ invocation from here...
34826         * modules/getusershell (configure.ac): ... to here.
34827         (Depends-on): Update condition.
34829 2011-05-08  Bruno Haible  <bruno@clisp.org>
34831         gettimeofday: Move AC_LIBOBJ invocations to module description.
34832         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
34833         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
34834         gl_PREREQ_GETTIMEOFDAY invocations from here...
34835         * modules/gettimeofday (configure.ac): ... to here.
34837 2011-05-08  Bruno Haible  <bruno@clisp.org>
34839         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
34840         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
34841         just gl_FUNC_TZSET.
34842         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
34843         (gl_FUNC_TZSET_CLOBBER): Remove actions.
34844         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
34845         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
34847 2011-05-08  Bruno Haible  <bruno@clisp.org>
34849         getsubopt: Move AC_LIBOBJ invocations to module description.
34850         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
34851         gl_PREREQ_GETSUBOPT invocations from here...
34852         * modules/getsubopt (configure.ac): ... to here.
34854 2011-05-08  Bruno Haible  <bruno@clisp.org>
34856         getpass-gnu: Move AC_LIBOBJ invocations to module description.
34857         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
34858         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
34859         * modules/getpass-gnu (configure.ac): ... to here.
34861 2011-05-08  Bruno Haible  <bruno@clisp.org>
34863         getpass: Move AC_LIBOBJ invocations to module description.
34864         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
34865         gl_PREREQ_GETPASS invocations from here...
34866         * modules/getpass (configure.ac): ... to here.
34868 2011-05-08  Bruno Haible  <bruno@clisp.org>
34870         getpagesize: Move AC_LIBOBJ invocations to module description.
34871         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
34872         from here...
34873         * modules/getpagesize (configure.ac): ... to here.
34875 2011-05-08  Bruno Haible  <bruno@clisp.org>
34877         getopt: Move AC_LIBOBJ invocations to module description.
34878         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
34879         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
34880         invocations from here...
34881         * modules/getopt-gnu (configure.ac): ... to here.
34882         * modules/getopt-posix (configure.ac): ... and here.
34883         (Depends-on): Update condition.
34885 2011-05-08  Bruno Haible  <bruno@clisp.org>
34887         getopt, argp: Respect rules for use of AC_LIBOBJ.
34888         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
34889         (gl_REPLACE_GETOPT_ALWAYS): New macro.
34890         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
34891         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
34893 2011-05-08  Bruno Haible  <bruno@clisp.org>
34895         getlogin_r: Move AC_LIBOBJ invocations to module description.
34896         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
34897         gl_PREREQ_GETLOGIN_R invocations from here...
34898         * modules/getlogin_r (configure.ac): ... to here.
34900 2011-05-08  Bruno Haible  <bruno@clisp.org>
34902         getlogin: Move AC_LIBOBJ invocations to module description.
34903         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
34904         here...
34905         * modules/getlogin (configure.ac): ... to here.
34907 2011-05-08  Bruno Haible  <bruno@clisp.org>
34909         getloadavg: Move AC_LIBOBJ invocations to module description.
34910         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
34911         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
34912         * modules/getloadavg (configure.ac): ... to here.
34914 2011-05-08  Bruno Haible  <bruno@clisp.org>
34916         gethrxtime: Move AC_LIBOBJ invocations to module description.
34917         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
34918         LIB_GETHRXTIME from here...
34919         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
34920         invocations from here...
34921         * modules/gethrxtime (configure.ac): ... to here.
34923 2011-05-08  Bruno Haible  <bruno@clisp.org>
34925         gethostname: Move AC_LIBOBJ invocations to module description.
34926         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
34927         gl_PREREQ_GETHOSTNAME invocations from here...
34928         * modules/gethostname (configure.ac): ... to here.
34930 2011-05-08  Bruno Haible  <bruno@clisp.org>
34932         getgroups: Move AC_LIBOBJ invocations to module description.
34933         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
34934         here...
34935         * modules/getgroups (configure.ac): ... to here.
34937 2011-05-08  Bruno Haible  <bruno@clisp.org>
34939         getdtablesize: Move AC_LIBOBJ invocations to module description.
34940         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
34941         invocation from here...
34942         * modules/getdtablesize (configure.ac): ... to here.
34944 2011-05-08  Bruno Haible  <bruno@clisp.org>
34946         getdomainname: Move AC_LIBOBJ invocations to module description.
34947         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
34948         gl_PREREQ_GETDOMAINNAME invocations from here...
34949         * modules/getdomainname (configure.ac): ... to here.
34951 2011-05-08  Bruno Haible  <bruno@clisp.org>
34953         getline: Move AC_LIBOBJ invocations to module description.
34954         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
34955         invocations from here...
34956         * modules/getline (configure.ac): ... to here.
34958 2011-05-08  Bruno Haible  <bruno@clisp.org>
34960         getline: Simplify.
34961         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
34962         It's already handled through the module dependency.
34964 2011-05-08  Bruno Haible  <bruno@clisp.org>
34966         getdelim: Move AC_LIBOBJ invocations to module description.
34967         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
34968         and gl_PREREQ_GETDELIM invocations from here...
34969         * modules/getdelim (configure.ac): ... to here.
34970         (Depends-on): Fix condition.
34972 2011-05-08  Bruno Haible  <bruno@clisp.org>
34974         getcwd: Move AC_LIBOBJ invocations to module description.
34975         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
34976         invocations from here...
34977         * modules/getcwd (configure.ac): ... to here.
34979 2011-05-08  Bruno Haible  <bruno@clisp.org>
34981         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
34982         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
34983         here...
34984         * modules/getcwd-lgpl (configure.ac): ... to here.
34986 2011-05-07  Bruno Haible  <bruno@clisp.org>
34988         crypto/gc: Move AC_LIBOBJ invocations to module description.
34989         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
34990         * modules/crypto/gc (configure.ac): ... to here.
34992 2011-05-07  Bruno Haible  <bruno@clisp.org>
34994         fwriting: Move AC_LIBOBJ invocations to module description.
34995         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
34996         here...
34997         * modules/fwriting (configure.ac): ... to here.
34999 2011-05-07  Bruno Haible  <bruno@clisp.org>
35001         fwritable: Move AC_LIBOBJ invocations to module description.
35002         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
35003         here...
35004         * modules/fwritable (configure.ac): ... to here.
35006 2011-05-07  Bruno Haible  <bruno@clisp.org>
35008         futimens: Move AC_LIBOBJ invocations to module description.
35009         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
35010         here...
35011         * modules/futimens (configure.ac): ... to here.
35013 2011-05-07  Bruno Haible  <bruno@clisp.org>
35015         ftruncate: Move AC_LIBOBJ invocations to module description.
35016         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
35017         gl_PREREQ_FTRUNCATE invocations from here...
35018         * modules/ftruncate (configure.ac): ... to here.
35020 2011-05-07  Bruno Haible  <bruno@clisp.org>
35022         fsync: Move AC_LIBOBJ invocations to module description.
35023         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
35024         invocations from here...
35025         * modules/fsync (configure.ac): ... to here.
35027 2011-05-07  Bruno Haible  <bruno@clisp.org>
35029         fsusage: Move AC_LIBOBJ invocations to module description.
35030         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
35031         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
35032         * modules/fsusage (configure.ac): ... to here.
35034 2011-05-07  Bruno Haible  <bruno@clisp.org>
35036         freopen: Move AC_LIBOBJ invocations to module description.
35037         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
35038         invocations from here...
35039         * modules/freopen (configure.ac): ... to here.
35041 2011-05-07  Bruno Haible  <bruno@clisp.org>
35043         free: Move AC_LIBOBJ invocations to module description.
35044         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
35045         invocations from here...
35046         * modules/free (configure.ac): ... to here.
35048 2011-05-07  Bruno Haible  <bruno@clisp.org>
35050         freadable: Move AC_LIBOBJ invocations to module description.
35051         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
35052         here...
35053         * modules/freadable (configure.ac): ... to here.
35055 2011-05-07  Bruno Haible  <bruno@clisp.org>
35057         fpurge: Move AC_LIBOBJ invocations to module description.
35058         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
35059         invocations from here...
35060         * modules/fpurge (configure.ac): ... to here.
35062 2011-05-07  Bruno Haible  <bruno@clisp.org>
35064         fpending: Move AC_LIBOBJ invocations to module description.
35065         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
35066         gl_FUNC_FPENDING.
35067         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
35068         invocations from here...
35069         * modules/fpending (configure.ac): ... to here.
35071 2011-05-07  Bruno Haible  <bruno@clisp.org>
35073         fopen: Move AC_LIBOBJ invocations to module description.
35074         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
35075         invocations from here...
35076         * modules/fopen (configure.ac): ... to here.
35078 2011-05-07  Bruno Haible  <bruno@clisp.org>
35080         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
35081         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
35082         gl_FUNC_FNMATCH_POSIX.
35083         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
35084         invocations from here...
35085         * modules/fnmatch (configure.ac): ... to here.
35086         * modules/fnmatch-gnu (configure.ac): ... and here.
35088 2011-05-07  Bruno Haible  <bruno@clisp.org>
35090         flock: Move AC_LIBOBJ invocations to module description.
35091         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
35092         invocations from here...
35093         * modules/flock (configure.ac): ... to here.
35095 2011-05-07  Bruno Haible  <bruno@clisp.org>
35097         fileblocks: Move AC_LIBOBJ invocations to module description.
35098         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
35099         gl_PREREQ_FILEBLOCKS invocations from here...
35100         * modules/fileblocks (configure.ac): ... to here.
35102 2011-05-06  Bruno Haible  <bruno@clisp.org>
35104         fflush: Move AC_LIBOBJ invocations to module description.
35105         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
35106         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
35107         invocations from here...
35108         * modules/fflush (configure.ac): ... to here.
35110 2011-05-06  Bruno Haible  <bruno@clisp.org>
35112         fdopendir: Move AC_LIBOBJ invocations to module description.
35113         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
35114         here...
35115         * modules/fdopendir (configure.ac): ... to here.
35116         (Depends-on): Improve conditions.
35118 2011-05-06  Bruno Haible  <bruno@clisp.org>
35120         _Exit: Move AC_LIBOBJ invocations to module description.
35121         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
35122         invocations from here...
35123         * modules/_Exit (configure.ac): ... to here.
35125 2011-05-21  Bruno Haible  <bruno@clisp.org>
35127         euidaccess: Respect rules for use of AC_LIBOBJ.
35128         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
35129         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
35130         from here...
35131         * modules/euidaccess (configure.ac): ... to here.
35133 2011-05-06  Bruno Haible  <bruno@clisp.org>
35135         error: Move AC_LIBOBJ invocations to module description.
35136         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
35137         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
35138         invocations from here...
35139         * modules/error (configure.ac): ... to here.
35141 2011-05-06  Bruno Haible  <bruno@clisp.org>
35143         duplocale: Move AC_LIBOBJ invocations to module description.
35144         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
35145         gl_PREREQ_DUPLOCALE invocations from here...
35146         * modules/duplocale (configure.ac): ... to here.
35148 2011-05-05  Bruno Haible  <bruno@clisp.org>
35150         dirfd: Move AC_LIBOBJ invocations to module description.
35151         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
35152         gl_FUNC_DIRFD.
35153         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
35154         here...
35155         * modules/dirfd (configure.ac): ... to here.
35156         (Depends-on): Fix condition.
35158 2011-05-05  Bruno Haible  <bruno@clisp.org>
35160         chown: Respect rules for use of AC_LIBOBJ.
35161         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
35162         * modules/chown (configure.ac): ... to here.
35164 2011-05-05  Bruno Haible  <bruno@clisp.org>
35166         chdir-long: Move AC_LIBOBJ invocations to module description.
35167         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
35168         gl_PREREQ_CHDIR_LONG invocations from here...
35169         * modules/chdir-long (configure.ac): ... to here.
35171 2011-05-05  Bruno Haible  <bruno@clisp.org>
35173         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
35174         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
35175         from here...
35176         * modules/canonicalize-lgpl (configure.ac): ... to here.
35178 2011-05-05  Bruno Haible  <bruno@clisp.org>
35180         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
35181         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
35182         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
35183         REPLACE_CALLOC.
35184         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
35185         * modules/calloc-gnu (configure.ac): Likewise.
35187 2011-05-05  Bruno Haible  <bruno@clisp.org>
35189         btowc: Move AC_LIBOBJ invocations to module description.
35190         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
35191         invocations from here...
35192         * modules/btowc (configure.ac): ... to here.
35194 2011-05-21  Bruno Haible  <bruno@clisp.org>
35196         atexit: Move AC_LIBOBJ invocations to module description.
35197         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
35198         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
35199         here...
35200         * modules/atexit (configure.ac): ... to here.
35202 2011-05-05  Bruno Haible  <bruno@clisp.org>
35204         atoll: Move AC_LIBOBJ invocations to module description.
35205         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
35206         invocations from here...
35207         * modules/atoll (configure.ac): ... to here.
35209 2011-05-05  Bruno Haible  <bruno@clisp.org>
35211         argz: Move AC_LIBOBJ invocations to module description.
35212         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
35213         * modules/argz (configure.ac): ... to here.
35215 2011-05-05  Bruno Haible  <bruno@clisp.org>
35217         alphasort: Move AC_LIBOBJ invocations to module description.
35218         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
35219         gl_PREREQ_ALPHASORT invocations from here...
35220         * modules/alphasort (configure.ac): ... to here.
35222 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
35224         verify: new macro verify_expr; verify_true deprecated
35225         * NEWS: Mention this.
35226         * doc/verify.texi (Compile-time Assertions): Document this.
35227         * lib/verify.h (verify_true): Deprecate.
35228         (verify_expr): New macro.
35229         * tests/test-verify.c (function): Test verify_expr.
35231 2011-06-14  Jim Meyering  <meyering@redhat.com>
35233         init.sh: give more portable redirection-related advice in a comment
35234         * tests/init.sh (stderr_fileno_): Update the advice in comments.
35235         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
35236         for lots of discussion.  Stefano Lattarini suggested the solution
35237         of putting "9>&2" after the command.  Reported by Bruno Haible.
35239 2011-06-13  Bruno Haible  <bruno@clisp.org>
35241         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
35242         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
35243         'none'.
35245 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
35247         ftoastr: use strtof only if HAVE_STRTOF
35248         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
35249         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
35250         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
35251         * modules/ftoastr (configure.ac): Check for strtof.
35253 2011-06-13  Bruno Haible  <bruno@clisp.org>
35255         gnulib-tool: Addendum to 2011-06-08 commit.
35256         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
35257         and --witness-c-macro have been given, augment AM_CPPFLAGS.
35259 2011-06-13  Bruno Haible  <bruno@clisp.org>
35261         fseeko: Provide a non-inline replacement of fseek().
35262         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
35263         * modules/fseeko (Depends-on): Add fseek.
35264         * modules/fseek (License): Change to LGPLv2+.
35266 2011-06-13  Bruno Haible  <bruno@clisp.org>
35268         ftello: Provide a non-inline replacement of ftell().
35269         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
35270         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
35271         not have ftello() (such as on mingw).
35272         * modules/ftello (Depends-on): Add ftell.
35273         * modules/ftell (License): Change to LGPLv2+.
35275 2011-05-07  Bruno Haible  <bruno@clisp.org>
35277         ftell: Move AC_LIBOBJ invocations to module description.
35278         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
35279         * modules/ftell (configure.ac): ... to here.
35281 2011-05-07  Bruno Haible  <bruno@clisp.org>
35283         ftello: Respect rules for use of AC_LIBOBJ.
35284         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
35285         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
35286         here...
35287         * modules/ftello (configure.ac): ... to here.
35289 2011-05-07  Bruno Haible  <bruno@clisp.org>
35291         fseeko: Simplify.
35292         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
35293         (gl_FUNC_FSEEKO): Inline it here.
35295 2011-05-07  Bruno Haible  <bruno@clisp.org>
35297         fseek: Move AC_LIBOBJ invocations to module description.
35298         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
35299         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
35300         * modules/fseek (configure.ac): ... to here.
35302 2011-05-07  Bruno Haible  <bruno@clisp.org>
35304         fseek: Respect rules for use of AC_LIBOBJ.
35305         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
35306         here...
35307         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
35309 2011-05-07  Bruno Haible  <bruno@clisp.org>
35311         fseeko: Respect rules for use of AC_LIBOBJ.
35312         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
35313         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
35314         here...
35315         * modules/fseeko (configure.ac): ... to here.
35317 2011-06-13  Bruno Haible  <bruno@clisp.org>
35319         gnulib-tool: Allow comments in the 'Depends-on' section.
35320         * doc/gnulib.texi (Module description): Mention comment syntax in the
35321         Depends-on section.
35322         * gnulib-tool (func_get_dependencies): Filter out comment lines.
35324 2011-06-13  Bruno Haible  <bruno@clisp.org>
35326         file-set.h: guard __attibute__ use, now that it's not always defined
35327         * lib/file-set.h (record_file): Use __attribute__ only with compiler
35328         versions that support it.  This fixes a coreutils build failure with
35329         the vendor cc on HP-UX 11.31.
35331 2011-06-12  Bruno Haible  <bruno@clisp.org>
35333         acl: Add support for HP-UX >= 11.11 JFS ACLs.
35334         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
35335         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
35336         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
35337         (acl, aclsort): New declarations.
35338         (aclv_nontrivial): New declaration.
35339         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
35340         (file_has_acl): Read also the second kind of HP-UX ACLs.
35341         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
35342         kind of HP-UX ACLs if the first kind fails.
35343         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
35344         second kind of HP-UX ACLs.
35345         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
35346         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
35347         agree.
35348         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
35349         hpuxjfs.
35350         Handle hpuxjfs.
35351         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
35352         hpuxjfs.
35353         Handle hpuxjfs.
35354         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
35355         (func_test_same_acls): Use both lsacl and getacl.
35356         Handle hpuxjfs.
35357         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
35358         (func_test_same_acls): Use both lsacl and getacl.
35359         Handle hpuxjfs.
35361 2011-06-12  Bruno Haible  <bruno@clisp.org>
35363         acl: Complete the 2010-08-10 fix.
35364         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
35365         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
35366         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
35367         explicitly.
35368         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
35369         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
35371 2011-06-12  Bruno Haible  <bruno@clisp.org>
35373         spawn-pipe tests: Comments.
35374         * tests/test-spawn-pipe-child.c (main): Update comment.
35375         Reported by James Youngman <jay@gnu.org>.
35377 2011-06-11  James Youngman  <jay@gnu.org>
35379         New module 'stat-size'.
35380         * modules/stat-size: New module.  Provides macros for accessing
35381         file size information in instances of struct stat.  Depends on the
35382         fileblocks module because it calls st_blocks.
35383         * lib/stat-size.h: New file, adapted from coreutils' system.h.
35384         * doc/gnulib.texi: Include stat-size.texi.
35385         * doc/stat-size.texi: Documentation for this module.
35386         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
35387         * m4/fileblocks.m4: Mention that stat-size depends on the call to
35388         AC_STRUCT_ST_BLOCKS.
35390 2011-06-09  Bruno Haible  <bruno@clisp.org>
35392         thread: Support pthreads-win32.
35393         * lib/glthread/thread.h (gl_thread_self): Define differently on
35394         pthreads-win32.
35395         (gl_null_thread): New declaration.
35396         (gl_thread_self_pointer): New macro.
35397         * lib/glthread/thread.c (gl_null_thread): New constant.
35398         * tests/test-lock.c: Use gl_thread_self_pointer instead of
35399         gl_thread_self.
35400         * tests/test-tls.c: Likewise.
35401         Suggested by Paul Eggert. Reported by Eric Blake.
35403 2011-06-09  Bruno Haible  <bruno@clisp.org>
35405         thread: Fix confusion between NULL and 0.
35406         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
35407         Reported by Paul Eggert.
35409 2011-06-09  Bruno Haible  <bruno@clisp.org>
35411         spawn-pipe tests: Avoid test failure on HP-UX 11.
35412         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
35413         is closed.
35415 2011-06-09  Bruno Haible  <bruno@clisp.org>
35417         acl tests: Fix compilation error on HP-UX 11.
35418         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
35420 2011-06-09  Bruno Haible  <bruno@clisp.org>
35422         rmdir: Avoid test failure on HP-UX 10.20.
35423         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
35424         EEXIST.
35426 2011-06-08  Eric Blake  <eblake@redhat.com>
35428         perror: fix test on mingw
35429         * modules/perror-tests (Depends-on): Add dup2.
35431         strerror_r-posix: fix on MacOS
35432         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
35433         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
35434         logic bug.
35435         * lib/strerror_r.c (strerror_r): Fix the bug.
35436         * lib/strerror.c (strerror): Likewise.
35437         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
35438         problem.
35439         * doc/posix-functions/strerror.texi (strerror): Likewise.
35440         * doc/posix-functions/perror.texi (perror): Likewise.
35441         * tests/test-strerror.c (main): Enhance test.
35442         * tests/test-strerror_r.c (main): Likewise.
35444 2011-06-08  Bruno Haible  <bruno@clisp.org>
35446         gnulib-tool: Better isolation between different gnulib-tool invocations.
35447         * gnulib-tool: New option --witness-c-macro.
35448         (witness_c_macro): New variable.
35449         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
35450         AM_CPPFLAGS define it as a C macro.
35451         (func_emit_tests_Makefile_am): Likewise.
35452         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
35453         read it from there.
35454         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
35455         m4_define, not AC_DEFUN.
35456         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
35457         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
35458         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
35459         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
35460         s|...|...|, to substitute the values of the GNULIB_* module indicator
35461         variables.
35462         * modules/dirent (Makefile.am): Likewise.
35463         * modules/fcntl-h (Makefile.am): Likewise.
35464         * modules/iconv-h (Makefile.am): Likewise.
35465         * modules/langinfo (Makefile.am): Likewise.
35466         * modules/locale (Makefile.am): Likewise.
35467         * modules/math (Makefile.am): Likewise.
35468         * modules/netdb (Makefile.am): Likewise.
35469         * modules/poll-h (Makefile.am): Likewise.
35470         * modules/pty (Makefile.am): Likewise.
35471         * modules/search (Makefile.am): Likewise.
35472         * modules/signal (Makefile.am): Likewise.
35473         * modules/spawn (Makefile.am): Likewise.
35474         * modules/stdio (Makefile.am): Likewise.
35475         * modules/stdlib (Makefile.am): Likewise.
35476         * modules/string (Makefile.am): Likewise.
35477         * modules/sys_ioctl (Makefile.am): Likewise.
35478         * modules/sys_select (Makefile.am): Likewise.
35479         * modules/sys_socket (Makefile.am): Likewise.
35480         * modules/sys_stat (Makefile.am): Likewise.
35481         * modules/sys_times (Makefile.am): Likewise.
35482         * modules/sys_utsname (Makefile.am): Likewise.
35483         * modules/sys_wait (Makefile.am): Likewise.
35484         * modules/termios (Makefile.am): Likewise.
35485         * modules/time (Makefile.am): Likewise.
35486         * modules/unistd (Makefile.am): Likewise.
35487         * modules/wchar (Makefile.am): Likewise.
35489 2011-06-08  Eric Blake  <eblake@redhat.com>
35491         strerror: simplify replacement
35492         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
35493         * modules/strerror (configure.ac): No prereqs needed here...
35494         * modules/strerror-override (configure.ac): ...but this needs it.
35495         (Files): Add file for needed prereq macro.
35497 2011-06-08  Bruno Haible  <bruno@clisp.org>
35499         strerror_r-posix: Tweaks.
35500         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
35501         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
35502         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
35503         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
35504         (gl_FUNC_STRERROR_R): ... to here.
35505         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
35507 2011-06-07  Eric Blake  <eblake@redhat.com>
35509         perror: document fixed bugs
35510         * doc/posix-functions/perror.texi (perror): Document recent
35511         patches.
35513 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
35515         stat-time: get_stat_birthtime failure is better-defined
35516         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
35517         return a timestamp whose tv_sec and tv_nsec values are both -1.
35518         Previously, the spec said only that the tv_nsec value was negative.
35519         This upward-compatible change simplifies GNU tar a bit.
35521 2011-06-07  Eric Blake  <eblake@redhat.com>
35523         strerror_r-posix: work around cygwin 1.7.9
35524         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
35525         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
35526         bug without replacing strerror_r.
35527         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
35528         strerror_r is buggy, but without requiring strerror_r compilation.
35529         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
35531         test-perror: relax test to ignore cygwin bug
35532         * tests/test-perror2.c (main): Relax test on requiring detection
35533         of stream errors, and use unbuffered stream.
35534         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
35535         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
35536         * doc/posix-functions/fputc.texi (fputc): Likewise.
35537         * doc/posix-functions/fputs.texi (fputs): Likewise.
35538         * doc/posix-functions/fputws.texi (fputws): Likewise.
35539         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
35540         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
35541         * doc/posix-functions/getopt.texi (getopt): Likewise.
35542         * doc/posix-functions/perror.texi (perror): Likewise.
35543         * doc/posix-functions/printf.texi (printf): Likewise.
35544         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
35545         * doc/posix-functions/psignal.texi (psignal): Likewise.
35546         * doc/posix-functions/putc.texi (putc): Likewise.
35547         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
35548         Likewise.
35549         * doc/posix-functions/putchar.texi (putchar): Likewise.
35550         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
35551         Likewise.
35552         * doc/posix-functions/puts.texi (puts): Likewise.
35553         * doc/posix-functions/putwc.texi (putwc): Likewise.
35554         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
35555         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
35556         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
35557         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
35558         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
35559         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
35560         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35561         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
35563 2011-05-22  Bruno Haible  <bruno@clisp.org>
35565         strerror: Move AC_LIBOBJ invocations to module description.
35566         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
35567         gl_PREREQ_STRERROR invocations from here...
35568         * modules/strerror (configure.ac): ... to here.
35570 2011-05-21  Bruno Haible  <bruno@clisp.org>
35572         perror: Use common idiom.
35573         * modules/perror (configure.ac): Reorder statements.
35575 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
35577         tests: fix usage message in 'mktempd_'
35578         * tests/init.sh (mktempd_): In the usage message, use literal
35579         'mktempd_', not '$ME' (which is even undefined), as the name of
35580         the subroutine.
35582 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
35584         tests init: new function 'fatal_', for hard errors
35585         Before this patch, the only way offered by tests/init.sh to
35586         properly signal a hard error was the `framework_failure_'
35587         function.  But the error message issued by that function,
35588         as its name would suggest, refers to a set-up failure in the
35589         testsuite, while hard errors can obviously also be due to
35590         other reasons.  The best way to fix this inconsistency is to
35591         introduce a new function with a more general error message.
35592         * tests/init.sh (fatal_): New function.
35594 2011-06-06  Eric Blake  <eblake@redhat.com>
35596         canonicalize-lgpl: use common idiom
35597         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
35598         over newer POSIX -Rf.
35599         Reported by Bruno Haible.
35601         canonicalize-lgpl: work around AIX realpath bug
35602         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
35603         * doc/posix-functions/realpath.texi (realpath): Document it.
35604         Reported by Bruno Haible.
35606         strerror: work around FreeBSD bug
35607         * lib/strerror.c (strerror): Special case 0.
35608         Reported by Bruno Haible.
35610         strerror-override: avoid bloating errno module
35611         * modules/errno (Files, configure.ac): Move replacement strings...
35612         * modules/strerror-override: ...to new module.
35613         * modules/strerror (Depends-on): Add strerror-override.
35614         * modules/strerror_r-posix (Depends-on): Likewise.
35615         * MODULES.html.sh: Document new module.
35616         Reported by Bruno Haible.
35618 2011-06-06  Bruno Haible  <bruno@clisp.org>
35620         spawn-pipe tests: Rename program.
35621         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
35622         * tests/test-spawn-pipe-child.c: Update comment.
35623         * tests/test-spawn-pipe.sh: Update.
35624         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
35626         spawn-pipe tests: Link the child program only against libc.
35627         * tests/test-spawn-pipe-child.c: New file, extracted from
35628         tests/test-spawn-pipe.c.
35629         (main): Expect only one argument.
35630         (is_open): New function, copied from tests/test-pipe.c.
35631         * tests/test-spawn-pipe.c: Don't include <errno.h>.
35632         (child_main): Remove function.
35633         (test_pipe): Pass only one argument to the child program.
35634         (main): Remove child process code. Expect the child program's name as
35635         first argument.
35636         * tests/test-spawn-pipe.sh: Pass the child program's name as first
35637         argument.
35638         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
35639         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
35640         test-spawn-pipe-child against no libraries.
35642 2011-06-06  Bruno Haible  <bruno@clisp.org>
35644         careadlinkat: Avoid mismatch between ssize_t and int.
35645         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
35646         * lib/careadlinkat.c (careadlinkatcwd): Define always.
35648 2011-06-06  Jim Meyering  <meyering@redhat.com>
35650         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
35651         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
35652         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
35654 2011-06-05  Bruno Haible  <bruno@clisp.org>
35656         ansi-c++-opt: Interoperability with libtool.
35657         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
35658         set the variable to "no", not to ":".
35659         * NEWS: Mention the change.
35661 2011-06-05  Bruno Haible  <bruno@clisp.org>
35663         acl: Fix test failure on AIX 7.
35664         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
35665         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
35667 2011-06-05  Bruno Haible  <bruno@clisp.org>
35669         pipe-filter-ii: Fix test failure on AIX and IRIX.
35670         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
35671         with EAGAIN, retry with a smaller buffer size.
35673 2011-06-05  Bruno Haible  <bruno@clisp.org>
35675         localename: Fix link dependencies.
35676         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
35677         * modules/localename-tests (Makefile.am): Link test-localename with
35678         $(LIBTHREAD).
35680 2011-06-05  Bruno Haible  <bruno@clisp.org>
35682         error: Avoid gcc warning.
35683         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
35685 2011-06-05  Bruno Haible  <bruno@clisp.org>
35687         unsetenv: Avoid gcc warning.
35688         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
35690 2011-06-05  Bruno Haible  <bruno@clisp.org>
35692         setenv: Avoid gcc warning.
35693         * lib/setenv.c (setenv): Provide declaration if system lacks it.
35695 2011-06-05  Bruno Haible  <bruno@clisp.org>
35697         sys_select: Ensure memset is declared also on AIX 7.
35698         * lib/sys_select.in.h: Include <string.h> also on AIX.
35699         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
35700         self-contained also on AIX 7.1.
35702 2011-06-04  Jim Meyering  <meyering@redhat.com>
35704         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
35705         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
35706         function name, "error".
35707         (_gl_translatable_diag_func_re): New configurable variable.
35709 2011-06-04  Bruno Haible  <bruno@clisp.org>
35711         getopt: Avoid gcc warning.
35712         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
35714 2011-06-04  Bruno Haible  <bruno@clisp.org>
35716         strerror_r: Fix comments.
35717         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
35718         commit.
35720 2011-06-04  Bruno Haible  <bruno@clisp.org>
35722         perror: Fix compilation error.
35723         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
35724         Undefine fprintf, not sprintf.
35725         * modules/perror (Depends-on): Remove intprops, verify.
35727 2011-06-04  Bruno Haible  <bruno@clisp.org>
35729         setlocale: Enable replacement on Cygwin 1.5.
35730         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
35731         Cygwin 1.5.x.
35732         * doc/posix-functions/setlocale.texi: Mention that the problem with the
35733         LC_CTYPE category also exists on Cygwin 1.5.x.
35735 2011-06-04  Bruno Haible  <bruno@clisp.org>
35737         strerror-override: Don't disable symbol renamings.
35738         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
35739         * lib/strerror-override.c: Include config.h.
35740         (strerror_override): Don't undefine.
35742 2011-06-03  Bruno Haible  <bruno@clisp.org>
35744         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
35745         * lib/localename.h: Update copyright header.
35746         * lib/localename.c: Likewise.
35747         * lib/relocatable.h: Likewise.
35748         * lib/relocatable.c: Likewise.
35750 2011-06-02  Bruno Haible  <bruno@clisp.org>
35752         doc: Fix a module name.
35753         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
35755 2011-06-02  Bruno Haible  <bruno@clisp.org>
35757         pipe2: Remove dependency on 'nonblocking' module.
35758         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
35759         O_NONBLOCK is defined by gnulib.
35760         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
35761         is zero.
35762         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
35763         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
35764         defined by gnulib.
35765         (get_nonblocking_flag): New function.
35766         (main): Test O_NONBLOCK flag only if it is nonzero.
35767         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
35769 2011-06-03  Jim Meyering  <meyering@redhat.com>
35771         maint: three new prohibit-header-without-use rules
35772         Prohibit use of cloexec.h, posixver.h, same.h without use.
35773         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
35774         (sc_prohibit_posixver_without_use): Likewise.
35775         (sc_prohibit_same_without_use): Likewise.
35777 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
35779         allocator: 'die' routine is now given requested size
35780         * lib/allocator.h (struct allocator.die): New size arg.
35781         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
35782         If the actual problem is an ssize_t limitation, not a size_t or
35783         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
35785 2011-06-01  Eric Blake  <eblake@redhat.com>
35787         strerror: drop strerror_r dependency
35788         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
35789         * lib/strerror-override.c (strerror_override): ...to new file.
35790         * lib/strerror-override.h: Add prototype.
35791         * lib/strerror-impl.h: Delete.
35792         * lib/strerror.c (strerror): New implementation.
35793         * modules/errno (Files): Add new files.
35794         (configure.ac): Compile new file as appropriate.
35795         * modules/strerror (Files): Drop unused file.
35796         (Depends-on): Drop strerror_r-posix.
35797         * MODULES.html.sh: Document strerror_r-posix.
35798         Requested by Sam Steingold.
35800         perror: call strerror_r directly
35801         * modules/perror (Files): Drop strerror-impl.h.
35802         * lib/perror.c (perror): Use our own stack buffer, rather than
35803         calling a wrapper that uses static storage.
35804         * doc/posix-functions/perror.texi (perror): Document a limitation
35805         of our replacement.
35807         strerror_r: fix includes for FreeBSD
35808         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
35809         since we use abort on some platforms.
35810         Reported by Matthias Bolte.
35812 2011-05-31  Bruno Haible  <bruno@clisp.org>
35814         Fix link errors in tests: openat-die uses gettext-h.
35815         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
35816         against $(LIBINTL).
35817         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
35818         against $(LIBINTL).
35819         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
35820         $(LIBINTL).
35821         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
35822         against $(LIBINTL).
35823         * modules/linkat-tests (Makefile.am): Link test-linkat against
35824         $(LIBINTL).
35825         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
35826         $(LIBINTL).
35827         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
35828         against $(LIBINTL).
35829         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
35830         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
35831         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
35832         $(LIBINTL).
35833         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
35834         $(LIBINTL).
35835         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
35836         $(LIBINTL).
35837         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35839 2011-05-31  Bruno Haible  <bruno@clisp.org>
35841         Fix link errors in tests: wait-process uses gettext-h.
35842         * modules/nonblocking-pipe-tests (Makefile.am): Set
35843         test_nonblocking_pipe_main_LDADD.
35844         * modules/nonblocking-socket-tests (Makefile.am): Link
35845         test-nonblocking-socket-main against $(LIBINTL).
35846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35848 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35850         assert-h: work around 'verify' incompatibility
35851         * lib/verify.h: Use @...@ directives, not ifdef.
35852         * modules/assert-h (assert.h): Implement the directives.
35853         (assert.h): Substitute the symbol-prefix more consistently.
35855 2011-05-29  Jim Meyering  <meyering@redhat.com>
35857         trim: remove three superfluous assignments
35858         * lib/trim.c (trim2): Remove three superfluous assignments
35859         and correct brace positioning.
35861 2011-05-29  Bruno Haible  <bruno@clisp.org>
35863         wctype-h: Avoid namespace pollution on Solaris 2.6.
35864         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
35865         identifiers.
35866         * doc/posix-headers/wctype.texi: Mention the problem.
35867         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35869 2011-05-28  Jim Meyering  <meyering@redhat.com>
35871         parse-datetime.y: accommodate -Wstrict-overflow
35872         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
35873         placate -Wstrict-overflow.
35875         trim: avoid a warning from -O2 -Wstrict-overflow
35876         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
35878 2011-05-29  Bruno Haible  <bruno@clisp.org>
35880         gnulib-tool: Fix bug in yesterday's commit.
35881         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
35882         twice.
35884 2011-05-29  Bruno Haible  <bruno@clisp.org>
35886         Allow multiple gnulib generated include files to be combined.
35887         * gnulib-tool (func_compute_include_guard_prefix): New function.
35888         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
35889         ${gl_include_guard_prefix} references.
35890         (func_import, func_create_testdir): Invoke
35891         func_compute_include_guard_prefix.
35892         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
35893         * lib/ctype.in.h: Likewise.
35894         * lib/dirent.in.h: Likewise.
35895         * lib/errno.in.h: Likewise.
35896         * lib/fcntl.in.h: Likewise.
35897         * lib/float.in.h: Likewise.
35898         * lib/getopt.in.h: Likewise.
35899         * lib/iconv.in.h: Likewise.
35900         * lib/langinfo.in.h: Likewise.
35901         * lib/locale.in.h: Likewise.
35902         * lib/math.in.h: Likewise.
35903         * lib/netdb.in.h: Likewise.
35904         * lib/netinet_in.in.h: Likewise.
35905         * lib/poll.in.h: Likewise.
35906         * lib/pthread.in.h: Likewise.
35907         * lib/pty.in.h: Likewise.
35908         * lib/sched.in.h: Likewise.
35909         * lib/se-selinux.in.h: Likewise.
35910         * lib/search.in.h: Likewise.
35911         * lib/signal.in.h: Likewise.
35912         * lib/spawn.in.h: Likewise.
35913         * lib/stdarg.in.h: Likewise.
35914         * lib/stddef.in.h: Likewise.
35915         * lib/stdint.in.h: Likewise.
35916         * lib/stdio.in.h: Likewise.
35917         * lib/stdlib.in.h: Likewise.
35918         * lib/string.in.h: Likewise.
35919         * lib/strings.in.h: Likewise.
35920         * lib/sys_file.in.h: Likewise.
35921         * lib/sys_ioctl.in.h: Likewise.
35922         * lib/sys_select.in.h: Likewise.
35923         * lib/sys_socket.in.h: Likewise.
35924         * lib/sys_stat.in.h: Likewise.
35925         * lib/sys_time.in.h: Likewise.
35926         * lib/sys_times.in.h: Likewise.
35927         * lib/sys_uio.in.h: Likewise.
35928         * lib/sys_utsname.in.h: Likewise.
35929         * lib/sys_wait.in.h: Likewise.
35930         * lib/sysexits.in.h: Likewise.
35931         * lib/termios.in.h: Likewise.
35932         * lib/time.in.h: Likewise.
35933         * lib/unistd.in.h: Likewise.
35934         * lib/wchar.in.h: Likewise.
35935         * lib/wctype.in.h: Likewise.
35936         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
35937         * modules/ctype (Makefile.am): Likewise.
35938         * modules/dirent (Makefile.am): Likewise.
35939         * modules/errno (Makefile.am): Likewise.
35940         * modules/fcntl-h (Makefile.am): Likewise.
35941         * modules/float (Makefile.am): Likewise.
35942         * modules/getopt-posix (Makefile.am): Likewise.
35943         * modules/iconv-h (Makefile.am): Likewise.
35944         * modules/langinfo (Makefile.am): Likewise.
35945         * modules/locale (Makefile.am): Likewise.
35946         * modules/math (Makefile.am): Likewise.
35947         * modules/netdb (Makefile.am): Likewise.
35948         * modules/netinet_in (Makefile.am): Likewise.
35949         * modules/poll-h (Makefile.am): Likewise.
35950         * modules/pthread (Makefile.am): Likewise.
35951         * modules/pty (Makefile.am): Likewise.
35952         * modules/sched (Makefile.am): Likewise.
35953         * modules/search (Makefile.am): Likewise.
35954         * modules/selinux-h (Makefile.am): Likewise.
35955         * modules/signal (Makefile.am): Likewise.
35956         * modules/spawn (Makefile.am): Likewise.
35957         * modules/stdarg (Makefile.am): Likewise.
35958         * modules/stddef (Makefile.am): Likewise.
35959         * modules/stdint (Makefile.am): Likewise.
35960         * modules/stdio (Makefile.am): Likewise.
35961         * modules/stdlib (Makefile.am): Likewise.
35962         * modules/string (Makefile.am): Likewise.
35963         * modules/strings (Makefile.am): Likewise.
35964         * modules/sys_file (Makefile.am): Likewise.
35965         * modules/sys_ioctl (Makefile.am): Likewise.
35966         * modules/sys_select (Makefile.am): Likewise.
35967         * modules/sys_socket (Makefile.am): Likewise.
35968         * modules/sys_stat (Makefile.am): Likewise.
35969         * modules/sys_time (Makefile.am): Likewise.
35970         * modules/sys_times (Makefile.am): Likewise.
35971         * modules/sys_uio (Makefile.am): Likewise.
35972         * modules/sys_utsname (Makefile.am): Likewise.
35973         * modules/sys_wait (Makefile.am): Likewise.
35974         * modules/sysexits (Makefile.am): Likewise.
35975         * modules/termios (Makefile.am): Likewise.
35976         * modules/time (Makefile.am): Likewise.
35977         * modules/unistd (Makefile.am): Likewise.
35978         * modules/wchar (Makefile.am): Likewise.
35979         * modules/wctype-h (Makefile.am): Likewise.
35980         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
35982 2011-05-29  Bruno Haible  <bruno@clisp.org>
35984         assert-h: Allow multiple gnulib generated replacements to coexist.
35985         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
35987 2011-05-29  Bruno Haible  <bruno@clisp.org>
35989         argp: Allow coexistence with strerror_r-posix module.
35990         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
35991         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
35992         by gnulib's <string.h> replacement), assume it has the POSIX signature,
35993         not the glibc signature.
35995 2011-05-28  Bruno Haible  <bruno@clisp.org>
35997         gnulib-tool: Alternative structure of testdirs, similar to --import.
35998         * gnulib-tool: New option --single-configure.
35999         (func_usage): Document it.
36000         (single_configure): New variable.
36001         (func_modules_transitive_closure_separately,
36002         func_modules_transitive_closure_separately,
36003         func_determine_use_libtests, func_modules_add_dummy_separately,
36004         func_modules_to_filelist_separately): New functions, extracted from
36005         func_import.
36006         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
36007         (func_import): Use the new functions.
36008         (func_create_testdir): Set final_modules. Handle $single_configure =
36009         true case.
36011 2011-05-28  Bruno Haible  <bruno@clisp.org>
36013         getloadavg: Remove an unreliable safety check.
36014         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
36015         getloadavg.c is in place.
36016         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
36017         Reported by Sam Steingold <sds@gnu.org>.
36019 2011-05-28  Bruno Haible  <bruno@clisp.org>
36021         doc: Cleanup yet another file produced by texinfo.tex.
36022         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
36024 2011-05-28  Bruno Haible  <bruno@clisp.org>
36026         Finish the conditional dependencies mechanism.
36027         * gnulib-tool: New option --no-conditional-dependencies.
36028         (func_usage): Document it. Don't mark --conditional-dependencies as
36029         experimental.
36030         (cond_dependencies): The possible values can now be true, false, empty.
36031         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
36032         (func_import): Store setting in gnulib-cache.m4 and read it from there.
36033         * doc/gnulib-tool.texi (Conditional dependencies): New section.
36035 2011-05-28  Bruno Haible  <bruno@clisp.org>
36037         doc: Use a recent texinfo.tex.
36038         * doc/Makefile (tex_opts): New variable.
36039         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
36041 2011-05-28  Jim Meyering  <meyering@redhat.com>
36043         intprops.h: adjust comment to match code change
36044         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
36045         only once, it *may* have side effects.  Also fix an unrelated typo.
36046         (_GL_INT_SIGNED): Likewise.
36048 2011-05-26  Simon Josefsson  <simon@josefsson.org>
36050         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
36052 2011-05-26  Bruno Haible  <bruno@clisp.org>
36054         mbsrchr: Avoid collision with system function on Interix.
36055         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
36056         Reported by Markus Duft <mduft@gentoo.org>.
36058 2011-05-15  James Youngman  <jay@gnu.org>
36060         getopt: for ambiguous options, enumerate the possibilities.
36061         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
36062         the ambiguous options when an ambiguous prefix is given. This was
36063         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
36064         glibc change was
36065         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
36067 2011-05-25  Eric Blake  <eblake@redhat.com>
36069         getcwd: work around mingw bug
36070         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
36071         * doc/posix-functions/getcwd.texi (getcwd): Document it.
36072         Reported by Matthias Bolte.
36074 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
36076         test-intprops: disable -Wtype-limits diagnostics
36077         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
36078         diagnostics.  Otherwise, the integer overflow macros generate many
36079         diagnostics.  Reported by Jim Meyering in
36080         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
36082         intprops: shorten, to pacify gcc -Woverlength-strings
36083         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
36084         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
36085         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
36086         likely to run afoul of C compiler limits for string constant lengths.
36087         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
36089 2011-05-24  Eric Blake  <eblake@redhat.com>
36091         docs: document recently fixed glibc printf bug
36092         * doc/posix-functions/fprintf.texi (fprintf): Document it.
36093         * doc/posix-functions/printf.texi (printf): Likewise.
36094         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36095         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36097         closein-tests: convert to init.sh
36098         * modules/closein-tests (Files): Add init.sh
36099         * tests/test-closein.sh Use it.
36101         yesno-tests: convert to init.sh
36102         * modules/yesno-tests (Files): Add init.sh.
36103         * tests/test-yesno.sh: Use it.
36105         atexit-tests: ensure reliable exit status
36106         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
36107         Reported by Bruno Haible.
36109 2011-05-24  Bruno Haible  <bruno@clisp.org>
36111         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
36112         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
36113         gl_PREREQ_STRERROR_R invocations from here...
36114         * modules/strerror_r-posix (configure.ac): ... to here.
36116 2011-05-24  Eric Blake  <eblake@redhat.com>
36118         strerror_r: fix missing header
36119         * lib/strerror_r.c: Avoid compiler warning about snprintf.
36121         strerror_r: fix AIX test failures
36122         * lib/strerror_r.c (strerror_r): Convert silent truncation to
36123         ERANGE failure.
36125         strerror_r: fix Solaris test failures
36126         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
36127         failures.
36128         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
36130         strerror_r: enforce POSIX recommendations
36131         * lib/strerror_r.c (safe_copy): New helper method.
36132         (strerror_r): Guarantee a non-empty string.
36133         * tests/test-strerror_r.c (main): Enhance tests to incorporate
36134         recent POSIX rulings and to match our strerror guarantees.
36135         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
36137 2011-05-24  Jim Meyering  <meyering@redhat.com>
36139         test-perror2.c: avoid warning about unused variable
36140         * tests/test-perror2.c (main): Remove declaration of unused "fp".
36142 2011-05-24  Eric Blake  <eblake@redhat.com>
36144         perror: avoid spurious test failure on HP-UX
36145         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
36147         tests: fix logic bug in init.sh
36148         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
36149         shell.
36151 2011-05-24  Jim Meyering  <meyering@redhat.com>
36153         utimensat: do not reference an out-of-scope buffer
36154         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
36155         declared in an inner scope, yet "times" would be dereferenced outside
36156         the scope in which "ts" was valid.
36157         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
36158         of ts[2] "out/up", so that the use of aliased "times" (via
36159         "times = ts;") does not end up referencing an out-of-scope "ts"
36161         opendir-safer.c: don't clobber errno; don't close negative FD
36162         * lib/opendir-safer.c (opendir_safer):
36163         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
36164         file descriptor, and more importantly, don't clobber the
36165         offending errno value with EINVAL.  Before, upon failure
36166         of dup_safer, we would pass the negative file descriptor to
36167         fdopendir, which would clobber errno.
36169 2011-05-23  Bruno Haible  <bruno@clisp.org>
36171         idcache: Fix module description.
36172         * modules/idcache (Include): Set to "idcache.h".
36174 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
36176         gnulib-tool: fix portability problem with MacOS sed
36177         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
36178         before the "}".  Problem reported by Leo in
36179         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
36180         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
36181         sed_extract_condition1, sed_extract_condition2.
36183 2011-05-23  Bruno Haible  <bruno@clisp.org>
36185         hash: Simplify autoconf macro.
36186         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
36188 2011-05-23  Bruno Haible  <bruno@clisp.org>
36190         getugroups: Fix module description.
36191         * modules/getugroups (Include): Set to "getugroups.h".
36193 2011-05-23  Bruno Haible  <bruno@clisp.org>
36195         linkat: Simplify autoconf macro.
36196         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
36198 2011-05-23  Bruno Haible  <bruno@clisp.org>
36199             Eric Blake  <eblake@redhat.com>
36201         linkat, renameat: Update dependencies.
36202         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
36203         * modules/linkat (Depends-on): Likewise. Remove also readlink,
36204         symlinkat.
36206 2011-05-23  Jim Meyering  <meyering@redhat.com>
36208         maint.mk: more tight_scope improvements
36209         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
36210         (_gl_TS_headers): Define only in if-0'd block.
36211         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
36212         sometimes we must *not* use it.  Adjust uses accordingly.
36213         (sc_tight_scope): Use much simpler grep-based test to determine
36214         whether we skip this rule.
36216         maint.mk: generalize/improve the tight-scope rule
36217         * top/maint.mk: Emit a warning when the test is skipped.
36218         (_gl_TS_dir): Add $(srcdir)/ prefix.
36219         (_gl_TS_function_match): Simplify, rather than trying
36220         to enumerate common types.  Otherwise, it would fail to match an
36221         "extern unsigned char const *" declaration in idutils.
36222         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
36223         a way to support use of that type of macro.
36224         (_gl_TS_var_match): Simplify regexp.
36225         (_gl_TS_obj_files): New configurable variable.
36226         (_gl_TS_headers): Likewise.
36228 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
36230         verify: fix bug when gnulib <assert.h> is also included
36231         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
36232         is defined, not if _GL_STATIC_ASSERT_H is not defined.
36233         Perhaps there's a better way, but this fixes the immediate problem.
36234         Problem reported by Bruno Haible in
36235         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
36237 2011-05-22  Bruno Haible  <bruno@clisp.org>
36239         xgetcwd: Simplify autoconf macro.
36240         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
36242 2011-05-22  Bruno Haible  <bruno@clisp.org>
36244         New module 'mktime-internal'.
36245         * modules/mktime-internal: New file.
36246         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
36247         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
36248         mktime_internal as a C macro if libc has __mktime_internal.
36249         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
36250         conditions.
36251         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
36253 2011-05-22  Bruno Haible  <bruno@clisp.org>
36255         timegm: Correct mktime replacement statements.
36256         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
36257         defining mktime as a C macro. This completes a 2009-07-28 commit.
36259 2011-05-22  Bruno Haible  <bruno@clisp.org>
36261         timegm: Simplify autoconf macro.
36262         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
36264 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
36266         clock-time: change to LGPLv2+.
36267         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
36268         BSD-like but we have no mark for that; this is good enough for now.
36270 2011-05-21  Bruno Haible  <bruno@clisp.org>
36272         strerror_r: Fix comments.
36273         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
36275 2011-05-21  Bruno Haible  <bruno@clisp.org>
36277         relocatable-prog-wrapper: Fix possible link error.
36278         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
36279         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
36280         (gl_FUNC_SETENV): ... to here.
36281         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
36282         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
36284 2011-05-21  Bruno Haible  <bruno@clisp.org>
36286         relocatable-prog-wrapper: Assume strerror() exists.
36287         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
36288         m4/strerror.m4.
36289         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
36290         * lib/relocwrapper.c: Remove mention of strerror module.
36291         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
36292         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
36293         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
36294         C macro.
36296 2011-05-21  Bruno Haible  <bruno@clisp.org>
36298         select: Simplify replacement idiom.
36299         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
36300         Win32 platforms.
36301         * lib/sys_select.in.h (select): Simplify accordingly.
36302         * modules/select (Depends-on): Likewise.
36304 2011-05-21  Bruno Haible  <bruno@clisp.org>
36306         mkdir-p: Simplify autoconf macro.
36307         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
36308         gl_FUNC_LCHOWN.
36310 2011-05-21  Eric Blake  <eblake@redhat.com>
36312         strerror_r: avoid clobbering strerror on cygwin
36313         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
36314         fall back instead to sys_errlist.
36315         * modules/strerror (configure.ac): Add witness.
36316         * tests/test-strerror_r.c (main): Enhance test.
36317         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
36318         * tests/test-perror2.c (main): Free memory before exit.
36320 2011-05-21  Bruno Haible  <bruno@clisp.org>
36322         mkdtemp: Use gnulib naming conventions.
36323         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
36324         * modules/mkdtemp (configure.ac): Update.
36326 2011-05-20  Eric Blake  <eblake@redhat.com>
36328         strerror_r: avoid corrupting errno on Solaris
36329         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
36330         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
36332         strerror_r: avoid compiler warning
36333         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
36335         strerror_r: simplify AIX code
36336         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
36338         test-perror: avoid spurious failure on FreeBSD
36339         * modules/perror-tests (Depends-on): Add strerror, now that
36340         strerror_r no longer pulls it in.
36342 2011-05-20  Bruno Haible  <bruno@clisp.org>
36344         strerror_r-posix: Remove unused dependencies.
36345         * modules/strerror_r-posix (Depends-on): Remove strerror.
36346         Reported by Eric Blake.
36348 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
36350         intprops: remove assumption about A|B representation
36351         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
36352         is a valid integer if both A and B are.  Although this is true for
36353         all known practical hosts, the C standard doesn't guarantee it,
36354         and the code need not assume it.  Also, this change may work around
36355         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
36356         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
36358 2011-05-20  Eric Blake  <eblake@redhat.com>
36360         perror: work around FreeBSD bug
36361         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
36362         is broken.  Move AC_LIBOBJ...
36363         * modules/perror (configure.ac): Here.
36364         * doc/posix-functions/perror.texi (perror): Document this.
36365         * tests/test-perror2.c (main): Enhance test.
36367         test-perror: check for strerror interactions
36368         * tests/macros.h (STREQ): Add macro.
36369         * modules/perror-tests (Files): Add second test.
36370         * tests/test-perror2.c (main): New file.
36371         * doc/posix-functions/perror.texi (perror): Document glibc bug.
36373         test-perror: rewrite to use init script
36374         * modules/perror-tests (Files): Add init.sh.
36375         * tests/test-perror.sh: Use temporary directory.
36377 2011-05-20  Jim Meyering  <meyering@redhat.com>
36379         maint: replace misused "a" with "an"
36380         * doc/intprops.texi: "a integer"
36381         * doc/regex.texi: "a explanation"
36382         * lib/alignof.h: "a object"
36383         * lib/argmatch.h: "a explanation"
36384         * lib/argp-help.c: "a option" and "a OPTION_DOC"
36385         * lib/stdint.in.h: "a integer"
36386         * lib/userspec.c: "a owner"
36387         * doc/gnulib.texi: Fix "a idea", and reword.
36389 2011-05-19  Jim Meyering  <meyering@redhat.com>
36391         maint: correct misuse of "a" and "an"
36392         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
36393         * lib/argp-help.c: "an docum...": s/an/a/
36394         * lib/argp-parse.c: "An vector": s/An/A/
36395         * lib/execute.c: "an native": s/an/a/
36396         * lib/spawn-pipe.c: Likewise.
36397         * lib/gc.h: "an Gc_rc": s/an/a/
36398         * lib/unigbrk.in.h: "an grapheme": s/an/a/
36399         * lib/fts.c: "an stat.st_dev": s/an/a/
36401 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
36403         intprops-tests: work around HP-UX 11.23 cc bug with constants
36404         * tests/test-intprops.c (VERIFY): New macro.
36405         (main): Use it, instead of verify, to work around the compiler bug; see
36406         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
36408         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
36409         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
36410         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
36411         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
36412         (_GL_REMAINDER_OVERFLOW): Use it.
36414         intprops-tests: revert unsigned part of previous change
36415         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
36416         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
36417         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
36418         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
36420 2011-05-19  Bruno Haible  <bruno@clisp.org>
36422         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
36423         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
36424         strerror_r() returned without filling the buffer.
36425         Reported by Eric Blake.
36427 2011-05-19  Eric Blake  <eblake@redhat.com>
36429         strerror_r: guarantee unchanged errno
36430         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
36431         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
36432         failure.
36433         * tests/test-strerror_r.c (main): Enhance test.
36435 2011-05-19  Bruno Haible  <bruno@clisp.org>
36437         strerror_r: Reorder #if blocks.
36438         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
36439         for consistency with the previous commit.
36441 2011-05-19  Bruno Haible  <bruno@clisp.org>
36443         perror: Avoid clobbering the strerror buffer when possible.
36444         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
36445         * lib/strerror.c: Include it.
36446         * modules/strerror (Files): Add lib/strerror-impl.h.
36447         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
36448         (my_strerror): New function, defined through lib/strerror-impl.h.
36449         (perror): Use it instead of strerror.
36450         * modules/perror (Files): Add lib/strerror-impl.h.
36451         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
36453 2011-05-19  Eric Blake  <eblake@redhat.com>
36455         strerror_r: fix on newer cygwin
36456         * lib/strerror_r.c (strerror_r): Cygwin now has
36457         __xpg_strerror_r, use it.
36459 2011-05-19  Bruno Haible  <bruno@clisp.org>
36461         strerror_r: Avoid clobbering the strerror buffer when possible.
36462         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
36463         (sys_nerr, sys_errlist): New declarations.
36464         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
36465         HP-UX, native Win32, IRIX, and 32-bit Solaris.
36466         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
36468 2011-05-19  Bruno Haible  <bruno@clisp.org>
36470         strerror_r: Fix test failure on mingw.
36471         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
36472         EXTEND_STRERROR_R.
36473         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
36474         macros from errno.in.h instead.
36476 2011-05-19  Eric Blake  <eblake@redhat.com>
36478         strerror: relax test for Solaris
36479         * tests/test-strerror.c (main): Permit Solaris behavior.
36480         * tests/test-strerror_r.c (main): Likewise.
36482         strerror: enforce POSIX ruling on strerror(0)
36483         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
36484         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
36485         * lib/strerror_r.c (rpl_strerror_r): Work around it.
36486         * doc/posix-functions/strerror.texi (strerror): Document it.
36487         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
36488         * tests/test-strerror.c (main): Strengthen test.
36489         * tests/test-strerror_r.c (main): Likewise.
36491 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
36493         intprop-tests: port to older and more-pedantic compilers
36494         * modules/intprops-tests (Files): Add tests/macros.h.
36495         * tests/test-intprops.c: Include macros.h.
36496         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
36497         it's no longer documented to expand to an integer constant expression.
36498         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
36499         argument is floating point, as it's no longer documented to expand
36500         to an integer constant expression in that case.
36501         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
36502         compiler bugs reported by Bruno Haible.  See
36503         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
36504         (U0, U1): New constants, to work around the same bugs.  Also,
36505         in tests, use e.g., "(unsigned int) 39" rather than "39u".
36507         intprops: work around C compiler bugs
36508         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
36509         bug in Sun C 5.11 2010/08/13 and other compilers; see
36510         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
36512         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
36513         * doc/intprops.texi (Integer Type Determination): Fix
36514         documentation for TYPE_IS_INTEGER: it returns an constant
36515         expression, not an integer constant expression.  Fix doc for
36516         TYPE_SIGNED: it returns an integer constant expression only if its
36517         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
36518         hardly worth documented that way....)
36520 2011-05-18  Bruno Haible  <bruno@clisp.org>
36522         strerror_r: Avoid clobbering the strerror buffer when possible.
36523         * lib/strerror_r.c (strerror_r): Merge the three implementations.
36524         Handle gnulib defined errno values here. When strerror() returns NULL
36525         or an empty string, return EINVAL.
36526         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
36527         gnulib defined errno values here.
36528         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
36530 2011-05-18  Eric Blake  <eblake@redhat.com>
36532         fnmatch: avoid compiler warning
36533         * lib/fnmatch_loop.c (FCT): Use correct type.
36534         Reported by Matthias Bolte.
36536 2011-05-13  Jim Meyering  <meyering@redhat.com>
36538         maint.mk: three new prohibit_<HDR>_without_use rules
36539         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
36540         (sc_prohibit_stdio-safer_without_use): Likewise.
36541         (sc_prohibit_xfreopen_without_use): Likewise.
36543 2011-05-17  Jim Meyering  <meyering@redhat.com>
36545         announce-gen: fail if the NEWS delta is empty
36546         If there's nothing noteworthy in NEWS, then either you forgot
36547         or you shouldn't be releasing.
36548         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
36550 2011-05-17  Pádraig Brady  <P@draigBrady.com>
36552         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
36553         reserved symbols starting with double underscore from the check.
36555 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
36557         intprops: add doc
36558         * doc/intprops.texi: New file, documenting intprops.
36559         * doc/gnulib.texi (Particular Modules): Include it.
36561         verify: add doc to gnulib manual and fix example
36562         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
36563         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
36564         (Compile-time Assertions): Fix example so it can't overflow.
36566 2011-05-17  Jim Meyering  <meyering@redhat.com>
36568         warnings.m4: don't usurp save_CPPFLAGS variable name
36569         * m4/warnings.m4: Prefix local temporary variable name with gl_.
36571         doc: fix typo
36572         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
36574 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
36575             Bruno Haible  <bruno@clisp.org>
36577         doc: Tweak recent change.
36578         * README (Portability guidelines): Tweak new text.
36579         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
36580         Interix 6.1.
36582 2011-05-16  Eric Blake  <eblake@redhat.com>
36584         inttypes: avoid autoconf warning
36585         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
36586         * m4/stdint.m4 (gl_STDINT_H): Likewise.
36588 2011-05-16  Sam Steingold  <sds@gnu.org>
36589         and Eric Blake  <eblake@redhat.com>
36591         vc-list-files: accept multiple directory operands
36592         * build-aux/vc-list-files: Iterate over all remaining operands.
36594 2011-05-16  Bruno Haible  <bruno@clisp.org>
36596         Fix confusion regarding deprecated modules.
36597         * modules/calloc (Status, Notice): Mark module as deprecated, not
36598         obsolete.
36599         * modules/fnmatch-posix (Status, Notice): Likewise.
36600         * modules/getdate (Status, Notice): Likewise.
36601         * modules/getopt (Status, Notice): Likewise.
36602         * modules/malloc (Status, Notice): Likewise.
36603         * modules/pipe (Status, Notice): Likewise.
36604         * modules/realloc (Status, Notice): Likewise.
36605         * modules/rename-dest-slash (Status, Notice): Likewise.
36606         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
36607         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
36608         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
36609         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
36610         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
36612 2011-05-16  Bruno Haible  <bruno@clisp.org>
36614         doc: List the target platforms.
36615         * doc/gnulib-intro.texi (Target Platforms): New section.
36616         * doc/gnulib.texi (Introduction): Update menu.
36617         * README (Portability guidelines): Refer to the new section. Update
36618         statement about oldest supported environment. Remove rationale why
36619         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
36620         unportable C89 function.
36621         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
36622         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
36624 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
36626         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
36628 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
36630         intprops-tests: new module
36631         * modules/intprops-tests, tests/test-intprops.c: New files.
36633         intprops: add safe, portable integer overflow checking
36634         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
36635         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
36636         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
36637         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
36638         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
36639         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
36640         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
36641         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
36642         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
36643         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
36644         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
36646 2011-05-12  James Youngman  <jay@gnu.org>
36648         Add a test for glibc's Bugzilla bug #12378.
36649         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
36650         doesn't allow the literal matching of a lone "[" (which is
36651         required by POSIX).
36652         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
36654 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
36656         Sync glibc change fixing Bugzilla bug #12378.
36657         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
36658         beginning and fall back to matching as normal character if the
36659         string ends before the matching ']' is found.  This is what POSIX
36660         requires.
36662 2011-05-13  Eric Blake  <eblake@redhat.com>
36664         getcwd-lgpl: relax test for FreeBSD
36665         * doc/posix-functions/getcwd.texi (getcwd): Document portability
36666         issue.
36667         * tests/test-getcwd-lgpl.c (main): Relax test.
36668         Reported by Matthias Bolte.
36670 2011-05-11  Eric Blake  <eblake@redhat.com>
36672         test-fflush: silence compiler warning
36673         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
36675 2011-05-11  Bruno Haible  <bruno@clisp.org>
36677         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
36678         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
36679         * modules/canonicalize (Depends-on): Add 'nocrash'.
36680         * modules/canonicalize-lgpl (Depends-on): Likewise.
36681         * doc/posix-functions/realpath.texi: Update platforms list.
36682         Reported by Ryan Schmidt <ryandesign@macports.org>.
36684 2011-05-11  Bruno Haible  <bruno@clisp.org>
36686         group-member: Declare function in <unistd.h>.
36687         * lib/unistd.in.h (group_member): New declaration.
36688         * lib/group-member.h: Remove file.
36689         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
36690         * tests/test-unistd-c++.cc: Check signature of group_member.
36691         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
36692         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
36693         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
36694         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
36695         HAVE_GROUP_MEMBER.
36696         * modules/group-member (Files): Remove lib/group-member.h.
36697         (Depends-on): Add unistd. Specify conditions.
36698         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36699         (Include): Change to <unistd.h>.
36700         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
36701         HAVE_GROUP_MEMBER.
36702         * NEWS: Mention the change.
36703         * lib/euidaccess.c: Don't include group-member.h.
36705 2011-05-11  Bruno Haible  <bruno@clisp.org>
36707         group-member: Document module.
36708         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
36709         module.
36711 2011-05-11  Bruno Haible  <bruno@clisp.org>
36713         fclose: Fix mistake earlier today.
36714         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
36716 2011-05-11  Eric Blake  <eblake@redhat.com>
36718         fclose: preserve fflush errors
36719         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
36720         Reported by Jim Meyering.
36722         bootstrap: support a prereq of 'rpcgen -' on RHEL5
36723         * build-aux/bootstrap (check_versions): When no specific version
36724         is required, merely check that the app produces an exit status
36725         that indicates its existence.
36727         maint.mk: drop redundant check
36728         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
36729         the same but better.
36731 2011-05-11  Bruno Haible  <bruno@clisp.org>
36733         fclose: Fix possible link error.
36734         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
36735         unregister_shadow_fd. Improve comments.
36736         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
36737         Eric Blake.
36739 2011-05-11  Jim Meyering  <meyering@redhat.com>
36741         maint.mk: improve "can not" detection and generalize rule name
36742         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
36743         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
36744         Use the same technique as in sc_prohibit_doubled_word, so that
36745         we recognize "can not" also when the words are separated by a newline.
36746         Suggested by Eric Blake.
36747         (perl_filename_lineno_text_): Define.  Factored out of...
36748         (prohibit_doubled_word_): ...here.  Use the new definition.
36749         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
36750         (prohibit_undesirable_word_seq_RE_): New overridable variable.
36751         (ignore_undesirable_word_sequence_RE_): New overridable variable.
36753 2011-05-10  Eric Blake  <eblake@redhat.com>
36755         fclose: avoid double close race when possible
36756         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
36757         all but WINDOWS_SOCKETS.
36759 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
36761         openat: correct new comment
36762         * lib/openat-proc.c (openat_proc_name): Correct the comment.
36764 2011-05-10  Jim Meyering  <meyering@redhat.com>
36766         openat: add comments
36767         * lib/openat-proc.c (openat_proc_name): Add comments,
36768         mostly from Eric Blake.
36770 2011-05-09  Eric Blake  <eblake@redhat.com>
36772         openat: reduce syscalls in first probe of /proc
36773         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
36774         be a directory.  Simplify the probe for .. bugs.
36775         * modules/openat (Depends-on): Drop same-inode.
36776         Reported by Bastien ROUCARIES.
36778 2011-05-09  Jim Meyering  <meyering@redhat.com>
36780         maint.mk: change semantics/name of tight_scope variables
36781         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
36782         Rename variables to align with semantics that make them more useful.
36784         maint.mk: tweak new rule's name not to impinge
36785         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
36786         (sc_tight_scope): Use new rule name rather than $@-0.
36788         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
36789         * top/maint.mk (sc_tight_scope): New rule.
36790         (sc_tight_scope-0): New rule, ifdef'd out.
36791         (_gl_TS_dir): Default.
36792         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
36793         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
36795 2011-05-09  Simon Josefsson  <simon@josefsson.org>
36797         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
36798         Haible <bruno@clisp.org>.
36800 2011-05-08  Bruno Haible  <bruno@clisp.org>
36802         Comments.
36803         * m4/isnanf.m4: Add comment.
36804         * m4/isnanl.m4: Likewise.
36806 2011-05-08  Bruno Haible  <bruno@clisp.org>
36808         glob: Remove obsolete macro.
36809         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
36811 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
36813         intprops: Sun C 5.11 supports __typeof__
36814         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
36815         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
36816         which is new.
36817         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
36819         intprops: switch to usual gnulib indenting and naming
36820         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
36821         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
36823         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
36825 2011-05-08  Jim Meyering  <meyering@redhat.com>
36827         maint.mk: suppress "Entering/Leaving directory" diag in announcement
36828         * top/maint.mk (release-prep): Use make's --no-print-directory
36829         option when generating the announcement.  This eliminates the
36830         pesky "make[2]: Entering/Leaving directory" diagnostics in the
36831         generated announcement template.
36833 2011-05-08  Bruno Haible  <bruno@clisp.org>
36835         tzset: Fix gettimeofday wrapper on Solaris 2.6.
36836         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
36837         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
36839 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
36841         ignore-value, verify: Omit include files from lib_SOURCES.
36842         * modules/ignore-value, modules/verify (Makefile.am):
36843         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
36844         that leads Automake to duplicate use of am__objects_... variables
36845         in Makefile.in.  See
36846         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
36848 2011-05-07  Bruno Haible  <bruno@clisp.org>
36850         fclose: Simplify autoconf macro.
36851         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
36852         defined.
36854 2011-05-07  Bruno Haible  <bruno@clisp.org>
36856         canonicalize-lgpl: Fix autoconf macro ordering bug.
36857         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
36858         gl_STDLIB_H_DEFAULTS.
36860 2011-05-06  Eric Blake  <eblake@redhat.com>
36862         maintainer-makefile: make sc_po_check easier to tune
36863         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
36864         to probe for strings, such as an alternate location for gnulib.
36866         fclose: guarantee behavior on seekable stdin
36867         * modules/fclose (Depends-on): Add fflush.
36868         * doc/posix-functions/fclose.texi (fclose): Document this.
36869         * tests/test-fclose.c (main): Make test for this unconditional.
36871 2011-05-06  Bruno Haible  <bruno@clisp.org>
36873         fflush, fpurge: Relicense under LGPLv2+.
36874         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
36875         * modules/fpurge (License): Likewise.
36876         With permission from Eric Blake and Jim Meyering.
36877         Suggested by Eric Blake.
36879 2011-05-06  Karl Berry  <karl@gnu.org>
36881         * MODULES.html.sh (func_all_modules): remove exit.
36883 2011-05-06  Jim Meyering  <meyering@redhat.com>
36885         maint.mk: use info-gnu@ as the default only for a stable release
36886         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
36887         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
36888         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
36889         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
36891 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
36893         assert-h: new module, which supports C1X-style static_assert
36894         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
36895         * lib/verify.h: Revamp so that this can be copied into assert.h,
36896         while retaining the ability to use it standalone as before.
36897         Rename private identifiers so as not to encroach on the
36898         standard C namespace, since this is now used by assert.h.
36899         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
36900         the old verify_true.
36901         (_GL_VERIFY_TRUE): New macro, with much of the contents of
36902         the old verify_true.  Use _GL_VERIFY_TYPE.
36903         (_GL_VERIFY): New macro, with much of the contents of the old verify.
36904         (static_assert): New macro, if _GL_STATIC_ASSERT_H
36905         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
36906         defined when this file is copied into the replacement assert.h.
36907         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
36908         and _Static_assert is not built in.
36909         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
36910         defined, and use the new macros mentioned above.
36911         * doc/posix-headers/assert.texi: Document this.
36913 2011-05-05  Bruno Haible  <bruno@clisp.org>
36915         fclose, fflush: Respect rules for use of AC_LIBOBJ.
36916         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
36917         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
36918         gl_REPLACE_FCLOSE here.
36919         * modules/fflush (Depends-on): Remove fclose.
36920         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
36921         combination with module 'fclose'.
36923 2011-05-05  Bruno Haible  <bruno@clisp.org>
36925         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
36926         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
36927         gl_FUNC_FFLUSH.
36928         (gl_FUNC_FFLUSH): Use it.
36929         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
36930         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
36931         gl_REPLACE_FSEEKO here.
36933 2011-05-05  Bruno Haible  <bruno@clisp.org>
36935         tzset: Relicense under LGPL.
36936         * modules/tzset (License): Change to LGPL.
36937         No agreement needed; it's a no-op.
36939         strtoimax, strtoumax: Relicense under LGPL.
36940         * modules/strtoimax (License): Change to LGPL.
36941         * modules/strtoumax (License): Likewise.
36942         With permission from Jim Meyering, Paul Eggert:
36943         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
36944         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
36946         getgroups: Relicense under LGPL.
36947         * modules/getgroups (License): Change to LGPL.
36948         With permission from Jim Meyering, Paul Eggert, Eric Blake:
36949         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
36950         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
36951         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
36953         nanosleep: Relicense under LGPL.
36954         * modules/nanosleep (License): Change to LGPL.
36955         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
36956         Haible:
36957         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
36958         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
36959         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
36960         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
36962         futimens: Relicense under LGPL.
36963         * modules/futimens (License): Change to LGPL.
36964         With permission from Eric Blake:
36965         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
36967         fflush: Relicense under LGPL.
36968         * modules/fflush (License): Change to LGPL.
36969         With permission from Eric Blake, Bruno Haible, Jim Meyering:
36970         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
36971         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
36972         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
36974         tmpfile: Relicense under LGPL.
36975         * modules/tmpfile (License): Change to LGPL.
36976         With permission from Ben Pfaff:
36977         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
36979         isfinite: Relicense under LGPL.
36980         * modules/isfinite (License): Change to LGPL.
36981         With permission from Ben Pfaff, Bruno Haible:
36982         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
36983         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
36985         acosl..tanl: Relicense under LGPL.
36986         * modules/acosl (License): Change to LGPL.
36987         * modules/asinl (License): Likewise.
36988         * modules/atanl (License): Likewise.
36989         * modules/cosl (License): Likewise.
36990         * modules/expl (License): Likewise.
36991         * modules/logl (License): Likewise.
36992         * modules/sinl (License): Likewise.
36993         * modules/sqrtl (License): Likewise.
36994         * modules/tanl (License): Likewise.
36995         Source code originally from glibc and Paolo Bonzini. Agreements:
36996         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
36997         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
36999 2011-05-05  Bruno Haible  <bruno@clisp.org>
37001         signal: Define sighandler_t.
37002         * lib/signal.in.h (sighandler_t): New type.
37003         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
37004         whether sighandler_t is defined.
37005         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
37006         * modules/signal (Depends-on): Add extensions.
37007         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
37008         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
37009         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
37011 2011-05-05  Eric Blake  <eblake@redhat.com>
37013         maint: remove useless REPLACE_*_H macros
37014         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
37015         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37016         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37017         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
37018         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37019         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37020         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
37021         * m4/btowc.m4: Update callers.
37022         * m4/dirfd.m4: Likewise.
37023         * m4/duplocale.m4: Likewise.
37024         * m4/fchdir.m4: Likewise.
37025         * m4/fdopendir.m4: Likewise.
37026         * m4/inet_ntop.m4: Likewise.
37027         * m4/inet_pton.m4: Likewise.
37028         * m4/ioctl.m4: Likewise.
37029         * m4/mbrlen.m4: Likewise.
37030         * m4/mbrtowc.m4: Likewise.
37031         * m4/mbsinit.m4: Likewise.
37032         * m4/mbsnrtowcs.m4: Likewise.
37033         * m4/mbsrtowcs.m4: Likewise.
37034         * m4/poll.m4: Likewise.
37035         * m4/setlocale.m4: Likewise.
37036         * m4/wcrtomb.m4: Likewise.
37037         * m4/wcsnrtombs.m4: Likewise.
37038         * m4/wcsrtombs.m4: Likewise.
37039         * m4/wctob.m4: Likewise.
37040         * m4/wcwidth.m4: Likewise.
37041         * modules/posix_spawn: Likewise.
37042         * modules/posix_spawn_file_actions_addclose: Likewise.
37043         * modules/posix_spawn_file_actions_adddup2: Likewise.
37044         * modules/posix_spawn_file_actions_addopen: Likewise.
37045         * modules/posix_spawn_file_actions_destroy: Likewise.
37046         * modules/posix_spawn_file_actions_init: Likewise.
37047         * modules/posix_spawnattr_destroy: Likewise.
37048         * modules/posix_spawnattr_getflags: Likewise.
37049         * modules/posix_spawnattr_getpgroup: Likewise.
37050         * modules/posix_spawnattr_getschedparam: Likewise.
37051         * modules/posix_spawnattr_getschedpolicy: Likewise.
37052         * modules/posix_spawnattr_getsigdefault: Likewise.
37053         * modules/posix_spawnattr_getsigmask: Likewise.
37054         * modules/posix_spawnattr_init: Likewise.
37055         * modules/posix_spawnattr_setflags: Likewise.
37056         * modules/posix_spawnattr_setpgroup: Likewise.
37057         * modules/posix_spawnattr_setschedparam: Likewise.
37058         * modules/posix_spawnattr_setschedpolicy: Likewise.
37059         * modules/posix_spawnattr_setsigdefault: Likewise.
37060         * modules/posix_spawnattr_setsigmask: Likewise.
37061         * modules/posix_spawnp: Likewise.
37063 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
37065         Add option to do-release-commit-and-tag to specify branch.
37066         * build-aux/do-release-commit-and-tag: Add --branch.
37068 2011-05-03  Bruno Haible  <bruno@clisp.org>
37070         Avoid unnecessary compilation units, through conditional dependencies.
37071         * modules/accept (Depends-on): Add conditions to the dependencies.
37072         * modules/acosl (Depends-on): Likewise.
37073         * modules/argz (Depends-on): Likewise.
37074         * modules/asinl (Depends-on): Likewise.
37075         * modules/atanl (Depends-on): Likewise.
37076         * modules/atoll (Depends-on): Likewise.
37077         * modules/bind (Depends-on): Likewise.
37078         * modules/btowc (Depends-on): Likewise.
37079         * modules/canonicalize-lgpl (Depends-on): Likewise.
37080         * modules/ceil (Depends-on): Likewise.
37081         * modules/ceilf (Depends-on): Likewise.
37082         * modules/ceill (Depends-on): Likewise.
37083         * modules/chdir-long (Depends-on): Likewise.
37084         * modules/chown (Depends-on): Likewise.
37085         * modules/close (Depends-on): Likewise.
37086         * modules/connect (Depends-on): Likewise.
37087         * modules/cosl (Depends-on): Likewise.
37088         * modules/dirfd (Depends-on): Likewise.
37089         * modules/dprintf (Depends-on): Likewise.
37090         * modules/dprintf-posix (Depends-on): Likewise.
37091         * modules/error (Depends-on): Likewise.
37092         * modules/euidaccess (Depends-on): Likewise.
37093         * modules/expl (Depends-on): Likewise.
37094         * modules/faccessat (Depends-on): Likewise.
37095         * modules/fchdir (Depends-on): Likewise.
37096         * modules/fclose (Depends-on): Likewise.
37097         * modules/fcntl (Depends-on): Likewise.
37098         * modules/fdopendir (Depends-on): Likewise.
37099         * modules/fflush (Depends-on): Likewise.
37100         * modules/floor (Depends-on): Likewise.
37101         * modules/floorf (Depends-on): Likewise.
37102         * modules/floorl (Depends-on): Likewise.
37103         * modules/fnmatch (Depends-on): Likewise.
37104         * modules/fopen (Depends-on): Likewise.
37105         * modules/fprintf-posix (Depends-on): Likewise.
37106         * modules/frexp (Depends-on): Likewise.
37107         * modules/frexp-nolibm (Depends-on): Likewise.
37108         * modules/frexpl (Depends-on): Likewise.
37109         * modules/frexpl-nolibm (Depends-on): Likewise.
37110         * modules/fseek (Depends-on): Likewise.
37111         * modules/fsusage (Depends-on): Likewise.
37112         * modules/ftell (Depends-on): Likewise.
37113         * modules/ftello (Depends-on): Likewise.
37114         * modules/futimens (Depends-on): Likewise.
37115         * modules/getcwd (Depends-on): Likewise.
37116         * modules/getcwd-lgpl (Depends-on): Likewise.
37117         * modules/getdelim (Depends-on): Likewise.
37118         * modules/getdomainname (Depends-on): Likewise.
37119         * modules/getgroups (Depends-on): Likewise.
37120         * modules/gethostname (Depends-on): Likewise.
37121         * modules/getline (Depends-on): Likewise.
37122         * modules/getlogin_r (Depends-on): Likewise.
37123         * modules/getopt-posix (Depends-on): Likewise.
37124         * modules/getpeername (Depends-on): Likewise.
37125         * modules/getsockname (Depends-on): Likewise.
37126         * modules/getsockopt (Depends-on): Likewise.
37127         * modules/getsubopt (Depends-on): Likewise.
37128         * modules/getusershell (Depends-on): Likewise.
37129         * modules/glob (Depends-on): Likewise.
37130         * modules/grantpt (Depends-on): Likewise.
37131         * modules/iconv_open (Depends-on): Likewise.
37132         * modules/iconv_open-utf (Depends-on): Likewise.
37133         * modules/inet_ntop (Depends-on): Likewise.
37134         * modules/inet_pton (Depends-on): Likewise.
37135         * modules/ioctl (Depends-on): Likewise.
37136         * modules/isapipe (Depends-on): Likewise.
37137         * modules/isfinite (Depends-on): Likewise.
37138         * modules/isinf (Depends-on): Likewise.
37139         * modules/lchown (Depends-on): Likewise.
37140         * modules/ldexpl (Depends-on): Likewise.
37141         * modules/link (Depends-on): Likewise.
37142         * modules/linkat (Depends-on): Likewise.
37143         * modules/listen (Depends-on): Likewise.
37144         * modules/logl (Depends-on): Likewise.
37145         * modules/lstat (Depends-on): Likewise.
37146         * modules/mbrlen (Depends-on): Likewise.
37147         * modules/mbrtowc (Depends-on): Likewise.
37148         * modules/mbsinit (Depends-on): Likewise.
37149         * modules/mbsnrtowcs (Depends-on): Likewise.
37150         * modules/mbsrtowcs (Depends-on): Likewise.
37151         * modules/mbtowc (Depends-on): Likewise.
37152         * modules/memcmp (Depends-on): Likewise.
37153         * modules/mkdir (Depends-on): Likewise.
37154         * modules/mkdtemp (Depends-on): Likewise.
37155         * modules/mkfifo (Depends-on): Likewise.
37156         * modules/mkfifoat (Depends-on): Likewise.
37157         * modules/mknod (Depends-on): Likewise.
37158         * modules/mkostemp (Depends-on): Likewise.
37159         * modules/mkostemps (Depends-on): Likewise.
37160         * modules/mkstemp (Depends-on): Likewise.
37161         * modules/mkstemps (Depends-on): Likewise.
37162         * modules/mktime (Depends-on): Likewise.
37163         * modules/nanosleep (Depends-on): Likewise.
37164         * modules/open (Depends-on): Likewise.
37165         * modules/openat (Depends-on): Likewise.
37166         * modules/perror (Depends-on): Likewise.
37167         * modules/poll (Depends-on): Likewise.
37168         * modules/popen (Depends-on): Likewise.
37169         * modules/posix_spawn (Depends-on): Likewise.
37170         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
37171         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
37172         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
37173         * modules/posix_spawnp (Depends-on): Likewise.
37174         * modules/pread (Depends-on): Likewise.
37175         * modules/printf-posix (Depends-on): Likewise.
37176         * modules/ptsname (Depends-on): Likewise.
37177         * modules/putenv (Depends-on): Likewise.
37178         * modules/pwrite (Depends-on): Likewise.
37179         * modules/readline (Depends-on): Likewise.
37180         * modules/readlink (Depends-on): Likewise.
37181         * modules/readlinkat (Depends-on): Likewise.
37182         * modules/recv (Depends-on): Likewise.
37183         * modules/recvfrom (Depends-on): Likewise.
37184         * modules/regex (Depends-on): Likewise.
37185         * modules/remove (Depends-on): Likewise.
37186         * modules/rename (Depends-on): Likewise.
37187         * modules/renameat (Depends-on): Likewise.
37188         * modules/rmdir (Depends-on): Likewise.
37189         * modules/round (Depends-on): Likewise.
37190         * modules/roundf (Depends-on): Likewise.
37191         * modules/roundl (Depends-on): Likewise.
37192         * modules/rpmatch (Depends-on): Likewise.
37193         * modules/select (Depends-on): Likewise.
37194         * modules/send (Depends-on): Likewise.
37195         * modules/sendto (Depends-on): Likewise.
37196         * modules/setenv (Depends-on): Likewise.
37197         * modules/setlocale (Depends-on): Likewise.
37198         * modules/setsockopt (Depends-on): Likewise.
37199         * modules/shutdown (Depends-on): Likewise.
37200         * modules/sigaction (Depends-on): Likewise.
37201         * modules/signbit (Depends-on): Likewise.
37202         * modules/sigprocmask (Depends-on): Likewise.
37203         * modules/sinl (Depends-on): Likewise.
37204         * modules/sleep (Depends-on): Likewise.
37205         * modules/snprintf (Depends-on): Likewise.
37206         * modules/snprintf-posix (Depends-on): Likewise.
37207         * modules/socket (Depends-on): Likewise.
37208         * modules/sprintf-posix (Depends-on): Likewise.
37209         * modules/sqrtl (Depends-on): Likewise.
37210         * modules/stat (Depends-on): Likewise.
37211         * modules/strchrnul (Depends-on): Likewise.
37212         * modules/strdup-posix (Depends-on): Likewise.
37213         * modules/strerror (Depends-on): Likewise.
37214         * modules/strerror_r-posix (Depends-on): Likewise.
37215         * modules/strndup (Depends-on): Likewise.
37216         * modules/strnlen (Depends-on): Likewise.
37217         * modules/strptime (Depends-on): Likewise.
37218         * modules/strsep (Depends-on): Likewise.
37219         * modules/strsignal (Depends-on): Likewise.
37220         * modules/strstr-simple (Depends-on): Likewise.
37221         * modules/strtod (Depends-on): Likewise.
37222         * modules/strtoimax (Depends-on): Likewise.
37223         * modules/strtok_r (Depends-on): Likewise.
37224         * modules/strtoumax (Depends-on): Likewise.
37225         * modules/symlink (Depends-on): Likewise.
37226         * modules/symlinkat (Depends-on): Likewise.
37227         * modules/tanl (Depends-on): Likewise.
37228         * modules/tcgetsid (Depends-on): Likewise.
37229         * modules/tmpfile (Depends-on): Likewise.
37230         * modules/trunc (Depends-on): Likewise.
37231         * modules/truncf (Depends-on): Likewise.
37232         * modules/truncl (Depends-on): Likewise.
37233         * modules/uname (Depends-on): Likewise.
37234         * modules/unlink (Depends-on): Likewise.
37235         * modules/unlockpt (Depends-on): Likewise.
37236         * modules/unsetenv (Depends-on): Likewise.
37237         * modules/usleep (Depends-on): Likewise.
37238         * modules/utimensat (Depends-on): Likewise.
37239         * modules/vasprintf (Depends-on): Likewise.
37240         * modules/vdprintf (Depends-on): Likewise.
37241         * modules/vdprintf-posix (Depends-on): Likewise.
37242         * modules/vfprintf-posix (Depends-on): Likewise.
37243         * modules/vprintf-posix (Depends-on): Likewise.
37244         * modules/vsnprintf (Depends-on): Likewise.
37245         * modules/vsnprintf-posix (Depends-on): Likewise.
37246         * modules/vsprintf-posix (Depends-on): Likewise.
37247         * modules/wcrtomb (Depends-on): Likewise.
37248         * modules/wcscasecmp (Depends-on): Likewise.
37249         * modules/wcscspn (Depends-on): Likewise.
37250         * modules/wcsdup (Depends-on): Likewise.
37251         * modules/wcsncasecmp (Depends-on): Likewise.
37252         * modules/wcsnrtombs (Depends-on): Likewise.
37253         * modules/wcspbrk (Depends-on): Likewise.
37254         * modules/wcsrtombs (Depends-on): Likewise.
37255         * modules/wcsspn (Depends-on): Likewise.
37256         * modules/wcsstr (Depends-on): Likewise.
37257         * modules/wcstok (Depends-on): Likewise.
37258         * modules/wcswidth (Depends-on): Likewise.
37259         * modules/wctob (Depends-on): Likewise.
37260         * modules/wctomb (Depends-on): Likewise.
37261         * modules/wctype (Depends-on): Likewise.
37262         * modules/wcwidth (Depends-on): Likewise.
37263         * modules/write (Depends-on): Likewise.
37265 2011-05-03  Bruno Haible  <bruno@clisp.org>
37267         Support for conditional dependencies.
37268         * doc/gnulib.texi (Module description): Document the syntax of
37269         conditional dependencies.
37270         * gnulib-tool: New option --conditional-dependencies.
37271         (func_usage): Document it.
37272         (cond_dependencies): New variable.
37273         (func_get_automake_snippet_conditional,
37274         func_get_automake_snippet_unconditional): New functions, extracted from
37275         func_get_automake_snippet.
37276         (func_get_automake_snippet): Use them.
37277         (sed_first_32_chars): New variable.
37278         (func_module_shellfunc_name): New function.
37279         (func_module_shellvar_name): New function.
37280         (func_module_conditional_name): New function.
37281         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
37282         func_cond_module_condition): New functions.
37283         (func_modules_transitive_closure): Add support for conditional
37284         dependencies.
37285         (func_emit_lib_Makefile_am): For a conditional module, enclose the
37286         conditional automake snippet in an automake conditional.
37287         (func_emit_autoconf_snippets): Emit shell functions that contain the
37288         code for conditional modules.
37289         (func_import, func_create_testdir): Update specification.
37291 2011-05-03  Eric Blake  <eblake@redhat.com>
37293         test-getaddrinfo: report error information
37294         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
37296 2011-05-03  Jim Meyering  <meyering@redhat.com>
37298         bootstrap: avoid build failure when $GZIP is set
37299         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
37300         program name.  If defined at all, it is supposed to list gzip options.
37301         Reported by Alan Curry in http://debbugs.gnu.org/8609
37303 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
37305         readme-release: new module with release instructions
37306         * modules/readme-release: New module.
37307         * top/README-release: New file, from coreutils, grep, diffutils.
37308         * MODULES.html.sh (Support for maintaining and releasing): Add it.
37310 2011-05-02  Eric Blake  <eblake@redhat.com>
37312         fflush: also replace fclose when fixing fflush
37313         * modules/fflush (Depends-on): Add fclose.
37314         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
37315         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
37316         memstreams with no backing fd.
37317         * doc/posix-functions/fclose.texi (fclose): Document the use of
37318         fflush module to fix the bug.
37319         * tests/test-fclose.c (main): Relax test when fclose is used in
37320         isolation.
37322         fclose: add some tests
37323         * modules/fclose-tests: New test module.
37324         * tests/test-fclose.c: New file.
37325         * doc/posix-functions/fclose.texi (fclose): Document the bug.
37327         fclose: reduced dependencies
37328         * modules/fclose (Depends-on): Switch from fflush/fseeko to
37329         simpler lseek.
37330         * lib/fclose.c (rpl_fclose): Likewise.
37331         Reported by Simon Josefsson.
37333         exit: drop remaining clients
37334         * modules/argmatch (Depends-on): Replace exit with stdlib.
37335         * modules/copy-file (Depends-on): Likewise.
37336         * modules/execute (Depends-on): Likewise.
37337         * modules/exitfail (Depends-on): Likewise.
37338         * modules/obstack (Depends-on): Likewise.
37339         * modules/pagealign_alloc (Depends-on): Likewise.
37340         * modules/pipe-filter-gi (Depends-on): Likewise.
37341         * modules/pipe-filter-ii (Depends-on): Likewise.
37342         * modules/savewd (Depends-on): Likewise.
37343         * modules/spawn-pipe (Depends-on): Likewise.
37344         * modules/wait-process (Depends-on): Likewise.
37345         * modules/xsetenv (Depends-on): Likewise.
37346         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
37347         * modules/git-merge-changelog (Depends-on): Likewise.
37348         * modules/long-options (Depends-on): Likewise.
37349         * modules/pt_chown (Depends-on): Likewise.
37350         * modules/sysexits (Depends-on): Likewise.
37352         freading: relax license from LGPLv3+ to LGPLv2+
37353         * modules/freading (License): Relax LGPL version.
37355 2011-05-02  Bruno Haible  <bruno@clisp.org>
37357         fchdir: Remove unused dependencies.
37358         * modules/fchdir (Depends-on): Remove include_next.
37360 2011-05-02  Bruno Haible  <bruno@clisp.org>
37362         gnulib-tool: Refactor.
37363         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
37364         from func_emit_autoconf_snippets.
37365         (func_emit_autoconf_snippets): Use it.
37367 2011-05-02  Simon Josefsson  <simon@josefsson.org>
37369         * NEWS: Document removal of 'exit'.
37370         * modules/exit: Remove file.
37372 2011-05-01  Bruno Haible  <bruno@clisp.org>
37374         Update DEPENDENCIES.
37375         * DEPENDENCIES (gettext): Recommend the newest release.
37376         Reported by Simon Josefsson.
37378 2011-05-01  Bruno Haible  <bruno@clisp.org>
37380         gnulib-tool: Reduce code duplication.
37381         * gnulib-tool (func_emit_autoconf_snippets): New function.
37382         (func_import, func_create_testdir): Use it.
37384 2011-04-30  Eric Blake  <eblake@redhat.com>
37386         fclose: don't fail on non-seekable input stream
37387         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
37388         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
37389         since fflush is allowed to fail in that case.
37391 2011-04-30  Bruno Haible  <bruno@clisp.org>
37393         dup3: cleanup
37394         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
37396 2011-04-30  Bruno Haible  <bruno@clisp.org>
37398         netdb: Make it work in C++ mode.
37399         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
37400         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
37401         module.
37402         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
37403         gl_MODULE_INDICATOR_FOR_TESTS.
37404         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
37405         * modules/netdb-c++-tests: New file.
37406         * tests/test-netdb-c++.cc: New file.
37408 2011-04-30  Bruno Haible  <bruno@clisp.org>
37410         New modules 'vfscanf', 'vscanf'.
37411         * modules/vfscanf: New file.
37412         * modules/vscanf: New file.
37413         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
37414         here.
37415         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
37416         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
37418 2011-04-30  Bruno Haible  <bruno@clisp.org>
37420         passfd: Add comments.
37421         * lib/passfd.c: Add comments about platforms.
37423 2011-04-30  Bruno Haible  <bruno@clisp.org>
37425         sys_uio: Make <sys/uio.h> self-contained.
37426         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
37427         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
37429 2011-04-30  Bruno Haible  <bruno@clisp.org>
37431         sys_socket: Ensure 'struct iovec' definition.
37432         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
37433         <sys/socket.h>.
37434         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
37436 2011-04-30  Bruno Haible  <bruno@clisp.org>
37438         sys_uio: Protect definition of 'struct iovec'.
37439         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
37440         it as a C struct.
37442 2011-04-30  Bruno Haible  <bruno@clisp.org>
37444         manywarnings: fix indentation
37445         * m4/manywarnings.m4: Indent by 2 spaces consistently.
37447 2011-04-30  Pádraig Brady  <P@draigBrady.com>
37449         manywarnings: add -Wno-missing-field-initializers if needed.
37450         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
37451         option if it's needed to allow initialization with { 0, }
37453 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
37455         announce-gen: cosmetic improvement
37456         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
37458 2011-04-29  Jim Meyering  <meyering@redhat.com>
37460         vc-list-files: indent with spaces, not TABs
37461         * build-aux/vc-list-files: Convert leading TABs to spaces,
37462         to match the style of most other files in gnulib.
37464         announce-gen: indent with spaces, not TABs
37465         * build-aux/announce-gen: Convert all TABs to spaces, to match
37466         the style of most other files in gnulib.
37468 2011-04-29  Eric Blake  <eblake@redhat.com>
37470         quotearg: avoid uninitialized variable use
37471         * lib/quotearg.c (quoting_options_from_style): Initialize
37472         remaining fields, and ensure that custom styles are only used via
37473         quoting_options rather than quoting_style.
37475 2011-04-29  Jim Meyering  <meyering@redhat.com>
37477         maint.mk: remove unused VC-tag variable
37478         * top/maint.mk (VC-tag): Remove unused variable.
37480 2011-04-29  Bruno Haible  <bruno@clisp.org>
37482         netdb: fix gai_strerror replacements
37483         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
37484         * modules/netdb: Substitute it.
37486 2011-04-29  Jim Meyering  <meyering@redhat.com>
37488         test-getcwd.c: avoid new set-but-not-used warning
37489         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
37490         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
37491         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
37492         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
37494         test-hash.c: avoid a new shadowing warning
37495         * tests/test-hash.c (main): Don't shadow "dup".
37497 2011-04-28  Eric Blake  <eblake@redhat.com>
37499         getaddrinfo: fix gai_strerror signature
37500         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
37501         and work around mingw with UNICODE defined.
37502         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
37503         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
37504         * modules/netdb (Makefile.am): Substitute it.
37505         * lib/netdb.in.h (gai_strerror): Declare replacement.
37506         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
37507         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
37508         the fix.
37510         getsockopt: avoid compiler warning
37511         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
37512         Reported by Matthias Bolte.
37514         tests: drop unused link dependency
37515         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
37516         * modules/dirent-safer-tests (Makefile.am): Likewise.
37517         * modules/fdopendir-tests (Makefile.am): Likewise.
37518         * modules/mkfifoat-tests (Makefile.am): Likewise.
37519         * modules/openat-safer-tests (Makefile.am): Likewise.
37520         * modules/openat-tests (Makefile.am): Likewise.
37521         * modules/readlinkat-tests (Makefile.am): Likewise.
37522         * modules/symlinkat-tests (Makefile.am): Likewise.
37523         * modules/linkat-tests (Makefile.am): Likewise.
37524         (Depends-on): Switch to filenamecat-lgpl.
37525         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
37526         LIBINTL.
37527         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
37528         * tests/test-linkat.c (main): Don't require xalloc.
37530         hash, mgetgroups: drop xalloc dependency
37531         * lib/hash.c (includes): Adjust includes.
37532         * lib/mgetgroups.c (includes): Likewise.
37533         (xgetgroups): Move...
37534         * lib/xgetgroups.c: ...to new file.
37535         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
37536         * modules/xgetgroups: New file, split from...
37537         * modules/mgetgroups: ...here.
37538         (Depends-on): Add xalloc-oversized.
37539         * modules/hash (Depends-on): Likewise.
37540         * modules/hash-tests (Depends-on): Drop xalloc.
37541         (test_hash_LDADD): Drop unused library.
37542         * tests/test-hash.c (main): Break xalloc dependency.
37543         (includes): Drop unused include.
37545         xalloc-oversized: new module
37546         * modules/xalloc-oversized: New module.
37547         * modules/xalloc (Depends-on): Add it.
37548         * lib/xalloc.h (xalloc_oversized): Move...
37549         * lib/xalloc-oversized.h: ...into new file.
37551         utimecmp: drop dependency on xmalloc
37552         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
37553         due to memory pressure.
37554         * modules/utimecmp (Depends-on): Drop xalloc.
37556 2011-04-27  Eric Blake  <eblake@redhat.com>
37558         getcwd: fix mingw bugs
37559         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
37560         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
37561         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
37563 2011-04-27  Bruno Haible  <bruno@clisp.org>
37565         mkstemps: Ensure declaration on MacOS X 10.5.
37566         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
37567         * doc/glibc-functions/mkstemps.texi: Document header file problem on
37568         MacOS X.
37570 2011-04-27  Bruno Haible  <bruno@clisp.org>
37572         mkstemp: More documentation.
37573         * doc/posix-functions/mkstemp.texi: Document header file problem on
37574         MacOS X.
37576 2011-04-27  Bruno Haible  <bruno@clisp.org>
37578         mkstemp: Tweak configure message when cross-compiling.
37579         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
37580         result as a guess.
37582 2011-04-27  Bruno Haible  <bruno@clisp.org>
37584         clean-temp: Clarify what it does.
37585         * lib/clean-temp.h: Add more comments.
37586         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
37587         module.
37588         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
37589         * doc/glibc-functions/mkstemps.texi: Likewise.
37590         * doc/glibc-functions/mkostemps.texi: Likewise.
37592 2011-04-27  Eric Blake  <eblake@redhat.com>
37594         fchdir: avoid extra chdir and fix test
37595         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
37596         getcwd-lgpl.
37597         * lib/fchdir.c (get_name): Any absolute name will do; it does not
37598         have to be canonical.
37599         (canonicalize_file_name): Drop unused macro.
37600         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
37602         filenamecat-lgpl: fix licence
37603         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
37604         when it was first created.
37606         linkat, renameat: add missing dependency
37607         * modules/linkat (Depends-on): Require getcwd-lgpl.
37608         * modules/renameat (Depends-on): Likewise.
37610         tests: reduce dependencies
37611         * tests/test-linkat.c (main): Use lighter-weight getcwd.
37612         * tests/test-renameat.c (main): Likewise.
37613         * modules/linkat-tests (Depends-on): Relax dependency.
37614         * modules/renameat-tests (Depends-on): Likewise.
37615         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
37616         dependency explicit.
37618         save-cwd: reduce default dependency
37619         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
37620         * lib/save-cwd.c: Update comments.
37621         * NEWS: Document the semantic change.
37623         getcwd: enhance tests
37624         * tests/test-getcwd-lgpl.c: New file, taken from...
37625         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
37626         repeat long path stress tests from m4 probe.
37627         * modules/getcwd-lgpl-tests: New module.
37628         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
37629         * m4/getcwd-abort-bug.m4: Update comment.
37630         * m4/getcwd-path-max.m4: Likewise.
37632         getcwd-lgpl: new module
37633         * modules/getcwd-lgpl: New module.
37634         * lib/getcwd-lgpl.c: New file.
37635         * doc/posix-functions/getcwd.texi (getcwd): Document it.
37636         * MODULES.html.sh (lacking POSIX:2008): Likewise.
37637         * modules/getcwd (configure.ac): Set C witness.
37638         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
37640         getcwd: tweak comments
37641         * m4/getcwd-abort-bug.m4: Fix comments.
37642         * m4/getcwd-path-max.m4: Likewise.
37643         * m4/getcwd.m4: Likewise.
37645 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
37646         and Eric Blake  <eblake@redhat.com>
37648         mkstemp: replace if system version uses wrong permissions
37649         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
37650         read/write mode bits set in file created by mkstemp.
37651         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
37653 2011-04-27  Eric Blake  <eblake@redhat.com>
37655         passfd: avoid compiler warning
37656         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
37657         Reported by Laine Stump.
37659 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
37661         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
37662         required by the NetBSD (and perhaps other 4.4BSD derived) join.
37664 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
37665         and Eric Blake  <eblake@redhat.com>
37667         mkstemp: mention clean-temp module
37668         * lib/mkstemp.c: Add comment.
37669         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
37671 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
37673         inttypes: also provide default values for 32-bit tests
37674         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
37675         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
37677 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
37679         strtoumax: remove dependency on strtoimax
37680         This is like the strtoull change of yesterday.
37681         * modules/strtoumax (Files): Add lib/strtoimax.c.
37682         (Depends-on): Remove strtoimax and add verify.
37684         inttypes-incomplete: new module
37685         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
37686         all but the PRI* and SCN* parts of gl_INTTYPES_H.
37687         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
37688         of gl_INTTYPES_H.
37689         (gl_INTTYPES_H): Rewrite in terms of these new macros.
37690         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
37691         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
37692         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
37693         * modules/strtoumax, modules/xstrtol (Depends-on):
37694         Depend on inttypes-incomplete, not inttypes.
37695         * modules/inttypes-incomplete: New module, containing the contents
37696         of the old modules/inttypes module, except that the Files: section
37697         omits m4/inttypes-pri.m4, and the configure.ac section invokes
37698         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
37699         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
37700         (Depends-on): Depend only on inttypes-incomplete.
37701         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
37703         inttypes: omit now-redundant strtoimax and strtoumax work
37704         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
37705         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
37707         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
37708         This supports apps that need pointers to strtoimax and strtoumax,
37709         and ports to HP-UX 11.00 64.bit, which has macros that expand to
37710         nonexistent functions.  See
37711         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
37712         et seq.
37713         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
37714         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
37715         a macro.
37716         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
37718 2011-04-25  Simon Josefsson  <simon@josefsson.org>
37720         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
37722 2011-04-25  Bruno Haible  <bruno@clisp.org>
37724         strtol, strtoul: Mark modules as obsolete.
37725         * modules/strtol (Status, Notice): New sections.
37726         * modules/strtoul (Status, Notice): New sections.
37728 2011-04-25  Bruno Haible  <bruno@clisp.org>
37730         strtod: Remove check for strtod, unless supporting old platforms.
37731         * modules/strtod-obsolete: New file.
37732         * m4/strtod-obsolete.m4: New file.
37733         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
37734         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
37735         * modules/strtod (Depends-on): Add strtod-obsolete.
37736         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
37738 2011-04-25  Bruno Haible  <bruno@clisp.org>
37740         strcase: Make module obsolete.
37741         * modules/strcase (Status, Notice): New sections.
37743 2011-04-25  Bruno Haible  <bruno@clisp.org>
37745         dup2: Remove check for dup2, unless supporting old obsolete platforms.
37746         * modules/dup2-obsolete: New file.
37747         * m4/dup2-obsolete.m4: New file.
37748         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
37749         gl_FUNC_DUP2_OBSOLETE is not also defined.
37750         * modules/dup2 (Depends-on): Add dup2-obsolete.
37751         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
37753 2011-04-25  Bruno Haible  <bruno@clisp.org>
37755         strnlen: Avoid memchr related link error on old obsolete platforms.
37756         * modules/memchr-obsolete: New file.
37757         * m4/memchr-obsolete.m4: New file.
37758         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
37759         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
37760         * modules/memchr (Depends-on): Add memchr-obsolete.
37761         * modules/strnlen (Depends-on): Likewise.
37762         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
37764 2011-04-25  Jim Meyering  <meyering@redhat.com>
37766         maint.mk: makefile_at_at_check extend and clean up
37767         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
37768         in addition to */Makefile.am.
37769         Exempt legitimate uses of @VAR@ notation, e.g.,
37770         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
37771         Remove obsolete coreutils-specific comment.
37772         Prompted by discussion here:
37773         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
37775 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
37777         strtoul: remove dependency on strtol
37778         This is so that 'configure' need not check for strtol merely because
37779         the application needs strtoul.
37780         * modules/strtoul (Files): Add lib/strtol.c.
37781         (Depends-on): Remove strtol.
37783         strtoull: remove dependency on strtoul
37784         This is like the strtoll change.
37785         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
37786         (Depends-on): Remove strtoul.
37788         strtoll: remove dependency on strtol
37789         This is so that 'configure' need not check for strtol merely because
37790         the application needs strtoll.
37791         * modules/strtoll (Files): Add lib/strtol.c.
37792         (Depends-on): Remove strtol.
37794 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
37796         inttypes: Move some configure check to module 'imaxdiv'.
37797         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
37798         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
37799         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
37801 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
37803         inttypes: Move some configure check to module 'imaxabs'.
37804         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
37805         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
37806         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
37808 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
37810         inttypes: Remove configure tests that are not needed since 2009-12-31.
37811         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
37812         gl_cv_header_working_inttypes_h.
37814 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
37816         * modules/strnlen (Depends-on): Remove memchr.
37817         The strnlen implementation doesn't need the memchr module's fixes; see
37818         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
37820         strtol: remove dependency on wchar
37821         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
37822         * modules/strtol (Depends-on): Remove wchar.
37824 2011-04-21  Eric Blake  <eblake@redhat.com>
37826         passfd: fix test regression on Linux
37827         * modules/passfd-tests (configure.ac): Correct socketpair check.
37829         passfd: speed up configure and drop unused code
37830         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
37831         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
37832         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
37833         Instead of probing at configure for unix_scm_rights_bsd44_way,
37834         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
37835         check to a struct member probe.
37836         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
37837         (sendfd, recvfd): Update preprocessor checks.
37838         * modules/passfd (Files): Reflect rename, and drop unused file.
37839         (Depends-on): Drop unused dependency.
37841         passfd: allow compilation on mingw
37842         * modules/sys_socket (Depends-on): Add sys_uio.
37843         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
37844         iovec and a minimal struct msghdr.
37845         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
37846         * tests/test-sys_socket.c (main): Enhance test.
37847         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
37848         guaranteed to provide what we need.
37849         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
37850         * modules/passfd-tests (Depends-on): Add sys_wait.
37851         * tests/test-passfd.c (main): Skip test on mingw, for now.
37852         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
37853         partial 'struct msghdr' implementation.
37855         sys_uio: new module
37856         * modules/sys_uio: New module.
37857         * modules/sys_uio-tests: Likewise.
37858         * lib/sys_uio.in.h: New file.
37859         * m4/sys_uio_h.m4: Likewise.
37860         * tests/test-sys_uio.c: Likewise.
37861         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
37862         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
37864 2011-04-20  Jim Meyering  <meyering@redhat.com>
37866         useless-if-before-free: avoid false-positive
37867         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
37868         disjunct so that it too requires a terminating ";".  Without that,
37869         this script would identify as useless one statement from gcc that
37870         was not:
37871           if (aligned_ptr)
37872             free (((void **) aligned_ptr) [-1]);
37874 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
37876         doc: update users.txt.
37877         * users.txt: Add barcode.
37879 2011-04-19  Bruno Haible  <bruno@clisp.org>
37881         ioctl: Remove link dependency on native Windows.
37882         * lib/fd-hook.h: Renamed from lib/close-hook.h.
37883         (gl_close_fn, gl_ioctl_fn): New types.
37884         (struct fd_hook): Renamed from struct close_hook. Change type of
37885         private_close_fn field. Add private_ioctl_fn field.
37886         (close_hook_fn): Add parameter for primary close method.
37887         (execute_close_hooks, execute_all_close_hooks): Likewise.
37888         (ioctl_hook_fn): New type.
37889         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
37890         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
37891         argument.
37892         (unregister_fd_hook): Renamed from unregister_close_hook.
37893         * lib/fd-hook.c: Renamed from lib/close-hook.c.
37894         Don't include <unistd.h>.
37895         (close): Remove undef.
37896         (anchor): Update.
37897         (execute_close_hooks): Add argument for primary close method.
37898         (execute_all_close_hooks): Likewise.
37899         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
37900         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
37901         argument. Allow each argument to be NULL.
37902         (unregister_fd_hook): Renamed from unregister_close_hook.
37903         * lib/close.c (rpl_close): Pass 'close' function pointer to
37904         execute_all_close_hooks.
37905         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
37906         (primary_ioctl): New function.
37907         (ioctl): Don't call ioctlsocket here. Instead, call
37908         execute_all_ioctl_hooks.
37909         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
37910         close method.
37911         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
37912         (fd_sockets_hook): Renamed from close_sockets_hook.
37913         (gl_sockets_startup, gl_sockets_cleanup): Update.
37914         * modules/fd-hook: Renamed from modules/close-hook. Update.
37915         * modules/close (Depends-on): Add fd-hook, remove close-hook.
37916         * modules/sockets (Depends-on): Likewise.
37917         * modules/ioctl (Depends-on): Add fd-hook.
37918         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
37919         GNULIB_SOCKET.
37921 2011-04-19  Bruno Haible  <bruno@clisp.org>
37923         Move the support of O_NONBLOCK in open() to the 'open' module.
37924         * modules/nonblocking (Depends-on): Remove 'open'.
37925         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
37926         gl_cv_have_open_O_NONBLOCK.
37927         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
37928         O_NONBLOCK support.
37929         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
37931 2011-04-17  Bruno Haible  <bruno@clisp.org>
37933         pipe2: Simplify code.
37934         * lib/pipe2.c (pipe2): Reduce code duplication.
37936 2011-04-17  Bruno Haible  <bruno@clisp.org>
37938         nonblocking: Add comment.
37939         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
37941 2011-04-17  Bruno Haible  <bruno@clisp.org>
37943         nonblocking: Add tests for sockets.
37944         * tests/test-nonblocking-socket.sh: New file.
37945         * tests/test-nonblocking-socket-main.c: New file.
37946         * tests/test-nonblocking-socket-child.c: New file.
37947         * tests/test-nonblocking-socket.h: New file.
37948         * tests/socket-server.h: New file.
37949         * tests/socket-client.h: New file.
37950         * modules/nonblocking-socket-tests: New file.
37951         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
37953 2011-04-17  Bruno Haible  <bruno@clisp.org>
37955         nonblocking: Add tests for pipes.
37956         * tests/test-nonblocking-pipe.sh: New file.
37957         * tests/test-nonblocking-pipe-main.c: New file.
37958         * tests/test-nonblocking-pipe-child.c: New file.
37959         * tests/test-nonblocking-pipe.h: New file.
37960         * tests/test-nonblocking-writer.h: New file.
37961         * tests/test-nonblocking-reader.h: New file.
37962         * tests/test-nonblocking-misc.h: New file.
37963         * modules/nonblocking-pipe-tests: New file.
37964         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
37966 2011-04-16  Bruno Haible  <bruno@clisp.org>
37968         gettext: Clarify the needed programmer actions.
37969         * modules/gettext (Notice): New field.
37970         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
37972 2011-04-16  Bruno Haible  <bruno@clisp.org>
37974         strchrnul: Tweak last commit.
37975         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
37976         bug.
37977         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
37978         as in _GL_FUNCDECL_SYS.
37979         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
37980         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
37982 2011-04-15  Eric Blake  <eblake@redhat.com>
37984         strchrnul: work around cygwin bug
37985         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
37986         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
37987         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
37988         * modules/string (Makefile.am): Substitute it.
37989         * lib/string.in.h (strchrnul): Use it.
37991 2011-04-15  Bruno Haible  <bruno@clisp.org>
37993         Don't require lib/stdio-write.c when only module 'stdio' is used.
37994         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
37995         invocation.
37996         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
37998 2011-04-14  Bruno Haible  <bruno@clisp.org>
38000         Support non-blocking pipe I/O in read() on native Windows.
38001         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
38002         (read): New declaration.
38003         * lib/read.c: New file.
38004         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
38005         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
38006         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
38007         vscanf): New declarations.
38008         * lib/stdio-read.c: New file.
38009         * m4/read.m4: New file.
38010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
38011         REPLACE_READ.
38012         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
38013         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38014         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
38015         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
38016         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
38017         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38018         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
38019         * modules/read: New file.
38020         * modules/nonblocking (Files): Add lib/stdio-read.c.
38021         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
38022         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
38023         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38024         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
38025         * modules/pread (Depends-on): Add read.
38026         * modules/safe-read (Depends-on): Likewise.
38027         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
38028         gets, scanf, vfscanf, vscanf): Verify signatures.
38029         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
38030         problem with non-blocking pipes.
38031         * doc/posix-functions/fgetc.texi: Likewise.
38032         * doc/posix-functions/fgets.texi: Likewise.
38033         * doc/posix-functions/fread.texi: Likewise.
38034         * doc/posix-functions/fscanf.texi: Likewise.
38035         * doc/posix-functions/getc.texi: Likewise.
38036         * doc/posix-functions/getchar.texi: Likewise.
38037         * doc/posix-functions/gets.texi: Likewise.
38038         * doc/posix-functions/scanf.texi: Likewise.
38039         * doc/posix-functions/vfscanf.texi: Likewise.
38040         * doc/posix-functions/vscanf.texi: Likewise.
38042 2011-04-14  Bruno Haible  <bruno@clisp.org>
38044         Support non-blocking pipe I/O in write() on native Windows.
38045         * lib/write.c (rpl_write): Split a write request that failed merely
38046         because the byte count was larger than the pipe buffer's size.
38047         * doc/posix-functions/write.texi: Mention the problem with large byte
38048         counts.
38050 2011-04-14  Bruno Haible  <bruno@clisp.org>
38052         wchar: Ensure that wchar_t gets defined on uClibc.
38053         * lib/wchar.in.h: On uClibc, include <stddef.h>.
38054         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
38056 2011-04-13  Bruno Haible  <bruno@clisp.org>
38058         safe-write, full-read: Avoid unnecessary compilation units.
38059         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
38060         (Depends-on): Remove safe-read. Add ssize_t.
38061         * modules/full-read (Files): Add lib/full-write.c.
38062         (Depends-on): Add full-write.
38064 2011-04-13  Bruno Haible  <bruno@clisp.org>
38066         Support non-blocking pipe I/O and SIGPIPE in pwrite().
38067         * modules/pwrite (Depends-on): Add 'write'.
38069 2011-04-13  Bruno Haible  <bruno@clisp.org>
38071         Support non-blocking pipe I/O in write() on native Windows.
38072         * lib/unistd.in.h (write): Enable replacement also if
38073         GNULIB_UNISTD_H_NONBLOCKING is 1.
38074         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
38075         (rpl_write): When failing to write on a non-blocking pipe, change
38076         errno from ENOSPC to EAGAIN.
38077         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
38078         putchar, puts, vfprintf, vprintf): Enable replacement also if
38079         GNULIB_STDIO_H_NONBLOCKING is 1.
38080         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
38081         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
38082         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
38083         CALL_WITH_SIGPIPE_EMULATION.
38084         (CALL_WITH_SIGPIPE_EMULATION): Use them.
38085         * m4/nonblocking.m4: New file.
38086         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
38087         for non-blocking I/O support.
38088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38089         GNULIB_UNISTD_H_NONBLOCKING.
38090         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
38091         required for non-blocking I/O support.
38092         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
38093         * modules/nonblocking (Files): Add m4/nonblocking.m4,
38094         lib/stdio-write.c, m4/asm-underscore.m4.
38095         (Depends-on): Add stdio, unistd.
38096         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
38097         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
38098         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
38099         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
38100         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
38101         problem with non-blocking pipes.
38102         * doc/posix-functions/fputc.texi: Likewise.
38103         * doc/posix-functions/fputs.texi: Likewise.
38104         * doc/posix-functions/fwrite.texi: Likewise.
38105         * doc/posix-functions/printf.texi: Likewise.
38106         * doc/posix-functions/putc.texi: Likewise.
38107         * doc/posix-functions/putchar.texi: Likewise.
38108         * doc/posix-functions/puts.texi: Likewise.
38109         * doc/posix-functions/vfprintf.texi: Likewise.
38110         * doc/posix-functions/vprintf.texi: Likewise.
38111         * doc/posix-functions/write.texi: Likewise.
38113 2011-04-10  Jim Meyering  <meyering@redhat.com>
38115         maint.mk: prohibit doubled words
38116         Detect them also when they're separated by a newline.
38117         There are 3 ways to customize it:
38118           - disable the test on a per file basis, as usual with rules using
38119             $(VC_LIST_EXCEPT)
38120           - replace the default doubled-word-selecting regexp (affects all files)
38121           - ignore a particular file-vs-doubled-word match
38122         I nearly used that last one to ignore the "is is" match in
38123         coreutils' NEWS file, since the text was "ls -is is ..."
38124         To do that, I would have added this line to cfg.mk:
38125           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
38126         but it would have ignored any "is is" match in NEWS.
38127         Low probability, but still...
38128         Instead, I changed the text, slightly:
38129           -  ls -is is now consistent with ls -lis in ignoring values returned
38130           +  "ls -is" is now consistent with ls -lis in ignoring values returned
38131         * top/maint.mk (prohibit_double_word_RE_): Provide default.
38132         (prohibit_doubled_word_): Define.
38133         (sc_prohibit_doubled_word): New rule.
38134         (sc_prohibit_the_the): Remove.  Subsumed by the above.
38136 2011-04-10  Jim Meyering  <meyering@redhat.com>
38138         maint: fix doubled-word typo in comment
38139         * m4/gethostname.m4: s/is is/it is/
38140         * m4/getdomainname.m4: Likewise.
38142 2011-04-10  Jim Meyering  <meyering@redhat.com>
38144         maint: remove doubled word: s/it it/it/
38145         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
38147 2011-04-10  Jim Meyering  <meyering@redhat.com>
38149         maint.mk: remove useless semicolon and backslash
38150         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
38151         semicolon and backslash.
38153 2011-04-10  Bruno Haible  <bruno@clisp.org>
38155         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
38156         * modules/stdint-tests (Depends-on): Add wchar.
38158 2011-04-10  Jim Meyering  <meyering@redhat.com>
38160         maint: remove doubled words in comments, e.g., s/a a/a/
38161         * lib/strptime.c (day_of_the_week): s/the the/the/
38162         * tests/test-chown.h (test_chown): s/a a/a/
38164         test-chown.h: correct a cast
38165         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
38166         when the destination is a stat.st_gid.
38168 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
38170         getaddrinfo: Fix test for sa_len member.
38171         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
38172         include <sys/types.h> before <sys/socket.h>.
38174 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
38176         maint: change "can not" to "cannot"
38177         * doc/posix-functions/iconv.texi (iconv): This one crossed line
38178         boundaries.
38180 2011-04-09  Jim Meyering  <meyering@redhat.com>
38182         maint: change "a a" to "a"
38183         * tests/test-lchown.h (test_lchown): s/a a/a/
38185         maint.mk: prohibit \<the the\>
38186         * top/maint.mk (sc_prohibit_the_the): New rule.
38188         maint: fix "the the" in comment
38189         * lib/count-one-bits.h: s/the the/the/
38191         maint: change "can not" to "cannot"
38192         But do not change the occurrences in maintain.texi or in
38193         build-aux/po/Makefile.in.in, which I presume comes from gettext.
38194         * doc/gnulib-tool.texi: s/can not/cannot/
38195         * doc/posix-functions/accept.texi (accept): Likewise.
38196         * doc/posix-functions/socket.texi (socket): Likewise.
38197         * lib/mbrtowc.c: Likewise.
38199         maint.mk: prohibit use of "can not"
38200         * top/maint.mk (sc_prohibit_can_not): New rule.
38201         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
38203 2011-04-09  Bruno Haible  <bruno@clisp.org>
38205         careadlinkat: Guard against misuse of careadlinkatcwd.
38206         * lib/careadlinkat.c: Include <stdlib.h>.
38207         (careadlinkatcwd): Check that the fd argument is as expected.
38209 2011-04-09  Bruno Haible  <bruno@clisp.org>
38211         careadlinkat: Use common coding style.
38212         * lib/careadlinkat.c: Move gnulib includes after system includes.
38214 2011-04-09  Bruno Haible  <bruno@clisp.org>
38216         careadlinkat: Clarify specification.
38217         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
38218         (careadlinkatcwd): Add comment.
38219         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
38221 2011-04-09  Bruno Haible  <bruno@clisp.org>
38223         areadlinkat: Avoid link error on many platforms.
38224         * modules/areadlinkat (Depends-on): Add areadlink.
38226 2011-04-09  Bruno Haible  <bruno@clisp.org>
38228         allocator, careadlinkat: Fix double-inclusion guard.
38229         * lib/allocator.h: Fix double-inclusion guard.
38230         * lib/careadlinkat.h: Likewise.
38232 2011-04-09  Bruno Haible  <bruno@clisp.org>
38234         relocatable-prog-wrapper: Update after module 'areadlink' changed.
38235         * lib/relocwrapper.c: Update dependencies hierarchy.
38236         * build-aux/install-reloc: Update list of files to be compiled.
38237         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
38238         lib/allocator.[hc].
38240 2011-04-08  Eric Blake  <eblake@redhat.com>
38242         strftime: silence gnulib-tool warning
38243         * modules/strftime-tests (Depends-on): Drop automatic dependency.
38245 2011-04-08  Bruno Haible  <bruno@clisp.org>
38247         verify: Fix syntax error with GCC 4.6 in C++ mode.
38248         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
38249         (HAVE_STATIC_ASSERT): New macro.
38250         (verify_true, verify): Use 'static_assert' if it is supported and
38251         '_Static_assert' is not supported.
38253 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
38255         allocator: New module.
38256         * modules/allocator, lib/allocator.c: New files.
38257         * lib/allocator.h (stdlib_allocator): New decl.
38258         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
38259         Remove.  Do not include <stdlib.h>.
38260         (careadlinkat): Use stdlib_allocator instead of rolling our own.
38261         * modules/careadlinkat (Files): Remove lib/allocator.h.
38262         (Depends-on): Add allocator.
38264         stdlib: let modules use system malloc, realloc
38265         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
38266         if !_GL_USE_STDLIB_ALLOC.
38267         (malloc, realloc): Limit this change to a smaller scope.
38269         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
38270         (malloc, realloc): Don't #undef; no longer needed.
38271         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38272         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38273         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
38274         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38275         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38276         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38277         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38278         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
38280         careadlinkat: rename members to avoid problem
38281         * lib/allocator.h (struct allocator): Rename members from
38282         malloc/realloc to allocate/reallocate, to avoid problems if malloc
38283         and realloc are #define'd.  Reported by Eric Blake in
38284         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
38285         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
38287 2011-04-08  Eric Blake  <eblake@redhat.com>
38289         nonblocking: reduce dependency
38290         * tests/test-nonblocking.c: Only test sockets when in use.
38291         * modules/nonblocking-tests (Depends-on): Drop socket.
38292         (Makefile.am): Link even if sockets are not present.
38293         * modules/pipe2-tests (Makefile.am): Likewise.
38294         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
38296         pipe2: fix O_NONBLOCK support on mingw
38297         * modules/pipe2 (Depends-on): Add nonblocking.
38298         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
38299         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
38300         * tests/test-nonblocking.c (main): Likewise.
38301         * modules/pipe2-tests (Makefile.am): Avoid link failure.
38303         fcntl-h: fix O_ACCMODE on cygwin
38304         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
38305         * lib/fcntl.in.h (O_ACCMODE): Fix it.
38307         pipe-filter: drop O_NONBLOCK workarounds
38308         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
38309         * modules/pipe-filter-ii (Depends-on): Likewise.
38310         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
38312         nonblocking: provide O_NONBLOCK for mingw
38313         * modules/nonblocking (Depends-on): Add open.
38314         (configure.ac): Set new witness macro.
38315         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
38316         * modules/fcntl-h (Makefile.am): Substitute it.
38317         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
38318         nonblocking module is in use.
38319         * lib/nonblocking.c: Adjust portability test.
38320         * lib/open.c (open): Don't let native open see gnulib flag.
38321         * tests/test-fcntl-h.c (main): Enhance test.
38322         * tests/test-open.h (test_open): Likewise.
38323         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
38325         careadlinkat: fix compilation error on mingw
38326         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
38327         within struct allocator.
38329 2011-04-06  Eric Blake  <eblake@redhat.com>
38331         binary-io: relicense under LGPLv2+
38332         * modules/binary-io (License): Relax to LGPLv2+.
38333         Requested for libvirt, and required by pipe2.
38335 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
38337         verify: use _Static_assert if available
38338         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
38339         (verify_true, verify): Use it if available.  This generates better
38340         diagnostics with GCC 4.6.0 and later.
38342 2011-04-05  Bruno Haible  <bruno@clisp.org>
38344         Remove leftover generated .h files after config.status changed.
38346         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
38347         GL_GENERATE_ALLOCA_H.
38348         * modules/alloca-opt (Makefile.am): Remove alloca.h if
38349         GL_GENERATE_ALLOCA_H evaluates to false.
38351         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
38352         GL_GENERATE_ARGZ_H.
38353         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
38354         evaluates to false.
38356         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
38357         GL_GENERATE_BYTESWAP_H.
38358         * modules/byteswap (Makefile.am): Remove byteswap.h if
38359         GL_GENERATE_BYTESWAP_H evaluates to false.
38361         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
38362         GL_GENERATE_ERRNO_H.
38363         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
38364         evaluates to false.
38366         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
38367         GL_GENERATE_FLOAT_H.
38368         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
38369         evaluates to false.
38371         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
38372         GL_GENERATE_FNMATCH_H.
38373         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
38374         GL_GENERATE_FNMATCH_H evaluates to false.
38376         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
38377         GL_GENERATE_GLOB_H.
38378         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
38379         evaluates to false.
38381         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
38382         automake conditional GL_GENERATE_ICONV_H.
38383         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
38384         evaluates to false.
38386         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
38387         GL_GENERATE_NETINET_IN_H.
38388         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
38389         GL_GENERATE_NETINET_IN_H evaluates to false.
38391         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
38392         conditional GL_GENERATE_PTHREAD_H.
38393         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
38394         * modules/pthread (Makefile.am): Remove pthread.h if
38395         GL_GENERATE_PTHREAD_H evaluates to false.
38397         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
38398         GL_GENERATE_SCHED_H.
38399         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
38400         evaluates to false.
38402         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
38403         conditional GL_GENERATE_SELINUX_CONTEXT_H.
38404         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
38405         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
38407         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
38408         GL_GENERATE_STDARG_H.
38409         * modules/stdarg (Makefile.am): Remove stdarg.h if
38410         GL_GENERATE_STDARG_H evaluates to false.
38412         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
38413         GL_GENERATE_STDBOOL_H.
38414         * modules/stdbool (Makefile.am): Remove stdbool.h if
38415         GL_GENERATE_STDBOOL_H evaluates to false.
38417         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
38418         conditional GL_GENERATE_STDDEF_H.
38419         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
38420         * modules/stddef (Makefile.am): Remove stddef.h if
38421         GL_GENERATE_STDDEF_H evaluates to false.
38423         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
38424         GL_GENERATE_STDINT_H.
38425         * modules/stdint (Makefile.am): Remove stdint.h if
38426         GL_GENERATE_STDINT_H evaluates to false.
38428         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
38429         GL_GENERATE_SYSEXITS_H.
38430         * modules/sysexits (Makefile.am): Remove sysexits.h if
38431         GL_GENERATE_SYSEXITS_H evaluates to false.
38433         Reported by Karl Berry and Ralf Wildenhues.
38435 2011-04-05  Bruno Haible  <bruno@clisp.org>
38437         Ensure to rebuild generated .h files when config.status has changed.
38438         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
38439         config.status.
38440         * modules/ctype (Makefile.am): Likewise.
38441         * modules/dirent (Makefile.am): Likewise.
38442         * modules/errno (Makefile.am): Likewise.
38443         * modules/fcntl-h (Makefile.am): Likewise.
38444         * modules/float (Makefile.am): Likewise.
38445         * modules/getopt-posix (Makefile.am): Likewise.
38446         * modules/glob (Makefile.am): Likewise.
38447         * modules/iconv-h (Makefile.am): Likewise.
38448         * modules/inttypes (Makefile.am): Likewise.
38449         * modules/langinfo (Makefile.am): Likewise.
38450         * modules/locale (Makefile.am): Likewise.
38451         * modules/math (Makefile.am): Likewise.
38452         * modules/netdb (Makefile.am): Likewise.
38453         * modules/netinet_in (Makefile.am): Likewise.
38454         * modules/poll-h (Makefile.am): Likewise.
38455         * modules/pthread (Makefile.am): Likewise.
38456         * modules/pty (Makefile.am): Likewise.
38457         * modules/sched (Makefile.am): Likewise.
38458         * modules/search (Makefile.am): Likewise.
38459         * modules/selinux-h (Makefile.am): Likewise.
38460         * modules/signal (Makefile.am): Likewise.
38461         * modules/spawn (Makefile.am): Likewise.
38462         * modules/stdarg (Makefile.am): Likewise.
38463         * modules/stdbool (Makefile.am): Likewise.
38464         * modules/stddef (Makefile.am): Likewise.
38465         * modules/stdint (Makefile.am): Likewise.
38466         * modules/stdio (Makefile.am): Likewise.
38467         * modules/stdlib (Makefile.am): Likewise.
38468         * modules/string (Makefile.am): Likewise.
38469         * modules/strings (Makefile.am): Likewise.
38470         * modules/sys_file (Makefile.am): Likewise.
38471         * modules/sys_ioctl (Makefile.am): Likewise.
38472         * modules/sys_select (Makefile.am): Likewise.
38473         * modules/sys_socket (Makefile.am): Likewise.
38474         * modules/sys_stat (Makefile.am): Likewise.
38475         * modules/sys_time (Makefile.am): Likewise.
38476         * modules/sys_times (Makefile.am): Likewise.
38477         * modules/sys_utsname (Makefile.am): Likewise.
38478         * modules/sys_wait (Makefile.am): Likewise.
38479         * modules/sysexits (Makefile.am): Likewise.
38480         * modules/termios (Makefile.am): Likewise.
38481         * modules/time (Makefile.am): Likewise.
38482         * modules/unistd (Makefile.am): Likewise.
38483         * modules/wchar (Makefile.am): Likewise.
38484         * modules/wctype-h (Makefile.am): Likewise.
38485         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
38487 2011-04-05  Bruno Haible  <bruno@clisp.org>
38489         pipe2: Relicense under LGPLv2+.
38490         * modules/pipe2 (License): Change to LGPLv2+.
38491         Requested by Eric Blake, for libvirt.
38493 2011-04-05  Bruce Korb  <bkorb@gnu.org>
38495         bootstrap: compute gnulib_extra_files after updating build_aux
38496         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
38497         change build_aux or also supply gnulib_extra_files.  Handle correctly.
38499 2011-04-05  Eric Blake  <eblake@redhat.com>
38501         bootstrap: preserve git whitelist item sorting
38502         * build-aux/bootstrap (sort_patterns): New function.
38503         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
38505 2011-04-05  Simon Josefsson  <simon@josefsson.org>
38507         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
38508         sc_space_tab check.
38510 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
38512         areadlink, areadlinkat: rewrite in terms of careadlinkat
38513         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
38514         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
38515         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
38516         (malloc, realloc): Remove #undefs.
38517         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
38518         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
38519         readlink, ssize_t, stdint, unistd.
38520         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
38521         areadlink, stdint.
38523         careadlinkat: new module
38524         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
38525         * modules/careadlinkat: New files, written by me with
38526         a review and feedback from Ben Pfaff in
38527         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
38529 2011-04-01  Bruno Haible  <bruno@clisp.org>
38531         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
38532         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
38533         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
38534         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
38535         Reported by Bruce Korb <bruce.korb@gmail.com>.
38537 2011-04-01  Bruno Haible  <bruno@clisp.org>
38539         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
38540         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
38541         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
38542         * modules/wcpcpy (Depends-on): Add extensions.
38543         * modules/wcpncpy (Depends-on): Likewise.
38544         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
38545         systems.
38546         * doc/posix-functions/wcpncpy.texi: Likewise.
38547         * doc/posix-functions/wcwidth.texi: Likewise.
38549 2011-03-31  Eric Blake  <eblake@redhat.com>
38551         nonblocking: fix mingw test failures
38552         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
38553         non-blocking flag on regular file.
38554         (get_nonblocking_flag): Set errno on invalid fd.
38555         * tests/test-nonblocking.c (main): Avoid test failure on
38556         directories if fchdir is not active.
38557         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
38559 2011-03-31  Bruno Haible  <bruno@clisp.org>
38561         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
38562         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
38563         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
38564         Reported by Simon Josefsson <simon@josefsson.org>.
38566 2011-03-31  Bruno Haible  <bruno@clisp.org>
38567         and Eric Blake  <eblake@redhat.com>
38569         nonblocking: new module
38570         * modules/nonblocking: New module.
38571         * modules/nonblocking-tests: Likewise.
38572         * lib/nonblocking.h: New file.
38573         * lib/nonblocking.c: Likewise.
38574         * tests/test-nonblocking.c: New test.
38575         * lib/ioctl.c (ioctl) [mingw]: Update comment.
38577 2011-03-30  Bruno Haible  <bruno@clisp.org>
38579         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
38580         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
38581         instead of 'printf' format for GCC >= 4.4.
38582         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
38583         (fprintf, printf, vfprintf, vprintf): Declare with
38584         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
38585         the system's vfprintf() function.
38586         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
38588 2011-03-30  Eric Blake  <eblake@redhat.com>
38590         passfd: fix scoping bug
38591         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
38592         before sendmsg/recvmsg.
38594         passfd: standardize coding conventions
38595         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
38596         can be learned at compile time.
38597         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
38598         ifdefs.
38599         (sendfd, recvfd): Follow gnulib code conventions.
38601         passfd: fix incorrect sendmsg arguments
38602         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
38603         incorrect msg_controllen value.
38604         * modules/passfd-tests (Depends-on): Check for alarm.
38605         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
38606         Reported by Bastien ROUCARIES.
38608 2011-03-30  Bruno Haible  <bruno@clisp.org>
38610         c-strcasestr: Relicense under LGPLv2+.
38611         * modules/c-strcasestr (License): Change to LGPLv2+.
38612         Requested by Eric Blake, for libvirt.
38614 2011-03-30  Simon Josefsson  <simon@josefsson.org>
38616         * users.txt: Add libidn2.  Fix libtasn1 link.
38618 2011-03-30  Jim Meyering  <meyering@redhat.com>
38620         tests: readlink* ("",... fails with EINVAL on newer kernels
38621         readlink and readlinkat have typically failed with ENOENT for
38622         the invalid, empty file name,  "".  However, with the advent
38623         of linux-2.6.39, they fail with EINVAL.
38624         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
38625         when operating on the empty file name.
38626         * tests/test-readlink.h (test_readlink): Likewise.
38628 2011-03-29  Bruno Haible  <bruno@clisp.org>
38630         Relicense some modules under LGPLv2+, for libidn2.
38631         * modules/array-mergesort (License): Change to LGPLv2+.
38632         * modules/c-strcaseeq (License): Likewise.
38633         * modules/striconveh (License): Likewise.
38634         * modules/striconveha (License): Likewise.
38635         * modules/uniconv/base (License): Likewise.
38636         * modules/uniconv/u8-conv-from-enc (License): Likewise.
38637         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
38638         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
38639         * modules/unictype/base (License): Likewise.
38640         * modules/unictype/bidiclass-of (License): Likewise.
38641         * modules/unictype/category-M (License): Likewise.
38642         * modules/unictype/category-none (License): Likewise.
38643         * modules/unictype/category-of (License): Likewise.
38644         * modules/unictype/category-test (License): Likewise.
38645         * modules/unictype/category-test-withtable (License): Likewise.
38646         * modules/unictype/combining-class (License): Likewise.
38647         * modules/unictype/joiningtype-of (License): Likewise.
38648         * modules/unictype/scripts (License): Likewise.
38649         * modules/uninorm/base (License): Likewise.
38650         * modules/uninorm/canonical-decomposition (License): Likewise.
38651         * modules/uninorm/composition (License): Likewise.
38652         * modules/uninorm/decompose-internal (License): Likewise.
38653         * modules/uninorm/decomposition-table (License): Likewise.
38654         * modules/uninorm/nfc (License): Likewise.
38655         * modules/uninorm/nfd (License): Likewise.
38656         * modules/uninorm/u32-normalize (License): Likewise.
38657         * modules/unistr/base (License): Likewise.
38658         * modules/unistr/u32-cpy (License): Likewise.
38659         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
38660         * modules/unistr/u32-to-u8 (License): Likewise.
38661         * modules/unistr/u32-uctomb (License): Likewise.
38662         * modules/unistr/u8-check (License): Likewise.
38663         * modules/unistr/u8-mblen (License): Likewise.
38664         * modules/unistr/u8-mbtouc (License): Likewise.
38665         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
38666         * modules/unistr/u8-mbtoucr (License): Likewise.
38667         * modules/unistr/u8-prev (License): Likewise.
38668         * modules/unistr/u8-strlen (License): Likewise.
38669         * modules/unistr/u8-to-u32 (License): Likewise.
38670         * modules/unistr/u8-uctomb (License): Likewise.
38671         * modules/unitypes (License): Likewise.
38672         Requested by Simon Josefsson.
38674 2011-03-29  Simon Josefsson  <simon@josefsson.org>
38676         lib-symbol-visibility: Add a notice.
38677         * modules/lib-symbol-visibility (Notice): New field.
38679 2011-03-29  Bruno Haible  <bruno@clisp.org>
38681         getaddrinfo: Doc fix.
38682         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
38683         section "fixed in Gnulib".
38685 2011-03-28  Simon Josefsson  <simon@josefsson.org>
38687         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
38688         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
38690 2011-03-26  Bruno Haible  <bruno@clisp.org>
38692         unictype/property-byname: Reduce the number of load-time relocations.
38693         * lib/unictype/pr_byname.c: Include <stdlib.h>.
38694         (UC_PROPERTY_INDEX_*): New enumeration values.
38695         (uc_property_byname): Convert an index from the lookup table to an
38696         uc_property_t.
38697         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
38698         values.
38700 2011-03-26  Bruno Haible  <bruno@clisp.org>
38702         unictype/property-byname: Allow omitted word separators and aliases.
38703         * lib/unictype/pr_byname.gperf: Add property names without word
38704         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
38705         for 'space'.
38707 2011-03-26  Bruno Haible  <bruno@clisp.org>
38709         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
38710         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
38711         also hyphens to space.
38712         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
38713         without spaces.
38714         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
38716 2011-03-26  Bruno Haible  <bruno@clisp.org>
38718         unictype/joiningtype-byname: Recognize long names as well.
38719         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
38720         a long name.
38721         * lib/unictype/joiningtype_byname.c: Include <string.h>,
38722         unictype/joiningtype_byname.h.
38723         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
38724         * lib/unictype/joiningtype_byname.gperf: New file.
38725         * modules/unictype/joiningtype-byname (Files): Add
38726         lib/unictype/joiningtype_byname.gperf.
38727         (Depends-on): Add gperf.
38728         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
38729         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
38730         long names.
38732         Tests for module 'unictype/joiningtype-longname'.
38733         * modules/unictype/joiningtype-longname-tests: New file.
38734         * tests/unictype/test-joiningtype_longname.c: New file.
38736         New module 'unictype/joiningtype-longname'.
38737         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
38738         * lib/unictype/joiningtype_longname.c: New file.
38739         * modules/unictype/joiningtype-longname: New file.
38740         * modules/unictype/joiningtype-all (Depends-on): Add
38741         unictype/joiningtype-longname.
38743 2011-03-26  Bruno Haible  <bruno@clisp.org>
38745         unictype/bidiclass-byname: Recognize long names as well.
38746         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
38747         name.
38748         * lib/unictype/bidi_byname.c: Include <string.h>,
38749         unictype/bidi_byname.h.
38750         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
38751         * lib/unictype/bidi_byname.gperf: New file.
38752         * modules/unictype/bidiclass-byname (Files): Add
38753         lib/unictype/bidi_byname.gperf.
38754         (Depends-on): Add gperf.
38755         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
38756         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
38757         long names.
38759         Tests for module 'unictype/bidiclass-longname'.
38760         * modules/unictype/bidiclass-longname-tests: New file.
38761         * tests/unictype/test-bidi_longname.c: New file.
38763         New module 'unictype/bidiclass-longname'.
38764         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
38765         * lib/unictype/bidi_longname.c: New file.
38766         * modules/unictype/bidiclass-longname: New file.
38767         * modules/unictype/bidiclass-all (Depends-on): Add
38768         unictype/bidiclass-longname.
38770 2011-03-26  Bruno Haible  <bruno@clisp.org>
38772         unictype/bidi*: Rename modules.
38773         * modules/unictype/bidiclass-all: Renamed from
38774         modules/unictype/bidicategory-all.
38775         * modules/unictype/bidiclass-name: Renamed from
38776         modules/unictype/bidiclass-name.
38777         (Description): Update.
38778         * modules/unictype/bidiclass-name-tests: Renamed from
38779         modules/unictype/bidicategory-name-tests.
38780         * modules/unictype/bidiclass-byname: Renamed from
38781         modules/unictype/bidicategory-byname.
38782         (Description): Update.
38783         * modules/unictype/bidiclass-byname-tests: Renamed from
38784         modules/unictype/bidicategory-byname-tests.
38785         * modules/unictype/bidiclass-of: Renamed from
38786         modules/unictype/bidicategory-of.
38787         (Description): Update.
38788         * modules/unictype/bidiclass-of-tests: Renamed from
38789         modules/unictype/bidicategory-of-tests.
38790         * modules/unictype/bidiclass-test: Renamed from
38791         modules/unictype/bidicategory-test.
38792         (Description): Update.
38793         * modules/unictype/bidiclass-test-tests: Renamed from
38794         modules/unictype/bidicategory-test-tests.
38795         * modules/unictype/bidicategory-all: New file, a simple redirection.
38796         * modules/unictype/bidicategory-name: Likewise.
38797         * modules/unictype/bidicategory-byname: Likewise.
38798         * modules/unictype/bidicategory-of: Likewise.
38799         * modules/unictype/bidicategory-test: Likewise.
38800         * modules/unictype/property-bidi-* (Dependencies): Update.
38801         * lib/unictype/bidi_*.c: Update comment.
38803 2011-03-26  Bruno Haible  <bruno@clisp.org>
38805         unictype/bidi*: Rename functions, part 2.
38806         * modules/unictype/bidicategory-name (configure.ac): Update required
38807         libunistring version.
38808         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
38810 2011-03-25  Bruno Haible  <bruno@clisp.org>
38812         New module 'unictype/combining-class-all'.
38813         * modules/unictype/combining-class-all: New file.
38815         Tests for module 'unictype/combining-class-byname'.
38816         * modules/unictype/combining-class-byname-tests: New file.
38817         * tests/unictype/test-combiningclass_byname.c: New file.
38819         New module 'unictype/combining-class-byname'.
38820         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
38821         * lib/unictype/combiningclass_byname.c: New file.
38822         * lib/unictype/combiningclass_byname.gperf: New file.
38823         * modules/unictype/combining-class-byname: New file.
38825         Tests for module 'unictype/combining-class-longname'.
38826         * modules/unictype/combining-class-longname-tests: New file.
38827         * tests/unictype/test-combiningclass_longname.c: New file.
38829         New module 'unictype/combining-class-longname'.
38830         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
38831         * lib/unictype/combiningclass_longname.c: New file.
38832         * modules/unictype/combining-class-longname: New file.
38834         Tests for module 'unictype/combining-class-name'.
38835         * modules/unictype/combining-class-name-tests: New file.
38836         * tests/unictype/test-combiningclass_name.c: New file.
38838         New module 'unictype/combining-class-name'.
38839         * lib/unictype.in.h (uc_combining_class_name): New declaration.
38840         * lib/unictype/combiningclass_name.c: New file.
38841         * modules/unictype/combining-class-name: New file.
38843 2011-03-25  Bruno Haible  <bruno@clisp.org>
38845         unictype/combining-class: Rename source files.
38846         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
38847         of unictype/combining.h.
38848         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
38849         Update.
38850         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
38851         * modules/unictype/combining-class (Description): Fix.
38852         (Files, Makefile.am): Update.
38853         * tests/unictype/test-combiningclass.c: Renamed from
38854         tests/unictype/test-combining.c.
38855         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
38857 2011-03-25  Bruno Haible  <bruno@clisp.org>
38859         unictype: Update list of canonical combining classes.
38860         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
38862 2011-03-25  Bruno Haible  <bruno@clisp.org>
38864         unictype/category-byname: Recognize long names as well.
38865         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
38866         a long name.
38867         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
38868         unictype/categ_byname.h.
38869         (UC_CATEGORY_INDEX_*): New enumeration values.
38870         (uc_general_category_byname): Use uc_general_category_lookup and
38871         convert from index to value.
38872         * lib/unictype/categ_byname.gperf: New file.
38873         * modules/unictype/category-byname (Files): Add
38874         lib/unictype/categ_byname.gperf.
38875         (Depends-on): Add gperf.
38876         (Makefile.am): Add rule for generating unictype/categ_byname.h.
38877         * tests/unictype/test-categ_byname.c (main): Test the recognition of
38878         long names.
38880         Tests for module 'unictype/category-longname'.
38881         * modules/unictype/category-longname-tests: New file.
38882         * tests/unictype/test-categ_longname.c: New file.
38884         New module 'unictype/category-longname'.
38885         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
38886         * lib/unictype/categ_longname.c: New file.
38887         * modules/unictype/category-longname: New file.
38888         * modules/unictype/category-all (Depends-on): Add it.
38890 2011-03-25  Bruno Haible  <bruno@clisp.org>
38892         Tests for module 'unictype/category-LC'.
38893         * modules/unictype/category-LC-tests: New file.
38894         * tests/unictype/test-categ_LC.c: New file, automatically generated.
38896         New module 'unictype/category-LC'.
38897         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
38898         (UC_CATEGORY_LC): New declaration.
38899         (UC_CASED_LETTER): New macro.
38900         * lib/gen-uni-tables.c (is_category_LC): New function.
38901         (output_categories): Also handle category LC.
38902         (UC_CATEGORY_MASK_LC): New enumeration value.
38903         (general_category_byname): Also handle category LC.
38904         * lib/unictype/categ_LC.c: New file.
38905         * lib/unictype/categ_LC.h: New file, automatically generated.
38906         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
38907         category LC.
38908         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
38909         * modules/unictype/category-LC: New file.
38910         * modules/unictype/category-byname (Depends-on): Add
38911         unictype/category-LC.
38912         * modules/unictype/category-all (Depends-on): Likewise.
38914 2011-03-25  Eric Blake  <eblake@redhat.com>
38916         xmalloc: revert yesterday's regression
38917         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
38918         realloc's underlying behavior (allowing allocation of zero-size
38919         objects, especially if malloc-gnu is also in use).
38921 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
38923         maint.mk: add missing version to VC-tag
38924         * top/maint.mk: git tag was missing actual tag name; add it.
38926         valgrind: do leak checking, and exit with code 1 on error (not 0)
38927         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
38928         to VALGRIND.
38930 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
38932         posix-modules: say what it does.
38933         * posix-modules: Add a line to the --help output saying what it does.
38935 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
38937         xmalloc: Do not leak if underlying realloc is C99 compatible.
38938         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
38939         This avoids a leak on C99-based systems.  See
38940         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
38942 2011-03-24  Eric Blake  <eblake@redhat.com>
38944         realloc: document portability problem
38945         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
38946         passing 0 size to realloc.
38948 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
38950         doc: update users.txt
38951         * users.txt: Add cvsps, tmpwatch
38953 2011-03-23  Matt Rice  <ratmice@gmail.com>
38955         doc: update users.txt
38956         * users.txt: Add gdb.
38958 2011-03-23  Jim Meyering  <meyering@redhat.com>
38960         doc: update users.txt
38961         Looking through matches up to the following URL (there are still
38962         several more pages), I found several projects that use gnulib:
38963         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
38964         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
38965         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
38967 2011-03-22  Bruno Haible  <bruno@clisp.org>
38969         unictype/bidi*: Rename functions.
38970         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
38971         uc_bidi_class, uc_is_bidi_class): New declarations.
38972         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
38973         uc_bidi_category_byname.
38974         (uc_bidi_category_byname): New function.
38975         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
38976         u_bidi_category_name.
38977         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
38978         (uc_bidi_category_name): New function.
38979         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
38980         uc_bidi_category.
38981         (uc_bidi_category): New function.
38982         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
38983         uc_is_bidi_category. Invoke uc_bidi_class.
38984         (uc_is_bidi_category): New function.
38985         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
38986         instead of uc_bidi_category_byname.
38987         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
38988         instead of uc_bidi_category_name.
38989         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
38990         uc_bidi_category.
38991         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
38992         instead of uc_is_bidi_category.
38994 2011-03-21  Bruno Haible  <bruno@clisp.org>
38996         New module 'unictype/joininggroup-all'.
38997         * modules/unictype/joininggroup-all: New file.
38999         Tests for module 'unictype/joininggroup-of'.
39000         * modules/unictype/joininggroup-of-tests: New file.
39001         * tests/unictype/test-joininggroup_of.c: New file.
39002         * tests/unictype/test-joininggroup_of.h: New file, automatically
39003         generated by gen-uni-tables.
39005         New module 'unictype/joininggroup-of'.
39006         * modules/unictype/joininggroup-of: New file.
39007         * lib/unictype/joininggroup_of.c: New file.
39008         * lib/unictype/joininggroup_of.h: New file, automatically generated by
39009         gen-uni-tables.
39011         Tests for module 'unictype/joininggroup-byname'.
39012         * modules/unictype/joininggroup-byname-tests: New file.
39013         * tests/unictype/test-joininggroup_byname.c: New file.
39015         New module 'unictype/joininggroup-byname'.
39016         * modules/unictype/joininggroup-byname: New file.
39017         * lib/unictype/joininggroup_byname.c: New file.
39018         * lib/unictype/joininggroup_byname.gperf: New file.
39020         Tests for module 'unictype/joininggroup-name'.
39021         * modules/unictype/joininggroup-name-tests: New file.
39022         * tests/unictype/test-joininggroup_name.c: New file.
39024         New module 'unictype/joininggroup-name'.
39025         * modules/unictype/joininggroup-name: New file.
39026         * lib/unictype/joininggroup_name.c: New file.
39027         * lib/unictype/joininggroup_name.h: New file.
39029         New module 'unictype/joiningtype-all'.
39030         * modules/unictype/joiningtype-all: New file.
39032         Tests for module 'unictype/joiningtype-of'.
39033         * modules/unictype/joiningtype-of-tests: New file.
39034         * tests/unictype/test-joiningtype_of.c: New file.
39035         * tests/unictype/test-joiningtype_of.h: New file, automatically
39036         generated by gen-uni-tables.
39038         New module 'unictype/joiningtype-of'.
39039         * modules/unictype/joiningtype-of: New file.
39040         * lib/unictype/joiningtype_of.c: New file.
39041         * lib/unictype/joiningtype_of.h: New file, automatically generated by
39042         gen-uni-tables.
39044         Tests for module 'unictype/joiningtype-byname'.
39045         * modules/unictype/joiningtype-byname-tests: New file.
39046         * tests/unictype/test-joiningtype_byname.c: New file.
39048         New module 'unictype/joiningtype-byname'.
39049         * modules/unictype/joiningtype-byname: New file.
39050         * lib/unictype/joiningtype_byname.c: New file.
39052         Tests for module 'unictype/joiningtype-name'.
39053         * modules/unictype/joiningtype-name-tests: New file.
39054         * tests/unictype/test-joiningtype_name.c: New file.
39056         New module 'unictype/joiningtype-name'.
39057         * modules/unictype/joiningtype-name: New file.
39058         * lib/unictype/joiningtype_name.c: New file.
39060         unictype: Add support for Arabic shaping properties.
39061         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
39062         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
39063         declarations.
39064         (UC_JOINING_GROUP_*): New enumeration values.
39065         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
39066         declarations.
39067         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
39068         (unicode_joining_type): New variable.
39069         (UC_JOINING_GROUP_*): New enumeration values.
39070         (unicode_joining_group): New variable.
39071         (fill_arabicshaping, joining_type_as_c_identifier,
39072         output_joining_type_test, output_joining_type,
39073         joining_group_as_c_identifier, output_joining_group_test,
39074         output_joining_group): New functions.
39075         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
39076         fill_arabicshaping and output_joining_type_test, output_joining_type,
39077         output_joining_group_test, output_joining_group.
39078         Reported by Simon Josefsson.
39080 2011-03-21  Jim Meyering  <meyering@redhat.com>
39082         strftime: fix a bug in yesterday's change
39083         * lib/strftime.c (add): Accommodate width's initial value of -1.
39084         Otherwise, nstrftime would copy uninitialized data into
39085         the result buffer.
39087 2011-03-21  Jim Meyering  <meyering@redhat.com>
39089         tests: add strftime-tests module
39090         * tests/test-strftime.c: New file.
39091         * modules/strftime-tests: New module.
39093 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
39095         strftime: don't assume a byte count fits in 'int'
39096         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
39097         found this problem by static analysis, using gcc -Wstrict-overflow
39098         (GCC 4.5.2, x86-64).  This reported an optimization that depended
39099         on an integer overflow having undefined behavior, but it turns out
39100         that the argument is a size, which might not fit in 'int' anyway,
39102 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
39104         stdio: don't require ignore_value around fwrite
39106         This patch works around libc bug 11959
39107         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
39108         Without this patch, applications must often write
39109         ignore_value (fwrite (...)) even though the ignore_value is
39110         not helpful here.  It's common to write many objects, using
39111         fwrite/printf/etc., and then use ferror to detect output error.
39113         I considered making this patch optional, but decided against it,
39114         because libc is obviously being inconsistent here: there is no
39115         reason libc should insist that user code must inspect fwrite
39116         return's value without also insisting that it inspect printf's,
39117         putchar's, etc.  If user code wants to have a strict style where
39118         all these functions' values are checked (so that ferror need not
39119         be checked), we could add support for that style in a new gnulib
39120         module, but in the meantime it's better to be consistent and to
39121         support common usage.
39123         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
39124         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
39125         that we are compiling in checking mode, and if not C++, and
39126         if not already wrapping fwrite for some other reason.
39127         (fwrite): #define to rpl_fwrite if the latter is defined.
39129 2011-03-20  Bruno Haible  <bruno@clisp.org>
39131         verror: Fix compilation error introduced on 2011-02-13.
39132         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
39133         instead of __attribute__.
39134         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39136 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
39137             Bruno Haible  <bruno@clisp.org>
39139         socklen: do not depend on sys_socket
39140         While trying to modify Emacs to use gnulib's socklen module,
39141         I discovered a circular dependency: socklen depends on sys_socket
39142         and vice versa.  Emacs can use socklen, but it does not need
39143         sys_socket because it has its own substitute for sys/socket.h.
39144         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
39145         gl_TYPE_SOCKLEN_T.
39146         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
39147         gl_PREREQ_SYS_H_SOCKET.
39148         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
39149         gl_PREREQ_SYS_H_SOCKET.
39150         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
39151         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
39152         * modules/socklen (Depends-on): Do not depend on sys_socket.
39153         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
39155 2011-03-20  Jim Meyering  <meyering@redhat.com>
39157         maint.mk: sort file names *after* new transformation
39158         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
39159         prefix would have led to an unwarranted failure in GNU parted.
39160         Sort after that transformation.
39162 2011-03-19  Jim Meyering  <meyering@redhat.com>
39164         maint.mk: fix po-file syntax-check rule
39165         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
39166         Patch by Bruno Haible.
39168 2011-03-19  Bruno Haible  <bruno@clisp.org>
39170         socklen: Update comment.
39171         * m4/socklen.m4: Update comment about platforms.
39173 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39174             Bruno Haible  <bruno@clisp.org>
39176         inet_ntop, inet_pton: Simplify.
39177         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
39178         documented to provide socklen_t and we already depend on sys_socket.
39179         * modules/inet_pton (Depends-on): Likewise.
39180         * lib/arpa_inet.in.h: Adjust comment.
39182 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39183             Bruno Haible  <bruno@clisp.org>
39185         netdb: Simplify.
39186         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
39187         documented to provide socklen_t and we already depend on sys_socket.
39188         * lib/netdb.in.h: Adjust comment.
39190 2011-03-19  Bruno Haible  <bruno@clisp.org>
39192         sys_socket, netdb: Document problem with socklen_t.
39193         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
39194         platforms.
39195         * doc/posix-headers/netdb.texi: Likewise.
39197 2011-03-18  Eric Blake  <eblake@redhat.com>
39199         maint.mk: let po check work in VPATH build
39200         * top/maint.mk (po_file): Allow cfg.mk override.
39201         (sc_po_check): Allow VPATH use.
39202         Reported by Jiri Denemark.
39204 2011-03-16  Jim Meyering  <meyering@redhat.com>
39206         maint.mk: allow fine-grained syntax-check exclusion via Make variables
39207         Before, you would have had to create one .x-sc_ file per rule in order
39208         to exempt offending files.  Now, you may instead use a Make variable --
39209         usually defined in cfg.mk -- whose name identifies the affected rule.
39210         * top/maint.mk (_sc_excl): Define.
39211         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
39212         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
39214 2011-03-13  Bruno Haible  <bruno@clisp.org>
39216         ignore-value tests: Avoid warnings.
39217         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
39218         empty for gcc < 3.4.
39220 2011-03-13  Bruno Haible  <bruno@clisp.org>
39222         passfd: Fix link error on Solaris.
39223         * modules/passfd (Description): Correct.
39224         (Depends-on): Add socketlib.
39225         (Link): New section.
39226         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
39228 2011-03-13  Bruno Haible  <bruno@clisp.org>
39230         passfd: Fix link error on AIX 5.2.
39231         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
39233 2011-03-13  Bruno Haible  <bruno@clisp.org>
39235         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
39236         * lib/sys_socket.in.h: Include <stddef.h>.
39237         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
39238         CMSG_FIRSTHDR. Remove unused variable.
39240 2011-03-13  Bruno Haible  <bruno@clisp.org>
39242         passfd: Fix compilation error on OpenBSD.
39243         * lib/passfd.c: Include <sys/uio.h>.
39245 2011-03-13  Bruno Haible  <bruno@clisp.org>
39247         passfd test: Fix warnings.
39248         * tests/test-passfd.c: Include <sys/wait.h>.
39249         (main): Fix typo.
39251 2011-03-13  Bruno Haible  <bruno@clisp.org>
39253         passfd module, part 4, tweaks.
39254         * tests/test-passfd.c: Reorder includes.
39255         (main): Fix perror and printf calls.
39257 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
39259         passfd module, part 4.
39260         * modules/passfd-tests: New file.
39261         * tests/test-passfd.c: New file.
39263 2011-03-13  Jim Meyering  <meyering@redhat.com>
39265         Makefile: rely on GNU make; derive syntax-check rule names
39266         Rather than requiring that each sc_ rule be listed as a dependent
39267         of "check", use features of GNU make to derive the list.
39268         * Makefile (syntax-check-rules): Define.
39269         (check): Depend on the new variable, not the hard-coded list.
39271 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
39272             Bruno Haible  <bruno@clisp.org>
39274         passfd module, part 3.
39275         * lib/passfd.h (recvfd): Add a flags argument.
39276         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
39277         (recvfd): Add a flags argument.
39278         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
39279         exists.
39280         * modules/passfd (Depends-on): Add cloexec.
39281         Suggested by Eric Blake.
39283 2011-03-13  Bruno Haible  <bruno@clisp.org>
39285         passfd module, part 2, tweaks.
39286         * modules/passfd (Files): Reorder.
39287         (Depends-on): Remove errno.
39288         (Include): Remove <sys/socket.h>, <sys/un.h>.
39289         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
39290         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
39291         specification header. Include <sys/socket.h> always. Don't include
39292         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
39293         (sendfd): Clarify that it sets errno when it fails.
39294         (recvfd): Fix specification.
39296 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
39298         passfd module, part 2.
39299         * modules/passfd: New file.
39300         * lib/passfd.h: New file.
39301         * lib/passfd.c: New file.
39303 2011-03-12  Bruno Haible  <bruno@clisp.org>
39305         wcswidth, mbswidth: Avoid integer overflow.
39306         * lib/wcswidth.c: Include <limits.h>.
39307         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
39308         * lib/mbswidth.c: Include <limits.h>.
39309         (mbsnwidth): Avoid 'int' overflow.
39310         Reported by Jim Meyering.
39312 2011-03-12  Bruno Haible  <bruno@clisp.org>
39314         futimens, utimensat: Avoid endless recursion on Solaris 10.
39315         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
39316         Solaris.
39317         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
39318         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
39320 2011-03-11  Jim Meyering  <meyering@redhat.com>
39322         maint.mk: relax a regexp to accommodate other formatting styles
39323         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
39324         between "ngettext" and the following "(".
39326 2011-03-11  Pádraig Brady  <P@draigBrady.com>
39328         maint.mk: suppress a false positive warning
39329         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
39330         diagnostics are marked with ngettext.
39332 2011-03-10  Eric Blake  <eblake@redhat.com>
39334         wchar: add explicit dependencies, for Tru64
39335         * modules/mbmemcasecoll (Depends-on): Add wchar.
39336         * modules/mbtowc (Depends-on): Likewise.
39337         * modules/vasnprintf (Depends-on): Likewise.
39338         * modules/unistdio/u-printf-args (Depends-on): Likewise.
39339         * modules/wctomb (Depends-on): Likewise.
39340         Reported by Peter O'Gorman.
39342 2011-03-08  Bruno Haible  <bruno@clisp.org>
39344         passfd module, part 1, tweaks.
39345         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
39346         Improve indentation. Improve AC_MSG_CHECKING messages.
39347         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
39348         gl_SOCKET_FAMILIES.
39350 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
39352         passfd module, part 1.
39353         * m4/afunix.m4: New file.
39354         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
39355         sockets.
39357 2011-03-08  Bruno Haible  <bruno@clisp.org>
39359         regex-quote: New API.
39360         * lib/regex-quote.h: Include <stdbool.h>.
39361         (struct regex_quote_spec): New type.
39362         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
39363         New declarations.
39364         (regex_quote_length, regex_quote_copy, regex_quote): Take a
39365         'const struct regex_quote_spec *' argument.
39366         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
39367         (pcre_special): New constant.
39368         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
39369         New functions.
39370         (regex_quote_length, regex_quote_copy, regex_quote): Take a
39371         'const struct regex_quote_spec *' argument.
39372         * modules/regex-quote (Depends-on): Add stdbool.
39373         * tests/test-regex-quote.c (check): Update for new API. Add test for
39374         anchored results.
39375         * NEWS: Mention the API change.
39376         Reported by Reuben Thomas and Eric Blake.
39378 2011-03-06  Bruno Haible  <bruno@clisp.org>
39380         regex-quote: Fix creation of POSIX extended regular expressions.
39381         * lib/regex-quote.c (ere_special): Add grouping and alternation
39382         operators.
39384 2011-03-05  Bruno Haible  <bruno@clisp.org>
39386         doc: Improve doc regarding autopoint vs. gnulib.
39387         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
39388         disable autopoint while running autoreconf.
39389         Suggested by Ralf Wildenhues.
39391 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39393         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
39394         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
39396 2011-03-03  Bruce Korb  <bkorb@gnu.org>
39398         parse-duration: remove xalloc.h dependency
39399         * lib/parse-duration.c (parse_period): handle NULL return from
39400         strdup instead of calling xstrdup().
39401         * modules/parse-duration: remove "xalloc" dependency
39403 2011-03-03  Matthew Booth  <mbooth@redhat.com>
39405         bootstrap: honor m4_base when running aclocal
39406         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
39408 2011-03-02  Jim Meyering  <meyering@redhat.com>
39410         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
39411         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
39412         on request from Matt Booth.
39414 2011-03-01  Eric Blake  <eblake@redhat.com>
39416         test-link: work on Hurd
39417         * tests/test-link.h (test_link): Hurd rejects linking directories
39418         with EISDIR instead of the POSIX-mandated EPERM.
39420 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
39422         stdio: simplify by moving files to printf-posix, sigpipe
39423         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
39424         since this symbol is needed only if printf is replaced.
39425         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
39426         Require gl_ASM_SYMBOL_PREFIX.
39427         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
39428         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
39429         (Depends-on): Add 'raise'.
39430         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
39431         * modules/stdio (Files): Remove lib/stdio-write.c,
39432         m4/asm-underscore.m4.
39433         (Depends-on): Remove 'raise'.
39435         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
39436         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
39437         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
39438         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
39440 2011-02-28  Bruno Haible  <bruno@clisp.org>
39442         localcharset: Assume ANSI C behaviour of free().
39443         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
39444         calling free().
39445         Suggested by Simon Josefsson <simon@josefsson.org>.
39447 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
39448             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
39449             Bruno Haible  <bruno@clisp.org>  (tiny change)
39451         On Cygwin, use /proc file system instead of win32 API.
39452         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
39453         Win32 file names.
39454         (DllMain): Simplify by removing Cygwin specific code.
39455         (find_shared_library_fullname): Use Linux specific implementation also
39456         for Cygwin.
39457         (get_shared_library_fullname): Update accordingly.
39458         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
39459         Win32 file names.
39460         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
39461         Cygwin specific code.
39463 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
39464             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
39466         Fix OpenMP flag detection for various Fortran compilers.
39467         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
39468         OpenMP-conditional compilation construct, to force compile
39469         failure with missing OpenMP flag.
39470         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
39472 2011-02-25  Eric Blake  <eblake@redhat.com>
39474         strstr: expand test coverage
39475         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
39476         compilation.
39477         * tests/test-memmem.c (main): Duplicate tests.
39478         * tests/test-strcasestr.c (main): Likewise.
39479         * tests/test-c-strcasestr.c (main): Likewise.
39481 2011-02-25  Jim Meyering  <meyering@redhat.com>
39483         maint.mk: detect missing-NL-at-EOF, too
39484         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
39485         it also detects when a file lacks a newline at EOF.
39486         (require_exactly_one_NL_at_EOF_): Renamed from
39487         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
39488         since people may well have .x-sc_... file names tied to the
39489         existing name.  Suggested by Eric Blake.
39491 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
39493         dirname: move m4/dos.m4 functionality into lib/dosname.h
39495         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
39496         extracts symbols from it, puts them into config.h; but it's much
39497         easier to use the symbols directly.  filename.h already does this,
39498         but it disagrees with dos.m4 in some respects.  This patch
39499         introduces a different include file dosname.h that packages up
39500         dos.m4, and then later we can work on merging filename.h and
39501         dosname.h.  Applications that need only the easy-to-configure
39502         symbols should consider including dosname.h rather than dirname.h.
39503         * NEWS: Mention incompatible changes.
39504         * m4/dos.m4: Remove.
39505         * lib/dosname.h, modules/dosname: New files.
39506         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
39507         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
39508         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
39509         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
39510         Include dosname.h, not dirname.h.
39511         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
39512         Include dosname.h, for definitions of symbols like ISSLASH
39513         that used to be in config.h.
39514         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
39515         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
39516         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39517         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
39518         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
39519         * modules/rmdir (Files): Likewise.
39520         * modules/stat (Files): Likewise.
39521         * modules/unlink (Files): Likewise.
39522         * modules/dirname-lgpl (Depends-on): Add dosname.
39523         * modules/lstat (Depends-on): Likewise.
39524         * modules/openat (Depends-on): Likewise.
39525         * modules/rmdir (Depends-on): Likewise.
39526         * modules/savewd (Depends-on): Likewise.
39527         * modules/stat (Depends-on): Likewise.
39528         * modules/unlink (Depends-on): Likewise.
39529         * modules/openat (Depends-on): Remove dirname-lgpl.
39530         * modules/savewd (Depends-on): Likewise.
39531         * tests/test-dirname.c: Do not use removed symbols like
39532         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
39533         the remaining symbols, e.g., ISSLASH ('\\').
39535 2011-02-25  Eric Blake  <eblake@redhat.com>
39537         strstr: revert patches that introduced bug and pessimization
39538         * lib/str-two-way.h: Add another reference.
39539         (two_way_short_needle, two_way_long_needle): Revert changes from
39540         2011-02-24; they pessimize search speed.
39541         (critical_factorization): Partially revert changes from
39542         2010-06-22; they violate the requirement that the left half of the
39543         needle be smaller than the period of the needle.
39545 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
39547         filenamecat: remove unnecessary dependency on dirname-lgpl
39548         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
39549         is no direct dependency, just an indirect one via filenamecat-lgpl.
39551         remove: remove unnecessary use of m4/dos.m4
39552         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
39553         * modules/remove (FILES): Remove m4/dos.m4.
39555         * lib/openat-proc.c: Don't include dirname.h; not needed.
39557         backupfile: remove unnecessary use of m4/dos.m4
39558         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
39559         of its symbols are used by the backupfile code.  backupfile.c does
39560         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
39561         for the rare case of programs that want all their backup file
39562         names to live within 8+3 limits, and dos.m4 doesn't address that.
39563         * modules/backupfile (Files): Remove m4/dos.m4.
39565 2011-02-24  Jim Meyering  <meyering@redhat.com>
39567         strstr: fix a bug whereby strstr would mistakenly return NULL
39568         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
39569         in period calculation.
39570         (two_way_long_needle): Likewise.
39571         The original problem was reported by Mike Stump in
39572         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
39573         Ralf Wildenhues provided the short needle and haystack.
39574         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
39575         Add a more involved test to trigger the bug in two_way_long_needle.
39577 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
39579         gnulib-tool: remove use of bold display in help screen
39580         * gnulib-tool (func_usage): Do not use bold display anymore in the
39581         help screen.  That was just meant to be a temporary emphasis for a
39582         backward-incompatible change.
39584 2011-02-23  Bruno Haible  <bruno@clisp.org>
39586         Fix misindentation of preprocessor directives.
39587         * lib/argp-namefrob.h: Reindent preprocessor directives.
39588         * lib/getopt_int.h (struct _getopt_data): Likewise.
39589         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
39590         * lib/vasnprintf.c (decode_long_double): Likewise.
39591         * tests/test-argmatch.c: Insert blank lines, for clarity.
39592         * tests/test-exclude.c: Likewise.
39594 2011-02-22  Bruno Haible  <bruno@clisp.org>
39596         ioctl: Fix for MacOS X in 64-bit mode.
39597         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
39598         value.
39599         Suggested by Eric Blake.
39600         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
39602 2011-02-22  Jim Meyering  <meyering@redhat.com>
39604         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
39605         * Makefile (sc_cpp_indent_check): Don't limit the check to files
39606         in lib/.
39608 2011-02-22  Eric Blake  <eblake@redhat.com>
39610         maint: avoid any CDPATH issue
39611         * Makefile (sc_cpp_indent_check): Anchor cd argument.
39613         maint: adjust cpp indentation for my modules, as well
39614         * Makefile (sc_cpp_indent_check): Add my name.
39615         * lib/fbufmode.c: Filter through cppi.
39616         * lib/fpurge.c: Likewise.
39617         * lib/freadable.c: Likewise.
39618         * lib/freading.c: Likewise.
39619         * lib/fwritable.c: Likewise.
39620         * lib/fwriting.c: Likewise.
39621         * lib/sigaction.c: Likewise.
39623 2011-02-22  Jim Meyering  <meyering@redhat.com>
39625         maint: adjust cpp indentation to reflect nesting depth
39626         I.e., in a block of code that begins with an unnested "#if",
39627         put one space between the "#" in column 1 and following token.
39628         For example,
39629         -#include <sys/vfs.h>
39630         +# include <sys/vfs.h>
39631         Do this only in .c files that are part of a module I maintain.
39632         * lib/linkat.c: Filter through cppi.
39633         * lib/nanosleep.c: Likewise.
39634         * lib/openat.c: Likewise.
39635         * lib/openat-die.c: Likewise.
39636         * lib/dup3.c: Likewise.
39637         * lib/fchownat.c: Likewise.
39638         * lib/flock.c: Likewise.
39639         * lib/fsync.c: Likewise.
39640         * lib/fts.c: Likewise.
39641         * lib/getpass.c: Likewise.
39642         * lib/gettimeofday.c: Likewise.
39643         * lib/userspec.c: Likewise.
39644         * Makefile (sc_cpp_indent_check): New rule, to check this.
39646 2011-02-22  Bruno Haible  <bruno@clisp.org>
39648         New module 'wctomb'.
39649         * lib/stdlib.in.h (wctomb): New declaration.
39650         * lib/wctomb.c: New file.
39651         * lib/wctomb-impl.h: New file.
39652         * m4/wctomb.m4: New file.
39653         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
39654         REPLACE_WCTOMB.
39655         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
39656         REPLACE_WCTOMB.
39657         * modules/wctomb: New file.
39658         * tests/test-stdlib-c++.cc: Test signature of wctomb.
39659         * doc/posix-functions/wctomb.texi: Mention the new module.
39660         * modules/wctob (Depends-on): Add wctomb.
39662 2011-02-22  Bruno Haible  <bruno@clisp.org>
39664         New module 'mbtowc'.
39665         * lib/stdlib.in.h (mbtowc): New declaration.
39666         * lib/mbtowc.c: New file.
39667         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
39668         * m4/mbtowc.m4: New file.
39669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
39670         REPLACE_MBTOWC.
39671         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
39672         REPLACE_MBTOWC.
39673         * modules/mbtowc: New file.
39674         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
39675         * doc/posix-functions/mbtowc.texi: Mention the new module.
39676         * modules/btowc (Depends-on): Add mbtowc.
39678 2011-02-22  Bruno Haible  <bruno@clisp.org>
39680         wcrtomb: Add more tests for native Windows platforms.
39681         * tests/test-wcrtomb-w32-1.sh: New file.
39682         * tests/test-wcrtomb-w32-2.sh: New file.
39683         * tests/test-wcrtomb-w32-3.sh: New file.
39684         * tests/test-wcrtomb-w32-4.sh: New file.
39685         * tests/test-wcrtomb-w32-5.sh: New file.
39686         * tests/test-wcrtomb-w32.c: New file.
39687         * modules/wcrtomb-tests (Files): Add them.
39688         (Makefile.am): Arrange to run these tests.
39689         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
39690         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
39692 2011-02-20  Bruno Haible  <bruno@clisp.org>
39694         wcrtomb: Enhance test.
39695         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
39697 2011-02-20  Bruno Haible  <bruno@clisp.org>
39699         mbrtowc: Tiny optimization.
39700         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
39702 2011-02-20  Jim Meyering  <meyering@redhat.com>
39704         test-exclude.c: remove unmatched #endif
39705         * tests/test-exclude.c: Remove stray #endif, left over from
39706         the change of a week ago.
39708 2011-02-19  Jim Meyering  <meyering@redhat.com>
39710         git-version-gen: skip "-dirty" check when appropriate
39711         * build-aux/git-version-gen: Don't run any git commands when the
39712         version string comes from .tarball-version.  Prior to this, we
39713         would run git update-index --refresh even from a just-unpacked
39714         tarball directory, and that could affect a .git/ directory in a
39715         parent of the build directory.  Reported by Mike Frysinger.
39717 2011-02-19  Bruno Haible  <bruno@clisp.org>
39719         unictype/property-byname: Reduce the size of the 'data' segment.
39720         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
39722 2011-02-19  Bruno Haible  <bruno@clisp.org>
39724         unictype/scripts: Reduce the size of the 'data' segment.
39725         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
39726         '%pic'.
39727         * lib/unictype/scripts_byname.gperf: Regenerated.
39729 2011-02-19  Bruno Haible  <bruno@clisp.org>
39731         stdint: Update documentation.
39732         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
39734 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
39736         stdint: omit redundant check for wchar.h
39737         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
39738         always tests whether wchar.h exists, so remove the now-redundant test.
39740 2011-02-18  Bruno Haible  <bruno@clisp.org>
39742         stdint: Cut dependency to module 'wchar'.
39743         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
39744         include the necessary prerequisites.
39745         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
39746         * modules/stdint (Depends-on): Remove wchar.
39747         (Makefile.am): Substitute HAVE_WCHAR_H.
39748         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
39750 2011-02-18  Eric Blake  <eblake@redhat.com>
39752         longlong: skip, rather than fail, on cross-compilation
39753         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
39754         when cross-compiling; regression from 2011-02-16.
39756 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
39758         * NEWS: Mention 2011-02-08 change to stdlib.
39760 2011-02-17  Bruno Haible  <bruno@clisp.org>
39762         getloadavg: Add comments about platforms.
39763         * m4/getloadavg.m4: Add comment.
39764         * lib/getloadavg.c: Likewise.
39766 2011-02-17  Bruno Haible  <bruno@clisp.org>
39768         getloadavg: Fix link error on Solaris 2.6.
39769         * modules/getloadavg (Link): New section.
39770         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
39771         linking test-getloadavg.
39772         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
39773         getloadavg.
39775 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
39777         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
39778         It was 'int', but this doesn't match the IRIX 6.5 manual.
39779         Suggested by Bruno Haible in
39780         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
39782 2011-02-17  Bruno Haible  <bruno@clisp.org>
39784         havelib: Fix comments.
39785         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
39786         change.
39788 2011-02-17  Bruno Haible  <bruno@clisp.org>
39790         havelib: Update config.rpath.
39791         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
39793 2011-02-17  Bruno Haible  <bruno@clisp.org>
39795         getloadavg test: Add some plausibility checks.
39796         * tests/test-getloadavg.c (check_avg): Print a warning when the value
39797         is improbable.
39799 2011-02-16  Eric Blake  <eblake@redhat.com>
39801         maintainer-makefile: make syntax-check a no-op from tarballs
39802         * top/maint.mk (no-vc-detected): New rule.
39803         (local-checks-available): Use it to avoid hanging if someone tries
39804         'make syntax-check' from a tarball.  Also append to any non-syntax
39805         checks already defined in cfg.mk.
39807 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
39809         longlong: tune, particularly for common case of c99
39811         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
39812         or running anything if c99, or if unsigned long long int does not
39813         work.  In either case, we know the answer without further tests.
39814         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
39815         it at most once, and use its results for both long long int and
39816         unsigned long long int.  This is more likely to be efficient in
39817         the common case where the program wants to check for both long
39818         long int and unsigned long long int.
39819         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
39820         since the answer is already known.
39822 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
39824         getloadavg: set errno
39825         * lib/getloadavg.c: Set errno when returning -1.  If no other
39826         error number looks appropriate, set it to ENOSYS if the getloadavg
39827         looks like it can't possibly ever work, ENOTSUP otherwise.
39828         Suggested by Bruno Haible in
39829         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
39831         getloadavg: trim unused parts and speed up 'configure'
39832         * NEWS: Document this.
39833         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
39834         always compiled if getloadavg is absent.
39835         Move test code to ...
39836         * tests/test-getloadavg.c: New file, containing previous
39837         contents of test from lib/getloadavg.c.  It also contains
39838         suggestions by Bruno Haible in
39839         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
39840         * modules/getloadavg-tests: New file.
39841         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
39842         Do tests in the same order as they're needed for getloadavg.c.
39843         Omit setgid-related tests that generate symbols KMEM_GROUP,
39844         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
39845         Do only the tests that are needed to see whether the system has
39846         getloadavg, moving the other tests into ...
39847         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
39848         NLIST_NAME_UNION; nobody should be using it.  Do not define
39849         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
39850         relevant, as the user of this module shouldn't care how getloadavg
39851         is implemented.
39853         getloadavg: omit unused var
39854         * lib/getloadavg.c (getloadavg): Omit unused local variable.
39856 2011-02-15  Jim Meyering  <meyering@redhat.com>
39858         doc: update users.txt
39859         * users.txt: Update iwhd's URL.
39861 2011-02-13  Bruno Haible  <bruno@clisp.org>
39863         Consistent macro naming for macros that use GCC __attribute__.
39864         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
39865         _ATTRIBUTE_NONNULL_.
39866         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
39867         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
39868         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
39869         ATTRIBUTE_DEPRECATED.
39870         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
39871         ATTRIBUTE_NORETURN.
39872         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
39873         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
39874         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
39875         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
39876         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
39877         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
39878         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
39879         ATTRIBUTE_SENTINEL.
39880         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
39881         ATTRIBUTE_RETURN_CHECK.
39882         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
39883         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
39884         ATTRIBUTE_NORETURN.
39885         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
39886         Reported by Paul Eggert.
39888 2011-02-13  Bruno Haible  <bruno@clisp.org>
39890         Don't interfere with a program's definition of __attribute__.
39891         * lib/argp.h (__attribute__): Remove definition.
39892         (_GL_ATTRIBUTE_FORMAT): New macro.
39893         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
39894         * lib/argp-fmtstream.h (__attribute__): Remove definition.
39895         (_GL_ATTRIBUTE_FORMAT): New macro.
39896         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
39897         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
39898         GCC 3 or newer.
39899         * lib/error.h (__attribute__): Remove definition.
39900         (_GL_ATTRIBUTE_FORMAT): New macro.
39901         (error, error_at_line): Use it.
39902         * lib/hash.h (__attribute__): Remove definition.
39903         (ATTRIBUTE_WUR): Update definition. Define always.
39904         * lib/openat.h (__attribute__): Remove definition.
39905         (ATTRIBUTE_NORETURN): Update definition. Define always.
39906         * lib/sigpipe-die.h (__attribute__): Remove definition.
39907         (ATTRIBUTE_NORETURN): Update definition. Define always.
39908         * lib/vasnprintf.h (__attribute__): Remove definition.
39909         (_GL_ATTRIBUTE_FORMAT): New macro.
39910         (asnprintf, vasnprintf): Use it.
39911         * lib/xalloc.h (__attribute__): Remove definition.
39912         (ATTRIBUTE_NORETURN): Update definition. Define always.
39913         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
39914         * lib/xmemdup0.h (__attribute__): Remove definition.
39915         (ATTRIBUTE_NORETURN): Update definition. Define always.
39916         * lib/xprintf.h (__attribute__): Remove definition.
39917         (_GL_ATTRIBUTE_FORMAT): New macro.
39918         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
39919         * lib/xstrtol.h (__attribute__): Remove definition.
39920         (ATTRIBUTE_NORETURN): Update definition. Define always.
39921         * lib/xvasprintf.h (__attribute__): Remove definition.
39922         (_GL_ATTRIBUTE_FORMAT): New macro.
39923         (xasprintf, xvasprintf): Use it.
39924         * tests/test-argmatch.c (__attribute__): Remove definition.
39925         (ATTRIBUTE_NORETURN): Update definition. Define always.
39926         * tests/test-exclude.c (__attribute__): Remove definition.
39927         (ATTRIBUTE_NORETURN): Update definition. Define always.
39928         Reported by Paul Eggert.
39930 2011-02-13  Bruno Haible  <bruno@clisp.org>
39932         mbrtowc: Add more tests for native Windows platforms.
39933         * tests/test-mbrtowc-w32-1.sh: New file.
39934         * tests/test-mbrtowc-w32-2.sh: New file.
39935         * tests/test-mbrtowc-w32-3.sh: New file.
39936         * tests/test-mbrtowc-w32-4.sh: New file.
39937         * tests/test-mbrtowc-w32-5.sh: New file.
39938         * tests/test-mbrtowc-w32.c: New file.
39939         * modules/mbrtowc-tests (Files): Add them.
39940         (Makefile.am): Arrange to run these tests.
39941         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
39942         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
39944 2011-02-13  Bruno Haible  <bruno@clisp.org>
39946         mbrtowc: Work around native Windows bug.
39947         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
39948         guess when no suitable locale for testing was found.
39949         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
39951 2011-02-13  Bruno Haible  <bruno@clisp.org>
39953         mbsinit: Work around mingw bug.
39954         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
39955         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
39956         Windows.
39957         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
39959 2011-02-13  Bruno Haible  <bruno@clisp.org>
39961         mbsinit: Don't crash for a NULL argument.
39962         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
39963         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
39965 2011-02-13  Bruno Haible  <bruno@clisp.org>
39967         Don't interfere with a program's definition of __attribute__.
39968         * lib/stdio.in.h (__attribute__): Remove definition.
39969         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
39970         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
39971         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
39972         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
39973         * lib/string.in.h (__attribute__): Remove definition.
39974         Reported by Paul Eggert.
39976 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39978         stdlib: don't get in the way of non-GCC __attribute__
39979         See thread starting at
39980         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
39981         Revert previous stdlib change, installing the following instead:
39982         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
39983         to get in the way of a non-GCC compiler that supports __attribute__.
39984         (_GL_ATTRIBUTE_RETURN): New macro.
39985         (_Exit): Use it instead of __attribute__.
39987 2011-02-12  Bruno Haible  <bruno@clisp.org>
39989         quotearg test: Avoid test failure on mingw.
39990         * tests/test-quotearg.sh: Convert the locale identifier from native
39991         Windows syntax to Unix syntax.
39993 2011-02-12  Bruno Haible  <bruno@clisp.org>
39995         setlocale: Prefer gnulib's override over libintl's override.
39996         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
39997         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
39998         GNULIB_defined_setlocale is set.
40000 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
40002         stdlib: support non-GCC __attribute__
40004         Fix a serious and tricky problem encountered when attempting to
40005         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
40006         5.5, but it crashed due to memory corruption on Solaris 10 with
40007         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
40008         bits that are otherwise zero.  This tagging is optional inside
40009         Emacs but is preferred and is used when __attribute__ ((__aligned
40010         (8))) works, as it does with both recent-enough GCC and with Sun C
40011         5.11.  However, Sun C 5.11 is not GCC and does not #define
40012         __GNUC__ and __GNUC_MINOR__.
40014         When I added the getloadavg module to Emacs, it brought in
40015         stdlib.in.h, which contained this fragment:
40017            #ifndef __attribute__
40018            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
40019            #  define __attribute__(Spec)   /* empty */
40020            # endif
40021            #endif
40023         When files that include <stdlib.h> were compiled with Sun C 5.11,
40024         the above code disabled __attribute__ ((__aligned (8))), which
40025         caused variables to not be properly aligned, which eventually led
40026         to the pointer corruption mentioned above.  (This was a bit hard
40027         to diagnose, unfortunately.)
40029         Several "#define __attribute__(X) /* empty */" code snippets need
40030         to be eradicated from Gnulib to work with non-GCC compilers that
40031         support __attribute__.  The Autoconf way to do this is to test for
40032         each kind of attribute that we want support for, and selectively
40033         enable that in source code.
40035         Fix this problem just for stdlib.h, by adding a test for the
40036         __noreturn__ attribute, and change stdlib.in.h to use that test
40037         when needed.  This technique can be easily generalized to the
40038         other *.in.h files and attributes, and a similar technique can be
40039         used for *.h and *.c files.  This patch is enough to solve the
40040         problem for Emacs + getloadavg, and I thought I'd publish it for
40041         feedback before undertaking further, similar fixes in other
40042         modules.
40044         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
40045         because it's not needed for stdlib.h.  It merely substitutes the
40046         value directly into stdlib.h.  We may well need to #define it, or
40047         similar symbols, for other modules, but it's nice to also have an
40048         option to not #define it for applications like Emacs that do not
40049         need it.
40051         * lib/stdlib.in.h (__attribute__): Do not #define.
40052         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
40053         be defined only if the _Exit module is also used.
40054         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
40055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
40056         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
40057         platforms.
40058         * modules/_Exit (Files): Add m4/attribute.m4.
40059         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
40060         * m4/attribute.m4: New file.
40062 2011-02-12  Bruno Haible  <bruno@clisp.org>
40064         wcsrtombs: Work around bug on native Windows.
40065         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
40066         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
40067         instead of len.
40068         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
40070 2011-02-12  Bruno Haible  <bruno@clisp.org>
40072         mbsrtowcs: Work around bug on native Windows.
40073         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
40074         against mingw bug.
40075         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
40077 2011-02-12  Bruno Haible  <bruno@clisp.org>
40079         Avoid setlocale bugs in tests.
40080         * modules/btowc (Dependencies): Add setlocale.
40081         * modules/c-strcase (Dependencies): Likewise.
40082         * modules/mbmemcasecmp (Dependencies): Likewise.
40083         * modules/mbmemcasecoll (Dependencies): Likewise.
40084         * modules/mbrtowc (Dependencies): Likewise.
40085         * modules/mbscasecmp (Dependencies): Likewise.
40086         * modules/mbscasestr (Dependencies): Likewise.
40087         * modules/mbschr (Dependencies): Likewise.
40088         * modules/mbscspn (Dependencies): Likewise.
40089         * modules/mbsinit (Dependencies): Likewise.
40090         * modules/mbsncasecmp (Dependencies): Likewise.
40091         * modules/mbsnrtowcs (Dependencies): Likewise.
40092         * modules/mbspbrk (Dependencies): Likewise.
40093         * modules/mbspcasecmp (Dependencies): Likewise.
40094         * modules/mbsrchr (Dependencies): Likewise.
40095         * modules/mbsrtowcs (Dependencies): Likewise.
40096         * modules/mbsspn (Dependencies): Likewise.
40097         * modules/mbsstr (Dependencies): Likewise.
40098         * modules/nl_langinfo (Dependencies): Likewise.
40099         * modules/quotearg (Dependencies): Likewise.
40100         * modules/unicase/locale-language (Dependencies): Likewise.
40101         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
40102         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
40103         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
40104         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
40105         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
40106         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
40107         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
40108         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
40109         * modules/vasnprintf-posix (Dependencies): Likewise.
40110         * modules/wcrtomb (Dependencies): Likewise.
40111         * modules/wcsnrtombs (Dependencies): Likewise.
40112         * modules/wcsrtombs (Dependencies): Likewise.
40114 2011-02-12  Bruno Haible  <bruno@clisp.org>
40116         setlocale: Workaround native Windows bug.
40117         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
40118         succeeds but sets LC_CTYPE to "C", report a failure.
40119         * tests/test-setlocale2.sh: New file.
40120         * tests/test-setlocale2.c: New file.
40121         * modules/setlocale-tests (Files): Add the new files.
40122         (Makefile.am): Enable test-setlocale2.sh test.
40123         * doc/posix-functions/setlocale.texi: Mention workaround.
40125 2011-02-11  Bruno Haible  <bruno@clisp.org>
40127         Tests for module 'setlocale'.
40128         * modules/setlocale-tests: New file.
40129         * tests/test-setlocale1.sh: New file.
40130         * tests/test-setlocale1.c: New file.
40132         New module 'setlocale'.
40133         * lib/locale.in.h (setlocale): New declaration.
40134         * lib/setlocale.c: New file, based on
40135         gettext/gettext-runtime/intl/setlocale.c.
40136         * m4/setlocale.m4: New file.
40137         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
40138         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
40139         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
40140         REPLACE_SETLOCALE.
40141         * modules/setlocale: New file.
40142         * tests/test-locale-c++.cc: Test the declaration of setlocale.
40143         * doc/posix-functions/setlocale.texi: Mention the new module.
40145 2011-02-11  Bruno Haible  <bruno@clisp.org>
40147         Prepare for locale dependent tests on mingw.
40148         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
40149         because it has the wrong locale encoding.
40150         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
40151         French_France.1252 instead of "fr".
40152         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
40153         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
40154         because it has the wrong locale encoding.
40155         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
40156         native Windows, try Turkish_Turkey.65001.
40157         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
40158         Chinese_China.54936.
40160         Prepare for locale dependent tests on mingw.
40161         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
40162         differently.
40163         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
40164         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
40165         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40166         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40168 2011-02-11  Eric Blake  <eblake@redhat.com>
40170         strptime: avoid compiler warnings
40171         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
40172         compiler warnings about dead code.
40173         Reported by Daniel P. Berrange.
40175 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
40177         doc: update users.txt
40178         * users.txt: Add rcs.
40180 2011-02-10  John W. Eaton  <jwe@gnu.org>
40182         doc: update users.txt
40183         * users.txt: Add octave.
40185 2011-02-10  Jim Meyering  <meyering@redhat.com>
40187         doc: update users.txt
40188         * users.txt: Add iwhd.
40190 2011-02-09  Bruno Haible  <bruno@clisp.org>
40192         gnulib-tool: Make copyright notice adjustment more robust.
40193         * gnulib-tool (func_import): In sed_transform_main_lib_file,
40194         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
40195         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
40196         License".
40197         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
40199 2011-02-06  Bruno Haible  <bruno@clisp.org>
40201         New module 'towctrans'.
40202         * modules/towctrans: New file.
40203         * lib/wctype.in.h (towctrans): New declaration.
40204         * lib/towctrans.c: New file.
40205         * lib/towctrans-impl.h: New file.
40206         * m4/towctrans.m4: New file.
40207         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
40208         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
40209         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
40210         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
40211         * doc/posix-functions/towctrans.texi: Mention the new module.
40213 2011-02-06  Bruno Haible  <bruno@clisp.org>
40215         New module 'wctrans'.
40216         * modules/wctrans: New file.
40217         * lib/wctype.in.h (wctrans): New declaration.
40218         * lib/wctrans.c: New file.
40219         * lib/wctrans-impl.h: New file.
40220         * m4/wctrans.m4: New file.
40221         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
40222         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
40223         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
40224         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
40225         * doc/posix-functions/wctrans.texi: Mention the new module.
40227 2011-02-06  Bruno Haible  <bruno@clisp.org>
40229         New module 'iswctype'.
40230         * modules/iswctype: New file.
40231         * lib/wctype.in.h (iswctype): New declaration.
40232         * lib/iswctype.c: New file.
40233         * lib/iswctype-impl.h: New file.
40234         * m4/iswctype.m4: New file.
40235         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
40236         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
40237         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
40238         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
40239         * doc/posix-functions/iswctype.texi: Mention the new module and the
40240         HP-UX 11.00 problem.
40242 2011-02-06  Bruno Haible  <bruno@clisp.org>
40244         New module 'wctype'.
40245         * modules/wctype: Change to represent the wctype() substitute.
40246         * lib/wctype.in.h (wctype): New declaration.
40247         * lib/wctype.c: New file.
40248         * lib/wctype-impl.h: New file.
40249         * m4/wctype.m4: New file.
40250         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
40251         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
40252         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
40253         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
40254         * doc/posix-functions/wctype.texi: Mention the new module and the
40255         HP-UX 11.00 problem.
40257 2011-02-06  Bruno Haible  <bruno@clisp.org>
40259         wctype-h: Ensure wctype_t and wctrans_t are defined.
40260         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
40261         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
40262         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
40263         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
40264         HAVE_WCTRANS_T.
40265         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
40267 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
40269         flock: fix license typo
40271         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
40272         omitted.
40274 2011-02-08  Bruno Haible  <bruno@clisp.org>
40276         Split large sed scripts, for HP-UX sed.
40277         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
40278         to avoid HP-UX limit of 99 commands, in the near future.
40279         * modules/stdlib (Makefile.am): Likewise.
40280         * modules/unistd (Makefile.am): Likewise.
40281         * modules/wchar (Makefile.am): Likewise.
40282         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40283         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
40284         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
40286 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
40287             Bruno Haible  <bruno@clisp.org>
40289         stdlib: improve random_r modularization
40290         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
40291         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
40292         you also need the random_r module to get this material right.
40293         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
40294         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
40295         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
40297 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
40299         stdlib: don't depend on stdint
40300         * lib/stdlib.in.h: Don't include <stdint.h> merely because
40301         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
40302         be independent of whether stdint.h is needed.
40303         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
40304         here, instead of ...
40305         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
40306         struct random_data should be using the random_r module, not just
40307         the stdlib module (which wouldn't make sense: what package needs
40308         just struct random_data without also needing random_r?).
40309         * modules/stdlib (Depends-on): Remove stdint.
40311         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
40312         See the thread rooted at
40313         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
40314         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
40315         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
40316         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
40317         __VMS)); previously it was always included (via fcntl--.h).
40318         (getloadavg): Do not use c_strtod.  Instead, approximate it by
40319         hand; this is good enough for load averages.  Also, do not use
40320         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
40321         flags directly if available and don't bother otherwise.  (Packages
40322         that need the extra reliability should use the modules that define
40323         these flags on older platforms that lack them.)
40324         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
40325         fcntl-safer.
40327 2011-02-08  Jim Meyering  <meyering@redhat.com>
40329         di-set.h, ino-map.h: add multiple-inclusion guard
40330         Technically, the guard is required only for ino-map.h, due to its
40331         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
40332         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
40333         * lib/ino-map.h: Likewise.
40335 2011-02-06  Bruno Haible  <bruno@clisp.org>
40337         iswblank: Ensure declaration on glibc systems.
40338         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
40339         * modules/iswblank (Dependencies): Add 'extensions'.
40340         * doc/posix-functions/iswblank.texi: Document the glibc problem.
40342 2011-02-06  Bruno Haible  <bruno@clisp.org>
40344         New module 'iswblank'.
40345         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
40346         * modules/iswblank: New file.
40347         * modules/wctype-h (Files): Remove lib/iswblank.c.
40348         (Makefile.am): Substitute GNULIB_ISWBLANK.
40349         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
40350         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
40351         (gl_WCTYPE_H_DEFAULTS): New macro.
40352         (gl_WCTYPE_H): Require it. Remove iswblank related code.
40353         * modules/iswblank-tests: New file.
40354         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
40355         * tests/test-wctype-h.c (main): Remove iswblank tests.
40356         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
40357         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
40358         of 'wctype-h'.
40359         * NEWS: Mention the change.
40360         * modules/mbchar (Depends-on): Add iswblank.
40362 2011-02-08  Bruno Haible  <bruno@clisp.org>
40364         di-set tests: Refactor.
40365         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
40366         unnecessary includes.
40367         (ASSERT): Remove macro.
40368         (main): Make C90 compliant by avoiding variable declaration after
40369         statement.
40370         * modules/di-set-tests (Files): Add tests/macros.h.
40372 2011-02-08  Bruno Haible  <bruno@clisp.org>
40374         ino-map tests: Refactor.
40375         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
40376         unnecessary includes.
40377         (ASSERT): Remove macro.
40378         (main): Make C90 compliant by avoiding variable declaration after
40379         statement.
40380         * modules/ino-map-tests (Files): Add tests/macros.h.
40382 2011-02-08  Jim Meyering  <meyering@redhat.com>
40384         di-set: add "const" to a cast
40385         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
40386         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
40388 2011-02-06  Bruno Haible  <bruno@clisp.org>
40390         Rename module 'wctype' to 'wctype-h'.
40391         * modules/wctype-h: Renamed from modules/wctype.
40392         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
40393         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
40394         (Files, Depends-on, Makefile.am): Update.
40395         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
40396         (Files, Makefile.am): Update.
40397         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
40398         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
40399         * doc/posix-headers/wctype.texi: Update.
40400         * doc/posix-functions/iswalnum.texi: Update.
40401         * doc/posix-functions/iswalpha.texi: Update.
40402         * doc/posix-functions/iswblank.texi: Update.
40403         * doc/posix-functions/iswcntrl.texi: Update.
40404         * doc/posix-functions/iswdigit.texi: Update.
40405         * doc/posix-functions/iswgraph.texi: Update.
40406         * doc/posix-functions/iswlower.texi: Update.
40407         * doc/posix-functions/iswprint.texi: Update.
40408         * doc/posix-functions/iswpunct.texi: Update.
40409         * doc/posix-functions/iswspace.texi: Update.
40410         * doc/posix-functions/iswupper.texi: Update.
40411         * doc/posix-functions/iswxdigit.texi: Update.
40412         * doc/posix-functions/towlower.texi: Update.
40413         * doc/posix-functions/towupper.texi: Update.
40414         * NEWS: Mention the change.
40415         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
40416         * modules/mbchar (Dependencies): Likewise.
40417         * modules/mbswidth (Dependencies): Likewise.
40418         * modules/quotearg (Dependencies): Likewise.
40419         * modules/regex (Dependencies): Likewise.
40420         * modules/wcscasecmp (Dependencies): Likewise.
40421         * modules/wcsncasecmp (Dependencies): Likewise.
40422         * modules/wcwidth (Dependencies): Likewise.
40424 2011-02-06  Bruno Haible  <bruno@clisp.org>
40426         New module 'wcswidth'.
40427         * modules/wcswidth: New file.
40428         * lib/wchar.in.h (wcswidth): New declaration.
40429         * lib/wcswidth.c: New file.
40430         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
40431         * m4/wcswidth.m4: New file.
40432         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
40433         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
40434         REPLACE_WCSWIDTH.
40435         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
40436         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
40437         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
40438         * doc/posix-functions/wcswidth.texi: Mention the new module.
40440 2011-02-06  Bruno Haible  <bruno@clisp.org>
40442         New module 'wcstok'.
40443         * modules/wcstok: New file.
40444         * lib/wchar.in.h (wcstok): New declaration.
40445         * lib/wcstok.c: New file.
40446         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
40447         * m4/wcstok.m4: New file.
40448         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
40449         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
40450         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
40451         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
40452         * doc/posix-functions/wcstok.texi: Mention the new module.
40454 2011-02-06  Bruno Haible  <bruno@clisp.org>
40456         New module 'wcsstr'.
40457         * modules/wcsstr: New file.
40458         * lib/wchar.in.h (wcsstr): New declaration.
40459         * lib/wcsstr.c: New file.
40460         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
40461         * m4/wcsstr.m4: New file.
40462         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
40463         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
40464         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
40465         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
40466         * doc/posix-functions/wcsstr.texi: Mention the new module.
40468 2011-02-06  Bruno Haible  <bruno@clisp.org>
40470         New module 'wcspbrk'.
40471         * modules/wcspbrk: New file.
40472         * lib/wchar.in.h (wcspbrk): New declaration.
40473         * lib/wcspbrk.c: New file.
40474         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
40475         * m4/wcspbrk.m4: New file.
40476         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
40477         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
40478         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
40479         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
40480         * doc/posix-functions/wcspbrk.texi: Mention the new module.
40482 2011-02-06  Bruno Haible  <bruno@clisp.org>
40484         New module 'wcsspn'.
40485         * modules/wcsspn: New file.
40486         * lib/wchar.in.h (wcsspn): New declaration.
40487         * lib/wcsspn.c: New file.
40488         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
40489         * m4/wcsspn.m4: New file.
40490         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
40491         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
40492         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
40493         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
40494         * doc/posix-functions/wcsspn.texi: Mention the new module.
40496 2011-02-06  Bruno Haible  <bruno@clisp.org>
40498         New module 'wcscspn'.
40499         * modules/wcscspn: New file.
40500         * lib/wchar.in.h (wcscspn): New declaration.
40501         * lib/wcscspn.c: New file.
40502         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
40503         * m4/wcscspn.m4: New file.
40504         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
40505         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
40506         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
40507         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
40508         * doc/posix-functions/wcscspn.texi: Mention the new module.
40510 2011-02-06  Bruno Haible  <bruno@clisp.org>
40512         New module 'wcsrchr'.
40513         * modules/wcsrchr: New file.
40514         * lib/wchar.in.h (wcsrchr): New declaration.
40515         * lib/wcsrchr.c: New file.
40516         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
40517         * m4/wcsrchr.m4: New file.
40518         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
40519         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
40520         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
40521         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
40522         * doc/posix-functions/wcsrchr.texi: Mention the new module.
40524 2011-02-06  Bruno Haible  <bruno@clisp.org>
40526         New module 'wcschr'.
40527         * modules/wcschr: New file.
40528         * lib/wchar.in.h (wcschr): New declaration.
40529         * lib/wcschr.c: New file.
40530         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
40531         * m4/wcschr.m4: New file.
40532         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
40533         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
40534         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
40535         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
40536         * doc/posix-functions/wcschr.texi: Mention the new module.
40538 2011-02-06  Bruno Haible  <bruno@clisp.org>
40540         New module 'wcsdup'.
40541         * modules/wcsdup: New file.
40542         * lib/wchar.in.h (wcsdup): New declaration.
40543         * lib/wcsdup.c: New file.
40544         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
40545         * m4/wcsdup.m4: New file.
40546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
40547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
40548         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
40549         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
40550         * doc/posix-functions/wcsdup.texi: Mention the new module.
40552 2011-02-06  Bruno Haible  <bruno@clisp.org>
40554         New module 'wcsxfrm'.
40555         * modules/wcsxfrm: New file.
40556         * lib/wchar.in.h (wcsxfrm): New declaration.
40557         * lib/wcsxfrm.c: New file.
40558         * lib/wcsxfrm-impl.h: New file.
40559         * m4/wcsxfrm.m4: New file.
40560         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
40561         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
40562         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
40563         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
40564         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
40566 2011-02-06  Bruno Haible  <bruno@clisp.org>
40568         New module 'wcscoll'.
40569         * modules/wcscoll: New file.
40570         * lib/wchar.in.h (wcscoll): New declaration.
40571         * lib/wcscoll.c: New file.
40572         * lib/wcscoll-impl.h: New file.
40573         * m4/wcscoll.m4: New file.
40574         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
40575         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
40576         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
40577         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
40578         * doc/posix-functions/wcscoll.texi: Mention the new module.
40580 2011-02-06  Bruno Haible  <bruno@clisp.org>
40582         New module 'wcsncasecmp'.
40583         * modules/wcsncasecmp: New file.
40584         * lib/wchar.in.h (wcsncasecmp): New declaration.
40585         * lib/wcsncasecmp.c: New file.
40586         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
40587         * m4/wcsncasecmp.m4: New file.
40588         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
40589         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
40590         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
40591         HAVE_WCSNCASECMP.
40592         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
40593         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
40595 2011-02-06  Bruno Haible  <bruno@clisp.org>
40597         New module 'wcscasecmp'.
40598         * modules/wcscasecmp: New file.
40599         * lib/wchar.in.h (wcscasecmp): New declaration.
40600         * lib/wcscasecmp.c: New file.
40601         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
40602         * m4/wcscasecmp.m4: New file.
40603         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
40604         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
40605         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
40606         HAVE_WCSCASECMP.
40607         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
40608         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
40610 2011-02-05  Bruno Haible  <bruno@clisp.org>
40612         New module 'wcsncmp'.
40613         * modules/wcsncmp: New file.
40614         * lib/wchar.in.h (wcsncmp): New declaration.
40615         * lib/wcsncmp.c: New file.
40616         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
40617         * m4/wcsncmp.m4: New file.
40618         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
40619         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
40620         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
40621         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
40622         * doc/posix-functions/wcsncmp.texi: Mention the new module.
40624 2011-02-05  Bruno Haible  <bruno@clisp.org>
40626         New module 'wcscmp'.
40627         * modules/wcscmp: New file.
40628         * lib/wchar.in.h (wcscmp): New declaration.
40629         * lib/wcscmp.c: New file.
40630         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
40631         * m4/wcscmp.m4: New file.
40632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
40633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
40634         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
40635         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
40636         * doc/posix-functions/wcscmp.texi: Mention the new module.
40638 2011-02-05  Bruno Haible  <bruno@clisp.org>
40640         New module 'wcsncat'.
40641         * modules/wcsncat: New file.
40642         * lib/wchar.in.h (wcsncat): New declaration.
40643         * lib/wcsncat.c: New file.
40644         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
40645         * m4/wcsncat.m4: New file.
40646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
40647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
40648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
40649         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
40650         * doc/posix-functions/wcsncat.texi: Mention the new module.
40652 2011-02-05  Bruno Haible  <bruno@clisp.org>
40654         New module 'wcscat'.
40655         * modules/wcscat: New file.
40656         * lib/wchar.in.h (wcscat): New declaration.
40657         * lib/wcscat.c: New file.
40658         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
40659         * m4/wcscat.m4: New file.
40660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
40661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
40662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
40663         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
40664         * doc/posix-functions/wcscat.texi: Mention the new module.
40666 2011-02-05  Bruno Haible  <bruno@clisp.org>
40668         New module 'wcpncpy'.
40669         * modules/wcpncpy: New file.
40670         * lib/wchar.in.h (wcpncpy): New declaration.
40671         * lib/wcpncpy.c: New file.
40672         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
40673         * m4/wcpncpy.m4: New file.
40674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
40675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
40676         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
40677         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
40678         * doc/posix-functions/wcpncpy.texi: Mention the new module.
40680 2011-02-05  Bruno Haible  <bruno@clisp.org>
40682         New module 'wcsncpy'.
40683         * modules/wcsncpy: New file.
40684         * lib/wchar.in.h (wcsncpy): New declaration.
40685         * lib/wcsncpy.c: New file.
40686         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
40687         * m4/wcsncpy.m4: New file.
40688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
40689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
40690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
40691         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
40692         * doc/posix-functions/wcsncpy.texi: Mention the new module.
40694 2011-02-05  Bruno Haible  <bruno@clisp.org>
40696         New module 'wcpcpy'.
40697         * modules/wcpcpy: New file.
40698         * lib/wchar.in.h (wcpcpy): New declaration.
40699         * lib/wcpcpy.c: New file.
40700         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
40701         * m4/wcpcpy.m4: New file.
40702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
40703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
40704         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
40705         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
40706         * doc/posix-functions/wcpcpy.texi: Mention the new module.
40708 2011-02-05  Bruno Haible  <bruno@clisp.org>
40710         New module 'wcscpy'.
40711         * modules/wcscpy: New file.
40712         * lib/wchar.in.h (wcscpy): New declaration.
40713         * lib/wcscpy.c: New file.
40714         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
40715         * m4/wcscpy.m4: New file.
40716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
40717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
40718         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
40719         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
40720         * doc/posix-functions/wcscpy.texi: Mention the new module.
40722 2011-02-05  Bruno Haible  <bruno@clisp.org>
40724         New module 'wcsnlen'.
40725         * modules/wcsnlen: New file.
40726         * lib/wchar.in.h (wcsnlen): New declaration.
40727         * lib/wcsnlen.c: New file.
40728         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
40729         * m4/wcsnlen.m4: New file.
40730         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
40731         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
40732         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
40733         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
40734         * doc/posix-functions/wcsnlen.texi: Mention the new module.
40736 2011-02-05  Bruno Haible  <bruno@clisp.org>
40738         New module 'wcslen'.
40739         * modules/wcslen: New file.
40740         * lib/wchar.in.h (wcslen): New declaration.
40741         * lib/wcslen.c: New file.
40742         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
40743         * m4/wcslen.m4: New file.
40744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
40745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
40746         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
40747         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
40748         * doc/posix-functions/wcslen.texi: Mention the new module.
40750 2011-02-05  Bruno Haible  <bruno@clisp.org>
40752         New module 'wmemset'.
40753         * modules/wmemset: New file.
40754         * lib/wchar.in.h (wmemset): New declaration.
40755         * lib/wmemset.c: New file.
40756         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
40757         * m4/wmemset.m4: New file.
40758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
40759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
40760         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
40761         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
40762         * doc/posix-functions/wmemset.texi: Mention the new module.
40764 2011-02-05  Bruno Haible  <bruno@clisp.org>
40766         New module 'wmemmove'.
40767         * modules/wmemmove: New file.
40768         * lib/wchar.in.h (wmemmove): New declaration.
40769         * lib/wmemmove.c: New file.
40770         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
40771         * m4/wmemmove.m4: New file.
40772         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
40773         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
40774         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
40775         HAVE_WMEMMOVE.
40776         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
40777         * doc/posix-functions/wmemmove.texi: Mention the new module.
40779 2011-02-05  Bruno Haible  <bruno@clisp.org>
40781         New module 'wmemcpy'.
40782         * modules/wmemcpy: New file.
40783         * lib/wchar.in.h (wmemcpy): New declaration.
40784         * lib/wmemcpy.c: New file.
40785         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
40786         * m4/wmemcpy.m4: New file.
40787         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
40788         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
40789         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
40790         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
40791         * doc/posix-functions/wmemcpy.texi: Mention the new module.
40793 2011-02-05  Bruno Haible  <bruno@clisp.org>
40795         New module 'wmemcmp'.
40796         * modules/wmemcmp: New file.
40797         * lib/wchar.in.h (wmemcmp): New declaration.
40798         * lib/wmemcmp.c: New file.
40799         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
40800         * m4/wmemcmp.m4: New file.
40801         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
40802         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
40803         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
40804         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
40805         * doc/posix-functions/wmemcmp.texi: Mention the new module.
40807 2011-02-07  Jim Meyering  <meyering@redhat.com>
40809         di-set, ino-map: new modules, from coreutils
40810         * lib/di-set.c: New file.
40811         * lib/di-set.h: Likewise.
40812         * lib/ino-map.c: Likewise.
40813         * lib/ino-map.h: Likewise.
40814         * modules/di-set: Likewise.
40815         * modules/di-set-tests: Likewise.
40816         * modules/ino-map: Likewise.
40817         * modules/ino-map-tests: Likewise.
40818         * tests/test-di-set.c: Likewise.
40819         * tests/test-ino-map.c: Likewise.
40821 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
40823         getloadavg: merge minor changes from Emacs
40825         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
40826         (getloadavg): Use memset, not bzero.
40828         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
40829         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
40830         clash (bug#86).
40832 2010-11-14  Bruno Haible  <bruno@clisp.org>
40834         Allow multiple gnulib generated replacements to coexist.
40835         * lib/getopt.in.h (struct option): Avoid identical redefinition.
40836         * lib/inttypes.in.h (imaxdiv_t): Likewise.
40837         * lib/langinfo.in.h (nl_item): Likewise.
40838         * lib/math.in.h (_NaN, NAN): Likewise.
40839         * lib/netdb.in.h (struct addrinfo): Likewise.
40840         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
40841         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
40842         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
40843         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
40844         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
40845         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
40846         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
40847         pthread_mutexattr_init, pthread_mutexattr_settype,
40848         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
40849         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
40850         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
40851         pthread_spin_trylock, pthread_spin_unlock): Likewise.
40852         * lib/sched.in.h (struct sched_param): Likewise.
40853         * lib/se-selinux.in.h (security_class_t, security_context_t,
40854         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
40855         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
40856         lsetfilecon, fsetfilecon, security_check_context,
40857         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
40858         Likewise.
40859         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
40860         Likewise.
40861         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
40862         _gl_function_taking_int_returning_void_t, union sigval,
40863         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
40864         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
40865         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
40866         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
40867         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
40868         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
40869         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
40870         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
40871         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
40872         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
40873         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
40874         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
40875         socklen_t, rpl_fd_isset): Likewise.
40876         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
40877         * lib/sys_time.in.h (struct timeval): Likewise.
40878         * lib/sys_times.in.h (struct tms): Likewise.
40879         * lib/sys_utsname.in.h (struct utsname):
40880         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
40881         * lib/unistd.in.h (getpagesize): Likewise.
40882         * lib/wchar.in.h (mbstate_t): Likewise.
40883         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40884         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
40885         towlower, towupper): Likewise.
40886         Reported by Sam Steingold <sds@gnu.org>.
40888 2011-02-05  Eric Blake  <eblake@redhat.com>
40890         unsetenv: work around Haiku issues
40891         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
40892         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
40894 2010-12-30  Bruce Korb  <bkorb@gnu.org>
40896         libposix: avoid calling error() within libposix
40897         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
40898         is defined.
40900 2011-02-05  Eric Blake  <eblake@redhat.com>
40902         strerror_r-posix: port to cygwin
40903         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
40904         implementation.
40905         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
40906         * tests/test-strerror_r.c (main): Fix test.
40907         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
40908         issue.
40910 2011-02-05  Bruno Haible  <bruno@clisp.org>
40912         New module 'wmemchr'.
40913         * modules/wmemchr: New file.
40914         * lib/wchar.in.h (wmemchr): New declaration.
40915         * lib/wmemchr.c: New file.
40916         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
40917         * m4/wmemchr.m4: New file.
40918         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
40919         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
40920         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
40921         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
40922         * doc/posix-functions/wmemchr.texi: Mention the new module.
40924 2011-02-04  Eric Blake  <eblake@redhat.com>
40926         fdopendir: detect FreeBSD bug
40927         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
40928         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
40930 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
40932         stdbool: do not define HAVE_STDBOOL_H
40933         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
40934         AC_HEADER_STDBOOL.  All uses changed.  Do not define
40935         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
40936         imported from the latest Autoconf git.  It was motivated by Emacs,
40937         which uses gnulib but does not need HAVE_STDBOOL_H.
40939 2011-02-04  Bruno Haible  <bruno@clisp.org>
40941         wcsnrtombs: Prepare for new module wwcsnrtombs.
40942         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
40943         * lib/wcsnrtombs.c: Include it.
40944         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
40946         wcsrtombs: Prepare for new module wwcsrtombs.
40947         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
40948         * lib/wcsrtombs.c: Include it.
40949         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
40951         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
40952         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
40953         * lib/mbsnrtowcs.c: Include it.
40954         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
40956         mbsrtowcs: Prepare for new module mbsrtowwcs.
40957         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
40958         * lib/mbsrtowcs.c: Include it.
40959         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
40961 2011-02-04  Bruno Haible  <bruno@clisp.org>
40963         vasnprintf: Reduce use of malloc for small format strings.
40964         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
40965         (arguments): Add room for the first 7 arguments.
40966         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
40967         (char_directives, u8_directives, u16_directives, u32_directives): Add
40968         room for the first 7 directives.
40969         * lib/printf-parse.c: Include <string.h>.
40970         (PRINTF_PARSE): Change memory handling code so that it uses the first
40971         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
40972         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
40973         Reported by Pádraig Brady <P@draigbrady.com>.
40975 2011-01-31  Eric Blake  <eblake@redhat.com>
40977         dup2: work around Haiku bug
40978         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
40979         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
40980         * doc/posix-functions/dup2.texi (dup2): Document the bug.
40981         * tests/test-dup2.c (main): Enhance test.
40983 2011-01-31  Simon Josefsson  <simon@josefsson.org>
40985         doc: off_t is not available in eglibc 2.11.2 stdio.h.
40986         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
40987         declared by eglibc 2.11.2.
40988         * lib/stdio.in.h: Likewise.
40990 2011-01-31  Eric Blake  <eblake@redhat.com>
40992         ignore-value: add missing test dependency
40993         * tests/test-ignore-value.c: Revert previous change; stdio.h
40994         provides off_t.
40995         * modules/ignore-value-tests (Depends-on): Add missing dependency.
40997 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
40999         mktime: clarify long_int width checking
41000         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
41001         the top level, to make it clearer that the assumption about
41002         long_int width is being checked.  See
41003         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
41005 2011-01-30  Simon Josefsson  <simon@josefsson.org>
41007         ignore-value: Fix self-test.
41008         * tests/test-ignore-value.c: Include sys/types.h for off_t.
41010 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
41012         TYPE_MAXIMUM: avoid theoretically undefined behavior
41013         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
41014         negative number, which the C Standard says has undefined behavior.
41015         In practice this is not a problem, but might as well do it by the book.
41016         Reported by Rich Felker and Eric Blake; see
41017         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
41018         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
41019         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
41020         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41021         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
41022         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41023         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
41025         mktime: #undef mktime before #defining it
41026         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
41028         mktime: systematically normalize tm_isdst comparisons
41029         * lib/mktime.c (isdst_differ): New function.
41030         (__mktime_internal): Use it systematically for all isdst comparisons.
41031         This completes the fix for libc BZ #6723, and removes the need for
41032         normalizing tm_isdst.  See
41033         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
41034         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
41036         mktime: fix some integer overflow issues and sidestep the rest
41038         This was prompted by a bug report by Benjamin Lindner for MinGW
41039         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
41040         His bug is due to signed integer overflow (0 - INT_MIN), and I
41041         I scanned through mktime.c looking for other integer overflow
41042         problems, fixing all the bugs I found.
41044         Although the C Standard says the resulting code is still not safe
41045         in the presence of integer overflow, in practice it should be good
41046         enough for all real-world two's-complement implementations, except
41047         for debugging environments that deliberately trap on integer
41048         overflow (e.g., gcc -ftrapv).
41050         * lib/mktime.c (WRAPV): New macro.
41051         (SHR): Also check that long_int and time_t shift right in the
41052         usual way, before using the fast-but-unportable method.
41053         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
41054         used.  The code already assumed two's complement, so there's
41055         no need to test for alternatives.  All uses removed.
41056         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
41057         the C standard.  Problem reported by Rich Felker in
41058         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
41059         (twos_complement_arithmetic): Also check long_int and time_t.
41060         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
41061         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
41062         (__mktime_internal): Avoid integer overflow with unary subtraction
41063         in two instances where -1 - X is an adequate replacement for -X,
41064         since the calculations are approximate.
41066 2011-01-29  Eric Blake  <eblake@redhat.com>
41068         mktime: avoid infinite loop
41069         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
41070         type; behavior is still undefined but portable to all known targets.
41071         Reported by Rich Felker.
41073 2011-01-29  Simon Josefsson  <simon@josefsson.org>
41075         rename, unlink, same-inode: Relicense.
41076         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
41077         * modules/unlink (License): Likewise.
41078         * modules/same-inode (License): Likewise.
41080 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
41082         mktime: avoid problems on NetBSD 5 / i386
41083         * lib/mktime.c (long_int): New type.  This works around a problem
41084         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
41085         but time_t is 64 bits, and where I expect the existing code is
41086         wrong in some cases.
41087         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
41088         (ydhms_diff): Bring back the compile-time check for wide-enough
41089         year and yday.
41091         mktime: fix misspelling in comment
41092         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
41093         This merges all recent glibc changes of importance.
41095 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41097         move-if-change: cope with concurrent mv of identical file.
41098         * build-aux/move-if-change (CMPPROG): Accept environment
41099         variable as an override for `cmp'.
41100         (usage): Document CMPPROG.
41101         Adjust comparison to drop stdout.  Cope with failure of mv if
41102         the target file exists and is identical to the source, for
41103         parallel builds.
41104         Report from H.J. Lu against binutils in PR binutils/12283.
41106 2011-01-28  Bruce Korb  <bkorb@gnu.org>
41108         * users.txt: Mention sharutils.
41110 2011-01-28  Simon Josefsson  <simon@josefsson.org>
41112         * users.txt: Mention OATH Toolkit.
41114 2011-01-27  Bruno Haible  <bruno@clisp.org>
41116         Prepare for supporting FreeBSD 10.
41117         * build-aux/config.libpath: Remove handling of freebsd1*.
41119 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
41121         Prepare for supporting FreeBSD 10.
41122         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
41123         match FreeBSD 10.0.
41125 2011-01-27  Bruno Haible  <bruno@clisp.org>
41127         vma-iter, get-rusage-as: Add OpenBSD support.
41128         * modules/vma-iter (configure.ac): Test for mquery.
41129         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
41130         * lib/vma-iter.c: Include <sys/mman.h>.
41131         (vma_iterate): Add an implementation based on mquery().
41132         * lib/resource-ext.h (get_rusage_as): Update comments.
41133         * lib/get-rusage-as.c: Likewise.
41134         * lib/get-rusage-data.c: Likewise.
41136 2011-01-26  Karl Berry  <karl@gnu.org>
41138         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
41139         variables to make it easier to override the makeinfo program used.
41141 2011-01-26  Eric Blake  <eblake@redhat.com>
41143         fcntl: work around Haiku F_DUPFD bugs
41144         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
41145         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
41146         cloexec bit on duplication.
41147         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
41149 2011-01-26  Bruno Haible  <bruno@clisp.org>
41151         Enable memory leak tests on AIX.
41152         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
41153         * tests/test-fprintf-posix3.c (main): Likewise.
41155 2011-01-26  Bruno Haible  <bruno@clisp.org>
41157         Tests for module 'get-rusage-data'.
41158         * modules/get-rusage-data-tests: New file.
41159         * tests/test-get-rusage-data.c: New file.
41161         New module 'get-rusage-data'.
41162         * lib/resource-ext.h (get_rusage_data): New declaration.
41163         * lib/get-rusage-data.c: New file.
41164         * modules/get-rusage-data: New file.
41166 2011-01-25  Bruno Haible  <bruno@clisp.org>
41168         get-rusage-as: Allow for easier testing.
41169         * lib/resource-ext.h (get_rusage_as): Add comment.
41170         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
41171         (main): New function for interactive testing.
41173 2011-01-25  Bruno Haible  <bruno@clisp.org>
41175         vma-iter: Treat Haiku like BeOS.
41176         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
41177         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
41179 2011-01-25  Eric Blake  <eblake@redhat.com>
41181         c-stack: fix regression on cygwin when libsigsegv is present
41182         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
41184 2011-01-24  Bruno Haible  <bruno@clisp.org>
41186         vma-iter: Avoid empty intervals.
41187         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
41188         on an empty interval.
41190 2011-01-24  Jim Meyering  <meyering@redhat.com>
41192         u64: remove unnecessary #include
41193         * lib/u64.h: Don't include <stddef.h>.  It was not used.
41195 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
41197         Allow the user to avoid the HAVE_RAW_DECL_* macros.
41198         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
41200 2011-01-23  Bruno Haible  <bruno@clisp.org>
41202         New module 'vma-iter'.
41203         * lib/vma-iter.h: New file.
41204         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
41205         * modules/vma-iter: New file.
41206         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
41207         for get_rusage_as_via_iterator.
41208         (vma_iterate_callback): New function.
41209         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
41210         * modules/get-rusage-as (Depends-on): Add vma-iter.
41212 2011-01-23  Bruno Haible  <bruno@clisp.org>
41214         uninorm: Tweak includes.
41215         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
41216         Reported by Jim Meyering.
41218 2011-01-23  Bruno Haible  <bruno@clisp.org>
41220         get-rusage-as: Improve on NetBSD.
41221         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
41222         /proc, like on FreeBSD.
41224 2011-01-23  Jim Meyering  <meyering@redhat.com>
41226         xreadlink.h: remove unnecessary #include
41227         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
41229         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
41230         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
41232 2011-01-23  Bruno Haible  <bruno@clisp.org>
41234         get-rusage-as: Fix bug.
41235         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
41236         original limit when aborting the first loop.
41238 2011-01-23  Bruno Haible  <bruno@clisp.org>
41240         wctype: Ensure valid C syntax.
41241         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
41242         unconditionally, instead of gl_NEXT_HEADERS conditionally.
41244 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
41246         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
41247         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
41248         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
41249         as they are needed only for configure's test case.
41250         This removes two unnecessary symbols from config.h.
41252         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
41253         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
41254         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
41255         AC_CHECK_HEADERS_ONCE on a header that we also invoke
41256         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
41257         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
41258         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
41259         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
41260         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
41261         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41262         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
41263         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41264         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
41265         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
41266         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
41267         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41268         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
41269         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
41271 2011-01-21  Eric Blake  <eblake@redhat.com>
41273         maintainer-makefile: work with older git for submodule check
41274         * top/maint.mk (public-submodule-commit): Rewrite to avoid
41275         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
41276         Reported by Matthias Bolte.
41278         bootstrap: minor portability fixes
41279         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
41280         (usage): Omit leading capital and trailing . on help phrases, per
41281         GNU Coding Standards.
41282         (check_versions, top level): Prefix messages with script name.
41284 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
41286         bootstrap: support --no-git option
41287         * build-aux/bootstrap: Add --no-git option, to be used when
41288         --gnulib-srcdir points to the exact desired checkout.
41290 2011-01-21  Eric Blake  <eblake@redhat.com>
41292         strerror_r-posix: work with glibc 2.13
41293         * lib/strerror_r.c (strerror_r): Fix return type.
41295 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41296             Bruno Haible  <bruno@clisp.org>
41298         uN_strstr: New unit tests.
41299         * modules/unistr/u8-strstr-tests: New file.
41300         * modules/unistr/u16-strstr-tests: New file.
41301         * modules/unistr/u32-strstr-tests: New file.
41302         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
41303         * tests/unistr/test-u8-strstr.c: New file.
41304         * tests/unistr/test-u16-strstr.c: New file.
41305         * tests/unistr/test-u32-strstr.c: New file.
41307 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41308             Bruno Haible  <bruno@clisp.org>
41310         Make uN_strstr functions O(n) worst-case.
41311         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
41312         16-bit and 32-bit unit cases, use the unibyte algorithm from
41313         lib/mbsstr.c.
41314         * lib/unistr/u8-strstr.c: Include <string.h>.
41315         (UNIT_IS_UINT8_T): New macro.
41316         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
41317         (U_STRLEN, U_STRNLEN): New macros.
41318         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
41319         (U_STRLEN, U_STRNLEN): New macros.
41320         * modules/unistr/u8-strstr (Depends-on): Add strstr.
41321         (configure.ac): Update required libunistring version.
41322         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
41323         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
41324         malloca.
41325         (configure.ac): Update required libunistring version.
41326         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
41327         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
41328         malloca.
41329         (configure.ac): Update required libunistring version.
41331 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41332             Bruno Haible  <bruno@clisp.org>
41334         Prepare for faster uN_strstr functions.
41335         * lib/str-kmp.h: Support definable UNITs.
41336         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
41337         needle_len argument.
41338         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
41339         * lib/mbscasestr.c (mbscasestr): Likewise.
41341 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41343         malloca-tests: make faster by unsetting MALLOC_PERTURB_
41344         * tests/test-malloca.c (main): Unset the environment variable
41345         to greatly speed up the test.
41346         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
41347         * modules/malloca-tests: Depend on unsetenv.
41349 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41351         ignore-value: remove stdint dependency
41352         * lib/ignore-value.h: Remove <stdint.h>
41353         * modules/ignore-value: Remove stdint dependency.
41355 2011-01-21  Jim Meyering  <meyering@redhat.com>
41357         maint.mk: adjust variable name to be consistent with other gl_ vars
41358         * top/maint.mk (gl_public_submodule_commit): Rename the variable
41359         to be lower case.
41361 2011-01-20  Jim Meyering  <meyering@redhat.com>
41363         maint.mk: make "check" depend on public-submodule-commit by default
41364         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
41366 2011-01-20  Bruno Haible  <bruno@clisp.org>
41368         mbfile, mbiter: Complete change from 2008-12-21.
41369         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
41370         * m4/mbiter.m4 (gl_MBITER): Likewise.
41372 2011-01-20  Jim Meyering  <meyering@redhat.com>
41374         init.sh: insert space between each function name and "()"
41375         * tests/init.sh: Make it a little easier to see that a function's
41376         name is "warn_", and not "warn" when looking at the first part of
41377         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
41379 2011-01-20  Jim Meyering  <meyering@redhat.com>
41381         mountlist: clean up code formatting
41382         * lib/mountlist.c (read_file_system_list): Split a long line,
41383         correct bracing style, use NULL in place of "(struct statfs *)0",
41384         don't parenthesize return value, add spaces around "=" and after
41385         ";-in-for-stmt".
41387 2011-01-14  Markus Duft  <mduft@gentoo.org>
41389         mountlist: add support for Interix
41390         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
41391         Apply statvfs to all entries of /dev/fs.
41392         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
41393         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
41395 2011-01-20  Jim Meyering  <meyering@redhat.com>
41397         maint.mk: improve the public-submodule-commit rule
41398         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
41399         to suppress printing of its commands... unless V=1.
41400         Add git submodule's --quiet option to suppress printing of e.g.,
41401         "Entering gnulib" output.
41402         "cd" into $(srcdir) before running git submodule.
41404 2011-01-20  Bruno Haible  <bruno@clisp.org>
41406         include_next: Fix bug introduced on 2011-01-18.
41407         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
41408         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
41409         ac_cv_header_... variable if the second argument is not 'check'.
41410         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
41411         gl_NEXT_HEADERS_INTERNAL.
41413 2011-01-20  Bruno Haible  <bruno@clisp.org>
41415         Allow the user to avoid the GNULIB_TEST_* macros.
41416         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
41417         Suggested by Paul Eggert.
41419 2011-01-14  Jim Meyering  <meyering@redhat.com>
41421         bootstrap: avoid failure when there is no .gitmodules file
41422         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
41423         has been assigned to, even when its value is the empty string.
41424         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
41425         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
41426         Reported by John W. Eaton <jwe@gnu.org>.
41428 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
41430         assume <ctype.h>, ..., <time.h> exist
41431         For years gnulib has been assuming the existence of the headers
41432         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
41433         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
41434         them, since they don't appear to be needed.
41435         * README (Portability guidelines): Document this.
41436         * lib/flock.c: Assume <fcntl.h> exists.
41437         * lib/regex_internal.h: Assume <locale.h> exists.
41438         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
41439         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
41440         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
41441         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
41442         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
41443         * m4/regex.m4 (gl_REGEX): Likewise.
41444         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
41445         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
41446         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
41447         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
41448         * tests/test-argp.c: Likewise.
41449         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
41451         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
41452         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
41453         AA_APPLE_UNIVERSAL_BUILD.  See
41454         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
41455         * NEWS: Document this.
41457 2011-01-19  Eric Blake  <eblake@redhat.com>
41459         c-stack: assume stack overflow if SA_SIGINFO unsupported
41460         * lib/c-stack.c (SIGACTION_WORKS): Rename...
41461         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
41462         sigaction will work.
41463         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
41464         behavior match Linux.
41465         * tests/test-c-stack.c (main): Prefer NULL for pointers.
41467         stdbool-tests: accommodate Haiku
41468         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
41470         binary-io: fix O_TEXT on Haiku
41471         * modules/binary-io (Depends-on): Add fcntl-h.
41472         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
41473         than blindly undefining O_TEXT.
41474         Reported by Scott McCreary.
41476 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41478         include_next: do not check for standard headers like stddef.h
41480         I found this problem when modifying Emacs to use gnulib.
41481         I noticed that it added HAVE_STDDEF_H to config.h, even though
41482         gnulib always assumes <stddef.h> exists as per README and this
41483         symbol is unnecessary.
41484         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
41485         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
41486         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
41487         faster for headers like stddef.h that are known to exist.
41488         (gl_CHECK_NEXT_HEADERS): Use it.
41489         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
41490         rather than gl_CHECK_NEXT_HEADERS.
41491         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
41492         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
41494 2011-01-18  Eric Blake  <eblake@redhat.com>
41496         ansi-c++-opt: skip C++ dependency style if C++ is unused
41497         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
41498         tests when we know C++ compilation is not desired.
41499         Reported by Scott McCreary.
41501 2011-01-18  Bruno Haible  <bruno@clisp.org>
41503         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
41504         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
41505         (main): Perform test also when getrlimit and setrlimit don't exist or
41506         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
41507         limiting the address space size using setrlimit, compare the address
41508         space size before and after the test.
41509         * tests/test-dprintf-posix2.c: Likewise.
41510         * tests/test-fprintf-posix3.sh: Update skip messages.
41511         * tests/test-dprintf-posix2.sh: Likewise.
41512         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
41513         * modules/dprintf-posix-tests (Depends-on): Likewise.
41514         Reported by Bruce Korb <bkorb@gnu.org> and
41515         Gary V. Vaughan <gary@gnu.org>.
41517 2011-01-18  Bruno Haible  <bruno@clisp.org>
41519         get-rusage-as: Improvement for Cygwin.
41520         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
41521         areas that are merely reserved.
41523 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41525         strftime: remove dependencies on multibyte modules
41527         strftime depended on mbrlen, mbsinit, and wchar, but these modules
41528         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
41529         only if __osf__ is defined, and I suspect OSF doesn't need these
41530         other modules.  If my guess is wrong, we'll need to come up with a
41531         variant of strftime that doesn't need the multibyte modules.
41533         I discovered this problem when attempting modify Emacs to use the
41534         strftime module.  With the previous gnulib, this caused Emacs to
41535         need 31 new files, ranging from lib/config.charset to
41536         m4/wint_t.m4.  This was overkill and I expect would be offputting
41537         to the Emacs maintainers.  After this change, only 6 new files are
41538         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
41539         stdbool.m4, and tm_gmtoff.m4.
41541         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
41542         Suggested by Bruno Haible in
41543         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
41544         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
41545         and do not check for wchar.h.
41546         * modules/strftime (Files): Remove m4/mbstate_t.m4.
41547         (Depends-on): Remove mbrlen, mbsinit, wchar.
41549 2011-01-18  Bruno Haible  <bruno@clisp.org>
41551         Tests for module 'get-rusage-as'.
41552         * modules/get-rusage-as-tests: New file.
41553         * tests/test-get-rusage-as.c: New file.
41555         New module 'get-rusage-as'.
41556         * modules/get-rusage-as: New file.
41557         * lib/resource-ext.h: New file.
41558         * lib/get-rusage-as.c: New file.
41560 2011-01-17  Eric Blake  <eblake@redhat.com>
41562         sigaction: relax license from LGPLv3+ to LGPLv2+
41563         * modules/sigaction (License): Relax to LGPLv2+.
41565 2011-01-14  Bruno Haible  <bruno@clisp.org>
41567         filemode: Make function declarations usable in C++ mode.
41568         * lib/filemode.h: Enclose function declarations in extern "C" block.
41569         Reported by John W. Eaton <jwe@gnu.org>.
41571 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
41573         save-cwd: no longer include "xgetcwd.h"
41574         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
41575         This avoids a compilation failure in projects that use save-cwd
41576         without also using the xgetcwd module.
41578 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
41580         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
41581         This is so that a program like Emacs, which needs only dtoastr,
41582         does not have to bother with distributing and compiling ftoastr
41583         and ldtoastr.
41584         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
41585         * modules/dtoastr, modules/ldtoastr: New files.
41586         * modules/ftoastr: Now works just for 'float'.
41587         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
41588         (Makefile.am): Remove ftoastr.h (not needed and no effect),
41589         dtoastr.c, ldtoastr.c.
41591 2011-01-11  Jim Meyering  <meyering@redhat.com>
41593         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
41594         There is no need to work around the lack of the fchdir function,
41595         since gnulib can now provide a replacement when required.
41596         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
41597         * modules/save-cwd (Depends-on): Add fchdir.
41599 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
41601         openat, save-cwd: avoid xmalloc
41603         This removes a direct (but undocumented) dependency of openat on
41604         xalloc, along with an indirect dependency via save-cwd.  It also
41605         removes a dependency of save-cwd on xgetcwd, and thereby
41606         indirectly on xalloc.  This change causes the openat substitute
41607         to fall back on save_cwd when memory is tight, and for save_cwd to
41608         fail instead of dying when memory is tight, but that's good enough.
41609         Problem and initial idea for fix reported by Bastien Roucaries in
41610         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
41612         * lib/openat-proc.c: Include stdlib.h (for malloc), not
41613         xalloc.h (for xmalloc).
41614         (openat_proc_name): Use malloc, not xmalloc.
41615         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
41616         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
41618         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
41619         This avoids heap allocation for file names whose lengths are in
41620         the range 512..1023, with the upper bound increasing to at most
41621         4031 depending on the platform's PATH_MAX.  (We do not want
41622         pathmax.h here as it might supply a non-constant PATH_MAX.)
41623         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
41624         Perhaps they should be moved to malloca.h?
41625         (OPENAT_BUFFER_SIZE): Use them.
41627 2011-01-10  Bruno Haible  <bruno@clisp.org>
41629         doc: Update users.txt.
41630         * users.txt: Add recutils.
41632 2011-01-09  Karl Berry  <karl@gnu.org>
41634         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
41636         * doc/configmake.texi: New file.
41637         * doc/gnulib.texi: Include it.
41638         * modules/configmake: Move documentation from here.
41640 2011-01-09  Bruno Haible  <bruno@clisp.org>
41642         Update to Unicode 6.0.0.
41643         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
41644         (get_lbp): Update for Unicode 6.0.0.
41645         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
41646         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
41647         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
41648         U+11001, U+11038..U+11046. Remove U+06DE.
41649         (uc_width): Fix bounds of planes.
41650         * tests/uniwidth/test-uc_width2.sh: Same updates as in
41651         lib/uniwidth/width.c.
41652         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
41653         trailing whitespace removed.
41654         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
41655         without comments, but with the original copyright notice.
41656         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
41657         * lib/unicase/ignorable.h: Likewise.
41658         * lib/unicase/tocasefold.h: Likewise.
41659         * lib/unicase/tolower.h: Likewise.
41660         * lib/unicase/totitle.h: Likewise.
41661         * lib/unicase/toupper.h: Likewise.
41662         * lib/unictype/bidi_of.h: Likewise.
41663         * lib/unictype/blocks.h: Likewise.
41664         * lib/unictype/categ_C.h: Likewise.
41665         * lib/unictype/categ_Cn.h: Likewise.
41666         * lib/unictype/categ_L.h: Likewise.
41667         * lib/unictype/categ_Ll.h: Likewise.
41668         * lib/unictype/categ_Lm.h: Likewise.
41669         * lib/unictype/categ_Lo.h: Likewise.
41670         * lib/unictype/categ_Lu.h: Likewise.
41671         * lib/unictype/categ_M.h: Likewise.
41672         * lib/unictype/categ_Mc.h: Likewise.
41673         * lib/unictype/categ_Me.h: Likewise.
41674         * lib/unictype/categ_Mn.h: Likewise.
41675         * lib/unictype/categ_N.h: Likewise.
41676         * lib/unictype/categ_Nd.h: Likewise.
41677         * lib/unictype/categ_No.h: Likewise.
41678         * lib/unictype/categ_P.h: Likewise.
41679         * lib/unictype/categ_Po.h: Likewise.
41680         * lib/unictype/categ_S.h: Likewise.
41681         * lib/unictype/categ_Sc.h: Likewise.
41682         * lib/unictype/categ_Sk.h: Likewise.
41683         * lib/unictype/categ_Sm.h: Likewise.
41684         * lib/unictype/categ_So.h: Likewise.
41685         * lib/unictype/categ_of.h: Likewise.
41686         * lib/unictype/combining.h: Likewise.
41687         * lib/unictype/ctype_alnum.h: Likewise.
41688         * lib/unictype/ctype_alpha.h: Likewise.
41689         * lib/unictype/ctype_graph.h: Likewise.
41690         * lib/unictype/ctype_lower.h: Likewise.
41691         * lib/unictype/ctype_print.h: Likewise.
41692         * lib/unictype/ctype_punct.h: Likewise.
41693         * lib/unictype/ctype_upper.h: Likewise.
41694         * lib/unictype/decdigit.h: Likewise.
41695         * lib/unictype/digit.h: Likewise.
41696         * lib/unictype/numeric.h: Likewise.
41697         * lib/unictype/pr_alphabetic.h: Likewise.
41698         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
41699         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
41700         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
41701         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
41702         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
41703         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
41704         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
41705         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
41706         * lib/unictype/pr_case_ignorable.h: Likewise.
41707         * lib/unictype/pr_cased.h: Likewise.
41708         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
41709         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
41710         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
41711         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
41712         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
41713         * lib/unictype/pr_combining.h: Likewise.
41714         * lib/unictype/pr_composite.h: Likewise.
41715         * lib/unictype/pr_currency_symbol.h: Likewise.
41716         * lib/unictype/pr_decimal_digit.h: Likewise.
41717         * lib/unictype/pr_deprecated.h: Likewise.
41718         * lib/unictype/pr_format_control.h: Likewise.
41719         * lib/unictype/pr_grapheme_base.h: Likewise.
41720         * lib/unictype/pr_grapheme_extend.h: Likewise.
41721         * lib/unictype/pr_grapheme_link.h: Likewise.
41722         * lib/unictype/pr_id_continue.h: Likewise.
41723         * lib/unictype/pr_id_start.h: Likewise.
41724         * lib/unictype/pr_ideographic.h: Likewise.
41725         * lib/unictype/pr_lowercase.h: Likewise.
41726         * lib/unictype/pr_math.h: Likewise.
41727         * lib/unictype/pr_numeric.h: Likewise.
41728         * lib/unictype/pr_other_alphabetic.h: Likewise.
41729         * lib/unictype/pr_other_id_continue.h: Likewise.
41730         * lib/unictype/pr_other_math.h: Likewise.
41731         * lib/unictype/pr_punctuation.h: Likewise.
41732         * lib/unictype/pr_sentence_terminal.h: Likewise.
41733         * lib/unictype/pr_terminal_punctuation.h: Likewise.
41734         * lib/unictype/pr_unassigned_code_value.h: Likewise.
41735         * lib/unictype/pr_unified_ideograph.h: Likewise.
41736         * lib/unictype/pr_uppercase.h: Likewise.
41737         * lib/unictype/pr_xid_continue.h: Likewise.
41738         * lib/unictype/pr_xid_start.h: Likewise.
41739         * lib/unictype/scripts.h: Likewise.
41740         * lib/unictype/scripts_byname.gperf: Likewise.
41741         * lib/unictype/sy_java_ident.h: Likewise.
41742         * lib/unigbrk/gbrkprop.h: Likewise.
41743         * lib/unilbrk/lbrkprop1.h: Likewise.
41744         * lib/unilbrk/lbrkprop2.h: Likewise.
41745         * lib/uninorm/decomposition-table2.h: Likewise.
41746         * lib/uniwbrk/wbrkprop.h: Likewise.
41747         * tests/unicase/test-cased.c: Likewise.
41748         * tests/unicase/test-ignorable.c: Likewise.
41749         * tests/unicase/test-uc_tolower.c: Likewise.
41750         * tests/unicase/test-uc_totitle.c: Likewise.
41751         * tests/unicase/test-uc_toupper.c: Likewise.
41752         * tests/unictype/test-categ_C.c: Likewise.
41753         * tests/unictype/test-categ_Cn.c: Likewise.
41754         * tests/unictype/test-categ_L.c: Likewise.
41755         * tests/unictype/test-categ_Ll.c: Likewise.
41756         * tests/unictype/test-categ_Lm.c: Likewise.
41757         * tests/unictype/test-categ_Lo.c: Likewise.
41758         * tests/unictype/test-categ_Lu.c: Likewise.
41759         * tests/unictype/test-categ_M.c: Likewise.
41760         * tests/unictype/test-categ_Mc.c: Likewise.
41761         * tests/unictype/test-categ_Me.c: Likewise.
41762         * tests/unictype/test-categ_Mn.c: Likewise.
41763         * tests/unictype/test-categ_N.c: Likewise.
41764         * tests/unictype/test-categ_Nd.c: Likewise.
41765         * tests/unictype/test-categ_No.c: Likewise.
41766         * tests/unictype/test-categ_P.c: Likewise.
41767         * tests/unictype/test-categ_Po.c: Likewise.
41768         * tests/unictype/test-categ_S.c: Likewise.
41769         * tests/unictype/test-categ_Sc.c: Likewise.
41770         * tests/unictype/test-categ_Sk.c: Likewise.
41771         * tests/unictype/test-categ_Sm.c: Likewise.
41772         * tests/unictype/test-categ_So.c: Likewise.
41773         * tests/unictype/test-ctype_alnum.c: Likewise.
41774         * tests/unictype/test-ctype_alpha.c: Likewise.
41775         * tests/unictype/test-ctype_graph.c: Likewise.
41776         * tests/unictype/test-ctype_lower.c: Likewise.
41777         * tests/unictype/test-ctype_print.c: Likewise.
41778         * tests/unictype/test-ctype_punct.c: Likewise.
41779         * tests/unictype/test-ctype_upper.c: Likewise.
41780         * tests/unictype/test-decdigit.h: Likewise.
41781         * tests/unictype/test-digit.h: Likewise.
41782         * tests/unictype/test-numeric.h: Likewise.
41783         * tests/unictype/test-pr_alphabetic.c: Likewise.
41784         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
41785         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
41786         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
41787         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
41788         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
41789         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
41790         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
41791         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
41792         * tests/unictype/test-pr_case_ignorable.c: Likewise.
41793         * tests/unictype/test-pr_cased.c: Likewise.
41794         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
41795         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
41796         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
41797         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
41798         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
41799         * tests/unictype/test-pr_combining.c: Likewise.
41800         * tests/unictype/test-pr_composite.c: Likewise.
41801         * tests/unictype/test-pr_currency_symbol.c: Likewise.
41802         * tests/unictype/test-pr_decimal_digit.c: Likewise.
41803         * tests/unictype/test-pr_deprecated.c: Likewise.
41804         * tests/unictype/test-pr_format_control.c: Likewise.
41805         * tests/unictype/test-pr_grapheme_base.c: Likewise.
41806         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
41807         * tests/unictype/test-pr_grapheme_link.c: Likewise.
41808         * tests/unictype/test-pr_id_continue.c: Likewise.
41809         * tests/unictype/test-pr_id_start.c: Likewise.
41810         * tests/unictype/test-pr_ideographic.c: Likewise.
41811         * tests/unictype/test-pr_lowercase.c: Likewise.
41812         * tests/unictype/test-pr_math.c: Likewise.
41813         * tests/unictype/test-pr_numeric.c: Likewise.
41814         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
41815         * tests/unictype/test-pr_other_id_continue.c: Likewise.
41816         * tests/unictype/test-pr_other_math.c: Likewise.
41817         * tests/unictype/test-pr_punctuation.c: Likewise.
41818         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
41819         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
41820         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
41821         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
41822         * tests/unictype/test-pr_uppercase.c: Likewise.
41823         * tests/unictype/test-pr_xid_continue.c: Likewise.
41824         * tests/unictype/test-pr_xid_start.c: Likewise.
41825         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
41826         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
41827         changes.
41828         * lib/unictype/categ_Cc.h: Likewise.
41829         * lib/unictype/categ_Cf.h: Likewise.
41830         * lib/unictype/categ_Co.h: Likewise.
41831         * lib/unictype/categ_Cs.h: Likewise.
41832         * lib/unictype/categ_Lt.h: Likewise.
41833         * lib/unictype/categ_Nl.h: Likewise.
41834         * lib/unictype/categ_Pc.h: Likewise.
41835         * lib/unictype/categ_Pd.h: Likewise.
41836         * lib/unictype/categ_Pe.h: Likewise.
41837         * lib/unictype/categ_Pf.h: Likewise.
41838         * lib/unictype/categ_Pi.h: Likewise.
41839         * lib/unictype/categ_Ps.h: Likewise.
41840         * lib/unictype/categ_Z.h: Likewise.
41841         * lib/unictype/categ_Zl.h: Likewise.
41842         * lib/unictype/categ_Zp.h: Likewise.
41843         * lib/unictype/categ_Zs.h: Likewise.
41844         * lib/unictype/ctype_blank.h: Likewise.
41845         * lib/unictype/ctype_cntrl.h: Likewise.
41846         * lib/unictype/ctype_digit.h: Likewise.
41847         * lib/unictype/ctype_space.h: Likewise.
41848         * lib/unictype/ctype_xdigit.h: Likewise.
41849         * lib/unictype/mirror.h: Likewise.
41850         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
41851         * lib/unictype/pr_bidi_block_separator.h: Likewise.
41852         * lib/unictype/pr_bidi_common_separator.h: Likewise.
41853         * lib/unictype/pr_bidi_control.h: Likewise.
41854         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
41855         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
41856         * lib/unictype/pr_bidi_european_digit.h: Likewise.
41857         * lib/unictype/pr_bidi_pdf.h: Likewise.
41858         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
41859         * lib/unictype/pr_bidi_whitespace.h: Likewise.
41860         * lib/unictype/pr_dash.h: Likewise.
41861         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
41862         * lib/unictype/pr_diacritic.h: Likewise.
41863         * lib/unictype/pr_extender.h: Likewise.
41864         * lib/unictype/pr_hex_digit.h: Likewise.
41865         * lib/unictype/pr_hyphen.h: Likewise.
41866         * lib/unictype/pr_ids_binary_operator.h: Likewise.
41867         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
41868         * lib/unictype/pr_ignorable_control.h: Likewise.
41869         * lib/unictype/pr_iso_control.h: Likewise.
41870         * lib/unictype/pr_join_control.h: Likewise.
41871         * lib/unictype/pr_left_of_pair.h: Likewise.
41872         * lib/unictype/pr_line_separator.h: Likewise.
41873         * lib/unictype/pr_logical_order_exception.h: Likewise.
41874         * lib/unictype/pr_non_break.h: Likewise.
41875         * lib/unictype/pr_not_a_character.h: Likewise.
41876         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
41877         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
41878         * lib/unictype/pr_other_id_start.h: Likewise.
41879         * lib/unictype/pr_other_lowercase.h: Likewise.
41880         * lib/unictype/pr_other_uppercase.h: Likewise.
41881         * lib/unictype/pr_paired_punctuation.h: Likewise.
41882         * lib/unictype/pr_paragraph_separator.h: Likewise.
41883         * lib/unictype/pr_pattern_syntax.h: Likewise.
41884         * lib/unictype/pr_pattern_white_space.h: Likewise.
41885         * lib/unictype/pr_private_use.h: Likewise.
41886         * lib/unictype/pr_quotation_mark.h: Likewise.
41887         * lib/unictype/pr_radical.h: Likewise.
41888         * lib/unictype/pr_soft_dotted.h: Likewise.
41889         * lib/unictype/pr_space.h: Likewise.
41890         * lib/unictype/pr_titlecase.h: Likewise.
41891         * lib/unictype/pr_variation_selector.h: Likewise.
41892         * lib/unictype/pr_white_space.h: Likewise.
41893         * lib/unictype/pr_zero_width.h: Likewise.
41894         * lib/unictype/sy_c_ident.h: Likewise.
41895         * lib/unictype/sy_c_whitespace.h: Likewise.
41896         * lib/unictype/sy_java_whitespace.h: Likewise.
41897         * lib/uninorm/composition-table.gperf: Likewise.
41898         * lib/uninorm/decomposition-table1.h: Likewise.
41899         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
41900         LB8.
41901         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41902         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41903         * modules/unictype/*: Bump version number of expected libunistring
41904         version.
41906 2011-01-09  Bruno Haible  <bruno@clisp.org>
41908         Update to Unicode 5.2.0.
41909         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
41910         trailing whitespace removed.
41912 2011-01-09  Bruno Haible  <bruno@clisp.org>
41914         New Unicode character properties, from Unicode 5.2.0.
41915         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
41916         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
41917         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
41918         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
41919         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
41920         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
41921         uc_is_property_cased, uc_is_property_case_ignorable,
41922         uc_is_property_changes_when_lowercased,
41923         uc_is_property_changes_when_uppercased,
41924         uc_is_property_changes_when_titlecased,
41925         uc_is_property_changes_when_casefolded,
41926         uc_is_property_changes_when_casemapped): New declarations.
41927         * lib/unictype/pr_byname.gperf: Add the new properties.
41928         * modules/unictype/property-byname (Depends-on): Depend on the new
41929         properties modules.
41930         * modules/unictype/property-all (Depends-on): Likewise.
41931         * MODULES.html.sh (Unicode string functions): Add
41932         unictype/property-case-ignorable, unictype/property-cased,
41933         unictype/property-changes-when-casefolded,
41934         unictype/property-changes-when-casemapped,
41935         unictype/property-changes-when-lowercased,
41936         unictype/property-changes-when-titlecased,
41937         unictype/property-changes-when-uppercased.
41939         New module 'unictype/property-changes-when-casemapped'.
41940         * modules/unictype/property-changes-when-casemapped: New file.
41941         * lib/unictype/pr_changes_when_casemapped.c: New file.
41942         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
41943         generated by gen-uni-tables.
41944         * modules/unictype/property-changes-when-casemapped-tests: New file.
41945         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
41946         automatically generated by gen-uni-tables.
41948         New module 'unictype/property-changes-when-casefolded'.
41949         * modules/unictype/property-changes-when-casefolded: New file.
41950         * lib/unictype/pr_changes_when_casefolded.c: New file.
41951         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
41952         generated by gen-uni-tables.
41953         * modules/unictype/property-changes-when-casefolded-tests: New file.
41954         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
41955         automatically generated by gen-uni-tables.
41957         New module 'unictype/property-changes-when-titlecased'.
41958         * modules/unictype/property-changes-when-titlecased: New file.
41959         * lib/unictype/pr_changes_when_titlecased.c: New file.
41960         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
41961         generated by gen-uni-tables.
41962         * modules/unictype/property-changes-when-titlecased-tests: New file.
41963         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
41964         automatically generated by gen-uni-tables.
41966         New module 'unictype/property-changes-when-uppercased'.
41967         * modules/unictype/property-changes-when-uppercased: New file.
41968         * lib/unictype/pr_changes_when_uppercased.c: New file.
41969         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
41970         generated by gen-uni-tables.
41971         * modules/unictype/property-changes-when-uppercased-tests: New file.
41972         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
41973         automatically generated by gen-uni-tables.
41975         New module 'unictype/property-changes-when-lowercased'.
41976         * modules/unictype/property-changes-when-lowercased: New file.
41977         * lib/unictype/pr_changes_when_lowercased.c: New file.
41978         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
41979         generated by gen-uni-tables.
41980         * modules/unictype/property-changes-when-lowercased-tests: New file.
41981         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
41982         automatically generated by gen-uni-tables.
41984         New module 'unictype/property-case-ignorable'.
41985         * modules/unictype/property-case-ignorable: New file.
41986         * lib/unictype/pr_case_ignorable.c: New file.
41987         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
41988         by gen-uni-tables.
41989         * modules/unictype/property-case-ignorable-tests: New file.
41990         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
41991         generated by gen-uni-tables.
41993         New module 'unictype/property-cased'.
41994         * modules/unictype/property-cased: New file.
41995         * lib/unictype/pr_cased.c: New file.
41996         * lib/unictype/pr_cased.h: New file, automatically generated by
41997         gen-uni-tables.
41998         * modules/unictype/property-cased-tests: New file.
41999         * tests/unictype/test-pr_cased.c: New file, automatically generated by
42000         gen-uni-tables.
42002 2011-01-09  Bruno Haible  <bruno@clisp.org>
42004         Update to Unicode 5.2.0.
42005         * lib/gen-uni-tables.c (output_predicate, output_category,
42006         output_combclass, output_bidi_category, output_decimal_digit_test,
42007         output_decimal_digit, output_digit_test, output_digit,
42008         output_numeric_test, output_numeric, output_mirror, output_scripts,
42009         output_scripts_byname, output_blocks, output_ident_category): Fix
42010         comment header.
42011         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
42012         get_wbp.
42013         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
42014         items.
42015         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
42016         Changes_When_Lowercased, Changes_When_Uppercased,
42017         Changes_When_Titlecased, Changes_When_Casefolded,
42018         Changes_When_Casemapped.
42019         (is_property_alphabetic, is_property_default_ignorable_code_point):
42020         Update for Unicode 5.2.0.
42021         (is_property_cased, is_property_case_ignorable,
42022         is_property_changes_when_lowercased,
42023         is_property_changes_when_uppercased,
42024         is_property_changes_when_titlecased,
42025         is_property_changes_when_casefolded,
42026         is_property_changes_when_casemapped): New functions.
42027         (output_properties): Output also the properties cased, case_ignorable,
42028         changes_when_lowercased, changes_when_uppercased,
42029         changes_when_titlecased, changes_when_casefolded,
42030         changes_when_casemapped.
42031         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
42032         Unicode TR#11 revision 17 -> 19.
42033         (LBP_CP): New enumeration value.
42034         (LBP_*): Adjust values accordingly.
42035         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
42036         TR#14 revision 22 -> 24.
42037         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
42038         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
42039         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
42040         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
42041         is_WBP_MIDLETTER.
42042         (output_composition_tables): Allow for 24 bits instead of 16 bits in
42043         the code1 and code2 of each composition rule.
42044         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
42045         * lib/unicase/ignorable.h: Likewise.
42046         * lib/unicase/tocasefold.h: Likewise.
42047         * lib/unicase/tolower.h: Likewise.
42048         * lib/unicase/totitle.h: Likewise.
42049         * lib/unicase/toupper.h: Likewise.
42050         * lib/unictype/bidi_of.h: Likewise.
42051         * lib/unictype/blocks.h: Likewise.
42052         * lib/unictype/categ_C.h: Likewise.
42053         * lib/unictype/categ_Cf.h: Likewise.
42054         * lib/unictype/categ_Cn.h: Likewise.
42055         * lib/unictype/categ_L.h: Likewise.
42056         * lib/unictype/categ_Ll.h: Likewise.
42057         * lib/unictype/categ_Lm.h: Likewise.
42058         * lib/unictype/categ_Lo.h: Likewise.
42059         * lib/unictype/categ_Lu.h: Likewise.
42060         * lib/unictype/categ_M.h: Likewise.
42061         * lib/unictype/categ_Mc.h: Likewise.
42062         * lib/unictype/categ_Mn.h: Likewise.
42063         * lib/unictype/categ_N.h: Likewise.
42064         * lib/unictype/categ_Nd.h: Likewise.
42065         * lib/unictype/categ_Nl.h: Likewise.
42066         * lib/unictype/categ_No.h: Likewise.
42067         * lib/unictype/categ_P.h: Likewise.
42068         * lib/unictype/categ_Pd.h: Likewise.
42069         * lib/unictype/categ_Po.h: Likewise.
42070         * lib/unictype/categ_S.h: Likewise.
42071         * lib/unictype/categ_Sc.h: Likewise.
42072         * lib/unictype/categ_So.h: Likewise.
42073         * lib/unictype/categ_of.h: Likewise.
42074         * lib/unictype/combining.h: Likewise.
42075         * lib/unictype/ctype_alnum.h: Likewise.
42076         * lib/unictype/ctype_alpha.h: Likewise.
42077         * lib/unictype/ctype_graph.h: Likewise.
42078         * lib/unictype/ctype_lower.h: Likewise.
42079         * lib/unictype/ctype_print.h: Likewise.
42080         * lib/unictype/ctype_punct.h: Likewise.
42081         * lib/unictype/ctype_upper.h: Likewise.
42082         * lib/unictype/decdigit.h: Likewise.
42083         * lib/unictype/digit.h: Likewise.
42084         * lib/unictype/numeric.h: Likewise.
42085         * lib/unictype/pr_alphabetic.h: Likewise.
42086         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42087         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42088         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42089         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42090         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42091         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42092         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42093         * lib/unictype/pr_combining.h: Likewise.
42094         * lib/unictype/pr_composite.h: Likewise.
42095         * lib/unictype/pr_currency_symbol.h: Likewise.
42096         * lib/unictype/pr_dash.h: Likewise.
42097         * lib/unictype/pr_decimal_digit.h: Likewise.
42098         * lib/unictype/pr_deprecated.h: Likewise.
42099         * lib/unictype/pr_diacritic.h: Likewise.
42100         * lib/unictype/pr_extender.h: Likewise.
42101         * lib/unictype/pr_grapheme_base.h: Likewise.
42102         * lib/unictype/pr_grapheme_extend.h: Likewise.
42103         * lib/unictype/pr_grapheme_link.h: Likewise.
42104         * lib/unictype/pr_id_continue.h: Likewise.
42105         * lib/unictype/pr_id_start.h: Likewise.
42106         * lib/unictype/pr_ideographic.h: Likewise.
42107         * lib/unictype/pr_ignorable_control.h: Likewise.
42108         * lib/unictype/pr_logical_order_exception.h: Likewise.
42109         * lib/unictype/pr_lowercase.h: Likewise.
42110         * lib/unictype/pr_numeric.h: Likewise.
42111         * lib/unictype/pr_other_alphabetic.h: Likewise.
42112         * lib/unictype/pr_punctuation.h: Likewise.
42113         * lib/unictype/pr_sentence_terminal.h: Likewise.
42114         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42115         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42116         * lib/unictype/pr_unified_ideograph.h: Likewise.
42117         * lib/unictype/pr_uppercase.h: Likewise.
42118         * lib/unictype/pr_xid_continue.h: Likewise.
42119         * lib/unictype/pr_xid_start.h: Likewise.
42120         * lib/unictype/pr_zero_width.h: Likewise.
42121         * lib/unictype/scripts.h: Likewise.
42122         * lib/unictype/scripts_byname.gperf: Likewise.
42123         * lib/unictype/sy_java_ident.h: Likewise.
42124         * lib/unigbrk/gbrkprop.h: Likewise.
42125         * lib/unilbrk/lbrkprop1.h: Likewise.
42126         * lib/unilbrk/lbrkprop2.h: Likewise.
42127         * lib/unilbrk/lbrktables.h: Likewise.
42128         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
42129         LBP_CP. Implement rule LB30.
42130         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
42131         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
42132         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
42133         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
42134         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
42135         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
42136         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
42137         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
42138         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
42139         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
42140         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
42141         bits instead of 16 bits in the code1 and code2 of each composition
42142         rule.
42143         (uc_composition): Update for Unicode 5.2.0.
42144         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
42145         * lib/uninorm/decomposition-table2.h: Likewise.
42146         * lib/uniwbrk/wbrkprop.h: Likewise.
42147         * tests/unicase/test-cased.c: Likewise.
42148         * tests/unicase/test-ignorable.c: Likewise.
42149         * tests/unicase/test-uc_tolower.c: Likewise.
42150         * tests/unicase/test-uc_totitle.c: Likewise.
42151         * tests/unicase/test-uc_toupper.c: Likewise.
42152         * tests/unictype/test-categ_C.c: Likewise.
42153         * tests/unictype/test-categ_Cf.c: Likewise.
42154         * tests/unictype/test-categ_Cn.c: Likewise.
42155         * tests/unictype/test-categ_L.c: Likewise.
42156         * tests/unictype/test-categ_Ll.c: Likewise.
42157         * tests/unictype/test-categ_Lm.c: Likewise.
42158         * tests/unictype/test-categ_Lo.c: Likewise.
42159         * tests/unictype/test-categ_Lu.c: Likewise.
42160         * tests/unictype/test-categ_M.c: Likewise.
42161         * tests/unictype/test-categ_Mc.c: Likewise.
42162         * tests/unictype/test-categ_Mn.c: Likewise.
42163         * tests/unictype/test-categ_N.c: Likewise.
42164         * tests/unictype/test-categ_Nd.c: Likewise.
42165         * tests/unictype/test-categ_Nl.c: Likewise.
42166         * tests/unictype/test-categ_No.c: Likewise.
42167         * tests/unictype/test-categ_P.c: Likewise.
42168         * tests/unictype/test-categ_Pd.c: Likewise.
42169         * tests/unictype/test-categ_Po.c: Likewise.
42170         * tests/unictype/test-categ_S.c: Likewise.
42171         * tests/unictype/test-categ_Sc.c: Likewise.
42172         * tests/unictype/test-categ_So.c: Likewise.
42173         * tests/unictype/test-ctype_alnum.c: Likewise.
42174         * tests/unictype/test-ctype_alpha.c: Likewise.
42175         * tests/unictype/test-ctype_graph.c: Likewise.
42176         * tests/unictype/test-ctype_lower.c: Likewise.
42177         * tests/unictype/test-ctype_print.c: Likewise.
42178         * tests/unictype/test-ctype_punct.c: Likewise.
42179         * tests/unictype/test-ctype_upper.c: Likewise.
42180         * tests/unictype/test-decdigit.h: Likewise.
42181         * tests/unictype/test-digit.h: Likewise.
42182         * tests/unictype/test-numeric.h: Likewise.
42183         * tests/unictype/test-pr_alphabetic.c: Likewise.
42184         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42185         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42186         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
42187         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42188         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42189         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42190         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42191         * tests/unictype/test-pr_combining.c: Likewise.
42192         * tests/unictype/test-pr_composite.c: Likewise.
42193         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42194         * tests/unictype/test-pr_dash.c: Likewise.
42195         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42196         * tests/unictype/test-pr_deprecated.c: Likewise.
42197         * tests/unictype/test-pr_diacritic.c: Likewise.
42198         * tests/unictype/test-pr_extender.c: Likewise.
42199         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42200         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42201         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42202         * tests/unictype/test-pr_id_continue.c: Likewise.
42203         * tests/unictype/test-pr_id_start.c: Likewise.
42204         * tests/unictype/test-pr_ideographic.c: Likewise.
42205         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42206         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42207         * tests/unictype/test-pr_lowercase.c: Likewise.
42208         * tests/unictype/test-pr_numeric.c: Likewise.
42209         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42210         * tests/unictype/test-pr_punctuation.c: Likewise.
42211         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42212         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42213         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42214         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42215         * tests/unictype/test-pr_uppercase.c: Likewise.
42216         * tests/unictype/test-pr_xid_continue.c: Likewise.
42217         * tests/unictype/test-pr_xid_start.c: Likewise.
42218         * tests/unictype/test-pr_zero_width.c: Likewise.
42219         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
42220         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
42221         changed behaviour: line breaking is now disallowed between a letter
42222         or '=' and '('.
42223         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42224         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42225         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
42226         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
42227         * tests/uniwidth/test-uc_width2.sh: Same updates as in
42228         lib/uniwidth/width.c.
42229         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
42230         without comments, but with the original copyright notice.
42231         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
42232         changes.
42233         * lib/unictype/categ_Cc.h: Likewise.
42234         * lib/unictype/categ_Co.h: Likewise.
42235         * lib/unictype/categ_Cs.h: Likewise.
42236         * lib/unictype/categ_Lt.h: Likewise.
42237         * lib/unictype/categ_Me.h: Likewise.
42238         * lib/unictype/categ_Pc.h: Likewise.
42239         * lib/unictype/categ_Pe.h: Likewise.
42240         * lib/unictype/categ_Pf.h: Likewise.
42241         * lib/unictype/categ_Pi.h: Likewise.
42242         * lib/unictype/categ_Ps.h: Likewise.
42243         * lib/unictype/categ_Sk.h: Likewise.
42244         * lib/unictype/categ_Sm.h: Likewise.
42245         * lib/unictype/categ_Z.h: Likewise.
42246         * lib/unictype/categ_Zl.h: Likewise.
42247         * lib/unictype/categ_Zp.h: Likewise.
42248         * lib/unictype/categ_Zs.h: Likewise.
42249         * lib/unictype/ctype_blank.h: Likewise.
42250         * lib/unictype/ctype_cntrl.h: Likewise.
42251         * lib/unictype/ctype_digit.h: Likewise.
42252         * lib/unictype/ctype_space.h: Likewise.
42253         * lib/unictype/ctype_xdigit.h: Likewise.
42254         * lib/unictype/mirror.h: Likewise.
42255         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42256         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42257         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42258         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42259         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42260         * lib/unictype/pr_bidi_control.h: Likewise.
42261         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42262         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42263         * lib/unictype/pr_bidi_pdf.h: Likewise.
42264         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42265         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42266         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42267         * lib/unictype/pr_format_control.h: Likewise.
42268         * lib/unictype/pr_hex_digit.h: Likewise.
42269         * lib/unictype/pr_hyphen.h: Likewise.
42270         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42271         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42272         * lib/unictype/pr_iso_control.h: Likewise.
42273         * lib/unictype/pr_join_control.h: Likewise.
42274         * lib/unictype/pr_left_of_pair.h: Likewise.
42275         * lib/unictype/pr_line_separator.h: Likewise.
42276         * lib/unictype/pr_math.h: Likewise.
42277         * lib/unictype/pr_non_break.h: Likewise.
42278         * lib/unictype/pr_not_a_character.h: Likewise.
42279         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42280         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42281         * lib/unictype/pr_other_id_continue.h: Likewise.
42282         * lib/unictype/pr_other_id_start.h: Likewise.
42283         * lib/unictype/pr_other_lowercase.h: Likewise.
42284         * lib/unictype/pr_other_math.h: Likewise.
42285         * lib/unictype/pr_other_uppercase.h: Likewise.
42286         * lib/unictype/pr_paired_punctuation.h: Likewise.
42287         * lib/unictype/pr_paragraph_separator.h: Likewise.
42288         * lib/unictype/pr_pattern_syntax.h: Likewise.
42289         * lib/unictype/pr_pattern_white_space.h: Likewise.
42290         * lib/unictype/pr_private_use.h: Likewise.
42291         * lib/unictype/pr_quotation_mark.h: Likewise.
42292         * lib/unictype/pr_radical.h: Likewise.
42293         * lib/unictype/pr_soft_dotted.h: Likewise.
42294         * lib/unictype/pr_space.h: Likewise.
42295         * lib/unictype/pr_titlecase.h: Likewise.
42296         * lib/unictype/pr_variation_selector.h: Likewise.
42297         * lib/unictype/pr_white_space.h: Likewise.
42298         * lib/unictype/sy_c_ident.h: Likewise.
42299         * lib/unictype/sy_c_whitespace.h: Likewise.
42300         * lib/unictype/sy_java_whitespace.h: Likewise.
42301         * modules/uni*/*: Bump version number of expected libunistring version.
42302         Reported by Simon Josefsson.
42304 2011-01-09  Karl Heuer  <kwzh@gnu.org>
42306         useless-if-before-free: fix typo in --help and make the internal,
42307         automatic version date update process work once again.
42308         --help output contained a NUL character instead of the
42309         backslash-zero that was intended.  Also, the "must lie within
42310         the first 8 lines" line is on line 9, and hence not getting
42311         automatically updated.
42312         * build-aux/useless-if-before-free: Fix the former by adding a
42313         backslash, and the latter by condensing the three lines of what-it-does
42314         to a single line, leaving one line of slack for the future.
42316 2011-01-09  Bruno Haible  <bruno@clisp.org>
42318         uniwidth/width: Fix width of U+1D173..U+1D17A.
42319         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
42320         symbolic_width, output_width_property_test): New functions.
42321         (main): Invoke output_nonspacing_property, output_width_property_test.
42322         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
42323         U+1D173..U+1D17A.
42324         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
42325         1.
42326         * modules/uniwidth/*: Bump version number of expected libunistring
42327         version.
42328         * modules/unilbrk/*: Likewise.
42330 2011-01-08  Bruno Haible  <bruno@clisp.org>
42332         uninorm tests: Preserve copyright of Unicode data file.
42333         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
42334         Mention modifications.
42336 2011-01-08  Bruno Haible  <bruno@clisp.org>
42338         gen-uni-tables: Prepare for Unicode 5.2.0.
42339         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
42340         (debug_output_lbp, output_lbp): Update.
42342 2011-01-08  Bruno Haible  <bruno@clisp.org>
42344         unilbrk: Clarify gen-uni-tables.c code.
42345         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
42346         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
42347         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
42349 2011-01-07  Bruno Haible  <bruno@clisp.org>
42351         strtod: Restore errno when successfully parsing Infinity or NaN.
42352         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
42353         restore the original errno.
42355 2011-01-07  Bruno Haible  <bruno@clisp.org>
42357         remove test: Avoid failure on HP-UX 11.
42358         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
42360 2011-01-07  Bruno Haible  <bruno@clisp.org>
42362         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
42363         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
42364         error code.
42366 2011-01-07  Pádraig Brady  <P@draigBrady.com>
42368         ignore-value: fixup comments, and add Eric Blake
42369         as an author since he rewrote the macros.
42370         * lib/ignore-value.h (ignore_value):  State that
42371         we now support aggregates.  Also specify exactly
42372         when the GCC warn_unused_result feature was added.
42374 2011-01-06  Eric Blake  <eblake@redhat.com>
42376         ignore-value: support aggregate types
42377         * lib/ignore-value.h (ignore_value): Provide separate gcc
42378         definition.
42379         * modules/ignore-value-tests: New test module.
42380         * tests/test-ignore-value.c: New test.
42382         maint.mk: improve sc_prohibit_strcmp regex
42383         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
42384         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
42385         definition of STRNEQ.
42387         signal: work around Haiku issue with SIGBUS
42388         * lib/siglist.h: Add comment.
42389         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
42390         strsignal's favoring of SIGSEGV.
42391         * tests/test-signal.c (main): Avoid test failure.
42392         * doc/posix-headers/signal.texi (signal.h): Document the issue.
42393         Reported by Scott McCreary.
42395         maint.mk: add pre-release check to ensure submodule commits are public
42396         * top/maint.mk (public-submodule-commit): New rule.
42397         (submodule-checks): New variable.
42398         (alpha beta stable): Depend on the variable.
42400 2011-01-05  Pádraig Brady  <P@draigBrady.com>
42401         and Jim Meyering  <meyering@redhat.com>
42403         ignore-value: make ignore_value more generic; deprecate ignore_ptr
42404         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
42405         (ATTRIBUTE_DEPRECATED): Define.
42406         (_ignore_case): New function.
42407         (ignore_value): New macro, to replace the old function.
42408         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
42409         * modules/ignore-value (Depends-on): Add stdint.
42411 2011-01-04  Eric Blake  <eblake@redhat.com>
42413         doc: regenerate INSTALL
42414         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
42415         @firstparagraphindent support, now that autoconf dropped it.
42416         (INSTALL_PRELUDE): Reinstate old macro.
42417         * doc/install.texi: Resync from autoconf.
42418         * doc/INSTALL: Reflect recent autoconf update.
42419         * doc/INSTALL.ISO: Likewise.
42420         * doc/INSTALL.UTF-8: Likewise.
42421         Reported by Karl Berry.
42423 2011-01-04  Bruce Korb  <address@hidden>
42425         git-version-gen: avoid a sub-shell
42426         * build-aux/git-version-gen: Redirect stderr in `...` via
42427         "exec 2>...", rather than via an added sub-shell.
42429 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
42431         git-version-gen: use (...) rather than sh -c '...'
42432         * build-aux/git-version-gen: Rather than hard-coding a shell's name
42433         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
42435 2011-01-03  Jim Meyering  <meyering@redhat.com>
42437         git-version-gen: convert leading TABs to spaces
42438         * build-aux/git-version-gen: Expand leading TABs.
42440         git-version-gen: handle failed "git rev-list"
42441         * build-aux/git-version-gen: Rather than leaking a "fatal" error
42442         from git and proceeding as if it had succeeded but printed no SHA1
42443         checksums, suppress the diagnostic and handle the failure.
42444         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
42446         git-version-gen: include command name in one more diagnostic
42447         * build-aux/git-version-gen: When the required .tarball-version file
42448         was missing or unreadable, you might see the diagnostic from "cat",
42449         but no trace of the name of the invoking script.  Now, you still see
42450         the diagnostic from cat, but also get one from "git-version-gen: ".
42451         Inspired by a patch from Bruce Korb.
42453         update-copyright: adjust test to match changed code
42454         * tests/test-update-copyright.sh: Change test's expected output
42455         to match new actual output.
42457 2011-01-02  Bruno Haible  <bruno@clisp.org>
42459         getlogin_r: Avoid test failure on HP-UX 11.
42460         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
42461         ERANGE when the second argument is zero.
42462         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
42463         portability problem.
42465 2011-01-02  Bruce Korb  <bkorb@gnu.org>
42467         * build-aux/update-copyright: doc Simon's changes
42469 2011-01-02  Simon Josefsson  <simon@josefsson.org>
42471         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
42472         environment variable.
42474 2011-01-02  Bruno Haible  <bruno@clisp.org>
42476         unigbrk: Avoid gcc warnings.
42477         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
42478         unused variable.
42479         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
42480         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
42481         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
42482         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
42483         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
42484         Change type of first argument to 'const char *'.
42485         (main): Remove unused variable.
42486         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
42487         type of first argument to 'const char *'.
42488         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
42489         Likewise.
42490         (main): Change type of variable 's'.
42491         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
42492         to 'int'.
42494 2011-01-02  Bruno Haible  <bruno@clisp.org>
42496         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
42497         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
42498         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
42499         bug.
42500         * lib/pwrite.c: Undo 2010-12-31 patch.
42501         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
42503 2011-01-02  Bruno Haible  <bruno@clisp.org>
42505         pread: Fix test whether it works.
42506         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
42508 2011-01-02  Bruno Haible  <bruno@clisp.org>
42510         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
42511         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
42512         ends in "6". Don't require a specific month name. Try also the locale
42513         names found on HP-UX 11 and Solaris 7.
42515 2011-01-02  Bruno Haible  <bruno@clisp.org>
42517         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
42518         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
42519         C linkage.
42520         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
42522 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
42524         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
42525         for consistency, since the "cluster" term is not used elsewhere.
42526         * lib/unigbrk.in.h: Update name.
42527         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
42528         * lib/unigbrk/u16-grapheme-next.c: Update name.
42529         * lib/unigbrk/u16-grapheme-prev.c: Update name.
42530         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
42531         * lib/unigbrk/u32-grapheme-next.c: Update name.
42532         * lib/unigbrk/u32-grapheme-prev.c: Update name.
42533         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
42534         * lib/unigbrk/u8-grapheme-next.c: Update name.
42535         * lib/unigbrk/u8-grapheme-prev.c: Update name.
42536         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
42537         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
42538         Suggested by Bruno Haible.
42540 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
42542         Remove module 'u8-grapheme-len' as too redundant with
42543         'u8-grapheme-next'.
42544         * modules/unigbrk/u8-grapheme-len: Delete file.
42545         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
42546         * lib/unigbrk.in.h: Remove prototype for deleted function.
42547         * lib/unigbrk/u8-grapheme-len.c: Delete file.
42548         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
42550         Remove module 'u16-grapheme-len' as too redundant with
42551         'u16-grapheme-next'.
42552         * modules/unigbrk/u16-grapheme-len: Delete file.
42553         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
42554         * lib/unigbrk.in.h: Remove prototype for deleted function.
42555         * lib/unigbrk/u16-grapheme-len.c: Delete file.
42556         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
42558         Remove module 'u32-grapheme-len' as too redundant with
42559         'u32-grapheme-next'.
42560         * modules/unigbrk/u32-grapheme-len: Delete file.
42561         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
42562         * lib/unigbrk.in.h: Remove prototype for deleted function.
42563         * lib/unigbrk/u32-grapheme-len.c: Delete file.
42564         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
42566         Suggested by Bruno Haible.
42568 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
42570         * unigbrk.in.h: Fix typo: "ben" => "been".
42571         Reported by Bruno Haible.
42573 2011-01-01  Jim Meyering  <meyering@redhat.com>
42575         maint: update almost all copyright ranges to include 2011
42576         Run the new "make update-copyright" rule.
42578 2011-01-01  Jim Meyering  <meyering@redhat.com>
42580         maint: update-copyright: exempt doc/INSTALL*
42581         * Makefile (update-copyright): Also exclude doc/INSTALL*,
42582         since they are generated.  Suggested by Bruno Haible.
42584 2011-01-01  Jim Meyering  <meyering@redhat.com>
42586         maint: refine the update-copyright rule
42587         * Makefile (update-copyright): Also exclude any file that includes
42588         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
42589         code that merely generates the comment.
42591 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
42593         New module 'u8-grapheme-len'.
42594         * modules/unigbrk/u8-grapheme-len: New file.
42595         * modules/unigbrk/u8-grapheme-len-tests: New file.
42596         * lib/unigbrk.in.h: Add prototype for new function.
42597         * lib/unigbrk/u8-grapheme-len.c: New file.
42598         * tests/unigbrk/test-u8-grapheme-len.c: New file.
42600         New module 'u16-grapheme-len'.
42601         * modules/unigbrk/u16-grapheme-len: New file.
42602         * modules/unigbrk/u16-grapheme-len-tests: New file.
42603         * lib/unigbrk.in.h: Add prototype for new function.
42604         * lib/unigbrk/u16-grapheme-len.c: New file.
42605         * tests/unigbrk/test-u16-grapheme-len.c: New file.
42607         New module 'u32-grapheme-len'.
42608         * modules/unigbrk/u32-grapheme-len: New file.
42609         * modules/unigbrk/u32-grapheme-len-tests: New file.
42610         * lib/unigbrk.in.h: Add prototype for new function.
42611         * lib/unigbrk/u32-grapheme-len.c: New file.
42612         * tests/unigbrk/test-u32-grapheme-len.c: New file.
42614         New module 'u8-grapheme-next'.
42615         * modules/unigbrk/u8-grapheme-next: New file.
42616         * modules/unigbrk/u8-grapheme-next-tests: New file.
42617         * lib/unigbrk.in.h: Add prototype for new function.
42618         * lib/unigbrk/u8-grapheme-next.c: New file.
42619         * tests/unigbrk/test-u8-grapheme-next.c: New file.
42621         New module 'u16-grapheme-next'.
42622         * modules/unigbrk/u16-grapheme-next: New file.
42623         * modules/unigbrk/u16-grapheme-next-tests: New file.
42624         * lib/unigbrk.in.h: Add prototype for new function.
42625         * lib/unigbrk/u16-grapheme-next.c: New file.
42626         * tests/unigbrk/test-u16-grapheme-next.c: New file.
42628         New module 'u32-grapheme-next'.
42629         * modules/unigbrk/u32-grapheme-next: New file.
42630         * modules/unigbrk/u32-grapheme-next-tests: New file.
42631         * lib/unigbrk.in.h: Add prototype for new function.
42632         * lib/unigbrk/u32-grapheme-next.c: New file.
42633         * tests/unigbrk/test-u32-grapheme-next.c: New file.
42635         New module 'u8-grapheme-prev'.
42636         * modules/unigbrk/u8-grapheme-prev: New file.
42637         * modules/unigbrk/u8-grapheme-prev-tests: New file.
42638         * lib/unigbrk.in.h: Add prototype for new function.
42639         * lib/unigbrk/u8-grapheme-prev.c: New file.
42640         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
42642         New module 'u16-grapheme-prev'.
42643         * modules/unigbrk/u16-grapheme-prev: New file.
42644         * modules/unigbrk/u16-grapheme-prev-tests: New file.
42645         * lib/unigbrk.in.h: Add prototype for new function.
42646         * lib/unigbrk/u16-grapheme-prev.c: New file.
42647         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
42649         New module 'u32-grapheme-prev'.
42650         * modules/unigbrk/u32-grapheme-prev: New file.
42651         * modules/unigbrk/u32-grapheme-prev-tests: New file.
42652         * lib/unigbrk.in.h: Add prototype for new function.
42653         * lib/unigbrk/u32-grapheme-prev.c: New file.
42654         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
42656         New module 'u8-grapheme-breaks'.
42657         * modules/unigbrk/u8-grapheme-breaks: New file.
42658         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
42659         * lib/unigbrk.in.h: Add prototype for new function.
42660         * lib/unigbrk/u8-grapheme-breaks.c: New file.
42661         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
42663         New module 'u16-grapheme-breaks'.
42664         * modules/unigbrk/u16-grapheme-breaks: New file.
42665         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
42666         * lib/unigbrk.in.h: Add prototype for new function.
42667         * lib/unigbrk/u16-grapheme-breaks.c: New file.
42668         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
42670         New module 'u32-grapheme-breaks'.
42671         * modules/unigbrk/u32-grapheme-breaks: New file.
42672         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
42673         * lib/unigbrk.in.h: Add prototype for new function.
42674         * lib/unigbrk/u32-grapheme-breaks.c: New file.
42675         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
42677         New module 'ulc-grapheme-breaks'.
42678         * modules/unigbrk/ulc-grapheme-breaks: New file.
42679         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
42680         * m4/locale-ar.m4: New file.
42681         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
42682         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
42683         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
42685 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
42687         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
42688         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
42689         modified how this file was generated before I initially submitted
42690         the module, but failed to regenerate it.  This meant that several
42691         of the level2 entries were wrong.
42692         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
42693         Remove the division-by-2 that is folded into the table now that
42694         gbrkprop.h has been regenerated properly.  Now -1 entries are
42695         handled correctly.
42697         New module 'unigbrk/uc-gbrk-prop-tests'.
42698         * modules/unigbrk/uc-gbrk-prop-tests: New file.
42699         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
42700         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
42701         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
42703 2011-01-01  Bruno Haible  <bruno@clisp.org>
42705         Avoid use of hexadecimal escapes.
42706         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
42707         instead of hexadecimal escapes.
42709 2011-01-01  Jim Meyering  <meyering@redhat.com>
42711         maint: new rule to update copyright year ranges
42712         * Makefile (update-copyright): New rule.
42714         maint: indent with TABs in Makefile
42715         * Makefile: Expand leading sequences of spaces to TABs
42717         version-etc: update the copyright year it reports
42718         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
42720 2010-12-31  Bruno Haible  <bruno@clisp.org>
42722         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
42723         * lib/isfinite.c (zerof, zerod, zerol): New variables.
42724         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
42725         zero.
42727 2010-12-31  Bruno Haible  <bruno@clisp.org>
42729         pwrite: Work around HP-UX 11.11 bug.
42730         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
42731         works and set REPLACE_PWRITE if not.
42732         * lib/pwrite.c (pwrite): Add an implementation that uses the system
42733         function.
42734         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
42736 2010-12-31  Bruno Haible  <bruno@clisp.org>
42738         pread: Work around HP-UX 11 bugs.
42739         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
42740         and set REPLACE_PREAD if not.
42741         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
42743 2010-12-31  Eric Blake  <eblake@redhat.com>
42745         nl_langinfo: fix YESEXPR on Irix 6.5
42746         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
42747         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
42748         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
42749         it.
42751 2010-12-31  Bruno Haible  <bruno@clisp.org>
42753         iconv: Document HP-UX 11 bug.
42754         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
42756 2010-12-31  Bruno Haible  <bruno@clisp.org>
42758         ldexpl: Fix link error on HP-UX 11.
42759         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
42760         LDEXPL_LIBM, using $ISNANL_LIBM.
42762 2010-12-31  Eric Blake  <eblake@redhat.com>
42764         ftello: avoid compilation failure with SunStudio c89
42765         * lib/ftello.c (ftello): Use lseek, not llseek.
42767         tests: avoid failing coreutils tests on cygwin
42768         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
42769         (create_exe_shims_): Return 0 when skipping.
42771 2010-12-31  Bruno Haible  <bruno@clisp.org>
42773         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
42774         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
42776 2010-12-31  Bruno Haible  <bruno@clisp.org>
42778         waitpid: Fix link error in C++ mode.
42779         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
42781 2010-12-31  Bruno Haible  <bruno@clisp.org>
42783         isnan: Use GCC built-ins when possible.
42784         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
42785         __builtin_isnan.
42786         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
42787         (isnan): Define using GCC built-ins for GCC >= 4.0.
42789 2010-12-31  Bruno Haible  <bruno@clisp.org>
42791         isnand: Fix mistake.
42792         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
42793         __builtin_isnand.
42795 2010-12-31  Bruno Haible  <bruno@clisp.org>
42797         open: Avoid C++ error on HP-UX 11.
42798         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
42800 2010-12-31  Bruno Haible  <bruno@clisp.org>
42802         time_r: Add missing declarations on HP-UX 11.
42803         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
42804         instead of HAVE_LOCALTIME_R.
42805         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
42806         HAVE_LOCALTIME_R always.
42807         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
42808         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
42809         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
42810         HAVE_LOCALTIME_R.
42811         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
42812         * doc/posix-functions/localtime_r.texi: Likewise.
42814 2010-12-29  Eric Blake  <eblake@redhat.com>
42816         mountlist: tweak previous commit
42817         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
42818         Reported by Paul Eggert.
42820         mountlist: fix local drive detection on cygwin
42821         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
42822         that works for cygwin.
42824 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
42826         ftoastr, snprintf: ftoastr + snprintf module
42827         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
42828         since the snprintf module now should be good enough here.
42829         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
42830         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
42831         and gl_MODULE_INDICATOR([snprintf]), but the former enables
42832         GNULIB_SNPRINTF only for the test directory, and the latter
42833         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
42834         seems to suffice by itself.
42836 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
42838         alloca: one step towards thread-safety
42839         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
42840         need for a static variable.  All callers changed.  This does not
42841         make the alloca replacement thread-safe, but it's one step.
42843         tests: minor indenting change
42844         * tests/init.sh: Sync from coreutils housekeeping patch
42845         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
42846         to keep lines within 80 columns.
42848 2010-12-28  Jim Meyering  <meyering@redhat.com>
42850         regex: don't infloop on persistent failing calloc
42851         * lib/regexec.c (build_trtable): Return failure indication upon
42852         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
42853         In glibc, this was fixed for version 2.13:
42854         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
42856 2010-12-28  Bruno Haible  <bruno@clisp.org>
42857             Paul Eggert <eggert@cs.ucla.edu>
42859         linkat: Make implementation robust against system behaviour variations.
42860         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
42861         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
42862         way, and to -2 if it needs a generic runtime test.
42863         * lib/linkat.c (solaris_optimized_link_immediate,
42864         solaris_optimized_link_follow): New functions.
42865         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
42866         (check_same_link): Use it.
42868 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
42870         New module 'unigbrk/base'.
42871         * modules/unigbrk/base: New file.
42872         * lib/unigbrk.in.h: New file.
42874         New module 'unigbrk/uc-gbrk-prop'.
42875         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
42876         * modules/unigbrk/uc-gbrk-prop: New file.
42877         * lib/unigbrk/gbrkprop.h: New file.
42878         * lib/unigbrk/uc-gbrk-prop.c: New file.
42880         New module 'unigbrk/uc-is-grapheme-break'.
42881         * modules/unigbrk/uc-is-grapheme-break: New file.
42882         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
42883         * lib/unigbrk/uc-is-grapheme-break.c: New file.
42884         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
42885         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
42886         * tests/unigbrk/GraphemeBreakTest.txt: New file.
42888         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
42890 2010-12-27  Bruno Haible  <bruno@clisp.org>
42892         linkat test: Avoid failure on Solaris 11 2010-11.
42893         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
42895 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
42897         utimens: work around glibc rounding bug on more platforms
42898         * lib/utimens.c (fdutimens): Work around rounding bug even if
42899         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
42900         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
42902 2010-12-27  Bruno Haible  <bruno@clisp.org>
42904         select tests: Improve comments.
42905         * tests/test-select.c (do_select): Add comments.
42907 2010-12-27  Bruno Haible  <bruno@clisp.org>
42909         select tests: Safer way of handling timeout.
42910         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
42911         at every invocation.
42913 2010-12-27  Bruno Haible  <bruno@clisp.org>
42915         select tests: Use 'bool' where appropriate.
42916         * tests/test-select.c (connect_to_socket): Change argument type to
42917         'bool'.
42919 2010-12-27  Bruno Haible  <bruno@clisp.org>
42921         select tests: Use existing modules.
42922         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
42923         (configure.ac): Don't test for unistd.h.
42924         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
42925         declared in <unistd.h>.
42927 2010-12-27  Bruno Haible  <bruno@clisp.org>
42929         mbrtowc: Work around a Solaris 7 bug.
42930         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
42931         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
42932         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
42933         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
42934         MBRTOWC_NULL_ARG1_BUG.
42935         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
42936         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
42937         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
42938         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
42940 2010-12-27  Jim Meyering  <meyering@redhat.com>
42942         read-file.c: tweak syntax
42943         * lib/read-file.c (fread_file): Remove space after "*" in function
42944         definitions.
42946 2010-12-27  Bruno Haible  <bruno@clisp.org>
42948         times test: Avoid gcc warnings on OSF/1.
42949         * tests/test-times.c (main): Cast printf arguments from clock_t to
42950         'long int'.
42952 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
42954         utimens: work around glibc rounding bug on older Linux kernels
42955         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
42956         on Linux with a glibc whose utimes might not work, then work
42957         around a longstanding glibc bug involving rounding rather than
42958         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
42959         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
42961 2010-12-26  Bruno Haible  <bruno@clisp.org>
42963         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
42964         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
42965         _GL_CXXALIAS_SYS.
42966         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42968 2010-12-26  Bruno Haible  <bruno@clisp.org>
42970         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
42971         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
42972         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
42973         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
42974         looking for the declaration.
42975         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
42976         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
42977         problem.
42978         * doc/posix-functions/inet_pton.texi: Likewise.
42980 2010-12-26  Bruno Haible  <bruno@clisp.org>
42982         arpa_inet: Use the common idioms with C++ support.
42983         * lib/arpa_inet.in.h: Include c++defs.h.
42984         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
42985         support.
42986         * modules/arpa_inet (Depends-on): Add c++defs.
42987         (Makefile.am): Substitute the contents of c++defs.h.
42988         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
42989         * modules/arpa_inet-c++-tests: New file.
42990         * tests/test-arpa_inet-c++.cc: New file.
42992 2010-12-25  Bruno Haible  <bruno@clisp.org>
42994         Fix more C++ link errors on Solaris 8.
42995         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
42996         $(LIB_EACCESS).
42997         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
42998         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
42999         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
43000         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
43001         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
43003 2010-12-25  Bruno Haible  <bruno@clisp.org>
43005         printf-posix: Fix link error when a non-GCC compiler is used.
43006         * lib/stdio.in.h (printf): When not using GCC, override printf
43007         correctly.
43008         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43010 2010-12-25  Bruno Haible  <bruno@clisp.org>
43012         strerror_r-posix: Update doc.
43013         * doc/posix-functions/strerror_r.texi: Update doc about the return
43014         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
43016 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43018         utimens: simplify the logic of the previous change
43019         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
43020         This should not affect whether the test succeeds or fails.
43022         utimens: configure better on hosts with NFS clock skew
43023         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
43024         uses the clock of the local host.  It might use the clock of the
43025         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
43026         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
43028 2010-12-25  Bruno Haible  <bruno@clisp.org>
43030         ptsname test: Avoid failure on Solaris.
43031         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
43032         open a pseudo-terminal; don't use BSD-style ptys.
43033         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
43035 2010-12-25  Bruno Haible  <bruno@clisp.org>
43037         ptsname: Avoid ERANGE failure on some systems.
43038         * lib/ptsname.c (buffer): Increase size.
43040 2010-12-25  Bruno Haible  <bruno@clisp.org>
43042         rename, renameat: Avoid test failures at NFS mounted locations.
43043         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
43044         so that subsequent mkdir calls succeed.
43046 2010-12-25  Bruno Haible  <bruno@clisp.org>
43048         iswblank: Fix C++ link error on Solaris 8.
43049         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
43050         _GL_FUNCDECL_SYS.
43052 2010-12-25  Bruno Haible  <bruno@clisp.org>
43054         unistd: Fix C++ link error on Solaris 8.
43055         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
43057 2010-12-25  Bruno Haible  <bruno@clisp.org>
43059         readlink doc: Mention an old glibc bug.
43060         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
43062 2010-12-25  Bruno Haible  <bruno@clisp.org>
43064         fcntl-h: Fix for use of C++ on glibc systems.
43065         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
43066         also on glibc systems in C++ mode.
43067         Reported by Gary V. Vaughan <gary@gnu.org>.
43069 2010-12-25  Bruno Haible  <bruno@clisp.org>
43071         roundl-ieee: Make it work on OSF/1 5.1 with cc.
43072         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
43074 2010-12-25  Bruno Haible  <bruno@clisp.org>
43076         truncl-ieee: Make it work on OSF/1 5.1 with cc.
43077         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
43078         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
43079         test whether truncl works according to ISO C 99 with IEC 60559.
43080         * m4/truncl-ieee.m4: New file.
43081         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
43082         m4/signbit.m4.
43083         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
43085 2010-12-25  Bruno Haible  <bruno@clisp.org>
43087         ceill-ieee: Make it work on OSF/1 5.1 with cc.
43088         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
43089         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
43090         test whether ceill works according to ISO C 99 with IEC 60559.
43091         * m4/ceill-ieee.m4: New file.
43092         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
43093         m4/signbit.m4.
43094         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
43096 2010-12-25  Bruno Haible  <bruno@clisp.org>
43098         Ensure all prerequisites of <wchar.h> are included.
43099         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
43100         before <wchar.h>.
43101         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
43102         gl_MBRLEN_NUL_RETVAL): Likewise.
43103         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43104         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
43105         AC_FUNC_MBRTOWC): Likewise.
43106         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43107         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
43108         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
43109         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
43110         Likewise.
43111         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43112         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
43113         (gl_WCHAR_H): Improve comments.
43114         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
43116 2010-12-25  Bruno Haible  <bruno@clisp.org>
43118         strtok_r: Fix C syntax error in autoconf macro.
43119         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
43120         characters in test program.
43122 2010-12-24  Bruno Haible  <bruno@clisp.org>
43124         ceil, trunc, round: Fix gcc warnings.
43125         * lib/ceil.c (MIN): Undefine before redefining.
43126         * lib/trunc.c (MIN): Likewise.
43127         * lib/round.c (MIN): Likewise.
43128         Include <math.h> first.
43130 2010-12-24  Bruno Haible  <bruno@clisp.org>
43132         select tests: Avoid failures on OSF/1 5.1.
43133         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
43134         failure of closing the last socket; it may fail with ECONNRESET.
43136 2010-12-24  Eric Blake  <eblake@redhat.com>
43138         stdint: avoid HP-UX 10.20 preprocessor bug
43139         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
43140         than #if.
43141         * tests/test-floor2.c (main): Likewise.
43142         Reported by Peter O'Gorman.
43144         pipe: make obsoletion transition easier
43145         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
43146         * modules/pipe (Files): Include revived file.
43147         (Include): Drop reference, to mirror getdate's behavior.
43149 2010-12-24  Bruno Haible  <bruno@clisp.org>
43151         sys_socket: Hide mismatch of declarations on NonStop Kernel.
43152         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
43153         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
43154         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43156 2010-12-24  Bruno Haible  <bruno@clisp.org>
43158         gethostname: Ensure declaration on NonStop Kernel.
43159         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
43160         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43162 2010-12-24  Bruno Haible  <bruno@clisp.org>
43164         sys_select: Ensure all necessary types on NonStop Kernel.
43165         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
43166         include <sys/time.h>.
43167         * doc/posix-headers/sys_select.texi: Mention that it's missing on
43168         NonStop Kernel.
43169         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43171 2010-12-24  Bruno Haible  <bruno@clisp.org>
43173         sys_select: Remove unneeded include.
43174         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
43175         have <sys/select.h>.
43177 2010-12-24  Bruno Haible  <bruno@clisp.org>
43179         gethostname: Provide a fallback for HOST_NAME_MAX.
43180         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
43181         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
43182         instead.
43183         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43185 2010-12-24  Bruno Haible  <bruno@clisp.org>
43187         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
43188         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
43189         (SA_RESTART): Likewise.
43190         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43192 2010-12-24  Bruno Haible  <bruno@clisp.org>
43194         signal: Define NSIG.
43195         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
43196         * tests/test-signal.c (nsig): New variable.
43197         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43199 2010-12-24  Bruno Haible  <bruno@clisp.org>
43201         rename, renameat: Avoid test failures on OSF/1 5.1.
43202         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
43203         alternative error codes.
43204         * tests/test-renameat.c (main): Likewise.
43206 2010-12-24  Bruno Haible  <bruno@clisp.org>
43208         *printf: Detect large precisions bug on Solaris 10/SPARC.
43209         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
43210         by Paul Eggert.
43211         * tests/test-snprintf-posix.h (test_function): Add this test code here
43212         too.
43213         * tests/test-sprintf-posix.h (test_function): Likewise.
43214         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43215         * tests/test-vasprintf-posix.c (test_function): Likewise.
43216         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
43217         around by gnulib.
43218         * doc/posix-functions/printf.texi: Likewise.
43219         * doc/posix-functions/snprintf.texi: Likewise.
43220         * doc/posix-functions/sprintf.texi: Likewise.
43221         * doc/posix-functions/vfprintf.texi: Likewise.
43222         * doc/posix-functions/vprintf.texi: Likewise.
43223         * doc/posix-functions/vsnprintf.texi: Likewise.
43224         * doc/posix-functions/vsprintf.texi: Likewise.
43225         * doc/posix-functions/dprintf.texi: Undo last commit.
43226         * doc/posix-functions/vdprintf.texi: Likewise.
43228 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
43230         tests: port test-fdutimensat.c to Solaris 8
43231         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
43232         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
43233         On Solaris 8, it fails with errno == ENOSYS, because there is no
43234         futimens (so it can't use the fd), and there is no lutimens (so it
43235         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
43237         vsnprintf: make more consistent with snprintf; doc fixes
43239         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
43240         the byte count return problem was promoted from the snprintf-posix
43241         to the snprintf module.
43242         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43243         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
43244         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
43245         * tests/test-snprintf.c (main): Check the byte count returned.
43246         * tests/test-vsnprintf.c (main): Likewise.
43248 2010-12-23  Eric Blake  <eblake@redhat.com>
43250         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
43251         * modules/sigpipe (License): Relax license.
43253 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
43255         doc: document Solaris printf bug with large float precisions
43256         * doc/posix-functions/dprintf.texi (dprintf):
43257         * doc/posix-functions/fprintf.texi (fprintf):
43258         * doc/posix-functions/printf.texi (printf):
43259         * doc/posix-functions/snprintf.texi (snprintf):
43260         * doc/posix-functions/sprintf.texi (sprintf):
43261         * doc/posix-functions/vdprintf.texi (vdprintf):
43262         * doc/posix-functions/vfprintf.texi (vfprintf):
43263         * doc/posix-functions/vprintf.texi (vprintf):
43264         * doc/posix-functions/vsnprintf.texi (vsnprintf):
43265         * doc/posix-functions/vsprintf.texi (vsprintf):
43266         Mention that these functions mishandle large floating point
43267         precisions on Solaris 10.  The same bug is also present in Solaris
43268         8, and I assume earlier.  This causes "cd gnulib-tests; make
43269         check" to fail on Solaris 8 (and I assume, later) when building
43270         the latest coreutils, in test-vasprintf-posix's call to
43271         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
43272         the wide flavors (e.g., wprintf) so this patch just updates the
43273         documentation for the narrow ones.
43275         test-posixtm.c: add two tests
43276         * tests/test-posixtm.c: Add two tests, to highlight the
43277         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
43278         around this bug; this is merely to document it.
43280 2010-12-22  Bruno Haible  <bruno@clisp.org>
43282         getlogin_r: Work around portability problem on OSF/1.
43283         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
43284         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
43285         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
43286         test for a truncated result.
43287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
43288         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
43289         * modules/getlogin_r (Depends-on): Add memchr.
43290         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
43292 2010-12-22  Bruno Haible  <bruno@clisp.org>
43294         ptsname: Avoid test failure on OSF/1 5.1.
43295         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
43296         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
43297         (same_slave): New function.
43298         (main): Use it to compare ptsname's result with the expected file name.
43300 2010-12-22  Bruno Haible  <bruno@clisp.org>
43302         Port extended stdio modules to HP NonStop Kernel.
43303         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
43304         macros.
43305         * lib/fbufmode.c: Update comments.
43306         * lib/fflush.c: Likewise.
43307         * lib/fpurge.c: Likewise.
43308         * lib/freadable.c: Likewise.
43309         * lib/freadahead.c: Likewise.
43310         * lib/freading.c: Likewise.
43311         * lib/freadptr.c: Likewise.
43312         * lib/freadseek.c: Likewise.
43313         * lib/fseeko.c: Likewise.
43314         * lib/fseterr.c: Likewise.
43315         * lib/fwritable.c: Likewise.
43316         * lib/fwriting.c: Likewise.
43317         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43319 2010-12-22  Bruno Haible  <bruno@clisp.org>
43321         ttyname_r: Work around bug on OSF/1 5.1.
43322         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
43323         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
43324         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
43325         present.
43326         * lib/ttyname_r.c (ttyname_r): Update comments.
43328 2010-12-22  Bruno Haible  <bruno@clisp.org>
43330         round: Implement result sign according to IEEE 754.
43331         * lib/round.c (MIN, MINUS_ZERO): New macros.
43332         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
43333         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
43334         * tests/test-round-ieee.c (main): Likewise.
43335         * tests/test-roundl-ieee.c (main): Likewise.
43337         trunc: Implement result sign according to IEEE 754.
43338         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
43339         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
43340         * tests/test-trunc2.c: Include minus-zero.h.
43341         (MINUS_ZERO): New macro.
43342         (trunc_reference): Keep in sync with lib/trunc.c.
43343         * tests/test-truncf2.c: Include minus-zero.h.
43344         (MINUS_ZERO): New macro.
43345         (truncf_reference): Keep in sync with lib/trunc.c.
43346         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
43347         * tests/test-trunc-ieee.c (main): Likewise.
43348         * tests/test-truncl-ieee.c (main): Likewise.
43350         ceil: Implement result sign according to IEEE 754.
43351         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
43352         (FUNC): Return -0.0 for -1 < x < 0.
43353         * tests/test-ceil2.c: Include minus-zero.h.
43354         (MINUS_ZERO): New macro.
43355         (ceil_reference): Keep in sync with lib/ceil.c.
43356         * tests/test-ceilf2.c: Include minus-zero.h.
43357         (MINUS_ZERO): New macro.
43358         (ceilf_reference): Keep in sync with lib/ceil.c.
43359         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
43360         * tests/test-ceil-ieee.c (main): Likewise.
43361         * tests/test-ceill-ieee.c (main): Likewise.
43363         floor: Implement result sign according to IEEE 754.
43364         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
43365         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
43366         * tests/test-floorf2.c (floorf_reference): Likewise.
43367         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
43368         * tests/test-floor-ieee.c (main): Likewise.
43369         * tests/test-floorl-ieee.c (main): Likewise.
43371 2010-12-22  Bruno Haible  <bruno@clisp.org>
43373         getaddrinfo: Update doc.
43374         * doc/posix-functions/gai_strerror.texi: Return type is also different
43375         on AIX and HP-UX.
43377 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
43379         getaddrinfo, inet_ntop: Update doc for Solaris.
43380         * doc/posix-functions/gai_strerror.texi: Return type is also an
43381         issue on Solaris 9 and earlier.
43382         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
43383         on Solaris 10 and earlier.
43385 2010-12-21  Bruno Haible  <bruno@clisp.org>
43387         New module 'roundl-ieee'.
43388         * modules/roundl-ieee: New file.
43389         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
43390         test whether roundl works according to ISO C 99 with IEC 60559.
43391         * m4/roundl-ieee.m4: New file.
43392         * modules/roundl-ieee-tests: New file.
43393         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
43394         * tests/test-roundl.c (main): Remove signbit tests.
43395         * modules/roundl-tests (Depends-on): Remove signbit.
43396         * doc/posix-functions/roundl.texi: Mention the new module.
43398 2010-12-21  Bruno Haible  <bruno@clisp.org>
43400         New module 'truncl-ieee'.
43401         * modules/truncl-ieee: New file.
43402         * modules/truncl-ieee-tests: New file.
43403         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
43404         * tests/test-truncl.c (main): Remove signbit tests.
43405         * modules/truncl-tests (Depends-on): Remove signbit.
43406         * doc/posix-functions/truncl.texi: Mention the new module.
43408 2010-12-21  Bruno Haible  <bruno@clisp.org>
43410         New module 'ceill-ieee'.
43411         * modules/ceill-ieee: New file.
43412         * modules/ceill-ieee-tests: New file.
43413         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
43414         * tests/test-ceill.c (main): Remove signbit tests.
43415         * modules/ceill-tests (Depends-on): Remove signbit.
43416         * doc/posix-functions/ceill.texi: Mention the new module.
43418 2010-12-21  Bruno Haible  <bruno@clisp.org>
43420         New module 'floorl-ieee'.
43421         * modules/floorl-ieee: New file.
43422         * modules/floorl-ieee-tests: New file.
43423         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
43424         * tests/test-floorl.c (main): Remove signbit tests.
43425         * modules/floorl-tests (Depends-on): Remove signbit.
43426         * doc/posix-functions/floorl.texi: Mention the new module.
43428 2010-12-21  Bruno Haible  <bruno@clisp.org>
43430         New module 'round-ieee'.
43431         * modules/round-ieee: New file.
43432         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
43433         whether round works according to ISO C 99 with IEC 60559.
43434         * m4/round-ieee.m4: New file.
43435         * modules/round-ieee-tests: New file.
43436         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
43437         * tests/test-round1.c (main): Remove signbit tests.
43438         * modules/round-tests (Depends-on): Remove 'signbit'.
43439         * doc/posix-functions/round.texi: Mention the new module.
43441 2010-12-21  Bruno Haible  <bruno@clisp.org>
43443         New module 'trunc-ieee'.
43444         * modules/trunc-ieee: New file.
43445         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
43446         whether trunc works according to ISO C 99 with IEC 60559.
43447         * m4/trunc-ieee.m4: New file.
43448         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
43449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
43450         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
43451         * modules/trunc-ieee-tests: New file.
43452         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
43453         * tests/test-trunc1.c (main): Remove signbit tests.
43454         * modules/trunc-tests (Depends-on): Remove 'signbit'.
43455         * doc/posix-functions/trunc.texi: Mention the new module.
43457 2010-12-21  Bruno Haible  <bruno@clisp.org>
43459         New module 'ceil-ieee'.
43460         * modules/ceil-ieee: New file.
43461         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
43462         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
43463         ISO C 99 with IEC 60559.
43464         * m4/ceil-ieee.m4: New file.
43465         * modules/ceil (Files): Add lib/ceil.c.
43466         (Depends-on): Add 'float'.
43467         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43468         * lib/math.in.h (ceil): New declaration.
43469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
43470         REPLACE_CEIL.
43471         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
43472         * modules/ceil-ieee-tests: New file.
43473         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
43474         * tests/test-math-c++.cc: Check the signature of 'ceil'.
43475         * doc/posix-functions/ceil.texi: Mention the new module.
43477 2010-12-21  Bruno Haible  <bruno@clisp.org>
43479         New module 'floor-ieee'.
43480         * modules/floor-ieee: New file.
43481         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
43482         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
43483         ISO C 99 with IEC 60559.
43484         * m4/floor-ieee.m4: New file.
43485         * modules/floor (Files): Add lib/floor.c.
43486         (Depends-on): Add 'float'.
43487         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43488         * lib/math.in.h (floor): New declaration.
43489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
43490         REPLACE_FLOOR.
43491         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
43492         * modules/floor-ieee-tests: New file.
43493         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
43494         * tests/test-math-c++.cc: Check the signature of 'floor'.
43495         * doc/posix-functions/floor.texi: Mention the new module.
43497 2010-12-21  Bruno Haible  <bruno@clisp.org>
43499         New module 'roundf-ieee'.
43500         * modules/roundf-ieee: New file.
43501         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
43502         test whether roundf works according to ISO C 99 with IEC 60559.
43503         * m4/roundf-ieee.m4: New file.
43504         * modules/roundf-ieee-tests: New file.
43505         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
43506         * tests/test-roundf1.c (main): Remove signbit tests.
43507         * modules/roundf-tests (Depends-on): Remove 'signbit'.
43508         * doc/posix-functions/roundf.texi: Mention the new module.
43510 2010-12-21  Bruno Haible  <bruno@clisp.org>
43512         New module 'truncf-ieee'.
43513         * modules/truncf-ieee: New file.
43514         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
43515         test whether truncf works according to ISO C 99 with IEC 60559.
43516         * m4/truncf-ieee.m4: New file.
43517         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
43518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
43519         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
43520         * modules/truncf-ieee-tests: New file.
43521         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
43522         * tests/test-truncf1.c (main): Remove signbit tests.
43523         * modules/truncf-tests (Depends-on): Remove 'signbit'.
43524         * doc/posix-functions/truncf.texi: Mention the new module.
43526 2010-12-21  Bruno Haible  <bruno@clisp.org>
43528         New module 'ceilf-ieee'.
43529         * modules/ceilf-ieee: New file.
43530         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
43531         test whether ceilf works according to ISO C 99 with IEC 60559.
43532         * m4/ceilf-ieee.m4: New file.
43533         * modules/ceilf-ieee-tests: New file.
43534         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
43535         * tests/test-ceilf1.c (main): Remove signbit tests.
43536         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
43537         * doc/posix-functions/ceilf.texi: Mention the new module.
43539 2010-12-21  Bruno Haible  <bruno@clisp.org>
43541         New module 'floorf-ieee'.
43542         * modules/floorf-ieee: New file.
43543         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
43544         test whether floorf works according to ISO C 99 with IEC 60559.
43545         * m4/floorf-ieee.m4: New file.
43546         * modules/floorf-ieee-tests: New file.
43547         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
43548         * tests/test-floorf1.c (main): Remove signbit tests.
43549         * modules/floorf-tests (Depends-on): Remove 'signbit'.
43550         * doc/posix-functions/floorf.texi: Mention the new module.
43552 2010-12-21  Bruno Haible  <bruno@clisp.org>
43554         Support for minus zero in autoconf macros.
43555         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
43556         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
43557         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
43558         * tests/minus-zero.h: Update comments.
43560 2010-12-21  Bruno Haible  <bruno@clisp.org>
43562         Tests for module 'ceil'.
43563         * modules/ceil-tests: New file.
43564         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
43565         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
43567 2010-12-21  Bruno Haible  <bruno@clisp.org>
43569         Tests for module 'floor'.
43570         * modules/floor-tests: New file.
43571         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
43572         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
43574 2010-12-21  Bruno Haible  <bruno@clisp.org>
43576         math: Fix indentation.
43577         * lib/math.in.h (floorf): Fix indentation.
43579 2010-12-21  Bruno Haible  <bruno@clisp.org>
43581         Fix cross-compilation guesses on Solaris.
43582         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
43583         not match "solaris2.10".
43584         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
43585         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
43586         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
43588 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
43590         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
43591         This fixes a problem observed with the latest coreutils snapshot
43592         that caused a test to fail on Solaris 8.  src/csplit.c's call
43593         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
43594         earlier, instead of returning the number of bytes that would have
43595         been generated; this causes csplit to incorrectly report memory
43596         exhaustion.
43597         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
43598         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
43599         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
43600         comments to match.
43601         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
43602         Fix typo in matching older versions of Solaris: "solaris2.10"
43603         is matched by the shell pattern "solaris2.[0-9]*".  This matters
43604         only for guessing while cross-compiling.
43605         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
43607 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
43609         ftoastr: fix comment again
43610         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
43611         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
43612         Also, simplify example a bit by using flags = 0.
43614 2010-12-20  Bruno Haible  <bruno@clisp.org>
43616         round*, trunc*: Update documentation regarding glibc.
43617         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
43618         * doc/posix-functions/round.texi: Likewise.
43619         * doc/posix-functions/roundl.texi: Likewise.
43620         * doc/posix-functions/truncf.texi: Likewise.
43621         * doc/posix-functions/trunc.texi: Likewise.
43622         * doc/posix-functions/truncl.texi: Likewise.
43624 2010-12-20  Bruno Haible  <bruno@clisp.org>
43626         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
43627         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
43628         * doc/posix-functions/round.texi: Likewise.
43629         * doc/posix-functions/roundl.texi: Likewise.
43631 2010-12-20  Bruno Haible  <bruno@clisp.org>
43633         ttyname_r: Add missing declaration on HP-UX 11.
43634         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
43635         HAVE_TTYNAME_R.
43636         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
43637         declared. Set HAVE_TTYNAME_R always.
43638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43639         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
43640         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
43641         HAVE_TTYNAME_R.
43642         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
43644 2010-12-20  Bruno Haible  <bruno@clisp.org>
43646         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
43647         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
43648         * doc/posix-functions/getlogin_r.texi: Likewise.
43649         * tests/test-getlogin.c: Include <errno.h>.
43650         (main): Avoid test failure on HP-UX 11.11.
43651         * tests/test-getlogin_r.c (main): Likewise.
43653 2010-12-20  Bruno Haible  <bruno@clisp.org>
43655         getlogin_r: Add missing declaration on HP-UX 11.
43656         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
43657         declared also when it exists as a function.
43658         * doc/posix-functions/getlogin_r.texi: Document this workaround.
43660 2010-12-20  Bruno Haible  <bruno@clisp.org>
43662         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
43663         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
43664         through wcrtomb.
43666 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
43668         ftoastr: fix comment
43669         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
43670         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
43672 2010-12-19  Bruno Haible  <bruno@clisp.org>
43674         isnan: Ensure it is a macro.
43675         * lib/math.in.h (isnan): Define as a macro if not already a macro.
43676         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
43677         Solaris.
43679 2010-12-19  Bruno Haible  <bruno@clisp.org>
43681         ldexpl test: Fix link error on OSF/1 5.1.
43682         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
43684 2010-12-19  Bruno Haible  <bruno@clisp.org>
43686         wctype: Make it work in C++ mode on OSF/1 5.1.
43687         * lib/wctype.in.h (iswblank): Declare but not define here.
43688         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
43689         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
43690         * modules/wctype (Files): Add lib/iswblank.c.
43692 2010-12-19  Bruno Haible  <bruno@clisp.org>
43694         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
43695         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
43696         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
43698 2010-12-19  Bruno Haible  <bruno@clisp.org>
43700         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
43701         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
43702         _POSIX_PII_SOCKET.
43703         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
43704         * doc/posix-functions/recvfrom.texi: Likewise.
43705         * doc/posix-functions/send.texi: Likewise.
43706         * doc/posix-functions/sendto.texi: Likewise.
43708 2010-12-19  Bruno Haible  <bruno@clisp.org>
43710         tcgetsid: Add missing declaration on OSF/1 5.1.
43711         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
43712         HAVE_TCGETSID.
43713         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
43714         Don't set HAVE_TCGETSID.
43715         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
43716         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
43717         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
43718         HAVE_TCGETSID.
43719         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
43721 2010-12-19  Bruno Haible  <bruno@clisp.org>
43723         stdio: Fix problem with popen() declaration on OSF/1 5.1.
43724         * lib/stdio.in.h: During the include_next statement, let recursive
43725         includes of this file include only the system header file.
43727 2010-12-19  Bruno Haible  <bruno@clisp.org>
43729         iconv_open: Fix regression from 2010-12-04.
43730         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
43731         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
43733 2010-12-19  Bruno Haible  <bruno@clisp.org>
43735         stdbool test: Avoid a gcc warning.
43736         * tests/test-stdbool.c (main): Fail if e1 is false.
43737         Reported by Jim Meyering.
43739 2010-12-19  Jim Meyering  <meyering@redhat.com>
43741         setenv: restore to working order
43742         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
43743         mistakenly removed.
43744         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
43745         HAVE_SETENV.
43746         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
43747         HAVE_SETENV.
43749 2010-12-19  Bruno Haible  <bruno@clisp.org>
43751         Document some different function declarations on OSF/1 5.1.
43752         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
43753         * doc/posix-functions/inet_ntop.texi: Likewise.
43754         * doc/posix-functions/gethostname.texi: Likewise.
43755         * lib/unistd.in.h (gethostname): Update comment.
43757 2010-12-19  Bruno Haible  <bruno@clisp.org>
43759         doc: Mention vasprintf-posix module.
43760         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
43761         the 'vasprintf-posix' module.
43762         * doc/glibc-functions/vasprintf.texi: Likewise.
43764 2010-12-19  Bruno Haible  <bruno@clisp.org>
43766         unsetenv: Add missing declaration on OSF/1 5.1.
43767         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
43768         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
43769         Don't set HAVE_UNSETENV. In the test program, set _BSD.
43770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
43771         not HAVE_UNSETENV.
43772         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
43773         HAVE_UNSETENV.
43774         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
43776 2010-12-19  Bruno Haible  <bruno@clisp.org>
43778         setenv: Add missing declaration on OSF/1 5.1.
43779         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
43780         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
43781         declared. Don't set HAVE_SETENV.
43782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
43783         not HAVE_SETENV.
43784         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
43785         HAVE_SETENV.
43786         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
43788 2010-12-19  Bruno Haible  <bruno@clisp.org>
43790         nl_langinfo tests: Avoid gcc warning.
43791         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
43793 2010-12-19  Bruno Haible  <bruno@clisp.org>
43795         mknod: Avoid error in C++ mode on OSF/1 with GCC.
43796         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
43797         _GL_CXXALIAS_SYS.
43799 2010-12-19  Bruno Haible  <bruno@clisp.org>
43801         stdbool: Relax test.
43802         * tests/test-stdbool.c (e): Don't require that casts from a variable's
43803         address to 'bool' work in static initializer, for compilers other than
43804         GCC.
43806 2010-12-19  Bruno Haible  <bruno@clisp.org>
43808         ftello: Add missing declaration on OSF/1 5.1.
43809         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
43810         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
43811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
43812         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
43813         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
43815 2010-12-19  Bruno Haible  <bruno@clisp.org>
43817         fseeko: Add missing declaration on OSF/1 5.1.
43818         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
43819         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
43820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
43821         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
43822         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
43824 2010-12-19  Bruno Haible  <bruno@clisp.org>
43826         fchdir: Add missing declaration on OSF/1 5.1.
43827         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
43828         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
43829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
43830         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
43831         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
43833 2010-12-19  Bruno Haible  <bruno@clisp.org>
43835         relocatable-prog-wrapper: Separate from relocatable-prog.
43836         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
43837         uninstall-relocwrapper rule here.
43838         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
43839         Reported by Ian Beckwith <ianb@erislabs.net>.
43841 2010-12-19  Bruno Haible  <bruno@clisp.org>
43843         unistr/u8-mbsnlen: Add missing dependency.
43844         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
43845         Reported by Ian Beckwith <ianb@erislabs.net>.
43847 2010-12-19  Bruno Haible  <bruno@clisp.org>
43849         iconv: Make it possible again to use this module without 'iconv-h'.
43850         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
43851         if it is not defined.
43852         Reported by Ian Beckwith <ianb@erislabs.net>.
43854 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43856         acl: port to Solaris 8 when copying from tmpfs to ufs
43857         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
43858         error number.  Problem observed on Solaris 8 with latest
43859         coreutils, with "mv A B", where A is on a tmpfs file system and B
43860         is on a ufs file system.  This caused coreutils' mv/part-symlink
43861         test to fail.
43863         tests: set fail=0 at start
43864         * tests/init.sh (setup_): Move fail=0 initialization here ...
43865         (mktempd_): ... from here, so that tests can rely on fail being
43866         set to 0 initially.  This fixes a problem in coreutils; see:
43867         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
43869 2010-12-18  Bruno Haible  <bruno@clisp.org>
43871         memmem-simple: Stylistic changes.
43872         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
43873         Fix preprocessor directive indentation.
43875 2010-12-15  Pádraig Brady  <P@draigBrady.com>
43877         memmem, memmem-simple: reorganize and expand empty needle check
43878         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
43879         functional checks to memmem-simple so that one has a fully functional
43880         memmem by using just this module.
43881         Restrict the performance only check to the memmem module.
43882         Also expand the empty needle check to ensure the correct
43883         pointer is returned, not just a non NULL pointer.
43884         * doc/glibc-functions/memmem.texi: Rearrange the portability
43885         documentation to correlate with the rearranged checks.
43886         Clarify exactly how the memmem and memmem-simple modules
43887         relate to each other.
43889 2010-12-15  Pádraig Brady  <P@draigBrady.com>
43890             Bruno Haible  <bruno@clisp.org>
43892         Improve cross-compilation guesses for uClibc.
43893         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
43894         that uClibc does not have the glibc bug.
43895         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
43896         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
43898 2010-12-14  Eric Blake  <eblake@redhat.com>
43900         configmake: provide fallbacks for oldest supported autotools
43901         * m4/configmake.m4: New file.
43902         * modules/configmake (Files): Ship it.
43903         (configure.ac): Use it to guarantee fallbacks.
43905 2010-12-13  Pádraig Brady  <P@draigBrady.com>
43907         read-file: Improve handling of large files
43908         * lib/read-file.c (fread_file): Minimize realloc()s
43909         for regular files, and better manage sizes around SIZE_MAX.
43911 2010-12-13  Eric Blake  <eblake@redhat.com>
43913         cloexec, fcntl: relax license
43914         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
43915         consent from all contributors.
43916         * modules/fcntl (License): Likewise.
43918 2010-12-10  Bruno Haible  <bruno@clisp.org>
43920         Tests for module 'pipe-posix'.
43921         * modules/pipe-posix-tests: New file.
43922         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
43924 2010-12-10  Bruno Haible  <bruno@clisp.org>
43926         pipe-posix: Make it work in C++ mode.
43927         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
43928         (pipe): Use common idiom, not a macro definition.
43929         * lib/pipe.c: New file.
43930         * m4/pipe.m4: New file.
43931         * modules/pipe-posix (Description): Enhance.
43932         (Files): Add lib/pipe.c, m4/pipe.m4.
43933         (configure.ac): Invoke gl_FUNC_PIPE.
43934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
43935         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
43936         * tests/test-unistd-c++.cc: Check the signature of pipe.
43938 2010-12-10  Bruno Haible  <bruno@clisp.org>
43940         Rename module 'pipe' to 'spawn-pipe'.
43941         * modules/spawn-pipe: New file, renamed from modules/pipe.
43942         (Files, configure.ac, Makefile.am): Update.
43943         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
43944         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
43945         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
43946         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
43947         "spawn-pipe.h" instead of "pipe.h".
43948         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
43949         to gl_SPAWN_PIPE.
43950         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
43951         (Files, Makefile.am): Update.
43952         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
43953         Update.
43954         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
43955         Include "spawn-pipe.h" instead of "pipe.h".
43956         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
43957         * lib/javacomp.c: Likewise.
43958         * lib/javaversion.c: Likewise.
43959         * lib/pipe-filter-gi.c: Likewise.
43960         * lib/pipe-filter-ii.c: Likewise.
43961         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
43962         * modules/javacomp (Depends-on): Likewise.
43963         * modules/javaversion (Depends-on): Likewise.
43964         * modules/pipe-filter-gi (Depends-on): Likewise.
43965         * modules/pipe-filter-ii (Depends-on): Likewise.
43966         * MODULES.html.sh (Executing programs): Update.
43967         * NEWS: Mention the change.
43969 2010-12-10  Eric Blake  <eblake@redhat.com>
43971         pipe-posix: new module
43972         * modules/pipe-posix: New file.
43973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
43974         (gl_UNISTD_H): Check for declaration.
43975         * modules/unistd (Makefile.am): Substitute it.
43976         * lib/unistd.in.h (pipe): Provide it for mingw.
43977         * doc/posix-functions/pipe.texi (pipe): Update documentation.
43978         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
43980 2010-12-07  Bruno Haible  <bruno@clisp.org>
43982         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
43983         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
43984         u8_strcmp_gnu.
43985         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
43987 2010-12-06  Bruno Haible  <bruno@clisp.org>
43989         Update internal documentation.
43990         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
43992 2010-12-04  Bruno Haible  <bruno@clisp.org>
43994         Put more information about failed tests into the test return codes.
43995         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
43996         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
43997         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
43998         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43999         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
44000         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44001         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44002         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44003         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
44004         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44005         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
44006         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44007         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
44008         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44009         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
44010         returns a bit mask.
44011         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
44012         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
44013         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
44014         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
44015         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
44016         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
44017         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
44018         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44019         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
44020         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
44021         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44022         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
44023         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44024         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
44025         * m4/link.m4 (gl_FUNC_LINK): Likewise.
44026         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44027         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
44028         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
44029         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44030         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
44031         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44032         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44033         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
44034         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44035         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
44036         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44037         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
44038         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
44039         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
44040         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
44041         gl_PRINTF_PRECISION): Likewise.
44042         * m4/regex.m4 (gl_REGEX): Likewise.
44043         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44044         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
44045         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
44046         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44047         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44048         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44049         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
44050         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
44051         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44052         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44053         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44054         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44055         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
44056         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
44057         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44058         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44059         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
44060         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
44061         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44062         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
44063         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
44064         enumerated value.
44065         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
44067 2010-12-04  Bruno Haible  <bruno@clisp.org>
44069         Update for Solaris 11 2010-11.
44070         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
44071         Express, released in November 2010.
44073 2010-12-04  Bruno Haible  <bruno@clisp.org>
44075         nproc: Relax license.
44076         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
44077         and Paul Eggert.
44078         Requested by Ludovic Courtès <ludo@gnu.org>.
44080 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
44082         utimecmp: fine-grained src to nearby coarse-grained dest
44084         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
44085         and the source is on a file system with higher-resolution time
44086         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
44087         not work, and the time stamps are close together, the algorithm to
44088         determine the exact resolution from the read-back mtime was buggy:
44089         it had a "!=" where it should have had an "==".  This bug has been
44090         in the code ever since it was introduced to gnulib.
44091         Problem reported by Dan Jacobson in
44092         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
44094 2010-11-30  Bruno Haible  <bruno@clisp.org>
44096         strerror_r-posix: Fix autoconf test.
44097         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
44099 2010-11-28  Bruno Haible  <bruno@clisp.org>
44100             Paul Eggert  <eggert@cs.ucla.edu>
44102         Tests for module 'getdomainname'.
44103         * modules/getdomainname-tests: New file.
44104         * tests/test-getdomainname.c: New file, based on
44105         tests/test-gethostname.c.
44107 2010-11-28  Bruno Haible  <bruno@clisp.org>
44108             Paul Eggert  <eggert@cs.ucla.edu>
44110         getdomainname: Use the system function when possible.
44111         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
44112         (getdomainname): Replace if needed. Provide the declaration if it is
44113         missing. Don't use _GL_CXXALIAS_SYS_CAST.
44114         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
44115         (getdomainname): When the system has getdomainname, call the system
44116         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
44117         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44118         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
44119         found in libnsl. Look for the declaration also in <netdb.h>. Replace
44120         the function if its second argument is of type 'int' or if it is found
44121         in libnsl.
44122         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
44123         <sys/systeminfo.h> and sysinfo().
44124         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
44125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44126         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
44127         HAVE_GETDOMAINNAME.
44128         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
44129         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
44130         * doc/glibc-functions/getdomainname.texi: Document the problems with
44131         the getdomainname declaration.
44133 2010-11-28  Bruno Haible  <bruno@clisp.org>
44135         sys_socket: Ensure ss_family field on AIX.
44136         * lib/sys_socket.in.h (ss_family): New macro definition.
44137         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
44138         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
44139         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44140         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
44141         * modules/sys_socket (Makefile.am): Substitute
44142         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
44143         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
44145 2010-11-27  Bruno Haible  <bruno@clisp.org>
44147         readline: Improve configure output.
44148         * m4/readline.m4 (gl_FUNC_READLINE): Make the
44149         "checking for readline..." result understandable.
44151 2010-11-27  Bruno Haible  <bruno@clisp.org>
44153         *printf-posix: Detect a bug on Solaris 10/x86.
44154         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
44155         for floating-point output.
44156         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
44157         directive.
44158         * tests/test-snprintf-posix.h (test_function): Likewise.
44159         * tests/test-sprintf-posix.h (test_function): Likewise.
44160         * tests/test-vasprintf-posix.c (test_function): Likewise.
44161         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
44162         * doc/posix-functions/printf.texi: Likewise.
44163         * doc/posix-functions/snprintf.texi: Likewise.
44164         * doc/posix-functions/sprintf.texi: Likewise.
44165         * doc/posix-functions/vfprintf.texi: Likewise.
44166         * doc/posix-functions/vprintf.texi: Likewise.
44167         * doc/posix-functions/vsnprintf.texi: Likewise.
44168         * doc/posix-functions/vsprintf.texi: Likewise.
44169         * doc/glibc-functions/obstack_printf.texi: Likewise.
44170         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
44172 2010-11-27  Bruno Haible  <bruno@clisp.org>
44174         Fix link error when module libunistring-optional is in use.
44175         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
44176         * modules/striconveha-tests (Makefile.am): Likewise.
44178 2010-11-27  Bruno Haible  <bruno@clisp.org>
44180         regex: Mention link dependencies.
44181         * modules/regex (Link): New section.
44182         * modules/rpmatch (Link): Likewise.
44183         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
44185 2010-11-27  Bruno Haible  <bruno@clisp.org>
44187         ftoastr: Fix compilation error on Solaris.
44188         * lib/ftoastr.c: Include <config.h>.
44190 2010-11-27  Bruno Haible  <bruno@clisp.org>
44192         getloadavg: Update documentation.
44193         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
44195 2010-11-27  Bruno Haible  <bruno@clisp.org>
44197         sys_socket: Fix test whether the functions are declared.
44198         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
44199         not <sys/select.h>.
44201 2010-11-27  Bruno Haible  <bruno@clisp.org>
44203         getpass: Make sure to get system declaration on some platforms.
44204         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
44205         gl_USE_SYSTEM_EXTENSIONS.
44206         * modules/getpass (Depends-on): Add extensions.
44208 2010-11-26  Bruno Haible  <bruno@clisp.org>
44210         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
44211         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
44212         'iconv' module is present.
44213         (ICONV_CONST): New macro.
44214         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
44215         ICONV_CONST.
44216         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
44217         set ICONV_CONST.
44218         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
44219         here.
44220         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
44221         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
44222         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
44223         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
44224         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
44225         present.
44227 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
44229         ftoastr: comment fix
44230         * lib/ftoastr.c: "little" -> "little or no" in comment
44232 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
44234         stdint: port to GCC 4.3 + OSX + Octave
44235         On this platform, stdint.h is buggy and defines int64_t to long
44236         long int.  The replacement defined it to long int, causing
44237         problems with C++ style name mangling.  Instead, trust the system
44238         definition if INT64_MAX is defined, and likewise for the unsigned
44239         variant.   Problem reported by Jarno Rajahalme in
44240         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
44241         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
44242         and don't mess with int64_t and INT64_MAX in this case.
44243         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
44245 2010-11-24  Bruno Haible  <bruno@clisp.org>
44247         doc: Corrections regarding MacOS X 10.4 and 10.5.
44248         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
44249         MacOS X.
44250         Reported by Simon Josefsson.
44252 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
44254         Uninstall ".bin" files installed by relocwrapper.
44255         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
44256         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
44257         unless it is already there.
44259 2010-11-21  Bruno Haible  <bruno@clisp.org>
44261         Update for NetBSD 5.0.
44262         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
44263         NetBSD; the test fails on NetBSD 5.0.
44264         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
44265         about NetBSD.
44267 2010-11-21  Bruno Haible  <bruno@clisp.org>
44269         Update for HP-UX 11.23 and HP-UX 11.31.
44270         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
44271         HP-UX.
44273 2010-11-21  Bruno Haible  <bruno@clisp.org>
44275         Update for MacOS X 10.5.
44276         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
44277         MacOS X; the test fails on MacOS X 10.5.8.
44278         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
44279         about MacOS X.
44281 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
44283         bootstrap: add bootstrap_sync option.
44284         See discussion at
44285         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
44286         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
44287         * build-aux/bootstrap: Accept --bootstrap-sync to update
44288         bootstrap if it is not identical to the local gnulib's
44289         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
44290         enable this by default.  Accept --no-bootstrap-sync to disable
44291         it.
44293 2010-11-20  Bruno Haible  <bruno@clisp.org>
44295         Ensure that <features.h> is included before __GLIBC__ is tested.
44296         * lib/printf-parse.h: Include <features.h>.
44297         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
44298         Reported by Mike Frysinger <vapier@gentoo.org>.
44300         Ensure that <features.h> is included before __GLIBC__ is tested.
44301         * lib/wchar.in.h: Include <features.h>.
44302         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
44303         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
44304         Reported by Mike Frysinger <vapier@gentoo.org>.
44306         Ensure that <features.h> is included before __GLIBC__ is tested.
44307         * lib/arpa_inet.in.h: Include <features.h>.
44308         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
44309         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
44310         Reported by Mike Frysinger <vapier@gentoo.org>.
44312         Ensure that <features.h> is included before __GLIBC__ is tested.
44313         * build-aux/link-warning.h: Include <features.h>.
44314         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
44315         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
44316         Reported by Mike Frysinger <vapier@gentoo.org>.
44318         Ensure that <features.h> is included before __GLIBC__ is tested.
44319         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
44320         Reported by Mike Frysinger <vapier@gentoo.org>.
44322 2010-11-20  Bruno Haible  <bruno@clisp.org>
44324         memmem: Fix autoconf test.
44325         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
44327 2010-11-20  Bruno Haible  <bruno@clisp.org>
44329         Port to uClibc.
44330         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
44331         * lib/fcntl.in.h: Likewise.
44332         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
44333         * lib/mbrtowc.c (mbrtowc): Likewise.
44334         * lib/relocatable.c (find_shared_library_fullname): Likewise.
44335         * lib/strerror_r.c: Likewise.
44336         * lib/unistr/u8-strnlen.c: Likewise.
44337         * lib/vasnprintf.c (decimal_point_char): Likewise.
44338         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
44339         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
44340         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44341         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44342         * tests/test-sigaction.c (handler, main): Likewise.
44343         * lib/freading.h: Treat uClibc like a non-glibc platform.
44344         * lib/freading.c: Likewise.
44345         * lib/gettext.h: Likewise.
44346         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
44347         Likewise.
44348         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
44349         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
44350         * lib/propername.c (proper_name_utf8): Likewise.
44351         * lib/spawn.in.h: Likewise.
44352         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
44353         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
44354         mem_cd_iconveh_internal): Likewise.
44355         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
44356         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
44357         strstr, strcasestr): Likewise.
44358         * lib/unicodeio.c (unicode_to_mb): Likewise.
44359         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
44360         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
44361         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
44362         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
44363         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
44364         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
44365         * lib/unistr/u8-stpncpy.c: Likewise.
44366         * lib/vasnprintf.c (VASNPRINTF): Likewise.
44367         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
44368         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44369         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44370         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44371         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
44372         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
44373         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
44374         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
44375         Likewise.
44376         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
44377         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44378         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
44379         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44380         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44381         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
44382         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44383         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
44384         * tests/test-getopt.h (OPTIND_MIN): Likewise.
44385         * tests/test-striconveha.c (main): Likewise.
44386         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44387         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
44388         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
44389         * doc/posix-functions/getline.texi: Likewise.
44390         Reported by Mike Frysinger <vapier@gentoo.org>.
44392 2010-11-20  Bruno Haible  <bruno@clisp.org>
44394         nproc: Fix condition.
44395         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
44396         HAVE_PTHREAD_AFFINITY_NP.
44398 2010-11-20  Bruno Haible  <bruno@clisp.org>
44400         Fix a comment.
44401         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
44403 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
44405         ftoastr: don't assume snprintf
44406         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
44407         Implement a subset of snprintf here, by using sprintf safely.
44408         * modules/ftoastr (Depends-on): Remove snprintf.
44410 2010-11-19  Jim Meyering  <meyering@redhat.com>
44412         test-rename.h: fix compilation failure
44413         * tests/test-rename.h (test_rename): Add omitted "}".
44415 2010-11-17  Jim Meyering  <meyering@redhat.com>
44417         maint.mk: add a URL discussing the no-@acronym policy
44418         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
44420 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
44422         ftoastr: depend on snprintf, improve comments
44423         * lib/ftoastr.c: Also mention Loitsch's draft.
44424         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
44425         needed in the current implementation, but it might simplify
44426         speeding up the code later.
44427         * modules/ftoastr: Depend on snprintf; this improves portability.
44428         Suggested by Bruno Haible in the same email.
44430         ftoastr: port to hosts lacking strtof and strtold
44431         Problem reported by Bruno Haible in
44432         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
44433         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
44434         environment and strtold (and presumably strtof) are not available.
44435         * modules/ftoastr (Files): Add m4/c-strtod.m4.
44436         (configure.ac): Require gl_C99_STRTOLD.
44438 2010-11-18  Bruno Haible  <bruno@clisp.org>
44440         c-strtold: Avoid link error on AIX 7.
44441         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
44442         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
44443         (gl_C_STRTOLD): Test whether strtold_l exists.
44444         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44446 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44448         intprops: new macro INT_BITS_STRLEN_BOUND
44449         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
44450         ftoastr.h.  This exposes an internal of intprops.h that was formerly
44451         not exposed.  Also, it uses a slightly tighter bound than before;
44452         though this makes no practical difference, we might as well be as
44453         tight as we easily can.
44455         ftoastr: new module, for lossless conversion of floats to short strings
44456         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
44457         * modules/ftoastr: New files.
44459 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44461         bootstrap: port to Solaris sed
44462         * build-aux/bootstrap (get_version): Port to Solaris sed.
44463         See Ralf Wildenhues's note in
44464         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
44466 2010-11-14  Jim Meyering  <meyering@redhat.com>
44468         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
44469         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
44470         and move definition closer to sole use.
44472 2010-11-13  Jim Meyering  <meyering@redhat.com>
44474         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
44475         Now we require at least autoconf-2.59, which means the work-around
44476         is no longer needed.
44477         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
44478         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44479         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
44480         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
44481         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
44483 2010-11-13  Bruno Haible  <bruno@clisp.org>
44485         rename, renameat: Avoid test failures at NFS mounted locations.
44486         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
44487         functions.
44488         (test_rename): Use assert_nonexistent.
44489         * tests/test-rename.c: Include <dirent.h>.
44490         * tests/test-renameat.c: Likewise.
44491         Reported by Gary V. Vaughan <gary@gnu.org>.
44493         rename, renameat: Document Linux bug with NFS
44494         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
44495         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
44496         * doc/posix-functions/renameat.texi: Likewise.
44497         Suggested by Eric Blake.
44499 2010-11-13  Bruno Haible  <bruno@clisp.org>
44501         rename test: Add comments.
44502         * tests/test-rename.h (test_rename): Add structure and comments.
44504 2010-11-13  Eric Blake  <eblake@redhat.com>
44506         maintainer-makefile: cover a few more files
44507         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
44508         scripts generated within C files, for libvirt.
44510 2010-11-13  Bruno Haible  <bruno@clisp.org>
44512         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
44513         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
44514         character, return the number of bytes that belong together, not always
44515         1.
44516         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
44517         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
44518         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
44519         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
44520         number of bytes of an invalid character.
44521         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
44522         (main): Invoke it.
44523         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
44524         results.
44525         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
44526         malformed byte sequences.
44527         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
44528         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
44529         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
44530         Reported by Ben Pfaff and Paolo Bonzini.
44532 2010-11-13  Bruno Haible  <bruno@clisp.org>
44534         openat: Work around glibc bug with fchownat() and empty file names.
44535         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
44536         (gl_FUNC_FCHOWNAT): Invoke it.
44537         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
44538         * doc/posix-functions/fchownat.texi: Document the glibc bug.
44539         Reported by Gary V. Vaughan <gary@gnu.org>.
44541 2010-11-13  Bruno Haible  <bruno@clisp.org>
44543         openat: Ensure autoconf macro ordering.
44544         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
44545         gl_USE_SYSTEM_EXTENSIONS.
44546         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
44548 2010-11-13  Bruno Haible  <bruno@clisp.org>
44550         Update comments.
44551         * lib/unistr/u8-check.c: Update file name in comments.
44552         * lib/unistr/u8-mblen.c: Likewise.
44553         * lib/unistr/u8-prev.c: Likewise.
44554         * lib/unistr/u8-strmblen.c: Likewise.
44555         * lib/unistr/u8-strmbtouc.c: Likewise.
44557 2010-11-13  Jim Meyering  <meyering@redhat.com>
44559         tests: avoid test failure on Solaris 10 due to lack of PATH export
44560         * tests/test-update-copyright.sh: Don't forget to export PATH.
44562         init.sh: ensure that IFS is defined, just in case...
44563         * tests/init.sh (setup_): Ensure that IFS is defined,
44564         so that saving and restoring it works as expected.  This
44565         appears to be useful at least for an old version of dash
44566         from a long time ago (RH 6).  See here for details:
44567         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
44569         maint.mk: tighten "test a == b" check
44570         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
44571         test to files that contain something like #!/bin/sh.
44572         Without this, coreutils would get two false positives in
44573         the comments of C source files.
44575 2010-11-12  Eric Blake  <eblake@redhat.com>
44577         bootstrap: fix typo in previous attempt
44578         * build-aux/bootstrap (buildreq): Correct the grouping.
44579         Reported by Paul Eggert.
44581         maintainer-makefile: prohibit test x == x
44582         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
44583         Based on a report by Matthias Bolte.
44585         bootstrap: allow FreeBSD gzip
44586         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
44587         which has no '.' and goes to stderr.
44588         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
44589         Reported by Matthias Bolte.
44591         maintainer-makefile: check for i18n setup
44592         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
44593         will likely work.
44595 2010-11-12  Bruno Haible  <bruno@clisp.org>
44597         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
44598         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
44599         * lib/nanosleep.c (nanosleep): Likewise.
44601 2010-11-11  Bruno Haible  <bruno@clisp.org>
44603         fcntl-h: Fix for use of C++ on glibc systems.
44604         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
44605         also on glibc systems in C++ mode.
44606         Reported by Gary V. Vaughan <gary@gnu.org>.
44608 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
44610         mknod: avoid false failure with dash
44611         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
44613 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
44615         unlink: Fix "is it should" typo in diagnostic.
44616         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
44617         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
44619 2010-11-11  Bruno Haible  <bruno@clisp.org>
44621         Tests for module 'strerror_r-posix'.
44622         * modules/strerror_r-posix-tests: New file.
44623         * tests/test-strerror_r.c: New file.
44624         * tests/test-string-c++.cc: Check the signature of strerror_r.
44626         New module 'strerror_r-posix'.
44627         * lib/string.in.h (strerror_r): New declaration.
44628         * lib/strerror_r.c: New file.
44629         * m4/strerror_r.m4: New file.
44630         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
44631         of strerror_r.
44632         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
44633         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
44634         * modules/strerror_r-posix: New file.
44635         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
44636         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
44637         * doc/posix-functions/strerror_r.texi: Mention the new module and the
44638         portability problems.
44640 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
44642         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
44643         line is also considered for output. Quoted function name in shell
44644         command, so temporary files for functions like MyClass::operator()
44645         are removed correctly without errors.
44647 2010-11-09  Bruno Haible  <bruno@clisp.org>
44649         * doc/posix-functions/strerror.texi: List more failing platforms.
44651         * doc/posix-functions/strerror.texi: Add a comment.
44653 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44655         fdopendir: fix bug on MacOS X when low on file descriptors
44657         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
44658         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
44659         All callers changed.
44660         (fdopendir): Invoke save_cwd at the top level, not after using
44661         multiple dup() calls to use up file descriptors.  Then retry
44662         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
44663         less than the maximum number of open file descriptors, because
44664         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
44665         on Mac OS X 10.6.4 for tar 1.24
44666         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
44667         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
44668         and for tar 1.25
44669         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
44671 2010-11-07  Bruno Haible  <bruno@clisp.org>
44673         vasnprintf: Support I flag on glibc systems.
44674         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
44675         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
44676         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
44677         snprintf function.
44678         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
44679         glibc systems.
44680         * tests/test-vasnprintf-posix3.c: New file.
44681         * modules/vasnprintf-posix-tests (Files): Add it.
44682         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
44684 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44686         [html] Fix copy/paste bug: Use unique name for compiler warnings.
44687         * MODULES.html.sh: For compiler warnings, use name
44688         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
44690 2010-11-05  Eric Blake  <eblake@redhat.com>
44692         ceil, floor: avoid spurious failure with icc
44693         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
44694         [denormals-as-zero] when optimizing without -mieee-fp option.
44695         * tests/test-floorf2.c (floorf_reference): Likewise.
44696         * tests/test-ceilf1.c (dummy): New function.
44697         (main): Use it to outsmart icc's optimization.
44698         * tests/test-floorf1.c (dummy, main): Likewise.
44700         tests: require working signbit
44701         * modules/ceilf-tests (Depends-on): Add signbit.
44702         * modules/ceill-tests (Depends-on): Likewise.
44703         * modules/floorf-tests (Depends-on): Likewise.
44704         * modules/floorl-tests (Depends-on): Likewise.
44705         * modules/round-tests (Depends-on): Likewise.
44706         * modules/roundf-tests (Depends-on): Likewise.
44707         * modules/roundl-tests (Depends-on): Likewise.
44708         * modules/trunc-tests (Depends-on): Likewise.
44709         * modules/truncf-tests (Depends-on): Likewise.
44710         * modules/truncl-tests (Depends-on): Likewise.
44712         strtod: work around icc bug
44713         * lib/strtod.c (minus_zero): Define to working value.
44714         (strtod): Use it to avoid icc bug.
44716         copysign: enhance tests
44717         * modules/copysign-tests (Files): Add minus-zero.h.
44718         * tests/test-copysign.c (main): Also test zeros.
44720 2010-11-04  Eric Blake  <eblake@redhat.com>
44722         ceil, floor, round, trunc: enhance tests of -0
44723         * tests/test-ceilf1.c (main): Ensure correct sign of result.
44724         * tests/test-ceill.c (main): Likewise.
44725         * tests/test-floorf1.c (main): Likewise.
44726         * tests/test-floorl.c (main): Likewise.
44727         * tests/test-round1.c (main): Likewise.
44728         * tests/test-roundf1.c (main): Likewise.
44729         * tests/test-roundl.c (main): Likewise.
44730         * tests/test-trunc1.c (main): Likewise.
44731         * tests/test-truncf1.c (main): Likewise.
44732         * tests/test-truncl.c (main): Likewise.
44734 2010-11-04  Eric Blake  <eblake@redhat.com>
44736         frexp, tests: work around ICC bug with -zero
44737         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
44738         works with more compilers.
44739         * tests/minus-zero.h: New file.
44740         * modules/ceilf-tests (Files): Include it.
44741         * modules/ceill-tests (Files): Likewise.
44742         * modules/floorf-tests (Files): Likewise.
44743         * modules/floorl-tests (Files): Likewise.
44744         * modules/frexp-nolibm-tests (Files): Likewise.
44745         * modules/frexp-tests (Files): Likewise.
44746         * modules/frexpl-nolibm-tests (Files): Likewise.
44747         * modules/frexpl-tests (Files): Likewise.
44748         * modules/isnan-tests (Files): Likewise.
44749         * modules/isnand-nolibm-tests (Files): Likewise.
44750         * modules/isnand-tests (Files): Likewise.
44751         * modules/isnanf-nolibm-tests (Files): Likewise.
44752         * modules/isnanf-tests (Files): Likewise.
44753         * modules/isnanl-nolibm-tests (Files): Likewise.
44754         * modules/isnanl-tests (Files): Likewise.
44755         * modules/round-tests (Files): Likewise.
44756         * modules/roundf-tests (Files): Likewise.
44757         * modules/roundl-tests (Files): Likewise.
44758         * modules/ldexpl-tests (Files): Likewise.
44759         * modules/signbit-tests (Files): Likewise.
44760         * modules/snprintf-posix-tests (Files): Likewise.
44761         * modules/sprintf-posix-tests (Files): Likewise.
44762         * modules/strtod-tests (Files): Likewise.
44763         * modules/trunc-tests (Files): Likewise.
44764         * modules/truncf-tests (Files): Likewise.
44765         * modules/truncl-tests (Files): Likewise.
44766         * modules/vsnprintf-posix-tests (Files): Likewise.
44767         * modules/vsprintf-posix-tests (Files): Likewise.
44768         * modules/vasnprintf-posix-tests (Files): Likewise.
44769         * modules/vasprintf-posix-tests (Files): Likewise.
44770         * tests/test-ceilf1.c (main): Use it.
44771         * tests/test-ceill.c (main): Likewise.
44772         * tests/test-floorf1.c (main): Likewise.
44773         * tests/test-floorl.c (main): Likewise.
44774         * tests/test-frexp.c (main): Likewise.
44775         * tests/test-frexpl.c (main): Likewise.
44776         * tests/test-isnan.c (main): Likewise.
44777         * tests/test-isnand.h (main): Likewise.
44778         * tests/test-isnanf.h (main): Likewise.
44779         * tests/test-isnanl.h (main): Likewise.
44780         * tests/test-ldexpl.c (main): Likewise.
44781         * tests/test-round.c (main): Likewise.
44782         * tests/test-roundf.c (main): Likewise.
44783         * tests/test-roundl.c (main): Likewise.
44784         * tests/test-signbit.c (test_signbitf, test_signbitd)
44785         (test_signbitl): Likewise.
44786         * tests/test-snprintf-posix.h (test_function): Likewise.
44787         * tests/test-sprintf-posix.h (test_function): Likewise.
44788         * tests/test-strtod.c (main): Likewise.
44789         * tests/test-trunc1.c (main): Likewise.
44790         * tests/test-truncf1.c (main): Likewise.
44791         * tests/test-truncl.c (main): Likewise.
44793         isnanl: work around icc bug
44794         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
44796 2010-11-03  Eric Blake  <eblake@redhat.com>
44798         tests: fix compiler warnings
44799         * tests/test-getopt.h (test_getopt): Fix condition.
44800         * tests/test-getopt_long.h (test_getopt_long): Likewise.
44801         * tests/test-pipe2.c (main): Likewise.
44802         * tests/test-quotearg-simple.c (main): Avoid icc warning.
44804         utimens: fix broken m4 test
44805         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
44807 2010-10-28  Bruno Haible  <bruno@clisp.org>
44809         posix_spawn*, getdtablesize: Relax license.
44810         * modules/posix_spawn (License): Change to LGPLv2+.
44811         * modules/posix_spawnp (License): Likewise.
44812         * modules/posix_spawn-internal (License): Likewise.
44813         * modules/posix_spawnattr_init (License): Likewise.
44814         * modules/posix_spawnattr_getflags (License): Likewise.
44815         * modules/posix_spawnattr_setflags (License): Likewise.
44816         * modules/posix_spawnattr_getpgroup (License): Likewise.
44817         * modules/posix_spawnattr_setpgroup (License): Likewise.
44818         * modules/posix_spawnattr_getschedparam (License): Likewise.
44819         * modules/posix_spawnattr_setschedparam (License): Likewise.
44820         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
44821         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
44822         * modules/posix_spawnattr_getsigdefault (License): Likewise.
44823         * modules/posix_spawnattr_setsigdefault (License): Likewise.
44824         * modules/posix_spawnattr_getsigmask (License): Likewise.
44825         * modules/posix_spawnattr_setsigmask (License): Likewise.
44826         * modules/posix_spawnattr_destroy (License): Likewise.
44827         * modules/posix_spawn_file_actions_init (License): Likewise.
44828         * modules/posix_spawn_file_actions_addclose (License): Likewise.
44829         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
44830         * modules/posix_spawn_file_actions_addopen (License): Likewise.
44831         * modules/posix_spawn_file_actions_destroy (License): Likewise.
44832         * modules/getdtablesize (License): Likewise.
44833         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
44835 2010-10-26  Bruno Haible  <bruno@clisp.org>
44837         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
44838         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
44839         Cygwin and mingw.
44840         Suggested by Eric Blake.
44842 2010-10-26  Bruno Haible  <bruno@clisp.org>
44844         stdio: Work around compilation error due to renameat() on Solaris 10.
44845         * lib/stdio.in.h: Include <unistd.h> on Solaris.
44846         * lib/renameat.c: Don't include <unistd.h> here.
44847         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
44848         Reported by Paul Eggert and Eric Blake.
44850 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
44852         renameat: port to Solaris 10, which declares renameat in unistd.h
44854         * lib/renameat.c: Include unistd.h before stdio.h, because
44855         Solaris 10 declares renameat in unistd.h.  Problem encountered
44856         when building GNU tar 1.24 on Solaris 10.
44858 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
44860         fdopendir: fix C89 compilation
44861         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
44862         compilers.
44864 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
44866         inttostr: simplify by removing unnecessary redundancy
44867         * lib/anytostr.c: Don't include verify.h.
44868         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
44869         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
44870         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
44871         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
44872         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
44873         Likewise.
44874         * modules/inttostr (Depends-on): Remove 'verify'.
44876 2010-10-23  Bruno Haible  <bruno@clisp.org>
44878         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
44879         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
44880         Reported by Eric Blake.
44882 2010-10-23  Bruno Haible  <bruno@clisp.org>
44884         Tests: Fix LOCALE_JA on MirBSD 10.
44885         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
44886         to an UTF-8 locale.
44887         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
44888         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44889         Reported by Eric Blake.
44891 2010-10-21  Bruno Haible  <bruno@clisp.org>
44893         nl_langinfo test: Avoid test failure on NetBSD 5.
44894         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
44895         Reported by Eric Blake.
44897 2010-10-21  Eric Blake  <eblake@redhat.com>
44899         c-stack: work around libsigsegv 2.8 bug
44900         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
44901         overflow on at least PowerPC64.
44903 2010-10-17  Bruno Haible  <bruno@clisp.org>
44905         userspec: Drop redundant file.
44906         * modules/userspec (Files): Remove lib/inttostr.h.
44908 2010-10-17  Bruno Haible  <bruno@clisp.org>
44910         nl_langinfo tests: Silence some warnings.
44911         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
44912         Reported by Jim Meyering.
44914 2010-10-17  Bruno Haible  <bruno@clisp.org>
44916         Make use of GCC's attribute __alloc_size__.
44917         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
44918         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
44919         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
44920         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
44921         __alloc_size__.
44922         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
44923         Suggested by Jim Meyering.
44925 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
44927         bootstrap: anchor .gitignore entries.
44928         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
44929         with...
44930         (insert_vc_ignore): ... this new function, which prepends `/' to
44931         all .gitignore entries before passing them to
44932         insert_sorted_if_absent.
44934 2010-10-16  Bruno Haible  <bruno@clisp.org>
44936         nextafter: Fix configure check.
44937         * modules/nextafter (configure.ac): Correct expected prototype.
44939 2010-10-16  Bruno Haible  <bruno@clisp.org>
44941         termios: Update documentation.
44942         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
44944 2010-10-16  Bruno Haible  <bruno@clisp.org>
44946         tests: Make them compile with TinyCC.
44947         * tests/test-strstr.c (main): Remove parentheses around array
44948         initializer.
44950 2010-10-15  Eric Blake  <eblake@redhat.com>
44952         ignore-value: make header idempotent
44953         * lib/ignore-value.h: Add double-inclusion guards.
44954         Reported by Stefan Berger.
44956 2010-10-15  Jim Meyering  <meyering@redhat.com>
44958         GNUmakefile: handle "stable" target, not "major"
44959         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
44960         lists in maint.mk and announce-gen.  Without this, "make stable"
44961         would fail to ensure that $(VERSION) is up to date.
44963 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
44965         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
44966         & co.
44968 2010-10-14  Bruno Haible  <bruno@clisp.org>
44970         vasnprintf: Don't set errno to 0.
44971         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
44972         block that sets it to 0.
44973         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
44975 2010-10-14  Bruno Haible  <bruno@clisp.org>
44977         socketlib: Fix.
44978         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
44979         gl_PREREQ_SYS_H_WINSOCK2.
44980         Reported by Ian Beckwith <ianb@erislabs.net>.
44982 2010-10-13  Jim Meyering  <meyering@redhat.com>
44984         test-select-stdin.c: avoid warn_unused_result warnings
44985         * tests/test-select-stdin.c: Include "macros.h".
44986         ASSERT that read and fflush succeed.
44988 2010-10-13  Jim Meyering  <meyering@redhat.com>
44990         git-version-gen: do require git-VC'd files in cwd
44991         * build-aux/git-version-gen: Reject a git version string
44992         if there are no commits associated with the current directory.
44993         This avoids an unlikely false-positive (unrelated dir whose parent
44994         repository also contains a tag matching v*), as pointed out
44995         by Giuseppe Scrivano in
44996         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
44998 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
45000         argv-iter: omit nonconforming declaration
45001         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
45002         enum arg_iter_err declaration, which doesn't conform to C99.
45003         Solaris 10 cc warns about this.
45005 2010-10-13  Eric Blake  <eblake@redhat.com>
45007         termios: fix compilation on mingw
45008         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
45009         (gl_TERMIOS_H): Adjust it on mingw.
45010         * modules/termios (Makefile.am): Substitute new key.
45011         * lib/termios.in.h (includes): Make include_next conditional.
45012         * doc/posix-headers/termios.texi (termios.h): Update
45013         documentation.
45014         Reported by Daniel P. Berrange.
45016 2010-10-13  Jim Meyering  <meyering@redhat.com>
45018         git-version-gen: don't require that .git/ be in the current dir
45019         * build-aux/git-version-gen: Adjust this script so that it works
45020         when run from any working directory beneath the top-level .git/-
45021         containing directory.  Inspired by a patch from Giuseppe Scrivano,
45022         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
45024         test-select: avoid warn_unused_result warnings
45025         * tests/test-select.c: Include "macros.h".
45026         ASSERT that each call to read, write, and pipe succeeds.
45027         While not technically required, also check each "close".
45028         * modules/select-tests (Files): Add tests/macros.h.
45030         test-symlinkat: remove declaration of unused local
45031         * tests/test-symlinkat.c (main): Remove unused local, "buf".
45033         test-inttostr: avoid shadowing warnings
45034         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
45035         and use malloc rather than the stack for the same reason as
45036         mentioned in the comment justifying the other allocation.
45038 2010-10-11  Bruno Haible  <bruno@clisp.org>
45040         stdlib: Allow multiple gnulib generated replacements to coexist.
45041         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
45042         Reported by Sam Steingold <sds@gnu.org>.
45044 2010-10-11  Jim Meyering  <meyering@redhat.com>
45046         fix a documentation typo
45047         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
45049 2010-10-11  Eric Blake  <eblake@redhat.com>
45051         futimens: work around Solaris 11 bug
45052         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
45053         * tests/test-futimens.h (test_futimens): Enhance, rather than
45054         weaken test.
45055         * doc/posix-functions/futimens.texi (futimens): Document the bug.
45057 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45059         Indentation.
45060         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
45061         higher-level operators more to the left.
45063 2010-10-11  Jim Meyering  <meyering@redhat.com>
45065         test-futimens: avoid unwarranted test failure on Solaris 5.11
45066         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
45067         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
45068         because it tries to dereference the NULL name argument.
45070 2010-10-11  Bruno Haible  <bruno@clisp.org>
45072         Indentation.
45073         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
45074         indentation.
45076 2010-10-11  Jim Meyering  <meyering@redhat.com>
45078         spawn.in.h: make indentation consistent with parentheses
45079         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
45080         Make indentation consistent with parentheses.
45082 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
45084         Fix mismatched parens in previous commit
45085         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
45086         parens.
45088 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45090         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
45092         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
45093         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
45094         * lib/malloca.c: Include "verify.h".
45095         (verify1): Remove, replacing with a verify call.
45096         * lib/relocwrapper.c (verify1): Likewise.
45097         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
45098         Likewise.
45099         * modules/malloca (Depends-on): Add 'verify'.
45100         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
45101         * modules/vasnprintf (Depends-on): Add 'verify'.
45102         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45103         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45104         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45105         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45106         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45107         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45108         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45110         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
45112         Formerly the style was sometimes 2*X - 1, because the C standard
45113         was wrongly thought to disallow ?: in integral constant expressions.
45114         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
45115         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
45116         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
45117         * lib/stdint.in.h (_verify_intmax_size): Likewise.
45118         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
45119         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
45120         verify that time_t cannot be floating.
45122 2010-10-08  Eric Blake  <eblake@redhat.com>
45124         time: enforce recent POSIX ruling that time_t is integral
45125         * lib/time.in.h (__time_t_must_be_integral): Detect any
45126         problematic systems, allowing the rest of gnulib to assume POSIX.
45128 2010-10-08  Jim Meyering  <meyering@redhat.com>
45130         fdopendir: fix a bug on systems lacking openat and /proc support
45131         OpenBSD 4.7 is one such system.  The most noticeable effect was
45132         failure of any application making nontrivial use of fts: rm, du,
45133         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
45134           ./rm: traversal failed: `a': Bad file descriptor
45135         Debugging that, you see that even though FD 6 was closed just
45136         prior to the opendir call in fd_clone_opendir, its resulting
45137         dir->dd_fd was 8, rather than the expected value of 6:
45139         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
45140         93                close (fd);
45141         (gdb) n
45142         94                dir = fd_clone_opendir (dupfd);
45143         (gdb) n
45144         95                saved_errno = errno;
45145         (gdb) p dir->dd_fd
45146         $11 = 8
45148         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
45149         The problem is that on OpenBSD, fd_clone_opendir has to resort
45150         to using the old-style save/restore CWD mechanism, due to its
45151         lack of openat/proc support, and *that* would steal the FD (6)
45152         that opendir was supposed to use.
45154         The fix is to squirrel away the desired FD so that save_cwd uses a
45155         different one, and then free the dest FD right before calling opendir.
45156         That guarantees opendir will use the required file descriptor.
45158         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
45160 2010-10-08  Bruno Haible  <bruno@clisp.org>
45162         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
45163         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
45165 2010-10-08  Bruno Haible  <bruno@clisp.org>
45167         nanosleep: Make replacement POSIX compliant.
45168         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
45169         is out of range.
45170         Reported by Jim Meyering.
45172 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45174         bootstrap: add hook for altering gnulib.mk, for Bison
45175         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
45176         the Bison bootstrapping process can rewrite file names and variables
45177         in this file before later parts of 'bootstrap' use the file.
45178         Bison wants to include lib/gnulib.mk from the top-level makefile,
45179         so it needs the file names in this file to be relative to the top
45180         level, not relative to lib; plus it needs variable names to be
45181         rewritten.
45182         (slurp): Use the new function.
45184         bootstrap: reformat for readability
45185         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
45187 2010-10-08  Eric Blake  <eblake@redhat.com>
45189         docs: update cygwin progress
45190         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
45191         1.7.7.
45192         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
45193         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
45194         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
45195         * doc/posix-functions/carg.texi (carg): Likewise.
45196         * doc/posix-functions/cargf.texi (cargf): Likewise.
45197         * doc/posix-functions/casin.texi (casin): Likewise.
45198         * doc/posix-functions/casinf.texi (casinf): Likewise.
45199         * doc/posix-functions/casinh.texi (casinh): Likewise.
45200         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
45201         * doc/posix-functions/catan.texi (catan): Likewise.
45202         * doc/posix-functions/catanf.texi (catanf): Likewise.
45203         * doc/posix-functions/catanh.texi (catanh): Likewise.
45204         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
45205         * doc/posix-functions/ccos.texi (ccos): Likewise.
45206         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
45207         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
45208         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
45209         * doc/posix-functions/cexp.texi (cexp): Likewise.
45210         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
45211         * doc/posix-functions/cimag.texi (cimag): Likewise.
45212         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
45213         * doc/posix-functions/clog.texi (clog): Likewise.
45214         * doc/posix-functions/clogf.texi (clogf): Likewise.
45215         * doc/posix-functions/conj.texi (conj): Likewise.
45216         * doc/posix-functions/conjf.texi (conjf): Likewise.
45217         * doc/posix-functions/cpow.texi (cpow): Likewise.
45218         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
45219         * doc/posix-functions/cproj.texi (cproj): Likewise.
45220         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
45221         * doc/posix-functions/creal.texi (creal): Likewise.
45222         * doc/posix-functions/crealf.texi (crealf): Likewise.
45223         * doc/posix-functions/csin.texi (csin): Likewise.
45224         * doc/posix-functions/csinf.texi (csinf): Likewise.
45225         * doc/posix-functions/csinh.texi (csinh): Likewise.
45226         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
45227         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
45228         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
45229         * doc/posix-functions/ctan.texi (ctan): Likewise.
45230         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
45231         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
45232         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
45233         * doc/posix-headers/complex.texi (complex.h): Likewise.
45235 2010-10-07  Jim Meyering  <meyering@redhat.com>
45237         parse-datetime: avoid compilation failure on OpenBSD 4.7
45238         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
45239         This works around a compilation failure on OpenBSD 4.7:
45240         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
45242 2010-10-07  Eric Blake  <eblake@redhat.com>
45244         docs: update cygwin progress
45245         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
45246         1.7.6.
45247         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
45248         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
45249         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
45250         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
45251         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
45252         Likewise.
45253         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
45254         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
45255         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
45256         Likewise.
45257         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
45258         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
45259         Likewise.
45260         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
45261         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
45262         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
45263         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
45264         Likewise.
45265         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
45266         Likewise.
45267         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
45269         docs: update parse-datetime history
45270         * doc/parse-datetime.texi (Authors of parse_datetime): Better
45271         documentation of this function's history and alternatives.
45273         cygwin: use more robust version check
45274         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
45275         exclude an eventual cygwin 1.9.1.
45276         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
45277         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
45278         (gl_FUNC_STRCASESTR): Likewise.
45279         Reported by Bruno Haible.
45281 2010-10-06  Bruno Haible  <bruno@clisp.org>
45283         string, sys_select: Avoid #including large headers unless necessary.
45284         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
45285         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
45286         OSF/1, BeOS, Haiku.
45287         Reported by Jim Meyering.
45289 2010-10-05  Eric Blake  <eblake@redhat.com>
45291         memmem, strstr, strcasestr: fix bug with long periodic needle
45292         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
45293         periodic needle having false positive.
45294         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
45295         and cygwin 1.7.7.
45296         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
45297         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
45298         (gl_FUNC_STRCASESTR): Likewise.
45299         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
45300         * tests/test-memmem.c (main): Expose the bug.
45301         * tests/test-strcasestr.c (main): Likewise.
45302         * tests/test-strstr.c (main): Likewise.
45303         * tests/test-c-strcasestr.c (main): Likewise.
45304         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
45305         * doc/posix-functions/strstr.texi (strstr): Likewise.
45306         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45307         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
45309 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45311         parse-datetime: do some more renaming
45312         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
45313         parse_datetime, not get_date.  Mention the renaming.
45314         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
45315         in comments.
45316         * m4/bison.m4: Likewise.
45318 2010-10-05  Eric Blake  <eblake@redhat.com>
45320         parse-datetime: better name than get_date
45321         * NEWS: Reword the deprecation notice.
45322         * modules/get_date: Rename to modules/parse-datetime.
45323         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
45324         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
45325         * lib/get_date.y: Rename to lib/parse-datetime.y.
45326         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
45327         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
45328         * doc/getdate.texi: Provide fallback wrapper.
45329         * lib/getdate.h: Move guts, and wrap...
45330         * lib/parse-datetime.h: ...new file.
45331         * lib/parse-datetime.y (get_date): Rename...
45332         (parse_datetime): ...to this.
45333         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
45334         (gl_PARSE_DATETIME): ...to this.
45335         * doc/posix-functions/getdate.texi (get_date): Provide fallback
45336         documentation.
45337         * modules/getdate (Files): Provide fallback docs and header.
45338         (Notice, Depends-on): Update references.
45339         * tests/test-parse-datetime.c: Likewise.
45340         * DEPENDENCIES: Likewise.
45341         * MODULES.html.sh (Date and time <time.h>): Likewise.
45342         * doc/parse-datetime.texi (Date input formats)
45343         (Authors of parse_datetime): Likewise.
45344         * modules/parse-datetime (Files, configure.ac, Makefile.am)
45345         (Include): Likewise.
45346         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
45347         * gnulib-tool: Likewise.
45348         * m4/bison.m4 (gl_BISON): Likewise.
45349         Suggested by Bruno Haible.
45351 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45353         more ports to Solaris tr, which needs [] around ranges
45354         * gnulib-tool: Solaris tr needs [] around ranges.
45355         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
45356         * tests/test-pipe-filter-gi1.c (main): Likewise.
45357         * tests/test-pipe-filter-ii1.c (main): Likewise.
45359 2010-10-05  Eric Blake  <eblake@redhat.com>
45361         bootstrap: fix Solaris regression
45362         * build-aux/bootstrap (check_versions): Solaris tr still needs []
45363         around ranges.
45364         Reported by Pádraig Brady.
45366         bootstrap: work with pkg-config
45367         * build-aux/bootstrap (check_versions): Also transliterate - in
45368         prerequisite name.
45369         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
45370         prerequisites that were already found, to avoid confusion.
45371         Reported by Justin Clift.
45373         faccessat: remove unused wrappers
45374         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
45375         presence of these wrappers dragged in -lgen on Solaris.
45376         Reported by Clemens Brogi; fix suggested by Paul Eggert.
45378 2010-10-05  Jim Meyering  <meyering@redhat.com>
45380         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
45381         * Makefile (sc_pragma_columns): New syntax-check rule.
45383 2010-10-04  Bruno Haible  <bruno@clisp.org>
45385         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
45386         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
45387         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
45388         Reported by Bruce Korb and Eric Blake.
45390 2010-10-04  Bruno Haible  <bruno@clisp.org>
45392         threadlib: Make option --with-libpth-prefix work.
45393         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
45394         use $LIBPTH, not just -lpth.
45396 2010-10-04  Bruno Haible  <bruno@clisp.org>
45398         Avoid line length limitation from HP NonStop system header files.
45399         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
45400         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
45401         * lib/ctype.in.h: Likewise.
45402         * lib/dirent.in.h: Likewise.
45403         * lib/errno.in.h: Likewise.
45404         * lib/fcntl.in.h: Likewise.
45405         * lib/float.in.h: Likewise.
45406         * lib/getopt.in.h: Likewise.
45407         * lib/iconv.in.h: Likewise.
45408         * lib/inttypes.in.h: Likewise.
45409         * lib/langinfo.in.h: Likewise.
45410         * lib/locale.in.h: Likewise.
45411         * lib/math.in.h: Likewise.
45412         * lib/netdb.in.h: Likewise.
45413         * lib/netinet_in.in.h: Likewise.
45414         * lib/poll.in.h: Likewise.
45415         * lib/pthread.in.h: Likewise.
45416         * lib/pty.in.h: Likewise.
45417         * lib/sched.in.h: Likewise.
45418         * lib/se-selinux.in.h: Likewise.
45419         * lib/search.in.h: Likewise.
45420         * lib/signal.in.h: Likewise.
45421         * lib/spawn.in.h: Likewise.
45422         * lib/stdarg.in.h: Likewise.
45423         * lib/stddef.in.h: Likewise.
45424         * lib/stdint.in.h: Likewise.
45425         * lib/stdio.in.h: Likewise.
45426         * lib/stdlib.in.h: Likewise.
45427         * lib/string.in.h: Likewise.
45428         * lib/strings.in.h: Likewise.
45429         * lib/sys_file.in.h: Likewise.
45430         * lib/sys_ioctl.in.h: Likewise.
45431         * lib/sys_select.in.h: Likewise.
45432         * lib/sys_socket.in.h: Likewise.
45433         * lib/sys_stat.in.h: Likewise.
45434         * lib/sys_time.in.h: Likewise.
45435         * lib/sys_times.in.h: Likewise.
45436         * lib/sys_utsname.in.h: Likewise.
45437         * lib/sys_wait.in.h: Likewise.
45438         * lib/sysexits.in.h: Likewise.
45439         * lib/termios.in.h: Likewise.
45440         * lib/time.in.h: Likewise.
45441         * lib/unistd.in.h: Likewise.
45442         * lib/wchar.in.h: Likewise.
45443         * lib/wctype.in.h: Likewise.
45444         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
45445         * modules/ctype (Makefile.am): Likewise.
45446         * modules/dirent (Makefile.am): Likewise.
45447         * modules/errno (Makefile.am): Likewise.
45448         * modules/fcntl-h (Makefile.am): Likewise.
45449         * modules/float (Makefile.am): Likewise.
45450         * modules/getopt-posix (Makefile.am): Likewise.
45451         * modules/iconv-h (Makefile.am): Likewise.
45452         * modules/inttypes (Makefile.am): Likewise.
45453         * modules/langinfo (Makefile.am): Likewise.
45454         * modules/locale (Makefile.am): Likewise.
45455         * modules/math (Makefile.am): Likewise.
45456         * modules/netdb (Makefile.am): Likewise.
45457         * modules/netinet_in (Makefile.am): Likewise.
45458         * modules/poll-h (Makefile.am): Likewise.
45459         * modules/pthread (Makefile.am): Likewise.
45460         * modules/pty (Makefile.am): Likewise.
45461         * modules/sched (Makefile.am): Likewise.
45462         * modules/search (Makefile.am): Likewise.
45463         * modules/selinux-h (Makefile.am): Likewise.
45464         * modules/signal (Makefile.am): Likewise.
45465         * modules/spawn (Makefile.am): Likewise.
45466         * modules/stdarg (Makefile.am): Likewise.
45467         * modules/stddef (Makefile.am): Likewise.
45468         * modules/stdint (Makefile.am): Likewise.
45469         * modules/stdio (Makefile.am): Likewise.
45470         * modules/stdlib (Makefile.am): Likewise.
45471         * modules/string (Makefile.am): Likewise.
45472         * modules/strings (Makefile.am): Likewise.
45473         * modules/sys_file (Makefile.am): Likewise.
45474         * modules/sys_ioctl (Makefile.am): Likewise.
45475         * modules/sys_select (Makefile.am): Likewise.
45476         * modules/sys_socket (Makefile.am): Likewise.
45477         * modules/sys_stat (Makefile.am): Likewise.
45478         * modules/sys_time (Makefile.am): Likewise.
45479         * modules/sys_times (Makefile.am): Likewise.
45480         * modules/sys_utsname (Makefile.am): Likewise.
45481         * modules/sys_wait (Makefile.am): Likewise.
45482         * modules/sysexits (Makefile.am): Likewise.
45483         * modules/termios (Makefile.am): Likewise.
45484         * modules/time (Makefile.am): Likewise.
45485         * modules/unistd (Makefile.am): Likewise.
45486         * modules/wchar (Makefile.am): Likewise.
45487         * modules/wctype (Makefile.am): Likewise.
45489 2010-10-04  Bruno Haible  <bruno@clisp.org>
45491         read-file tests: Avoid a test failure on NonStop Kernel.
45492         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
45493         a regular file.
45494         Reported by Joachim Schmitz <schmitz@hp.com>.
45496 2010-10-03  Bruno Haible  <bruno@clisp.org>
45498         gnulib-tool: Fixes for --create-testdir with --libtool.
45499         * gnulib-tool (func_get_automake_snippet): Don't augment
45500         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
45501         an executable.
45502         (func_create_testdir): Handle module 'alloca' like func_import.
45503         Reported by Bruce Korb <bruce.korb@gmail.com>.
45505 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
45507         Avoid some lines longer than 80 characters.
45508         * lib/stdint.in.h: Break long comment lines.
45509         * lib/math.in.h: Likewise.
45510         (_GL_NUM_UINT_WORDS): New macro, for readability.
45511         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
45512         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
45513         * lib/stdlib.in.h: Likewise.
45514         * lib/spawn.in.h: Likewise.
45515         * lib/sys_socket.in.h: Update an URL.
45516         * lib/sys_stat.in.h: Break long line.
45518 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
45520         Improve pmccabe2html.
45521         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
45522         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
45523         when the sources change. Remove the line in the HTML about "Used
45524         ranges" (which implied that there might be other unused ranges),
45525         rename "Resume" to "Summary" (easier to understand for more users).
45526         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
45527         styles, and some unnecessary blank lines.
45529 2010-10-03  Bruno Haible  <bruno@clisp.org>
45530             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
45532         acl: Add support for ACLs on NonStop Kernel.
45533         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
45534         Check whether the function aclsort() exists.
45535         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
45536         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
45537         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
45538         (acl_nontrivial [HAVE_ACLSORT]: New function.
45539         (file_has_acl): Implement for NonStop Kernel.
45540         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
45541         (qset_acl): Implement for NonStop Kernel.
45542         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
45543         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
45544         (main): Implement for NonStop Kernel.
45545         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
45546         Kernel. Handle this flavor.
45547         * tests/test-set-mode-acl.sh: Likewise.
45548         * tests/test-copy-acl.sh: Likewise.
45549         * tests/test-copy-file.sh: Likewise.
45551 2010-10-03  Bruno Haible  <bruno@clisp.org>
45553         Info about ACLs on NonStop Kernel.
45554         * doc/acl-resources.txt: Add info about NonStop Kernel.
45555         References by Joachim Schmitz <schmitz@hp.com>.
45557 2010-10-02  Bruno Haible  <bruno@clisp.org>
45559         Define missing EDQUOT on NonStop Kernel.
45560         * lib/errno.in.h (EDQUOT): Assign a value if missing.
45561         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
45562         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
45563         missing.
45564         * doc/posix-headers/errno.texi: Mention the NSK bug.
45565         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
45566         Reported by Joachim Schmitz <schmitz@hp.com>.
45568 2010-10-02  Bruno Haible  <bruno@clisp.org>
45570         Update doc for POSIX:2008.
45571         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
45572         Update URL of POSIX specification.
45574 2010-10-02  Bruno Haible  <bruno@clisp.org>
45576         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
45577         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
45578         from gnulib, not from Automake.
45580 2010-10-02  Bruno Haible  <bruno@clisp.org>
45582         New module 'system-posix'.
45583         * modules/system-posix: New file.
45584         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
45585         module is present.
45586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45587         GNULIB_SYSTEM_POSIX.
45588         * modules/stdlib (Depends-on): Remove sys_wait.
45589         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
45590         * doc/posix-functions/system.texi: Mention the new module.
45591         * doc/posix-headers/stdlib.texi: Likewise.
45592         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
45593         define test_sys_wait_macros to a no-op.
45594         Reported by Sam Steingold <sds@gnu.org>.
45596 2010-09-30  Bruno Haible  <bruno@clisp.org>
45598         More renaming from 'getdate' to 'get_date'.
45599         * doc/get_date.texi: Renamed from doc/getdate.texi.
45600         * modules/get_date (Files): Update.
45601         * MODULES.html.sh (Date and time <time.h>): Update.
45602         * DEPENDENCIES: Update.
45603         * gnulib-tool: Update comment.
45604         * m4/bison.m4 (gl_BISON): Likewise.
45605         * m4/get_date.m4 (gl_GET_DATE): Likewise.
45607 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
45609         bootstrap: support ACLOCAL_FLAGS during aclocal
45610         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
45611         can add additional -I dir for third-party .m4 files.
45613 2010-09-30  Eric Blake  <eblake@redhat.com>
45615         bootstrap: use glibtoolize on MacOS
45616         * build-aux/bootstrap (check_versions): Convert libtool into
45617         libtoolize.
45618         (tool search): Move libtool check earlier, and look for
45619         glibtoolize for MacOS.
45620         (gnulib_tool_options): Auto-add --libtool when appropriate.
45621         Reported by Justin Clift.
45623         poll: fix typo that broke test on MacOS
45624         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
45625         Reported by Justin Clift.
45627         getdate: rename to get_date
45628         Note: getdate.h is not renamed, to minimize client impact.
45629         * modules/getdate: Mark obsolete.  Move old contents...
45630         * modules/get_date: ...to new module name.
45631         * modules/getdate-tests: Move...
45632         * modules/get_date-tests: ...here.
45633         * m4/getdate.m4: Move...
45634         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
45635         * lib/getdate.y: Move...
45636         * lib/get_date.y: ...here.
45637         * tests/test-getdate.c: Move...
45638         * tests/test-get_date.c: ...here.
45639         * doc/posix-functions/getdate.texi (getdate): Update name.
45640         * NEWS: Mention the change.
45642 2010-09-29  Bruno Haible  <bruno@clisp.org>
45644         Separate the module 'waitpid' from the module 'sys_wait'.
45645         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
45646         present.
45647         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
45648         gl_MODULE_INDICATOR_FOR_TESTS.
45649         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
45650         * modules/sys_wait (Depends-on): Remove waitpid.
45651         (Makefile.am): Substitute GNULIB_WAITPID.
45652         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
45653         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
45654         signature only if the 'waitpid' module is present.
45655         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
45656         * NEWS: Mention the change.
45657         * modules/grantpt (Depends-on): Add waitpid.
45658         * modules/wait-process (Depends-on): Likewise.
45660 2010-09-29  Bruno Haible  <bruno@clisp.org>
45662         More tests for module 'sys_wait'.
45663         * modules/sys_wait-c++-tests: New file.
45664         * tests/test-sys_wait-c++.cc: New file.
45665         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
45666         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
45668 2010-09-29  Bruno Haible  <bruno@clisp.org>
45670         New module 'waitpid'.
45671         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
45672         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
45673         Don't include <process.h>.
45674         (waitpid): Declare only, using modern idiom.
45675         * m4/waitpid.m4: New file.
45676         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
45677         * modules/waitpid: New file.
45678         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
45679         (Makefile.am): Update.
45680         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
45682 2010-09-28  Bruno Haible  <bruno@clisp.org>
45684         poll: Assume ANSI C.
45685         * lib/poll.c (poll): Use an ANSI C declaration.
45687 2010-09-28  Bruno Haible  <bruno@clisp.org>
45689         poll-h: Create poll.h on all platforms.
45690         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
45691         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
45692         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
45693         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
45694         (gl_REPLACE_POLL_H): Don't set POLL_H.
45695         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
45696         * modules/poll-h (Depends-on): Add include_next.
45697         (Makefile.am): Create poll.h unconditionally. Substitute also
45698         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
45700 2010-09-28  Bruno Haible  <bruno@clisp.org>
45702         Tests for module 'poll-h'.
45703         * modules/poll-h-c++-tests: New file.
45704         * tests/test-poll-h-c++.cc: New file.
45706         Tests for module 'poll-h'.
45707         * modules/poll-h-tests: New file.
45708         * tests/test-poll-h.c: New file.
45710 2010-09-28  Bruno Haible  <bruno@clisp.org>
45712         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
45713         * modules/poll-h (Depends-on): Add 'extensions'.
45715 2010-09-28  Bruno Haible  <bruno@clisp.org>
45717         New module 'poll-h'.
45718         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
45719         (poll): Use modern idiom.
45720         * modules/poll-h: New file.
45721         * modules/poll (Files): Remove lib/poll.in.h.
45722         (Depends-on): Add poll-h.
45723         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
45724         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
45725         * m4/poll_h.m4: New file.
45726         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
45727         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
45728         and invoke gl_REPLACE_POLL_H.
45729         * lib/poll.c: Use common idiom.
45730         * tests/test-poll.c: Likewise.
45731         * doc/posix-headers/poll.texi: Mention the poll-h module.
45732         Suggested by Eric Blake.
45734 2010-09-26  Bruno Haible  <bruno@clisp.org>
45736         sys_wait: Implement WSTOPSIG.
45737         * lib/sys_wait.in.h (WSTOPSIG): New macro.
45738         Reported by Simon Josefsson.
45740 2010-09-26  Simon Josefsson  <simon@josefsson.org>
45742         stdlib, sys_wait: Avoid compilation error on mingw.
45743         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
45745 2010-09-26  Bruno Haible  <bruno@clisp.org>
45747         stdlib tests: Avoid code duplication.
45748         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
45749         * modules/sys_wait-tests (Files): Likewise.
45750         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
45751         * tests/test-stdlib.c: Include test-sys_wait.h.
45752         (main): Invoke test_sys_wait_macros.
45753         * tests/test-sys_wait.c: Include test-sys_wait.h.
45754         (main): Invoke test_sys_wait_macros.
45756 2010-09-25  Simon Josefsson  <simon@josefsson.org>
45758         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
45759         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
45760         sure Windows sockets are working before calling getaddrinfo.
45761         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
45762         * doc/gnulib.texi (Windows sockets): Fix typo.
45764 2010-09-25  Bruno Haible  <bruno@clisp.org>
45766         Tests for module 'regex-quote'.
45767         * modules/regex-quote-tests: New file.
45768         * tests/test-regex-quote.c: New file.
45770         New module 'regex-quote'.
45771         * lib/regex-quote.h: New file.
45772         * lib/regex-quote.c: New file.
45773         * modules/regex-quote: New file.
45774         Suggested by Reuben Thomas <rrt@sc3d.org>.
45776 2010-09-24  Bruno Haible  <bruno@clisp.org>
45778         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
45779         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
45781 2010-09-23  Bruno Haible  <bruno@clisp.org>
45783         setenv: Relax license.
45784         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
45785         Blake.
45786         Requested by Eric Blake.
45788 2010-09-22  Bruno Haible  <bruno@clisp.org>
45790         termios: Relax license.
45791         * modules/termios (License): Change to LGPLv2+.
45792         Requested by Eric Blake.
45794 2010-09-22  Bruno Haible  <bruno@clisp.org>
45796         threadlib: Allow the package to change the default to 'no'.
45797         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
45798         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
45799         Reported by Paul Eggert.
45801 2010-09-22  Pádraig Brady  <P@draigbrady.com>
45802             Bruno Haible  <bruno@clisp.org>
45804         Fix endless loop in mbmemcasecoll.
45805         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
45806         byte.
45807         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
45809 2010-09-22  Bruno Haible  <bruno@clisp.org>
45811         Tests for module 'memcoll'.
45812         * modules/memcoll-tests: New file.
45813         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
45815         memcoll, xmemcoll: Clarify size vs. length.
45816         * modules/memcoll.c (memcoll0): Clarify specification.
45817         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
45818         passed to collate_error.
45820 2010-09-22  Bruno Haible  <bruno@clisp.org>
45822         Tests for module 'memcasecmp'.
45823         * modules/memcasecmp-tests: New file.
45824         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
45826 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
45828         * lib/pthread.in.h: Add split double-inclusion guard, and include
45829         system <pthread.h> if there is one.  Use @@-style as in other
45830         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
45831         pthread.h doesn't.
45832         (pthread_mutexattr_destroy, pthread_mutexattr_init):
45833         (pthread_mutexattr_settype, pthread_mutex_trylock):
45834         New static inline functions, if there's no system <pthread.h>.
45835         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
45836         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
45837         Approximate with mutexes if the system lacks spinlocks, as in
45838         MacOS.
45839         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
45840         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
45841         @@-style.  Check for spinlocks separately.
45842         (gl_PTHREAD_DEFAULTS): New macro.
45843         * modules/pthread: Redo to use a more typical style for in.h files.
45845 2010-09-21  Eric Blake  <eblake@redhat.com>
45847         net_if: enhance tests
45848         * tests/test-net_if.c (main): Move signature checks earlier.
45849         Print failures to stderr.
45850         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
45851         Document the bug that we do not yet fix.
45853 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
45855         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
45856         about gnulib, not GSS.
45858 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
45860         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
45861         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
45862         for Emacs.
45863         * build-aux/pmccabe2html: Make Makefile.am example code more
45864         cut-and-paste friendly.
45866 2010-09-21  Simon Josefsson  <simon@josefsson.org>
45868         * tests/test-net_if.c: New file.
45869         * modules/net_if-tests: New file.
45871 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
45873         pthread: add pthread_spin_destroy
45874         * lib/pthread.in.h (pthread_spin_destroy): New function.
45876 2010-09-19  Bruno Haible  <bruno@clisp.org>
45878         gnulib-tool: Fix --help output.
45879         * gnulib-tool (func_usage): Fix help message.
45880         Reported by Reuben Thomas <rrt@sc3d.org>.
45882 2010-09-18  Jim Meyering  <meyering@redhat.com>
45884         maint.mk: avoid unexpanded \n in two diagnostics
45885         * top/maint.mk (sc_prohibit_always_true_header_tests):
45886         Don't use a literal \n in a halt=... assignment.  It would not be
45887         expanded, and the two \n bytes would appear in the diagnostic output
45888         rather than the desired newline.  Use halt=$$(printf ... instead.
45889         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
45891 2010-09-18  Bruno Haible  <bruno@clisp.org>
45893         netinet_in: Doc tweak.
45894         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
45895         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45897 2010-09-18  Jim Meyering  <meyering@redhat.com>
45899         init.sh: correct an outdated comment
45900         * tests/init.sh (create_exe_shims_):  s/function/alias/
45902         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
45903         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
45904         a file named "*.exe" is removed between the glob expansion and the
45905         processing of that oddly named file.
45907 2010-09-17  Eric Blake  <eblake@redhat.com>
45909         mirbsd: add some more support
45910         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
45911         in BSD family.
45912         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
45913         devices as OpenBSD.
45914         * m4/host-os.m4 (mirbsd): Add MirBSD.
45916         tests: fix unportable assumption on sys/wait.h
45917         * tests/test-sys_wait.c (main): Relax test.
45918         * tests/test-stdlib.c (main): Likewise.
45920         init.sh: accommodate directory with no .exes
45921         * tests/init.sh: Accomodate directory containing only scripts.
45923         tests: avoid compiler warning
45924         * tests/test-stdlib.c (main): Use the variable.
45926         fdutimens, fdutimensat: update signature, again
45927         * lib/utimens.h (gl_futimens): Delete, and move signature...
45928         (fdutimens): ...here.
45929         (fdutimensat): Rearrange signature.
45930         (lutimensat): Rename variable for clarity.
45931         * lib/fdutimensat.c (fdutimensat): Update signature.
45932         * lib/utimens.c (fdutimens): Likewise.
45933         (gl_futimens): Delete.
45934         (utimens, lutimens): Update callers.
45935         * lib/futimens.c (futimens): Likewise.
45936         * tests/test-fdutimensat.c: Likewise.
45937         * tests/test-utimens.c: Likewise.
45938         * tests/test-futimens.h: Update comment.
45939         * NEWS: Mention this.
45940         Suggested by Paul Eggert.
45942 2010-09-17  Bruno Haible  <bruno@clisp.org>
45944         Take over the maintenance of some older macros from Autoconf.
45945         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
45946         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
45947         GNU Autoconf.
45948         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
45949         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
45951 2010-09-17  Eric Blake  <eblake@redhat.com>
45953         fdutimensat: drop atflag validation
45954         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
45955         with valid fd, to close a race scenario where futimens is
45956         unsupported and FILE was replaced by a symlink.
45957         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
45958         accordingly.
45959         Suggested by Paul Eggert.
45961 2010-09-16  Bruno Haible  <bruno@clisp.org>
45963         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
45964         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
45966 2010-09-16  Bruno Haible  <bruno@clisp.org>
45968         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
45969         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
45970         login_tty exists.
45971         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45973 2010-09-16  Bruno Haible  <bruno@clisp.org>
45975         login_tty: Make the replacement code work on BSD systems.
45976         * lib/login_tty.c: Include <sys/ioctl.h>.
45977         (login_tty): Use ioctl TIOCSCTTY when available.
45978         * modules/login_tty (Depends-on): Add sys_ioctl.
45979         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45981 2010-09-16  Bruno Haible  <bruno@clisp.org>
45983         login_tty: Stricter unit test.
45984         * modules/login_tty-tests (Depends-on): Add tcgetsid.
45985         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
45986         and tcgetsid() after login_tty.
45987         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45989 2010-09-16  Bruno Haible  <bruno@clisp.org>
45991         New module 'tcgetsid'.
45992         * lib/tcgetsid.c: New file.
45993         * m4/tcgetsid.m4: New file.
45994         * modules/tcgetsid: New file.
45995         * modules/termios (Depends-on): Add c++defs, warn-on-use.
45996         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
45997         GNULIB_TCGETSID, HAVE_TCGETSID.
45998         * lib/termios.in.h: Include <sys/types.h>.
45999         (tcgetsid): New declaration.
46000         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
46001         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
46002         * doc/posix-functions/tcgetsid.texi: Mention the new module.
46003         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
46005 2010-09-16  Bruno Haible  <bruno@clisp.org>
46007         Tests for module 'termios'.
46008         * modules/termios-c++-tests: New file.
46009         * modules/termios-tests: New file.
46010         * tests/test-termios-c++.cc: New file.
46011         * tests/test-termios.c: New file.
46013         New module 'termios'.
46014         * modules/termios: New file.
46015         * lib/termios.in.h: New file.
46016         * m4/termios_h.m4: New file.
46017         * doc/posix-headers/termios.texi: Mention the new module.
46019 2010-09-16  Eric Blake  <eblake@redhat.com>
46021         fdutimensat: add an atflag parameter
46022         * lib/fdutimensat.c (fdutimensat): Add new parameter.
46023         * lib/utimens.h (fdutimensat): Update prototype.
46024         * tests/test-fdutimensat.c: Adjust test to match.
46025         * NEWS: Document the change.
46026         Suggested by Paul Eggert.
46028 2010-09-16  Bruno Haible  <bruno@clisp.org>
46030         Fix typos in comments.
46031         * lib/striconveh.h: Fix typo in comment.
46032         * lib/login_tty.c (login_tty): Likewise.
46034 2010-09-15  Bruno Haible  <bruno@clisp.org>
46036         stdlib: clarify MirBSD WEXITSTATUS bug
46037         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
46038         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46040 2010-09-15  Eric Blake  <eblake@redhat.com>
46042         stdlib: work around MirBSD WEXITSTATUS bug
46043         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
46044         * modules/stdlib (Depends-on): Add sys_wait.
46045         * tests/test-sys_wait.c (main): Enhance test.
46046         * tests/test-stdlib.c (main): Likewise.
46047         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
46049         docs: mention MacOS issue with WEXITSTATUS(constant)
46050         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
46051         issue.
46052         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46054         strnlen: add tests
46055         * modules/strnlen-tests: New file.
46056         * tests/test-strnlen.c: Likewise.
46058 2010-09-14  Bruno Haible  <bruno@clisp.org>
46060         unistr/base: Avoid link errors when module 'libunistring' is also used.
46061         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
46062         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
46063         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
46064         Declare also when HAVE_LIBUNISTRING is set.
46065         Reported by Pádraig Brady <P@draigbrady.com>.
46067 2010-09-14  Eric Blake  <eblake@redhat.com>
46069         test-rawmemchr: make more robust
46070         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
46071         (Depends-on, configure.ac): Add needed prerequisites to use it.
46072         * modules/memchr-tests (Files, Depends-on, configure.ac):
46073         Likewise, to avoid implicit reliance on memchr module prereqs.
46074         * tests/test-memchr.c (main): Ensure proper masking.
46075         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
46076         reads.
46078         memchr: detect glibc Alpha bug
46079         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
46080         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
46081         Alpha.
46082         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
46083         * tests/test-memchr.c (main): Enhance test.
46084         Reported by Nelson H. F. Beebe.
46086 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
46088         fts, getcwd, glob: audit for dirfd returning -1
46089         * lib/fts.c (opendir): Remove #define; no longer used.
46090         (opendirat): New arg PDIR_FD.  All callers changed.
46091         (fts_build, _opendir2): Use new opendirat to avoid the need for
46092         dirfd, or for checking whether dirfd returns a negative value.
46093         Don't use opendir; always use openat followed by fdopendir.
46094         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
46095         it.
46096         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
46097         returns -1 here.
46098         * modules/fts (Depends-on): Remove dirfd.
46099         * modules/getcwd (Depends-on): Likewise.
46101 2010-09-13  Eric Blake  <eblake@redhat.com>
46103         float: fix broken MirBSD header
46104         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
46105         * doc/posix-headers/float.texi (float.h): Document it.
46107 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
46109         fts: use O_NOFOLLOW to avoid race condition when opening a directory
46110         * lib/fts.c (opendirat): New arg extra_flags.
46111         (__opendir2): Use it to avoid following symlinks when opening
46112         a directory, if symlinks are not supposed to be followed.  See
46113         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
46115         fdopendir: preserve argument fd before returning
46116         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
46117         (fdopendir_with_dup, fd_clone_opendir): New static functions.
46118         (fdopendir): Use them, arranging for FD to be open to the same
46119         directory that it was when it started.  (It might be temporarily
46120         closed while fdopendir is running, so this not thread- or
46121         signal-safe.)  Be careful to do the right thing even when file
46122         descriptors are scarce and dup fails with errno == EMFILE.  See
46123         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
46125 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
46127         regex: Pass the system regex if its only problem is 32-bit regoff_t.
46128         * NEWS: Document change.
46129         * m4/regex.m4: Disable test for regoff_t size.
46131 2010-09-13  Jim Meyering  <meyering@redhat.com>
46133         fts: don't operate on an invalid file descriptor after failed dup
46134         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
46135         negative file descriptor.
46137 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
46139         savedir: add streamsavedir, deprecate fdsavedir
46140         * NEWS: Mention deprecation of fdsavedir.
46141         * lib/savedir.c (streamsavedir): New extern function, whose name
46142         ends in "savedir" to be consistent with the others.  This differs
46143         from savedirstream in that it doesn't close its argument.  The
46144         next version of GNU tar will use this instead of fdsavedir, to
46145         avoid some race conditions and conserve file descriptors.
46146         (savedirstream): Reimplement as a wrapper around streamsavedir.
46147         (fdsavedir): Add a comment deprecating this function.  As far as
46148         I know, only GNU tar used it, and GNU tar doesn't need it any more.
46149         * lib/savedir.h (streamsavedir): New decl.
46150         (fdsavedir): Add a comment deprecating this.
46152 2010-09-10  Bruno Haible  <bruno@clisp.org>
46154         langinfo: Fix last commit.
46155         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
46156         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
46157         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46159 2010-09-10  Bruno Haible  <bruno@clisp.org>
46161         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
46162         * lib/progreloc.c (O_EXEC): Define fallback.
46164 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
46166         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
46167         * NEWS: Document recent changes to fcntl-h.
46168         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
46169         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
46170         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
46171         Similarly for O_SEARCH; this last was already true, but not documented.
46172         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
46173         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
46174         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
46175         Likewise.
46176         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
46177         is zero, not whether it is defined.
46178         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
46179         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
46180         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
46182 2010-09-10  Bruno Haible  <bruno@clisp.org>
46184         langinfo, nl_langinfo: Fix for IRIX 5.3.
46185         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
46186         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
46187         HAVE_LANGINFO_YESEXPR.
46188         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
46189         HAVE_LANGINFO_YESEXPR.
46190         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
46191         HAVE_LANGINFO_T_FMT_AMPM is 0.
46192         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
46193         HAVE_LANGINFO_YESEXPR is 0.
46194         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
46195         NOEXPR.
46196         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
46197         * doc/posix-functions/nl_langinfo.texi: Likewise.
46198         Reported by Eric Blake.
46200 2010-09-10  Bruno Haible  <bruno@clisp.org>
46202         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
46203         * doc/glibc-functions/login_tty.texi: Mention the include file problem
46204         on FreeBSD 8.0 and OpenBSD 4.6.
46205         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
46206         * m4/pty_h.m4 (gl_PTY_H): Likewise.
46207         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
46208         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
46209         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
46210         ac_includes_default.
46211         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46213 2010-09-09  Eric Blake  <eblake@redhat.com>
46215         strsignal: work around NetBSD bug
46216         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
46217         * lib/string.in.h (includes): Likewise.
46218         * doc/posix-functions/strsignal.texi (strsignal): Document the
46219         bug.
46220         Reported by Nelson H. F. Beebe.
46222         gnulib-tool: work with NetBSD /bin/sh
46223         * gnulib-tool (func_cache_var, func_cache_lookup_module)
46224         (func_get_description, func_get_comment, func_get_status)
46225         (func_get_notice, func_get_applicability, func_get_filelist)
46226         (func_get_dependencies, func_get_autoconf_early_snippet)
46227         (func_get_autoconf_snippet, func_get_automake_snippet)
46228         (func_get_include_directive, func_get_link_directive)
46229         (func_get_license, func_get_maintainer, func_import): Avoid
46230         shell syntax errors from parsing syntax extensions.
46232 2010-09-09  Bruno Haible  <bruno@clisp.org>
46234         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
46235         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
46236         a reliable way to determine whether the 'alias' command works.
46238 2010-09-08  Jim Meyering  <meyering@redhat.com>
46240         init.sh: penalize a set-x-impaired shell; don't disqualify it
46241         * tests/init.sh: Too many shells corrupt application stderr when
46242         you set -x, so we can't afford to disqualify them, since at least
46243         on Irix-6.5, that would disqualify all bourne shells.
46244         Instead, use a two-pass approach.
46245         On the first pass, try to find a shell that meets the stricter
46246         condition that set -x does not corrupt stderr.
46247         If no shell meets the stricter condition, retest each candidate
46248         shell, but without that extra condition.  Finally, when
46249         VERBOSE=yes is requested and set -x might cause trouble, simply
46250         issue a warning and refrain from enabling debug output.
46252 2010-09-08  Eric Blake  <eblake@redhat.com>
46254         unsetenv: fix OpenBSD bug
46255         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
46256         * doc/posix-functions/unsetenv.texi (unsetenv): Update
46257         documentation.
46258         Reported by Jim Meyering.
46260         strtod: work around IRIX 6.5 bug
46261         * lib/strtod.c (strtod): Reparse number on shorter string if
46262         exponent parse was invalid.
46263         * tests/test-strtod.c (main): Add check for "0x1p 2".
46264         Reported by Tom G. Christensen.
46266         getopt: optimize previous patch
46267         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
46268         empty variable.  Speed up awk script.
46269         Reported by Paolo Bonzini.
46271 2010-09-08  Jim Meyering  <meyering@redhat.com>
46273         test.sh: disqualify shells for which set -x corrupts stderr
46274         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
46275         and OpenBSD 4.7.  They make it so with "set -x", environment settings
46276         appear in stderr output.  For example, this command:
46277             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
46278         prints "P=1" on those two systems:
46280 2010-09-08  Bruno Haible  <bruno@clisp.org>
46282         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
46283         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
46284         commands, because some shells ignore redirections when there is an
46285         error in the command lookup.
46286         Reported by Eric Blake.
46288 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
46290         * lib/regex.h: Fix a mention of `regex_compile' (should be
46291         `re_compile_pattern').
46292         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
46293         (re_set_registers): Correct name of parameter in comment.
46295         * doc/regex.texi: Add documentation for missing syntax flags.
46296         Remove commented-out documentation of defunct syntax option
46297         RE_NO_EMPTY_ALTS.
46298         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
46299         Add documentation of re_set_registers.
46300         Document trick to re-use a pattern buffer by setting fastmap manually.
46301         Update documentation of struct re_pattern_buffer per public members.
46302         Uncomment documentation of equivalence class operators and
46303         collating symbol operators, since they are now implemented,
46304         Explain leftmost-longest matching in relation to alternatives.
46305         Tidy documentation of substring matching.
46306         Remove POSIX documentation, which is done better in
46307         glibc, and refer the reader there. Keep BSD API documentation, as
46308         that is not readily available elsewhere.
46310 2010-09-07  Eric Blake  <eblake@redhat.com>
46312         getopt: handle POSIXLY_CORRECT set but not exported
46313         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
46314         export state of POSIXLY_CORRECT, due to bash set -o posix.
46315         Reported by Dustin J. Mitchell.
46317 2010-09-05  Bruno Haible  <bruno@clisp.org>
46319         gnulib-tool: Highlight the changed options.
46320         * gnulib-tool (func_usage): Display the --import, --add-import,
46321         --remove-import explanations in bold font.
46323 2010-09-06  Karl Berry  <karl@gnu.org>
46325         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
46327 2010-09-05  Bruno Haible  <bruno@clisp.org>
46329         uniwidth/width: Update comment.
46330         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
46331         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
46333 2010-09-05  Bruno Haible  <bruno@clisp.org>
46335         isinf, isnan: Relax license.
46336         * modules/isinf (License): Change from GPL to LGPL, with consent from
46337         Ben Pfaff.
46338         * modules/isnan (License): Likewise.
46339         Requested by Ludovic Courtès.
46341 2010-09-04  Bruno Haible  <bruno@clisp.org>
46343         gnulib-tool: Help migration from --import to --add-import or --update.
46344         * gnulib-tool: Emit a verbose error message when --import is used
46345         without any module name.
46347 2010-09-04  Bruno Haible  <bruno@clisp.org>
46349         Update doc about gnulib-tool.
46350         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
46351         'gnulib-tool --update' in more detail.
46352         Reported by Eric Blake.
46354 2010-09-04  Bruno Haible  <bruno@clisp.org>
46356         gnulib-tool: Change --import. New options --add/remove-import.
46357         * gnulib-tool: New options --add-import, --remove-import.
46358         (func_usage): Document them.
46359         (have_associative): Define always.
46360         (func_import): In import mode, don't merge the specified settings with
46361         the cached settings. Implement remove-import mode.
46362         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
46363         Explain when to use them versus --import.
46364         (Simple update): Use --add-import instead of --import.
46365         * NEWS: Mention the change.
46367 2010-09-04  Bruno Haible  <bruno@clisp.org>
46369         * doc/gnulib-tool.texi (Initial import): Update paragraph about
46370         separate gnulib.mk.
46372 2010-09-04  Bruno Haible  <bruno@clisp.org>
46374         gnulib-tool: Don't talk about CVS any more.
46375         * gnulib-tool (func_usage, func_import): Write "version control"
46376         instead of CVS.
46378 2010-09-04  Jim Meyering  <meyering@redhat.com>
46380         maint.mk: avoid obscure sc_copyright_check failure in coreutils
46381         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
46382         false positives (whose names may be ill-chosen) when searching
46383         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
46384         would cause a false-positive.
46386         avoid coreutils "make distcheck" failure
46387         Coreutils tests with an absolute build directory name that contains
46388         a space.  Not quoting this directory name caused a failure.
46389         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
46390         * tests/test-vc-list-files-cvs.sh: Likewise.
46392 2010-09-04  Bruno Haible  <bruno@clisp.org>
46394         gnulib-tool: Avoid error when run in a package without Makefile.am.
46395         * gnulib-tool: When collecting the m4dirs in a package that does not
46396         have a Makefile.am, eliminate those directories that contain no
46397         gnulib-cache.m4. Fix expression that counts these directories.
46399 2010-09-04  Bruno Haible  <bruno@clisp.org>
46401         update-copyright test: Improve output when perl is missing or too old.
46402         * tests/test-update-copyright.sh: Move test of Perl version down after
46403         the test whether Perl exists. Provide an explanation relating Perl's
46404         error message to Automake's SKIP: message.
46406 2010-09-04  Bruno Haible  <bruno@clisp.org>
46408         Don't augment PATH in TESTS_ENVIRONMENT.
46409         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
46410         set abs_aux_dir instead of augmenting PATH.
46411         * modules/vc-list-files-tests (Makefile.am): Likewise.
46412         * tests/test-update-copyright.sh: Augment PATH here.
46413         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
46414         path_prepend_.
46415         * tests/test-vc-list-files-git.sh: Likewise.
46417 2010-09-04  Jim Meyering  <meyering@redhat.com>
46419         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
46420         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
46422 2010-09-04  Bruno Haible  <bruno@clisp.org>
46424         strdup: Fix compilation error in C++ mode.
46425         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
46426         the macro.
46428 2010-09-04  Bruno Haible  <bruno@clisp.org>
46430         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
46431         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
46432         macro into a function.
46433         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
46435 2010-09-04  Bruno Haible  <bruno@clisp.org>
46437         Set PATH_SEPARATOR the same way autoconf does.
46438         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
46439         the value of PATH_SEPARATOR the same way autoconf-generated configure
46440         scripts do.
46441         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
46442         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
46444 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
46446         Set PATH_SEPARATOR the same way autoconf does.
46447         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
46448         the same way autoconf-generated configure scripts do.
46449         * posix-modules: Likewise.
46451 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
46453         hash: fix safe_hasher const typo
46454         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
46455         const; otherwise, there is a type error later.
46457 2010-09-02  Jim Meyering  <meyering@redhat.com>
46459         test-update-copyright.sh: require perl 5.8.0
46460         * tests/test-update-copyright.sh: Require 5.8.0,
46461         which Tom G. Christensen has confirmed is adequate,
46462         while 5.6.1 is not.
46464 2010-09-02  Eric Blake  <eblake@redhat.com>
46466         tests: init.sh improvements for re-exec'ing with zsh
46467         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
46468         -vx through shell re-exec.
46469         Reported by Tom G. Christensen.
46471         wctype: fix typo in previous commit
46472         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
46473         Reported by Ludovic Courtès.
46475 2010-09-02  Jim Meyering  <meyering@redhat.com>
46477         test-update-copyright.sh: skip test if Perl is too old
46478         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
46479         Reported by Tom G. Christensen.
46481 2010-09-02  Bruno Haible  <bruno@clisp.org>
46483         wctype: Avoid compilation error on IRIX 6.5.30.
46484         * lib/wctype.in.h (iswblank): Declare with a replacement if
46485         REPLACE_ISWBLANK is set.
46486         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
46487         declared. Set REPLACE_ISWBLANK.
46488         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
46489         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
46490         * doc/posix-headers/wctype.texi: Likewise.
46491         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46493 2010-09-01  Bruno Haible  <bruno@clisp.org>
46495         New module 'socketlib'.
46496         * modules/socketlib: New file.
46497         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
46498         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
46499         * modules/sockets (Depends-on): Add socketlib.
46500         Suggested by Sam Steingold <sds@gnu.org>.
46502 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46504         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
46506         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
46507         when one needs search access to a directory but not read access.
46508         On systems where it is available, it works in some cases where
46509         O_RDONLY does not, namely on directories that are searchable but
46510         not readable, and which need only to be searchable.  If O_SEARCH
46511         is not available, fall back to the traditional method of using
46512         O_RDONLY.
46514         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
46515         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
46516         when opening a directory that needs only to be searchable.
46517         * lib/chdir-safer.c (chdir_no_follow): Likewise.
46518         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
46519         * lib/openat-proc.c (openat_proc_name): Likewise.
46520         * lib/openat.c (openat_needs_fchdir): Likewise.
46521         * lib/save-cwd.c (save_cwd): Likewise.
46522         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
46524 2010-08-28  Bruno Haible  <bruno@clisp.org>
46526         New module 'host-cpu-c-abi'.
46527         * modules/host-cpu-c-abi: New file.
46528         * m4/host-cpu-c-abi.m4: New file, based on part of
46529         clisp/src/m4/general.m4.
46530         Requested by Sam Steingold <sds@gnu.org>.
46532 2010-08-31  Eric Blake  <eblake@redhat.com>
46533         and Jim Meyering  <meyering@redhat.com>
46535         hash: factor, and guard against misbehaving hasher function
46536         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
46537         of table->hasher's return value.  Also protect against a hash value
46538         so large that adding it to table->bucket results in a NULL pointer.
46539         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
46540         Use it in place of open-coded check-and-abort.
46542 2010-08-30  Bruno Haible  <bruno@clisp.org>
46544         hash: silence spurious clang warning
46545         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
46546         Reported by Eric Blake.
46548 2010-08-30  Eric Blake  <eblake@redhat.com>
46550         strstr, memmem, strcasestr: avoid leaked shell message
46551         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
46552         FreeBSD.
46553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46554         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46556         tests: silence clang warning
46557         * tests/test-malloca.c (do_allocation): Avoid dead store.
46559 2010-08-29  Bruno Haible  <bruno@clisp.org>
46561         gettext: Fix recent mistake.
46562         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
46564 2010-08-29  Bruno Haible  <bruno@clisp.org>
46566         selinux-h: Offer a --without-selinux option.
46567         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
46568         --without-selinux was specified, skip all tests and define
46569         HAVE_SELINUX_SELINUX_H to 0.
46570         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
46571         set LIB_SELINUX to empty.
46572         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
46573         gl_LIBSELINUX. If --without-selinux was specified, replace
46574         selinux/context.h.
46575         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
46577 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46578             Bruno Haible  <bruno@clisp.org>
46580         Make the module 'realloc-gnu' work again on AIX and OSF/1.
46581         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
46582         of HAVE_REALLOC.
46583         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
46584         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
46585         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
46586         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
46588 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46589             Bruno Haible  <bruno@clisp.org>
46591         Make the module 'calloc-gnu' work again on AIX and OSF/1.
46592         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
46593         HAVE_CALLOC.
46594         * lib/xmalloc.c: Update accordingly.
46595         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
46596         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
46597         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
46599 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46600             Bruno Haible  <bruno@clisp.org>
46602         Make the module 'malloc-gnu' work again on AIX and OSF/1.
46603         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
46604         HAVE_MALLOC.
46605         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
46606         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
46607         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
46609 2010-08-29  Bruno Haible  <bruno@clisp.org>
46611         Update modules list.
46612         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46613         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
46614         (String handling <string.h>): Add astrxfrm.
46615         (File system functions): Add readlinkat.
46617 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46619         Tests for module 'realloc-gnu'.
46620         * modules/realloc-gnu-tests: New file.
46621         * tests/test-realloc-gnu.c: New file.
46623         Tests for module 'calloc-gnu'.
46624         * modules/calloc-gnu-tests: New file.
46625         * tests/test-calloc-gnu.c: New file.
46627         Tests for module 'malloc-gnu'.
46628         * modules/malloc-gnu-tests: New file.
46629         * tests/test-malloc-gnu.c: New file.
46631 2010-08-28  Bruno Haible  <bruno@clisp.org>
46633         Rename module 'realloc' -> 'realloc-gnu'.
46634         * modules/realloc-gnu: New file, copied from modules/realloc.
46635         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
46636         obsolete.
46637         * modules/mgetgroups (Depends-on): Update.
46638         * doc/posix-functions/realloc.texi: Update.
46639         * NEWS: Mention the change.
46641         Rename module 'calloc' -> 'calloc-gnu'.
46642         * modules/calloc-gnu: New file, copied from modules/calloc.
46643         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
46644         obsolete.
46645         * doc/posix-functions/calloc.texi: Update.
46646         * NEWS: Mention the change.
46648         Rename module 'malloc' -> 'malloc-gnu'.
46649         * modules/malloc-gnu: New file, copied from modules/malloc.
46650         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
46651         obsolete.
46652         * modules/argp (Depends-on): Update.
46653         * modules/regex (Depends-on): Update.
46654         * doc/posix-functions/malloc.texi: Update.
46655         * NEWS: Mention the change.
46657 2010-08-28  Eric Blake  <eblake@redhat.com>
46659         pread, pwrite: add missing dependency
46660         * modules/pread (Depends-on): Add extensions.
46661         * modules/pwrite (Depends-on): Likewise.
46663 2010-08-28  Bruno Haible  <bruno@clisp.org>
46665         unistr/u*-strchr: Fix tests dependencies.
46666         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
46667         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
46668         Reported by Ian Beckwith <ianb@erislabs.net>.
46670 2010-08-28  Bruno Haible  <bruno@clisp.org>
46672         read-file: Don't occupy too much unused memory.
46673         * lib/read-file.c (fread_file): Shrink the buffer at the end.
46675 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
46676             Eric Blake  <eblake@redhat.com>
46677             Bruno Haible  <bruno@clisp.org>
46679         read-file: Avoid memory reallocations with regular files.
46680         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
46681         (fread_file): With regular files, use the remaining length as the
46682         initial buffer size.  Check against overflow.
46683         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
46684         sys_stat.
46686 2010-08-28  Bruno Haible  <bruno@clisp.org>
46688         ftello: Relax license.
46689         * modules/ftello (License): Relax to LGPLv2+.
46690         Reported by Eric Blake.
46692 2010-08-28  Bruno Haible  <bruno@clisp.org>
46694         Avoid relocwrapper link errors due to gnulib replacement functions.
46695         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
46696         function.
46697         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46699 2010-08-28  Bruno Haible  <bruno@clisp.org>
46701         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
46702         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
46703         defined.
46704         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
46705         Suggested by Eric Blake.
46707 2010-08-28  Bruno Haible  <bruno@clisp.org>
46709         sys_socket, netdb: Ensure socklen_t gets defined.
46710         * modules/sys_socket (Depends-on): Add socklen.
46711         * modules/netdb (Depends-on): Likewise.
46712         * modules/getaddrinfo (Depends-on): Remove socklen.
46713         * modules/getsockopt (Depends-on): Likewise.
46714         * modules/setsockopt (Depends-on): Likewise.
46715         * tests/test-sys_socket.c: Check that socklen_t is defined.
46716         * tests/test-netdb.c: Likewise.
46717         * m4/socklen.m4: Update comments.
46718         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46720 2010-08-27  Eric Blake  <eblake@redhat.com>
46722         login_tty: add missing dependency
46723         * modules/login_tty (Depends-on): Add pty.
46725 2010-08-26  Eric Blake  <eblake@redhat.com>
46727         lib-symbol-versions: fix m4 quoting
46728         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
46729         format for AC_LINK_IFELSE.
46731         glob: fix compile test
46732         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
46734         btowc: fix missing file
46735         * modules/btowc (Files): Also ship locale-fr.m4.
46737         lseek: fix link test
46738         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
46739         AC_LINK_IFELSE.
46741         include_next: silence autoconf 2.68 warning
46742         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
46743         AC_COMPILE_IFELSE as special.
46744         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
46745         autoconf < 2.68.
46747         acl: fix compilation test
46748         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
46749         AC_COMPILE_IFELSE.
46751 2010-08-26  Bruno Haible  <bruno@clisp.org>
46753         Modernize AC_TRY_RUN invocations.
46754         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
46755         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
46756         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
46757         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
46758         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
46759         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
46760         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
46761         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
46762         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
46763         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
46764         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
46765         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
46766         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
46767         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46768         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
46769         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
46770         gl_MBRLEN_NUL_RETVAL): Likewise.
46771         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46772         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
46773         Likewise.
46774         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46775         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46776         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
46777         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
46778         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
46779         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
46780         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
46781         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
46782         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
46783         Likewise.
46784         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
46785         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
46786         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46787         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
46788         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
46789         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
46790         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
46791         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
46792         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46793         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46795 2010-08-26  Bruno Haible  <bruno@clisp.org>
46797         Modernize AC_TRY_LINK invocations.
46798         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
46799         AC_TRY_LINK.
46800         * m4/argp.m4 (gl_ARGP): Likewise.
46801         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
46802         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
46803         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
46804         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46805         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46806         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
46807         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
46808         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
46809         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46810         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46811         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46812         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
46813         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
46814         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
46815         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
46816         * m4/hostent.m4 (gl_HOSTENT): Likewise.
46817         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
46818         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
46819         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
46820         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
46821         Likewise.
46822         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
46823         Likewise.
46824         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
46825         Likewise.
46826         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
46827         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
46828         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
46829         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
46830         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
46831         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
46832         * m4/servent.m4 (gl_SERVENT): Likewise.
46833         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
46834         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
46835         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
46836         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
46837         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
46838         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
46839         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
46840         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
46841         * modules/tsearch-tests (configure.ac): Likewise.
46843 2010-08-26  Bruno Haible  <bruno@clisp.org>
46845         Modernize AC_TRY_COMPILE invocations.
46846         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
46847         AC_TRY_COMPILE.
46848         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
46849         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
46850         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
46851         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
46852         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
46853         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
46854         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
46855         * m4/lock.m4 (gl_LOCK): Likewise.
46856         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
46857         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46858         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
46859         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
46860         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
46861         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
46862         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46863         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
46864         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
46865         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
46866         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
46867         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46868         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
46869         extraneous semicolon.
46871 2010-08-26  Jim Meyering  <meyering@redhat.com>
46873         stat-time: relax license LGPL
46874         * modules/stat-time (License): Change from GPL to LGPL,
46875         with consent from all contributors, for use in libguile.
46876         Requested by Ludovic Courtès.
46878 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
46880         poll: return immediately on POLLHUP.
46881         * lib/poll.c (poll): Always set timeout before wait_timeout is
46882         computed.
46884 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46886         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
46887         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
46888         rmdir ("dir/.//"), unlinkat.
46890 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
46892         stdbool: avoid spurious failure with modern xlc
46893         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
46895 2010-08-24  Bruno Haible  <bruno@clisp.org>
46897         getloadavg: simplify code
46898         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
46899         gl_have_func. Update comments.
46901 2010-08-24  Eric Blake  <eblake@redhat.com>
46903         getloadavg: don't define SVR4 on cygwin
46904         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
46905         only define SVR4 when -lkvm is required.
46906         Reported by Yaakov Selkowitz.
46908 2010-08-24  Bruno Haible  <bruno@clisp.org>
46910         priv-set: fix comment
46911         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
46913 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
46915         priv-set: fix comments
46916         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
46917         to match code, as suggested by David Bartley in:
46918         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
46920 2010-08-23  Eric Blake  <eblake@redhat.com>
46922         stdbool: avoid rejecting clang
46923         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
46924         * tests/test-stdbool.c: Enable more tests if using the system
46925         <stdbool.h> instead of the gnulib replacement.
46926         (main): Move xlc bug test to a runtime test for all compilers.
46927         Reported by Anders Kaseorg.
46929         argz: fix shell quoting issue
46930         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
46931         Reported by Charles Wilson.
46933 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
46934             Erik Faye-Lund <kusmabite@gmail.com>
46936         poll, select: handle ERROR_BROKEN_PIPE.
46937         * lib/poll.c (win32_compute_revents): Return POLLHUP when
46938         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
46939         * lib/select.c (win32_compute_revents): Do not mark a pipe
46940         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
46942 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
46944         fts: allow compilation with C++
46945         * lib/fts_.h: Specify extern "C" linkage with C++.
46947 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46949         Fix gnulib-tool sed script de-commentation for AIX sed.
46950         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
46951         sed.
46953 2010-08-17  Eric Blake  <eblake@redhat.com>
46955         test-stddef: test for (some) offsetof bugs
46956         * tests/test-stddef.c: Enhance test to ensure correct type of
46957         offsetof.
46958         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
46959         that we are not fixing at this time.
46961 2010-08-15  Bruno Haible  <bruno@clisp.org>
46963         stpncpy: Allow stpncpy to be defined as a macro.
46964         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
46965         if it's already correctly declared.
46966         * lib/string.in.h (stpncpy): Undefine before redefining.
46967         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
46969 2010-08-14  Bruno Haible  <bruno@clisp.org>
46971         Rename module 'memxfrm' to 'amemxfrm'.
46972         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
46973         (amemxfrm): Renamed from memxfrm.
46974         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
46975         (amemxfrm): Renamed from memxfrm.
46976         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
46977         * NEWS: Mention the change.
46978         * MODULES.html.sh (String handling <string.h>): Update.
46979         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
46980         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
46981         * lib/unicase/u16-casexfrm.c: Likewise.
46982         * lib/unicase/u32-casexfrm.c: Likewise.
46983         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
46984         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
46985         * lib/uninorm/u16-normxfrm.c: Likewise.
46986         * lib/uninorm/u32-normxfrm.c: Likewise.
46987         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
46988         memxfrm.
46989         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
46990         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
46991         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
46992         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
46993         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
46994         Suggested by Paul Eggert.
46996 2010-08-14  Bruno Haible  <bruno@clisp.org>
46998         Tests for module 'astrxfrm'.
46999         * modules/astrxfrm-tests: New file.
47000         * tests/test-astrxfrm.c: New file.
47002         New module 'astrxfrm'.
47003         * lib/astrxfrm.h: New file.
47004         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
47005         * modules/astrxfrm: New file.
47007 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
47009         regex: Tweak doc.
47010         * doc/regex.texi (Overview): Don't mention regex.c.
47011         (GNU Regular Expression Compiling): Likewise.
47012         (Match-end-of-line Operator): Mention 'not_eol'.
47014 2010-08-14  Brian Gough  <bjg@gnu.org>
47015             Bruno Haible  <bruno@clisp.org>
47017         git-merge-changelog: add doc relating to use with bzr and hg.
47018         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
47020 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
47022         pthread: fix pthread.h creation for srcdir != builddir
47023         * modules/pthread (Makefile.am): Fix the rule to work also in a
47024         non-srcdir build.
47026 2010-08-13  Karl Berry  <karl@gnu.org>
47028         * doc/regex.texi (Predefined Syntaxes): @smallexample.
47029         * doc/posix-*/*: force line break before @url of POSIX
47030         specifications.
47031         Suggested by Werner Lemberg.
47033 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47035         strtod: fix const diagnostic
47036         * lib/strtod.c (strtod): Don't assign const char * to char *,
47037         as this elicits a warning from GCC when warnings are enabled.
47039 2010-08-10  Pádraig Brady  <P@draigbrady.com>
47040         and Eric Blake  <eblake@redhat.com>
47042         copy-acl: ignore ENOTSUP on HP-UX
47043         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
47044         so that it is available for HP-UX.
47045         * lib/copy-acl.c (qcopy_acl): Use it.
47046         Reported by Patrick M. Callahan.
47048 2010-08-10  Eric Blake  <eblake@redhat.com>
47050         open, chown: relax license
47051         * modules/open (License): Change to LGPLv2+, with consent by all
47052         authors, for use in augeas.
47053         * modules/chown (License): Likewise.
47054         * modules/lchown (Likewise): Likewise.
47055         Requested by Adam Stokes.
47057 2010-08-09  Karl Berry  <karl@gnu.org>
47059         * build-aux/ar-lib: new file, import from Automake.
47060         * config/srclist.txt: autocheck for updates.
47062 2010-08-09  Eric Blake  <eblake@redhat.com>
47064         readlinkat: adjust client modules
47065         * modules/areadlinkat (Depends-on): Use readlinkat, not
47066         symlinkat.
47067         * modules/areadlinkat-with-size (Depends-on): Likewise.
47069         mknod: be more vocal about danger of running tests as root
47070         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
47071         root, since that is just asking for problems.
47072         Suggested by Bruno Haible, based on a report by Rainer Tammer.
47074         readlinkat: split into its own module
47075         * modules/symlinkat: Split readlinkat...
47076         * modules/readlinkat: ...into separate module.
47077         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
47078         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
47079         * lib/symlinkat.c (readlinkat): Move...
47080         * lib/readlinkat.c: ...into new file.
47081         * modules/symlinkat-tests: Split readlinkat test...
47082         * modules/readlinkat-tests: ...into separate module.
47083         * tests/test-symlinkat.c: Split...
47084         * tests/test-readlinkat.c: ...into new file.
47085         * NEWS: Document the split.
47086         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
47087         * lib/unistd.in.h (readlinkat): Likewise.
47088         Suggested by Bruno Haible.
47090 2010-08-08  Bruno Haible  <bruno@clisp.org>
47092         memxfrm: Speed up.
47093         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
47094         that usually only one call to strxfrm is necessary for each string
47095         part.
47096         Reported by Paul Eggert <eggert@cs.ucla.edu>.
47098 2010-08-07  Karl Berry  <karl@gnu.org>
47100         * doc/posix-headers/limits.texi,
47101         * doc/posix-functions/malloc.texi,
47102         * doc/posix-functions/strsignal.texi: missing @item.
47103         * doc/ld-version-script.texi: spurious leading i.
47104         * doc/regex.texi (Interval Operators): no commas inside @var.
47106 2010-08-01  Bruno Haible  <bruno@clisp.org>
47108         Integrate the regex documentation.
47109         * doc/gnulib.texi: Define 'cn' index.
47110         (Regular expressions): New a chapter that includes regex.texi and
47111         regexprops-generic.texi.
47112         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
47113         syntax.
47115         Whitespace cleanup.
47116         * doc/regex.texi: Remove trailing spaces.
47118         Add regex documentation.
47119         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
47120         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
47121         Written by Kathy A. Hargreaves and Karl Berry.
47123 2010-08-01  Bruno Haible  <bruno@clisp.org>
47125         link: Update documentation.
47126         * doc/posix-functions/link.texi: Update regarding Solaris.
47128 2010-07-31  Bruno Haible  <bruno@clisp.org>
47130         Update modules list.
47131         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
47132         (String handling <string.h>): Add memcmp2, memxfrm.
47133         (Container data structures): Add xlist, xsublist, xoset.
47134         (Core language properties): Add alignof, unused-parameter.
47135         (Process control, Numeric conversion functions <stdlib.h>): Renamed
47136         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
47137         (Unibyte characters <ctype.h>): New section.
47138         (String handling <string.h>): New section.
47139         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
47140         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
47141         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
47142         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
47143         tan, tanh, tanl, y0, y1, yn.
47144         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
47145         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
47146         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
47147         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
47148         unlockpt, vdprintf, vdprintf-posix.
47149         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
47150         (File system functions): Add concat-filename, sys_file, sys_ioctl,
47151         xconcat-filename.
47152         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
47153         getdtablesize, pipe2, pipe2-safer.
47154         (Security): New section.
47155         (Networking functions): Add accept4.
47156         (Signal handling): Add sigpipe.
47157         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
47158         mbmemcasecoll.
47159         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
47160         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
47161         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
47162         pipe-filter-ii.
47163         (Misc): Add argp-version-etc, login_tty, parse-duration.
47165 2010-07-31  Bruno Haible  <bruno@clisp.org>
47167         Improve doc in MODULES.html.
47168         * modules/linkat (Description): Add the word "function".
47169         * modules/mkfifo (Description): Likewise.
47170         * modules/mknod (Description): Likewise.
47171         * modules/remove (Description): Likewise.
47172         * modules/renameat (Description): Likewise.
47173         * modules/stat (Description): Likewise.
47174         * modules/symlink (Description): Likewise.
47175         * modules/unlink (Description): Likewise.
47177 2010-07-31  Bruno Haible  <bruno@clisp.org>
47179         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
47180         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
47181         option --enable/disable-c++ instead of --enable/disable-cxx.
47182         * NEWS: Mention the change.
47184 2010-07-31  Bruno Haible  <bruno@clisp.org>
47186         readlink, areadlink: Relax test a bit.
47187         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
47188         alternative to ENOTDIR.
47189         * tests/test-areadlink.h (test_areadlink): Likewise.
47190         Reported by Rainer Tammer.
47192 2010-07-31  Bruno Haible  <bruno@clisp.org>
47194         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
47195         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
47196         character, perform the search using U_STRCHR.
47197         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
47198         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
47199         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
47200         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
47201         Suggested by Paolo Bonzini.
47203 2010-07-31  Bruno Haible  <bruno@clisp.org>
47205         unistr/u*-strstr: Fix dependencies.
47206         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
47207         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
47208         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
47210 2010-07-31  Bruno Haible  <bruno@clisp.org>
47212         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
47213         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
47214         the beginning of the loop.
47215         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
47216         cases in 'switch' statement.
47218         unistr/u8-strchr: Fix several bugs.
47219         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
47220         the string. When not found, return NULL, not a pointer near the end.
47222         More tests for unistr/u8-strchr.
47223         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
47224         that the function does not read past the first occurrence of the byte
47225         being searched.
47226         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
47227         * tests/unistr/test-u16-strchr.c (main): New function.
47228         * tests/unistr/test-u32-strchr.c (main): New function.
47230 2010-07-31  Bruno Haible  <bruno@clisp.org>
47232         posix-modules: Ignore backup files of documentation files.
47233         * posix-modules: grep only through files named *.texi.
47235 2010-07-31  Bruno Haible  <bruno@clisp.org>
47237         symlinkat: Fix documentation.
47238         * doc/posix-functions/readlinkat.texi: Fix module name.
47240 2010-07-31  Bruno Haible  <bruno@clisp.org>
47242         fchownat: Replace also when chown has the trailing slash bug.
47243         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
47244         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
47245         introduced on 2010-04-10.
47246         Reported by Rainer Tammer.
47248 2010-07-31  Bruno Haible  <bruno@clisp.org>
47250         linkat: Work around AIX 7.1 bug.
47251         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
47252         whether linkat handles trailing slash correctly. If not, replace linkat
47253         and define LINKAT_TRAILING_SLASH_BUG.
47254         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
47255         check whether (fd1,file1) points to a directory if file1 or file2 ends
47256         in a slash. Code taken from lib/link.c.
47257         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
47258         Reported by Rainer Tammer.
47260 2010-07-31  Bruno Haible  <bruno@clisp.org>
47262         Correctly determine whether pow is available in libc on AIX 7 with xlc.
47263         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
47264         This disables an xlc optimization that was causing wrong test results.
47265         Reported by Rainer Tammer.
47267 2010-07-31  Bruno Haible  <bruno@clisp.org>
47269         iconv: Work around AIX 6.1..7.1 bug.
47270         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
47271         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
47272         cross-compiling, guess no on all versions of AIX.
47273         Reported by Rainer Tammer.
47275 2010-07-31  Bruno Haible  <bruno@clisp.org>
47277         readlink: Relax test a bit.
47278         * tests/test-readlink.h (test_readlink): Allow different errno value
47279         when readlink is called with a file name that ends in / and refers to
47280         a file.
47281         Suggested by Eric Blake.
47282         Reported by Rainer Tammer.
47284 2010-07-31  Bruno Haible  <bruno@clisp.org>
47286         copysign: Does not require -lm on glibc systems.
47287         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
47288         gl_COMMON_DOUBLE_MATHFUNC.
47289         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
47291 2010-07-31  Bruno Haible  <bruno@clisp.org>
47293         duplocale: Work around AIX 7.1 bug.
47294         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
47295         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
47296         * lib/duplocale.c (rpl_duplocale): Update comment.
47297         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
47298         Reported by Rainer Tammer.
47300 2010-07-30  Bruno Haible  <bruno@clisp.org>
47302         dirfd: Avoid link error on AIX 7.1.
47303         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
47304         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
47305         exist, set REPLACE_DIRFD.
47306         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
47307         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
47308         * doc/posix-functions/dirfd.texi: Update.
47309         Reported by Rainer Tammer.
47311 2010-07-30  Eric Blake  <eblake@redhat.com>
47313         strtod: next round of AIX fixes
47314         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
47315         exponent.
47316         * tests/test-strtod.c (main): Enhance tests.
47317         * doc/posix-functions/strtod.texi (strtod): Document next bug.
47318         Reported by Rainer Tammer.
47320         futimens: fix configure check
47321         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
47322         Reported by Bruno Haible.
47324 2010-07-30  Bruno Haible  <bruno@clisp.org>
47326         getline: Update regarding AIX.
47327         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
47328         Reported by Rainer Tammer.
47330 2010-07-30  Bruno Haible  <bruno@clisp.org>
47332         wcwidth: Drop replacement on AIX 7.
47333         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
47334         AIX 7.
47335         Reported by Rainer Tammer.
47337 2010-07-30  Bruno Haible  <bruno@clisp.org>
47339         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
47340         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
47341         a 'char *'.
47342         Reported by Rainer Tammer.
47344 2010-07-30  Bruno Haible  <bruno@clisp.org>
47346         unlink: Update regarding AIX.
47347         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
47348         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
47349         Reported by Rainer Tammer.
47351 2010-07-30  Bruno Haible  <bruno@clisp.org>
47353         symlink: Update regarding AIX.
47354         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
47355         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
47356         Reported by Rainer Tammer.
47358 2010-07-30  Bruno Haible  <bruno@clisp.org>
47360         strndup: Update regarding AIX.
47361         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
47362         AIX 7.
47363         Reported by Rainer Tammer.
47365 2010-07-30  Bruno Haible  <bruno@clisp.org>
47367         stat: Update regarding AIX.
47368         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
47369         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
47370         Reported by Rainer Tammer.
47372 2010-07-30  Bruno Haible  <bruno@clisp.org>
47374         truncl: Fix autoconf test.
47375         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
47376         whether truncl works.
47377         Reported by Rainer Tammer.
47379 2010-07-30  Bruno Haible  <bruno@clisp.org>
47381         round: Update regarding AIX.
47382         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
47383         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
47384         Reported by Rainer Tammer.
47386 2010-07-30  Bruno Haible  <bruno@clisp.org>
47388         rename: Update regarding AIX.
47389         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
47390         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
47391         Reported by Rainer Tammer.
47393 2010-07-30  Bruno Haible  <bruno@clisp.org>
47395         printf.m4: Update regarding AIX.
47396         * m4/printf.m4: Update comments regarding AIX.
47397         Reported by Rainer Tammer.
47399 2010-07-30  Bruno Haible  <bruno@clisp.org>
47401         iconv: Update regarding AIX.
47402         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
47403         AIX 7.
47404         Reported by Rainer Tammer.
47406 2010-07-30  Bruno Haible  <bruno@clisp.org>
47408         getopt: Update regarding AIX.
47409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
47410         no on AIX.
47411         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
47412         Reported by Rainer Tammer.
47414 2010-07-30  Bruno Haible  <bruno@clisp.org>
47416         ldexpl; Update regarding AIX.
47417         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
47418         on AIX 7.
47419         Reported by Rainer Tammer.
47421 2010-07-30  Bruno Haible  <bruno@clisp.org>
47423         frexpl: Update regarding AIX.
47424         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
47425         on AIX 7.
47426         Reported by Rainer Tammer.
47428 2010-07-30  Bruno Haible  <bruno@clisp.org>
47430         open, fopen: Update regarding AIX.
47431         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
47432         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
47433         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
47434         * doc/posix-functions/fopen.texi: Likewise.
47435         Reported by Rainer Tammer.
47437 2010-07-30  Bruno Haible  <bruno@clisp.org>
47439         chown: Update doc regarding AIX.
47440         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
47441         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
47442         Reported by Rainer Tammer.
47444 2010-07-30  Eric Blake  <eblake@redhat.com>
47446         strtod: fix bug in replacement function on AIX
47447         * lib/strtod.c (strtod): Special case broken "0x" parse in
47448         underlying strtod.
47449         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
47450         * doc/posix-functions/strtod.texi (strtod): Likewise.
47451         Reported by Rainer Tammer.
47453 2010-07-30  Bruno Haible  <bruno@clisp.org>
47455         mbrlen: Fix cross-compilation guess for AIX.
47456         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
47457         guess. Leftover from 2008-12-22.
47459 2010-07-30  Bruno Haible  <bruno@clisp.org>
47461         mbrtowc: Fix cross-compilation guess for AIX.
47462         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
47463         guess. Leftover from 2008-12-21.
47465 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
47467         init.sh: work around trap limitation of some shells
47468         * tests/init.sh (setup_): Move exit trap outside of shell function.
47470 2010-07-29  Eric Blake  <eblake@redhat.com>
47472         strtod: aid debugging
47473         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
47474         understanding why strtod is rejected.
47476 2010-07-28  Bruno Haible  <bruno@clisp.org>
47478         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
47479         * lib/unistr/u8-chr.c: Include <string.h>.
47480         * tests/unistr/test-u8-chr.c: Likewise.
47481         * tests/unistr/test-u16-chr.c: Likewise.
47482         * tests/unistr/test-u32-chr.c: Likewise.
47483         * tests/unistr/test-u8-strchr.c: Likewise.
47484         * tests/unistr/test-u16-strchr.c: Likewise.
47485         * tests/unistr/test-u32-strchr.c: Likewise.
47486         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
47487         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
47488         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
47489         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
47491 2010-07-28  Bruno Haible  <bruno@clisp.org>
47493         Use spaces for indentation, not tabs.
47494         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
47496 2010-07-27  Bruno Haible  <bruno@clisp.org>
47498         mbspcasecmp: Fix function specification.
47499         * lib/string.in.h (mbspcasecmp): Fix specification comment.
47500         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
47501         Reported by Eric Blake <eblake@redhat.com>.
47503 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
47505         timespec: use cast and not conditional, as truncation isn't possible
47506         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
47507         instead of a conditional.  Comment about the situation in more detail.
47508         This undoes most of the 2009-10-29 patch.
47510 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
47512         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
47513         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
47514         * lib/unistr/u8-strchr.c: Likewise.
47515         * modules/unistr/u8-chr: Depend on memchr.
47517         unistr/u*-strchr: add tests
47518         * modules/unistr/u8-strchr-tests: New file.
47519         * modules/unistr/u16-strchr-tests: New file.
47520         * modules/unistr/u32-strchr-tests: New file.
47521         * tests/unistr/test-strchr.h: New file.
47522         * tests/unistr/test-u8-strchr.c: New file.
47523         * tests/unistr/test-u16-strchr.c: New file.
47524         * tests/unistr/test-u32-strchr.c: New file.
47526         unistr/u*-chr: test multibyte sequences more
47527         * tests/unistr/test-chr.h: Do complete testing of the characters in the
47528         test vector.
47529         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
47530         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
47531         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
47533         unistr/u*-chr: test multibyte sequences
47534         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
47536         unistr/u*-chr: prepare for multibyte tests
47537         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
47538         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
47539         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
47540         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
47541         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
47542         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
47544 2010-07-18  Bruno Haible  <bruno@clisp.org>
47546         unistr/u8-strchr: Optimize non-ASCII argument case.
47547         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
47548         because the first byte often matches anyway.
47549         Reported by Pádraig Brady <P@draigbrady.com>.
47551 2010-07-15  Karl Berry  <karl@gnu.org>
47553         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
47555 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
47557         getcwd: on Solaris, work better if ancestors are inaccessible
47558         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
47559         buffer and size, try again with a large buffer.  This works better
47560         on Solaris, since its getcwd succeeds even if the path to the root
47561         is inaccessible, and this is helpful in common cases such as .zfs
47562         hidden directories.  Problem reported by J Chapman Flack in
47563         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
47564         Use system getcwd if it's declared, not merely if it's partly
47565         working; use the partly-working test only to avoid needless effort
47566         if the system getcwd fails.
47567         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
47568         comment that was already obsolete and is now even more obsolete.
47569         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
47570         now might call strdup.
47572 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
47574         pthread: Add enough so that coreutils/src/sort.c compiles.
47575         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
47576         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
47577         gnulib. Include <sched.h> and <time.h>, as per POSIX.
47578         Include <sys/types.h>, in case it defines pthread_t.
47579         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
47580         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
47581         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
47582         (pthread_rwlockattr_t, pthread_spinlock_t):
47583         New typedefs, if HAVE_PTHREAD_T is not defined.
47584         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
47585         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
47586         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
47587         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
47588         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
47589         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
47590         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
47591         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
47592         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
47593         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
47594         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
47595         New macros.
47596         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
47597         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
47598         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
47599         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
47600         (pthread_spin_unlock): New dummy functions.
47601         (pthread_create): Return EAGAIN; don't set errno.
47602         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
47603         require AC_C_INLINE.
47604         * modules/pthread (Depends-on): Add sched, time.
47605         (pthread.h): Use AM_V_GEN.
47607 2010-07-13  Bruno Haible  <bruno@clisp.org>
47609         striconveh: Don't malloc memory if the result buffer is sufficient.
47610         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
47611         buffer if its size is sufficient.
47612         Reported by Ludovic Courtès <ludo@gnu.org>.
47614 2010-07-13  Bruno Haible  <bruno@clisp.org>
47616         strtod: Add safety check.
47617         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
47619 2010-07-12  Bruno Haible  <bruno@clisp.org>
47621         Unify tests that set gl_cv_func_ldexpl_no_libm.
47622         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
47623         gl_FUNC_LDEXPL.
47624         (gl_FUNC_LDEXPL): Invoke it.
47625         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47627 2010-07-12  Bruno Haible  <bruno@clisp.org>
47629         Unify tests that set gl_cv_func_ldexp_no_libm.
47630         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
47631         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
47632         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
47633         (configure.ac): Simply invoke gl_FUNC_LDEXP.
47634         * modules/strtod (Files): Add m4/ldexp.m4.
47636 2010-07-12  Bruno Haible  <bruno@clisp.org>
47638         Unify tests that set gl_cv_func_frexpl_no_libm.
47639         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
47640         gl_FUNC_FREXPL_NO_LIBM.
47641         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
47642         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47644 2010-07-12  Bruno Haible  <bruno@clisp.org>
47646         Unify tests that set gl_cv_func_frexp_no_libm.
47647         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
47648         gl_FUNC_FREXP_NO_LIBM.
47649         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
47650         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
47652 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
47654         memcoll: clarify sizes versus lengths, document better, and tweak perf
47655         * lib/memcoll.c (strcoll_loop, memcoll0):
47656         Improve quality of descriptive comments.  Name variables
47657         consistently as to whether they are lengths (which do not include
47658         terminating null) versus sizes (which do).
47659         * lib/xmemcoll.c (xmemcoll0): Likewise.
47660         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
47661         returned when s1size == 0; this is easier to compile and saves
47662         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
47664 2010-07-12  Bruno Haible  <bruno@clisp.org>
47666         Tests for module '_Exit'.
47667         * modules/_Exit-tests: New file.
47668         * tests/test-_Exit.sh: New file.
47669         * tests/test-_Exit.c: New file.
47671         New module '_Exit'.
47672         * lib/stdlib.in.h (__attribute__): New macro.
47673         (_Exit): New declaration.
47674         * lib/_Exit.c: New file.
47675         * m4/_Exit.m4: New file.
47676         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
47677         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
47678         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
47679         * modules/_Exit: New file.
47680         * tests/test-stdlib-c++.cc (_Exit): Check signature.
47681         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
47683 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
47685         strtod: make it more-accurate typically, and don't require libm
47686         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
47687         Include limits.h.  Don't include string.h.
47688         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
47689         (locale_isspace): New function, so that no casts are needed to
47690         check whether *s is a space.
47691         (ldexp): Provide an unused dummy if not available.
47692         (scale_radix_exp, parse_number, underlying_strtod): New functions.
47693         (strtod): Use them.  This implementation prefers to use the
47694         underlying strtod if available, falling back on our own code
47695         only to fix known bugs.  This is more likely to produce an
47696         accurate result.  Also, it avoids the use of libm functions.
47697         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
47698         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
47699         was absent, but it caused a test failure with coreutils.
47700         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
47701         with libm.
47702         * modules/strtod (Makefile.am, Link): libm is no longer needed.
47703         * modules/strtod-tests (Makefile.am): Likewise.
47705 2010-07-11  Pádraig Brady  <P@draigBrady.com>
47706             Bruno Haible  <bruno@clisp.org>
47708         unistr/u8-strchr: Optimize ASCII argument case.
47709         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
47711 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
47713         (x)memcoll: minor tweaks
47714         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
47715         is after the type that it qualifies.
47716         (memcoll0): Likewise.
47717         * lib/memcoll.h (memcoll0): Likewise.
47718         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
47719         * lib/xmemcoll.h (xmemcoll0): Likewise.
47720         * lib/memcoll.c (memcoll0): Correct the comment.  This function
47721         differs from memcoll in that the NUL byte is part of the argument.
47722         Omit the abort-checks, as performance is a real issue here.  Plus,
47723         the checks were wrong anyway (an off-by-one error).  Omit local
47724         variable 'diff', as it's a bit clearer that way.
47725         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
47726         no longer needed.
47728 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
47730         (x)memcoll: speedup when input is known to be NUL delimited
47731         * lib/memcoll.c: Include stdlib.
47732         (memcoll0): New function.
47733         (strcoll_loop): New function, refactored for use in both memcoll
47734         and memcoll0.
47735         * lib/memcoll.h (memcoll0): Add prototype.
47736         * lib/xmemcoll.c (xmemcoll0): New function.
47737         (collate_error): New function, refactored for use in both xmemcoll
47738         and xmemcoll0.
47739         * lib/xmemcoll.h (xmemcoll0): Add prototype.
47740         * m4/memcoll.m4: add inline invocation.
47742 2010-07-06  Pádraig Brady  <P@draigBrady.com>
47744         * build-aux/bootstrap: Remove any local translations
47745         from the translation project synchronization directory,
47746         so that local only translations are not distributed.
47748 2010-07-04  Bruno Haible  <bruno@clisp.org>
47750         fsusage: Clarify which code applies to which platforms.
47751         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
47752         platform.
47753         * lib/fsusage.c (get_fs_usage): Likewise.
47755 2010-07-04  Bruno Haible  <bruno@clisp.org>
47757         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
47758         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
47759         Reported by Martin Lambers <marlam@marlam.de>.
47761 2010-07-04  Jim Meyering  <meyering@redhat.com>
47763         hash: once again explicitly disallow insertion of NULL
47764         * lib/hash.c (hash_insert0): Reinstate just-removed test:
47765         inserting a NULL pointer cannot work with these functions.
47766         Add a comment with details.
47767         This reverts part of the 2010-07-01 commit, 5bef1a35
47768         "hash: extend module to deal with non-pointer keys".
47770 2010-07-01  Bruno Haible  <bruno@clisp.org>
47772         stdbool: Update doc.
47773         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
47774         Info from Christian Weisgerber <naddy@mips.inka.de>.
47776 2010-07-01  Jim Meyering  <meyering@redhat.com>
47778         hash: extend module to deal with non-pointer keys
47779         * lib/hash.c (hash_insert0): New interface, much like hash_insert
47780         but that allows insertion of non-pointer entries.
47781         Do not disallow an ENTRY value of NULL.
47782         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
47783         * lib/hash.h (hash_insert0): Declare.
47785 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47787         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
47788         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
47789         not present (i.e. with autoconf 2.59 and when using gettextize, not
47790         gnulib), require AC_GNU_SOURCE instead.
47792 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
47794         idpriv-drop: Fix tests.
47795         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
47796         not to the test-idpriv-droptemp program.
47798 2010-06-29  Bruno Haible  <bruno@clisp.org>
47800         string: Fix syntax error with g++ 2.96.
47801         * lib/string.in.h (__pure__): Remove definition.
47802         (_GL_ATTRIBUTE_PURE): New macro.
47803         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
47804         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
47805         Reported by Christian Weisgerber <naddy@mips.inka.de>.
47807 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
47809         unitypes: Fix bug introduced on 2010-05-18.
47810         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
47812 2010-06-22  Eric Blake  <eblake@redhat.com>
47814         memmem: slight optimization
47815         * lib/str-two-way.h (critical_factorization): Update comments.
47816         Reduce work during factorization phase.
47817         Reported by Carlos Bueno <carlos@bueno.org>.
47819 2010-06-21  Bruno Haible  <bruno@clisp.org>
47821         Fix HAVE_CALLOC_POSIX misnomer.
47822         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
47823         !HAVE_CALLOC_POSIX.
47824         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
47825         HAVE_CALLOC_POSIX.
47826         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
47827         instead of HAVE_CALLOC_POSIX.
47828         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
47829         HAVE_CALLOC_POSIX.
47831         Use modern idiom for calloc() replacement.
47832         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
47833         AC_FUNC_CALLOC.
47834         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
47835         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
47836         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
47837         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
47838         (gl_REPLACE_CALLOC): New macro.
47840 2010-06-21  Bruno Haible  <bruno@clisp.org>
47842         Fix HAVE_REALLOC_POSIX misnomer.
47843         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
47844         !HAVE_REALLOC_POSIX.
47845         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
47846         HAVE_REALLOC_POSIX.
47847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
47848         instead of HAVE_REALLOC_POSIX.
47849         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
47850         HAVE_REALLOC_POSIX.
47852         Use modern idiom for realloc() replacement.
47853         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
47854         AC_FUNC_REALLOC.
47855         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
47856         Autoconf's AC_FUNC_REALLOC.
47857         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
47858         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
47859         (gl_REPLACE_REALLOC): New macro.
47860         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
47862 2010-06-21  Bruno Haible  <bruno@clisp.org>
47864         Fix HAVE_MALLOC_POSIX misnomer.
47865         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
47866         !HAVE_MALLOC_POSIX.
47867         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
47868         HAVE_MALLOC_POSIX.
47869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
47870         instead of HAVE_MALLOC_POSIX.
47871         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
47872         HAVE_MALLOC_POSIX.
47874         Use modern idiom for malloc() replacement.
47875         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
47876         AC_FUNC_MALLOC.
47877         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
47878         Autoconf's AC_FUNC_MALLOC.
47879         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
47880         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
47881         (gl_REPLACE_MALLOC): New macro.
47882         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
47884 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
47886         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
47887         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
47888         This macro takes 3 arguments, not 4.
47890 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
47892         ipv6: fix detection under mingw
47893         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
47894         in6_addr.
47896 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
47898         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
47899         that strtod() works when cross-compiling to a glibc version known
47900         to work.
47902 2010-06-15  Bruno Haible  <bruno@clisp.org>
47904         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
47906 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
47908         select: Correct timeout.
47909         * lib/select.c (rpl_select): Compute wait_timeout correctly.
47911 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47913         git-version-gen: init shell var to avoid env var influence
47914         * build-aux/git-version-gen (v): Init shell var to empty.
47916 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
47918         priv-set: Don't assume that priv.h exists merely because getppriv does.
47919         See Jan Andersen's bug report about AIX 5L in
47920         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
47921         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
47922         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
47923         * lib/priv-set.h: Likewise.
47924         * tests/test-priv-set.c: Likewise.
47926 2010-06-13  Bruno Haible  <bruno@clisp.org>
47928         relocatable: Make it easier to test whether to install wrappers.
47929         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
47930         RELOCATABLE_VIA_WRAPPER.
47932 2010-06-13  Bruno Haible  <bruno@clisp.org>
47934         gnulib-tool: Display specified modules and dependencies differently.
47935         * gnulib-tool (func_show_module_list): New function.
47936         (func_import, func_create_testdir): Invoke it.
47937         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47939 2010-06-13  Bruno Haible  <bruno@clisp.org>
47941         gnulib-tool: Align code of func_import and func_create_testdir.
47942         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
47943         specified_modules.
47945 2010-06-12  Jim Meyering  <meyering@redhat.com>
47947         test-inttostr: avoid spurious failure on Solaris 9
47948         * tests/test-inttostr.c (main): Skip the test when snprintf fails
47949         to accept "%ju".  Reported by Bruno Haible.
47951 2010-06-11  Jim Meyering  <meyering@redhat.com>
47953         test-sys_socket: mark variables as used more readably
47954         * tests/test-sys_socket.c (main): Mark otherwise unused variables
47955         as "used" explicitly via (void) statement casts.  This is more
47956         readable than using them in an artificial return expression.
47957         Suggestion from Bruno Haible.
47959 2010-06-11  Bruno Haible  <bruno@clisp.org>
47961         Avoid some more warnings from "gcc -Wwrite-strings".
47962         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
47963         to 'const char *'.
47964         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
47965         * tests/test-c-strcasestr.c (main): Likewise.
47966         * tests/test-mbscasestr1.c (main): Likewise.
47967         * tests/test-mbscasestr2.c (main): Likewise.
47968         * tests/test-memmem.c (main): Likewise.
47969         * tests/test-strstr.c (main): Likewise.
47970         * tests/test-strcasestr.c (main): Likewise.
47972 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47974         init.sh: change framework_failure_ to fail with status 99, not 1
47975         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
47976         automake's parallel-tests rule that this is an unexpected failure,
47977         even if the test is listed in XFAIL_TESTS.
47979 2010-06-11  Jim Meyering  <meyering@redhat.com>
47981         test-inttostr: avoid warnings about 4-6KB literal strings
47982         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
47983         Include "macros.h", for its definition of ASSERT.
47984         (CK): s/assert/ASSERT/
47985         * modules/inttostr-tests (Files): Add macros.h.
47987         init.sh: don't use $ME_ or skip_ before they are defined
47988         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
47989         their first uses.  Also hoist their companions: warn_, fail_,
47990         framework_failure_, $stderr_fileno.  Prompted by a patch from
47991         Stefano Lattarini.
47993         test-sys_socket: avoid set-but-not-used warnings from gcc
47994         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
47995         avoid warning about set-but-not-used variables.
47997         test-xvasprintf: avoid 'const' discard warnings
47998         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
47999         "const" when assigning from literal strings.
48000         (test_xasprintf): Add "void" in function argument list to placate
48001         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
48003         tests: avoid compilation warnings in argmatch and exclude tests...
48004         in packages that define ARGMATCH_DIE_DECL, like coreutils.
48005         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
48006         Since it always exits, declare with the "noreturn" attribute.
48007         * tests/test-argmatch.c: Likewise.
48009         tests: avoid 'const' discard warnings in mbsstr tests
48010         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
48011         * tests/test-mbsstr2.c (main): Likewise.
48013         test-verify: avoid warning from gcc's -Wmissing-declarations
48014         * tests/test-verify.c (function): Declare to be static.
48016         test-inttostr.c: include <string.h> for use of strcmp
48017         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
48019         test-linkat: avoid failed assertion on "other" architectures
48020         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
48021         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
48022         sparc: https://bugs.launchpad.net/bugs/591968
48024 2010-06-11  Jim Meyering  <meyering@redhat.com>
48026         printf.m4: avoid autoconf's "Expanded Before Required" warning
48027         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
48028         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
48029         autoconf warning.
48031 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
48033         Replacement header templates are now named with ".in", not "_".
48034         * doc/gnulib-intro.texi: Correct.
48036 2010-06-10  Jim Meyering  <meyering@redhat.com>
48038         inttostr-tests: depend on snprintf, not snprintf-posix
48039         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
48040         snprintf-posix, to avoid this aclocal failure:
48041           missing file gnulib-tests/vasnprintf.c
48042           configure.ac:45: error: expected source file, required through \
48043           AC_LIBSOURCES, not found
48045 2010-06-10  Jim Meyering  <meyering@redhat.com>
48047         inttostr: add a new function, inttostr, and tests
48048         The namesake function was not available.  The existence of the
48049         template file, inttostr.c makes its addition nontrivial.
48050         * lib/anytostr.c: Rename from inttostr.c.
48051         (anytostr): Rename from inttostr.
48052         * lib/inttostr.c: New file.
48053         * modules/inttostr (Files): Add anytostr.c.
48054         (Makefile.am): Set lib_SOURCES instead of ...
48055         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
48056         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
48057         * lib/offtostr.c: Likewise.
48058         * lib/uinttostr.c: Likewise.
48059         * lib/umaxtostr.c: Likewise.
48060         * modules/inttostr-tests: New file.
48061         * tests/test-inttostr.c: New file.  Test these functions.
48063 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
48064             Bruno Haible  <bruno@clisp.org>
48066         Add "Extending Gnulib" chapter to manual.
48067         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
48068         chapter.
48069         (Extending Gnulib): New chapter.
48070         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
48071         chapter.
48073 2010-06-09  Bruno Haible  <bruno@clisp.org>
48075         Avoid relocwrapper link errors due to gnulib replacement functions.
48076         * lib/areadlink.c: Use the system's malloc, realloc functions.
48077         (areadlink): Set errno to ENOMEM explicitly.
48078         * modules/areadlink (Depends-on): Remove malloc-posix.
48079         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48081 2010-06-09  Bruno Haible  <bruno@clisp.org>
48083         Avoid relocwrapper link errors due to gnulib replacement functions.
48084         * lib/canonicalize-lgpl.c: Use the system's malloc function.
48085         * lib/malloca.c: Likewise.
48086         * lib/relocatable.c: Likewise.
48087         * lib/progreloc.c: Use the system's malloc, sprintf functions.
48088         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
48089         * lib/setenv.c: Use the system's malloc, realloc functions.
48090         * lib/strerror.c: Use the system's sprintf function.
48091         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48093 2010-06-04  Bruno Haible  <bruno@clisp.org>
48095         Prefer documented low-level autoconf macro names.
48096         * m4/lib-link.m4: Use m4_translit instead of translit.
48097         * m4/environ.m4: Likewise.
48098         * m4/mathfunc.m4: Likewise.
48099         * m4/onceonly.m4: Likewise.
48100         * m4/stdint.m4: Likewise.
48101         Suggested by Eric Blake.
48103 2010-06-04  Martin Lambers  <marlam@marlam.de>
48104             Bruno Haible  <bruno@clisp.org>
48106         havelib: Allow library names with '+' characters.
48107         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48108         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
48110 2010-06-09  Bruno Haible  <bruno@clisp.org>
48112         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
48113         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
48114         realloc failed.
48116 2010-06-08  Peter Simons  <simons@cryp.to>
48118         maint.mk: make the news-check rule more configurable
48119         * top/maint.mk (news-check-lines-spec): New variable.
48120         (news-check): Use "sed -n 1,10p" in place of "head".
48122 2010-06-07  Jim Meyering  <meyering@redhat.com>
48124         do-release-commit-and-tag: fix typo in --help
48125         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
48127         regex: avoid new dead-code warning with gcc-4.6.0
48128         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
48129         if-block containing a while-loop.  It's been unused for at least
48130         5 years.
48132 2010-06-05  Bruno Haible  <bruno@clisp.org>
48134         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
48135         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
48137 2010-06-04  Bruno Haible  <bruno@clisp.org>
48139         Update to GNU gettext 0.18.1.
48140         * modules/gettext (configure.ac): Require gettext infrastructure from
48141         version 0.18.1.
48143 2010-06-03  Bruno Haible  <bruno@clisp.org>
48145         Don't use AC_LIBOBJ with file names in subdirectories.
48146         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
48147         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
48148         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
48149         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
48150         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
48151         gl_LIBUNISTRING_LIBSOURCE.
48152         (Makefile.am): Augment lib_SOURCES here, conditionally.
48153         * NEWS: Drop requirement for Automake option 'subdir-objects'.
48155 2010-06-03  Bruno Haible  <bruno@clisp.org>
48157         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
48158         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
48159         expansion does not end with a newline.
48160         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
48161         unnecessary newline.
48163 2010-06-03  Bruno Haible  <bruno@clisp.org>
48165         Reduce dependencies.
48166         * tests/test-quotearg.h: New file, extracted from
48167         tests/test-quotearg.c.
48168         * tests/test-quotearg-simple.c: New file, extracted from
48169         tests/test-quotearg.c.
48170         * tests/test-quotearg.c: Don't include <ctype.h>.
48171         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
48172         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
48173         use_quote_double_quotes, use_quotearg_colon): Moved to
48174         tests/test-quotearg.h.
48175         (results_g, flag_results, custom_quotes, custom_results): Moved
48176         to tests/test-quotearg-simple.c.
48177         (main): Moved the part that does not depend on gettext to
48178         tests/test-quotearg-simple.c. Return 77 if the test cannot be
48179         performed.
48180         * modules/quotearg-simple: New file.
48181         * modules/quotearg-simple-tests: New file.
48182         * modules/quotearg (Depends-on): Add quotearg-simple.
48183         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
48184         (Files): Add tests/test-quotearg.h.
48185         Reported by Paolo Bonzini.
48187 2010-06-03  Bruno Haible  <bruno@clisp.org>
48189         Reduce dependencies.
48190         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
48192 2010-06-03  Bruno Haible  <bruno@clisp.org>
48194         time: Undefine more broken macros.
48195         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
48196         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
48197         Reported by Eric Blake.
48199 2010-06-03  Bruno Haible  <bruno@clisp.org>
48201         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
48202         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
48203         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
48204         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
48205         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
48206         Reported by Ludovic Courtès <ludo@gnu.org>.
48208 2010-06-02  Eric Blake  <eblake@redhat.com>
48210         time: work with mingw + pthreads-win32 library
48211         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
48212         if timespec is defined only in pthread.h.
48213         * modules/time (Makefile.am): Substitute it.
48214         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
48215         <pthread.h>, when needed.
48216         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
48217         from the library.
48219 2010-05-31  Bruno Haible  <bruno@clisp.org>
48221         Avoid expanding two macros in the wrong order.
48222         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
48223         gl_LIBUNISTRING if it is defined.
48224         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
48225         autoconf >= 2.64.
48226         Reported by Ludovic Courtès <ludo@gnu.org>.
48228 2010-05-27  Jim Meyering  <meyering@redhat.com>
48230         maint.mk: also prohibit "#undef" of always-defined symbols
48231         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
48232         Allow more than one space before the symbol name.
48233         (sc_prohibit_always-defined_macros): Use grep's -E, now that
48234         the regexp uses alternation.
48236 2010-05-26  Eric Blake  <eblake@redhat.com>
48238         maint.mk: avoid echo -e
48239         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
48240         Convert all uses of echo -* to printf.
48241         Reported by Matthias Bolte.
48243 2010-05-25  Bruno Haible  <bruno@clisp.org>
48245         Update to GNU gettext 0.18, part 2.
48246         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
48247         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
48249 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48251         Add missing include in test-pwrite.c.
48252         * tests/test-pwrite.c: Include string.h, for strcmp.
48254 2010-05-24  Bruno Haible  <bruno@clisp.org>
48256         * NEWS: Mention requirement for Automake option 'subdir-objects'.
48258 2010-05-24  Bruno Haible  <bruno@clisp.org>
48260         Don't use conversion with transliteration in u{8,16,32}_strcoll.
48261         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
48262         iconveh_error argument.
48263         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
48264         U_STRCONV_TO_LOCALE.
48265         * lib/unistr/u16-strcoll.c: Likewise.
48266         * lib/unistr/u32-strcoll.c: Likewise.
48267         * modules/unistr/u8-strcoll (Depends-on): Add
48268         uniconv/u8-strconv-to-enc, localcharset. Remove
48269         uniconv/u8-strconv-to-locale.
48270         (configure.ac): Bump version number.
48271         * modules/unistr/u16-strcoll (Depends-on): Add
48272         uniconv/u16-strconv-to-enc, localcharset. Remove
48273         uniconv/u16-strconv-to-locale.
48274         (configure.ac): Bump version number.
48275         * modules/unistr/u32-strcoll (Depends-on): Add
48276         uniconv/u32-strconv-to-enc, localcharset. Remove
48277         uniconv/u32-strconv-to-locale.
48278         (configure.ac): Bump version number.
48280 2010-05-24  Bruno Haible  <bruno@clisp.org>
48282         Avoid a test failure on NetBSD 5.0.
48283         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
48284         an iconv() bug.
48286 2010-05-24  Bruno Haible  <bruno@clisp.org>
48288         Adjust #include directive style.
48289         * modules/regex (Includes): Recommend to write <regex.h>.
48291 2010-05-24  Bruno Haible  <bruno@clisp.org>
48293         regex: Don't require alloca.
48294         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
48295         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
48296         only inside if (0).
48298 2010-05-23  Jim Meyering  <meyering@redhat.com>
48300         test-renameat.c: include <sys/stat.h>
48301         * tests/test-renameat.c: Include <sys/stat.h>; required for
48302         definition of S_IS* macros.
48304 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
48306         Update maintainer documentation for 'relocatable-prog' module.
48307         * doc/relocatable-maint.texi: Update.
48308         Comments by Bruno Haible.
48310 2010-05-23  Bruno Haible  <bruno@clisp.org>
48312         git-merge-changelog: Enable --split-merged-entry by default.
48313         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
48314         (usage): Don't mention this option any more.
48315         Reported by Ralf Wildenhues.
48317 2010-05-23  Jim Meyering  <meyering@redhat.com>
48319         test-pwrite: do not leave behind a test file named "out"
48320         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
48321         The trivial-looking use of init.sh is really necessary.
48322         It ensures that the temporary file, "out", is created in
48323         a temporary directory, and removed upon termination.
48324         * tests/test-pwrite.sh: Re-add file.
48325         * modules/pwrite-tests: Reference it.
48327 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48329         Fix output redirection buglet in init.sh.
48330         * tests/init.sh: Fix redirection of stderr.
48332 2010-05-20  Simon Josefsson  <simon@josefsson.org>
48334         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
48336 2010-05-17  Simon Josefsson  <simon@josefsson.org>
48338         * modules/valgrind-tests: New file.
48339         * m4/valgrind-tests.m4: New file.
48340         * doc/valgrind-tests.texi: New file.
48341         * doc/gnulib.texi (Running self-tests under valgrind): New
48342         section.
48344 2010-05-19  Bruno Haible  <bruno@clisp.org>
48346         Clean up dead code in recent commit.
48347         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
48348         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
48349         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
48350         Suggested by Paolo Bonzini.
48352 2010-05-19  Bruno Haible  <bruno@clisp.org>
48354         Avoid valgrind error reports from libunistring.
48355         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
48356         * modules/libunistring (Files): Add it.
48357         * modules/libunistring-optional (Files): Likewise.
48359 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
48360             Bruno Haible  <bruno@clisp.org>
48362         New module 'libunistring-optional'.
48363         * modules/libunistring-optional: New file.
48364         * m4/libunistring-base.m4: New file.
48365         * m4/libunistring-optional.m4: New file.
48366         * lib/unicase.in.h: Renamed from lib/unicase.h.
48367         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
48368         * lib/unictype.in.h: Renamed from lib/unictype.h.
48369         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
48370         * lib/uniname.in.h: Renamed from lib/uniname.h.
48371         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
48372         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
48373         * lib/unistr.in.h: Renamed from lib/unistr.h.
48374         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
48375         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
48376         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
48377         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
48378         gl_LIBUNISTRING. If the library was found, determine the installed
48379         version and set LIBUNISTRING_VERSION.
48380         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
48381         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
48382         handle a configuration option --with-included-libunistring.
48383         * modules/libunistring (Files): Add m4/absolute-header.m4.
48384         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
48385         Add m4/libunistring-base.m4.
48386         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48387         (Makefile.am): Build unicase.h from unicase.in.h.
48388         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
48389         Add m4/libunistring-base.m4.
48390         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48391         (Makefile.am): Build uniconv.h from uniconv.in.h.
48392         * modules/unictype/base (Files): Use unictype.in.h instead of
48393         unictype.h. Add m4/libunistring-base.m4.
48394         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48395         (Makefile.am): Build unictype.h from unictype.in.h.
48396         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
48397         Add m4/libunistring-base.m4.
48398         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48399         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
48400         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
48401         Add m4/libunistring-base.m4.
48402         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48403         (Makefile.am): Build uniname.h from uniname.in.h.
48404         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
48405         Add m4/libunistring-base.m4.
48406         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48407         (Makefile.am): Build uninorm.h from uninorm.in.h.
48408         * modules/unistdio/base (Files): Use unistdio.in.h instead of
48409         unistdio.h. Add m4/libunistring-base.m4.
48410         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48411         (Makefile.am): Build unistdio.h from unistdio.in.h.
48412         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
48413         Add m4/libunistring-base.m4.
48414         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48415         (Makefile.am): Build unistr.h from unistr.in.h.
48416         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
48417         Add m4/libunistring-base.m4.
48418         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48419         (Makefile.am): Build unitypes.h from unitypes.in.h.
48420         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
48421         Add m4/libunistring-base.m4.
48422         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48423         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
48424         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
48425         uniwidth.h. Add m4/libunistring-base.m4.
48426         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48427         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
48428         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
48429         instead of augmenting lib_SOURCES.
48430         * modules/unicase/empty-suffix-context: Likewise.
48431         * modules/unicase/locale-language: Likewise.
48432         * modules/unicase/tolower: Likewise.
48433         * modules/unicase/totitle: Likewise.
48434         * modules/unicase/toupper: Likewise.
48435         * modules/unicase/u8-casecmp: Likewise.
48436         * modules/unicase/u8-casecoll: Likewise.
48437         * modules/unicase/u8-casefold: Likewise.
48438         * modules/unicase/u8-casexfrm: Likewise.
48439         * modules/unicase/u8-ct-casefold: Likewise.
48440         * modules/unicase/u8-ct-tolower: Likewise.
48441         * modules/unicase/u8-ct-totitle: Likewise.
48442         * modules/unicase/u8-ct-toupper: Likewise.
48443         * modules/unicase/u8-is-cased: Likewise.
48444         * modules/unicase/u8-is-casefolded: Likewise.
48445         * modules/unicase/u8-is-lowercase: Likewise.
48446         * modules/unicase/u8-is-titlecase: Likewise.
48447         * modules/unicase/u8-is-uppercase: Likewise.
48448         * modules/unicase/u8-prefix-context: Likewise.
48449         * modules/unicase/u8-suffix-context: Likewise.
48450         * modules/unicase/u8-tolower: Likewise.
48451         * modules/unicase/u8-totitle: Likewise.
48452         * modules/unicase/u8-toupper: Likewise.
48453         * modules/unicase/u16-casecmp: Likewise.
48454         * modules/unicase/u16-casecoll: Likewise.
48455         * modules/unicase/u16-casefold: Likewise.
48456         * modules/unicase/u16-casexfrm: Likewise.
48457         * modules/unicase/u16-ct-casefold: Likewise.
48458         * modules/unicase/u16-ct-tolower: Likewise.
48459         * modules/unicase/u16-ct-totitle: Likewise.
48460         * modules/unicase/u16-ct-toupper: Likewise.
48461         * modules/unicase/u16-is-cased: Likewise.
48462         * modules/unicase/u16-is-casefolded: Likewise.
48463         * modules/unicase/u16-is-lowercase: Likewise.
48464         * modules/unicase/u16-is-titlecase: Likewise.
48465         * modules/unicase/u16-is-uppercase: Likewise.
48466         * modules/unicase/u16-prefix-context: Likewise.
48467         * modules/unicase/u16-suffix-context: Likewise.
48468         * modules/unicase/u16-tolower: Likewise.
48469         * modules/unicase/u16-totitle: Likewise.
48470         * modules/unicase/u16-toupper: Likewise.
48471         * modules/unicase/u32-casecmp: Likewise.
48472         * modules/unicase/u32-casecoll: Likewise.
48473         * modules/unicase/u32-casefold: Likewise.
48474         * modules/unicase/u32-casexfrm: Likewise.
48475         * modules/unicase/u32-ct-casefold: Likewise.
48476         * modules/unicase/u32-ct-tolower: Likewise.
48477         * modules/unicase/u32-ct-totitle: Likewise.
48478         * modules/unicase/u32-ct-toupper: Likewise.
48479         * modules/unicase/u32-is-cased: Likewise.
48480         * modules/unicase/u32-is-casefolded: Likewise.
48481         * modules/unicase/u32-is-lowercase: Likewise.
48482         * modules/unicase/u32-is-titlecase: Likewise.
48483         * modules/unicase/u32-is-uppercase: Likewise.
48484         * modules/unicase/u32-prefix-context: Likewise.
48485         * modules/unicase/u32-suffix-context: Likewise.
48486         * modules/unicase/u32-tolower: Likewise.
48487         * modules/unicase/u32-totitle: Likewise.
48488         * modules/unicase/u32-toupper: Likewise.
48489         * modules/unicase/ulc-casecmp: Likewise.
48490         * modules/unicase/ulc-casecoll: Likewise.
48491         * modules/unicase/ulc-casexfrm: Likewise.
48492         * modules/uniconv/u8-conv-from-enc: Likewise.
48493         * modules/uniconv/u8-conv-to-enc: Likewise.
48494         * modules/uniconv/u8-strconv-from-enc: Likewise.
48495         * modules/uniconv/u8-strconv-from-locale: Likewise.
48496         * modules/uniconv/u8-strconv-to-enc: Likewise.
48497         * modules/uniconv/u8-strconv-to-locale: Likewise.
48498         * modules/uniconv/u16-conv-from-enc: Likewise.
48499         * modules/uniconv/u16-conv-to-enc: Likewise.
48500         * modules/uniconv/u16-strconv-from-enc: Likewise.
48501         * modules/uniconv/u16-strconv-from-locale: Likewise.
48502         * modules/uniconv/u16-strconv-to-enc: Likewise.
48503         * modules/uniconv/u16-strconv-to-locale: Likewise.
48504         * modules/uniconv/u32-conv-from-enc: Likewise.
48505         * modules/uniconv/u32-conv-to-enc: Likewise.
48506         * modules/uniconv/u32-strconv-from-enc: Likewise.
48507         * modules/uniconv/u32-strconv-from-locale: Likewise.
48508         * modules/uniconv/u32-strconv-to-enc: Likewise.
48509         * modules/uniconv/u32-strconv-to-locale: Likewise.
48510         * modules/unictype/bidicategory-byname: Likewise.
48511         * modules/unictype/bidicategory-name: Likewise.
48512         * modules/unictype/bidicategory-of: Likewise.
48513         * modules/unictype/bidicategory-test: Likewise.
48514         * modules/unictype/block-list: Likewise.
48515         * modules/unictype/block-test: Likewise.
48516         * modules/unictype/category-C: Likewise.
48517         * modules/unictype/category-Cc: Likewise.
48518         * modules/unictype/category-Cf: Likewise.
48519         * modules/unictype/category-Cn: Likewise.
48520         * modules/unictype/category-Co: Likewise.
48521         * modules/unictype/category-Cs: Likewise.
48522         * modules/unictype/category-L: Likewise.
48523         * modules/unictype/category-Ll: Likewise.
48524         * modules/unictype/category-Lm: Likewise.
48525         * modules/unictype/category-Lo: Likewise.
48526         * modules/unictype/category-Lt: Likewise.
48527         * modules/unictype/category-Lu: Likewise.
48528         * modules/unictype/category-M: Likewise.
48529         * modules/unictype/category-Mc: Likewise.
48530         * modules/unictype/category-Me: Likewise.
48531         * modules/unictype/category-Mn: Likewise.
48532         * modules/unictype/category-N: Likewise.
48533         * modules/unictype/category-Nd: Likewise.
48534         * modules/unictype/category-Nl: Likewise.
48535         * modules/unictype/category-No: Likewise.
48536         * modules/unictype/category-P: Likewise.
48537         * modules/unictype/category-Pc: Likewise.
48538         * modules/unictype/category-Pd: Likewise.
48539         * modules/unictype/category-Pe: Likewise.
48540         * modules/unictype/category-Pf: Likewise.
48541         * modules/unictype/category-Pi: Likewise.
48542         * modules/unictype/category-Po: Likewise.
48543         * modules/unictype/category-Ps: Likewise.
48544         * modules/unictype/category-S: Likewise.
48545         * modules/unictype/category-Sc: Likewise.
48546         * modules/unictype/category-Sk: Likewise.
48547         * modules/unictype/category-Sm: Likewise.
48548         * modules/unictype/category-So: Likewise.
48549         * modules/unictype/category-Z: Likewise.
48550         * modules/unictype/category-Zl: Likewise.
48551         * modules/unictype/category-Zp: Likewise.
48552         * modules/unictype/category-Zs: Likewise.
48553         * modules/unictype/category-and: Likewise.
48554         * modules/unictype/category-and-not: Likewise.
48555         * modules/unictype/category-byname: Likewise.
48556         * modules/unictype/category-name: Likewise.
48557         * modules/unictype/category-none: Likewise.
48558         * modules/unictype/category-of: Likewise.
48559         * modules/unictype/category-or: Likewise.
48560         * modules/unictype/category-test: Likewise.
48561         * modules/unictype/combining-class: Likewise.
48562         * modules/unictype/ctype-alnum: Likewise.
48563         * modules/unictype/ctype-alpha: Likewise.
48564         * modules/unictype/ctype-blank: Likewise.
48565         * modules/unictype/ctype-cntrl: Likewise.
48566         * modules/unictype/ctype-digit: Likewise.
48567         * modules/unictype/ctype-graph: Likewise.
48568         * modules/unictype/ctype-lower: Likewise.
48569         * modules/unictype/ctype-print: Likewise.
48570         * modules/unictype/ctype-punct: Likewise.
48571         * modules/unictype/ctype-space: Likewise.
48572         * modules/unictype/ctype-upper: Likewise.
48573         * modules/unictype/ctype-xdigit: Likewise.
48574         * modules/unictype/decimal-digit: Likewise.
48575         * modules/unictype/digit: Likewise.
48576         * modules/unictype/mirror: Likewise.
48577         * modules/unictype/numeric: Likewise.
48578         * modules/unictype/property-alphabetic: Likewise.
48579         * modules/unictype/property-ascii-hex-digit: Likewise.
48580         * modules/unictype/property-bidi-arabic-digit: Likewise.
48581         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
48582         * modules/unictype/property-bidi-block-separator: Likewise.
48583         * modules/unictype/property-bidi-boundary-neutral: Likewise.
48584         * modules/unictype/property-bidi-common-separator: Likewise.
48585         * modules/unictype/property-bidi-control: Likewise.
48586         * modules/unictype/property-bidi-embedding-or-override: Likewise.
48587         * modules/unictype/property-bidi-eur-num-separator: Likewise.
48588         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
48589         * modules/unictype/property-bidi-european-digit: Likewise.
48590         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
48591         * modules/unictype/property-bidi-left-to-right: Likewise.
48592         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
48593         * modules/unictype/property-bidi-other-neutral: Likewise.
48594         * modules/unictype/property-bidi-pdf: Likewise.
48595         * modules/unictype/property-bidi-segment-separator: Likewise.
48596         * modules/unictype/property-bidi-whitespace: Likewise.
48597         * modules/unictype/property-byname: Likewise.
48598         * modules/unictype/property-combining: Likewise.
48599         * modules/unictype/property-composite: Likewise.
48600         * modules/unictype/property-currency-symbol: Likewise.
48601         * modules/unictype/property-dash: Likewise.
48602         * modules/unictype/property-decimal-digit: Likewise.
48603         * modules/unictype/property-default-ignorable-code-point: Likewise.
48604         * modules/unictype/property-deprecated: Likewise.
48605         * modules/unictype/property-diacritic: Likewise.
48606         * modules/unictype/property-extender: Likewise.
48607         * modules/unictype/property-format-control: Likewise.
48608         * modules/unictype/property-grapheme-base: Likewise.
48609         * modules/unictype/property-grapheme-extend: Likewise.
48610         * modules/unictype/property-grapheme-link: Likewise.
48611         * modules/unictype/property-hex-digit: Likewise.
48612         * modules/unictype/property-hyphen: Likewise.
48613         * modules/unictype/property-id-continue: Likewise.
48614         * modules/unictype/property-id-start: Likewise.
48615         * modules/unictype/property-ideographic: Likewise.
48616         * modules/unictype/property-ids-binary-operator: Likewise.
48617         * modules/unictype/property-ids-trinary-operator: Likewise.
48618         * modules/unictype/property-ignorable-control: Likewise.
48619         * modules/unictype/property-iso-control: Likewise.
48620         * modules/unictype/property-join-control: Likewise.
48621         * modules/unictype/property-left-of-pair: Likewise.
48622         * modules/unictype/property-line-separator: Likewise.
48623         * modules/unictype/property-logical-order-exception: Likewise.
48624         * modules/unictype/property-lowercase: Likewise.
48625         * modules/unictype/property-math: Likewise.
48626         * modules/unictype/property-non-break: Likewise.
48627         * modules/unictype/property-not-a-character: Likewise.
48628         * modules/unictype/property-numeric: Likewise.
48629         * modules/unictype/property-other-alphabetic: Likewise.
48630         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
48631         * modules/unictype/property-other-grapheme-extend: Likewise.
48632         * modules/unictype/property-other-id-continue: Likewise.
48633         * modules/unictype/property-other-id-start: Likewise.
48634         * modules/unictype/property-other-lowercase: Likewise.
48635         * modules/unictype/property-other-math: Likewise.
48636         * modules/unictype/property-other-uppercase: Likewise.
48637         * modules/unictype/property-paired-punctuation: Likewise.
48638         * modules/unictype/property-paragraph-separator: Likewise.
48639         * modules/unictype/property-pattern-syntax: Likewise.
48640         * modules/unictype/property-pattern-white-space: Likewise.
48641         * modules/unictype/property-private-use: Likewise.
48642         * modules/unictype/property-punctuation: Likewise.
48643         * modules/unictype/property-quotation-mark: Likewise.
48644         * modules/unictype/property-radical: Likewise.
48645         * modules/unictype/property-sentence-terminal: Likewise.
48646         * modules/unictype/property-soft-dotted: Likewise.
48647         * modules/unictype/property-space: Likewise.
48648         * modules/unictype/property-terminal-punctuation: Likewise.
48649         * modules/unictype/property-test: Likewise.
48650         * modules/unictype/property-titlecase: Likewise.
48651         * modules/unictype/property-unassigned-code-value: Likewise.
48652         * modules/unictype/property-unified-ideograph: Likewise.
48653         * modules/unictype/property-uppercase: Likewise.
48654         * modules/unictype/property-variation-selector: Likewise.
48655         * modules/unictype/property-white-space: Likewise.
48656         * modules/unictype/property-xid-continue: Likewise.
48657         * modules/unictype/property-xid-start: Likewise.
48658         * modules/unictype/property-zero-width: Likewise.
48659         * modules/unictype/scripts: Likewise.
48660         * modules/unictype/syntax-c-ident: Likewise.
48661         * modules/unictype/syntax-c-whitespace: Likewise.
48662         * modules/unictype/syntax-java-ident: Likewise.
48663         * modules/unictype/syntax-java-whitespace: Likewise.
48664         * modules/unilbrk/u8-possible-linebreaks: Likewise.
48665         * modules/unilbrk/u8-width-linebreaks: Likewise.
48666         * modules/unilbrk/u16-possible-linebreaks: Likewise.
48667         * modules/unilbrk/u16-width-linebreaks: Likewise.
48668         * modules/unilbrk/u32-possible-linebreaks: Likewise.
48669         * modules/unilbrk/u32-width-linebreaks: Likewise.
48670         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
48671         * modules/unilbrk/ulc-width-linebreaks: Likewise.
48672         * modules/uniname/uniname: Likewise.
48673         * modules/uninorm/canonical-decomposition: Likewise.
48674         * modules/uninorm/composition: Likewise.
48675         * modules/uninorm/decomposing-form: Likewise.
48676         * modules/uninorm/decomposition: Likewise.
48677         * modules/uninorm/filter: Likewise.
48678         * modules/uninorm/nfc: Likewise.
48679         * modules/uninorm/nfd: Likewise.
48680         * modules/uninorm/nfkc: Likewise.
48681         * modules/uninorm/nfkd: Likewise.
48682         * modules/uninorm/u8-normalize: Likewise.
48683         * modules/uninorm/u8-normcmp: Likewise.
48684         * modules/uninorm/u8-normcoll: Likewise.
48685         * modules/uninorm/u8-normxfrm: Likewise.
48686         * modules/uninorm/u16-normalize: Likewise.
48687         * modules/uninorm/u16-normcmp: Likewise.
48688         * modules/uninorm/u16-normcoll: Likewise.
48689         * modules/uninorm/u16-normxfrm: Likewise.
48690         * modules/uninorm/u32-normalize: Likewise.
48691         * modules/uninorm/u32-normcmp: Likewise.
48692         * modules/uninorm/u32-normcoll: Likewise.
48693         * modules/uninorm/u32-normxfrm: Likewise.
48694         * modules/unistdio/u8-asnprintf: Likewise.
48695         * modules/unistdio/u8-asprintf: Likewise.
48696         * modules/unistdio/u8-snprintf: Likewise.
48697         * modules/unistdio/u8-sprintf: Likewise.
48698         * modules/unistdio/u8-u8-asnprintf: Likewise.
48699         * modules/unistdio/u8-u8-asprintf: Likewise.
48700         * modules/unistdio/u8-u8-snprintf: Likewise.
48701         * modules/unistdio/u8-u8-sprintf: Likewise.
48702         * modules/unistdio/u8-u8-vasnprintf: Likewise.
48703         * modules/unistdio/u8-u8-vasprintf: Likewise.
48704         * modules/unistdio/u8-u8-vsnprintf: Likewise.
48705         * modules/unistdio/u8-u8-vsprintf: Likewise.
48706         * modules/unistdio/u8-vasnprintf: Likewise.
48707         * modules/unistdio/u8-vasprintf: Likewise.
48708         * modules/unistdio/u8-vsnprintf: Likewise.
48709         * modules/unistdio/u8-vsprintf: Likewise.
48710         * modules/unistdio/u16-asnprintf: Likewise.
48711         * modules/unistdio/u16-asprintf: Likewise.
48712         * modules/unistdio/u16-snprintf: Likewise.
48713         * modules/unistdio/u16-sprintf: Likewise.
48714         * modules/unistdio/u16-u16-asnprintf: Likewise.
48715         * modules/unistdio/u16-u16-asprintf: Likewise.
48716         * modules/unistdio/u16-u16-snprintf: Likewise.
48717         * modules/unistdio/u16-u16-sprintf: Likewise.
48718         * modules/unistdio/u16-u16-vasnprintf: Likewise.
48719         * modules/unistdio/u16-u16-vasprintf: Likewise.
48720         * modules/unistdio/u16-u16-vsnprintf: Likewise.
48721         * modules/unistdio/u16-u16-vsprintf: Likewise.
48722         * modules/unistdio/u16-vasnprintf: Likewise.
48723         * modules/unistdio/u16-vasprintf: Likewise.
48724         * modules/unistdio/u16-vsnprintf: Likewise.
48725         * modules/unistdio/u16-vsprintf: Likewise.
48726         * modules/unistdio/u32-asnprintf: Likewise.
48727         * modules/unistdio/u32-asprintf: Likewise.
48728         * modules/unistdio/u32-snprintf: Likewise.
48729         * modules/unistdio/u32-sprintf: Likewise.
48730         * modules/unistdio/u32-u32-asnprintf: Likewise.
48731         * modules/unistdio/u32-u32-asprintf: Likewise.
48732         * modules/unistdio/u32-u32-snprintf: Likewise.
48733         * modules/unistdio/u32-u32-sprintf: Likewise.
48734         * modules/unistdio/u32-u32-vasnprintf: Likewise.
48735         * modules/unistdio/u32-u32-vasprintf: Likewise.
48736         * modules/unistdio/u32-u32-vsnprintf: Likewise.
48737         * modules/unistdio/u32-u32-vsprintf: Likewise.
48738         * modules/unistdio/u32-vasnprintf: Likewise.
48739         * modules/unistdio/u32-vasprintf: Likewise.
48740         * modules/unistdio/u32-vsnprintf: Likewise.
48741         * modules/unistdio/u32-vsprintf: Likewise.
48742         * modules/unistdio/ulc-asnprintf: Likewise.
48743         * modules/unistdio/ulc-asprintf: Likewise.
48744         * modules/unistdio/ulc-fprintf: Likewise.
48745         * modules/unistdio/ulc-snprintf: Likewise.
48746         * modules/unistdio/ulc-sprintf: Likewise.
48747         * modules/unistdio/ulc-vasnprintf: Likewise.
48748         * modules/unistdio/ulc-vasprintf: Likewise.
48749         * modules/unistdio/ulc-vfprintf: Likewise.
48750         * modules/unistdio/ulc-vsnprintf: Likewise.
48751         * modules/unistdio/ulc-vsprintf: Likewise.
48752         * modules/unistr/u8-check: Likewise.
48753         * modules/unistr/u8-chr: Likewise.
48754         * modules/unistr/u8-cmp: Likewise.
48755         * modules/unistr/u8-cmp2: Likewise.
48756         * modules/unistr/u8-cpy: Likewise.
48757         * modules/unistr/u8-cpy-alloc: Likewise.
48758         * modules/unistr/u8-endswith: Likewise.
48759         * modules/unistr/u8-mblen: Likewise.
48760         * modules/unistr/u8-mbsnlen: Likewise.
48761         * modules/unistr/u8-mbtouc: Likewise.
48762         * modules/unistr/u8-mbtouc-unsafe: Likewise.
48763         * modules/unistr/u8-mbtoucr: Likewise.
48764         * modules/unistr/u8-move: Likewise.
48765         * modules/unistr/u8-next: Likewise.
48766         * modules/unistr/u8-prev: Likewise.
48767         * modules/unistr/u8-set: Likewise.
48768         * modules/unistr/u8-startswith: Likewise.
48769         * modules/unistr/u8-stpcpy: Likewise.
48770         * modules/unistr/u8-stpncpy: Likewise.
48771         * modules/unistr/u8-strcat: Likewise.
48772         * modules/unistr/u8-strchr: Likewise.
48773         * modules/unistr/u8-strcmp: Likewise.
48774         * modules/unistr/u8-strcoll: Likewise.
48775         * modules/unistr/u8-strcpy: Likewise.
48776         * modules/unistr/u8-strcspn: Likewise.
48777         * modules/unistr/u8-strdup: Likewise.
48778         * modules/unistr/u8-strlen: Likewise.
48779         * modules/unistr/u8-strmblen: Likewise.
48780         * modules/unistr/u8-strmbtouc: Likewise.
48781         * modules/unistr/u8-strncat: Likewise.
48782         * modules/unistr/u8-strncmp: Likewise.
48783         * modules/unistr/u8-strncpy: Likewise.
48784         * modules/unistr/u8-strnlen: Likewise.
48785         * modules/unistr/u8-strpbrk: Likewise.
48786         * modules/unistr/u8-strrchr: Likewise.
48787         * modules/unistr/u8-strspn: Likewise.
48788         * modules/unistr/u8-strstr: Likewise.
48789         * modules/unistr/u8-strtok: Likewise.
48790         * modules/unistr/u8-to-u16: Likewise.
48791         * modules/unistr/u8-to-u32: Likewise.
48792         * modules/unistr/u8-uctomb: Likewise.
48793         * modules/unistr/u16-check: Likewise.
48794         * modules/unistr/u16-chr: Likewise.
48795         * modules/unistr/u16-cmp: Likewise.
48796         * modules/unistr/u16-cmp2: Likewise.
48797         * modules/unistr/u16-cpy: Likewise.
48798         * modules/unistr/u16-cpy-alloc: Likewise.
48799         * modules/unistr/u16-endswith: Likewise.
48800         * modules/unistr/u16-mblen: Likewise.
48801         * modules/unistr/u16-mbsnlen: Likewise.
48802         * modules/unistr/u16-mbtouc: Likewise.
48803         * modules/unistr/u16-mbtouc-unsafe: Likewise.
48804         * modules/unistr/u16-mbtoucr: Likewise.
48805         * modules/unistr/u16-move: Likewise.
48806         * modules/unistr/u16-next: Likewise.
48807         * modules/unistr/u16-prev: Likewise.
48808         * modules/unistr/u16-set: Likewise.
48809         * modules/unistr/u16-startswith: Likewise.
48810         * modules/unistr/u16-stpcpy: Likewise.
48811         * modules/unistr/u16-stpncpy: Likewise.
48812         * modules/unistr/u16-strcat: Likewise.
48813         * modules/unistr/u16-strchr: Likewise.
48814         * modules/unistr/u16-strcmp: Likewise.
48815         * modules/unistr/u16-strcoll: Likewise.
48816         * modules/unistr/u16-strcpy: Likewise.
48817         * modules/unistr/u16-strcspn: Likewise.
48818         * modules/unistr/u16-strdup: Likewise.
48819         * modules/unistr/u16-strlen: Likewise.
48820         * modules/unistr/u16-strmblen: Likewise.
48821         * modules/unistr/u16-strmbtouc: Likewise.
48822         * modules/unistr/u16-strncat: Likewise.
48823         * modules/unistr/u16-strncmp: Likewise.
48824         * modules/unistr/u16-strncpy: Likewise.
48825         * modules/unistr/u16-strnlen: Likewise.
48826         * modules/unistr/u16-strpbrk: Likewise.
48827         * modules/unistr/u16-strrchr: Likewise.
48828         * modules/unistr/u16-strspn: Likewise.
48829         * modules/unistr/u16-strstr: Likewise.
48830         * modules/unistr/u16-strtok: Likewise.
48831         * modules/unistr/u16-to-u32: Likewise.
48832         * modules/unistr/u16-to-u8: Likewise.
48833         * modules/unistr/u16-uctomb: Likewise.
48834         * modules/unistr/u32-check: Likewise.
48835         * modules/unistr/u32-chr: Likewise.
48836         * modules/unistr/u32-cmp: Likewise.
48837         * modules/unistr/u32-cmp2: Likewise.
48838         * modules/unistr/u32-cpy: Likewise.
48839         * modules/unistr/u32-cpy-alloc: Likewise.
48840         * modules/unistr/u32-endswith: Likewise.
48841         * modules/unistr/u32-mblen: Likewise.
48842         * modules/unistr/u32-mbsnlen: Likewise.
48843         * modules/unistr/u32-mbtouc: Likewise.
48844         * modules/unistr/u32-mbtouc-unsafe: Likewise.
48845         * modules/unistr/u32-mbtoucr: Likewise.
48846         * modules/unistr/u32-move: Likewise.
48847         * modules/unistr/u32-next: Likewise.
48848         * modules/unistr/u32-prev: Likewise.
48849         * modules/unistr/u32-set: Likewise.
48850         * modules/unistr/u32-startswith: Likewise.
48851         * modules/unistr/u32-stpcpy: Likewise.
48852         * modules/unistr/u32-stpncpy: Likewise.
48853         * modules/unistr/u32-strcat: Likewise.
48854         * modules/unistr/u32-strchr: Likewise.
48855         * modules/unistr/u32-strcmp: Likewise.
48856         * modules/unistr/u32-strcoll: Likewise.
48857         * modules/unistr/u32-strcpy: Likewise.
48858         * modules/unistr/u32-strcspn: Likewise.
48859         * modules/unistr/u32-strdup: Likewise.
48860         * modules/unistr/u32-strlen: Likewise.
48861         * modules/unistr/u32-strmblen: Likewise.
48862         * modules/unistr/u32-strmbtouc: Likewise.
48863         * modules/unistr/u32-strncat: Likewise.
48864         * modules/unistr/u32-strncmp: Likewise.
48865         * modules/unistr/u32-strncpy: Likewise.
48866         * modules/unistr/u32-strnlen: Likewise.
48867         * modules/unistr/u32-strpbrk: Likewise.
48868         * modules/unistr/u32-strrchr: Likewise.
48869         * modules/unistr/u32-strspn: Likewise.
48870         * modules/unistr/u32-strstr: Likewise.
48871         * modules/unistr/u32-strtok: Likewise.
48872         * modules/unistr/u32-to-u16: Likewise.
48873         * modules/unistr/u32-to-u8: Likewise.
48874         * modules/unistr/u32-uctomb: Likewise.
48875         * modules/uniwbrk/u8-wordbreaks: Likewise.
48876         * modules/uniwbrk/u16-wordbreaks: Likewise.
48877         * modules/uniwbrk/u32-wordbreaks: Likewise.
48878         * modules/uniwbrk/ulc-wordbreaks: Likewise.
48879         * modules/uniwbrk/wordbreak-property: Likewise.
48880         * modules/uniwidth/u8-strwidth: Likewise.
48881         * modules/uniwidth/u8-width: Likewise.
48882         * modules/uniwidth/u16-strwidth: Likewise.
48883         * modules/uniwidth/u16-width: Likewise.
48884         * modules/uniwidth/u32-strwidth: Likewise.
48885         * modules/uniwidth/u32-width: Likewise.
48886         * modules/uniwidth/width: Likewise.
48887         * modules/unicase/cased-tests (Makefile.am): Link all test programs
48888         with $(LIBUNISTRING).
48889         * modules/unicase/ignorable-tests: Likewise.
48890         * modules/unicase/locale-language-tests: Likewise.
48891         * modules/unicase/tolower-tests: Likewise.
48892         * modules/unicase/totitle-tests: Likewise.
48893         * modules/unicase/toupper-tests: Likewise.
48894         * modules/unicase/u8-casecmp-tests: Likewise.
48895         * modules/unicase/u8-casecoll-tests: Likewise.
48896         * modules/unicase/u8-casefold-tests: Likewise.
48897         * modules/unicase/u8-is-cased-tests: Likewise.
48898         * modules/unicase/u8-is-casefolded-tests: Likewise.
48899         * modules/unicase/u8-is-lowercase-tests: Likewise.
48900         * modules/unicase/u8-is-titlecase-tests: Likewise.
48901         * modules/unicase/u8-is-uppercase-tests: Likewise.
48902         * modules/unicase/u8-tolower-tests: Likewise.
48903         * modules/unicase/u8-totitle-tests: Likewise.
48904         * modules/unicase/u8-toupper-tests: Likewise.
48905         * modules/unicase/u16-casecmp-tests: Likewise.
48906         * modules/unicase/u16-casecoll-tests: Likewise.
48907         * modules/unicase/u16-casefold-tests: Likewise.
48908         * modules/unicase/u16-is-cased-tests: Likewise.
48909         * modules/unicase/u16-is-casefolded-tests: Likewise.
48910         * modules/unicase/u16-is-lowercase-tests: Likewise.
48911         * modules/unicase/u16-is-titlecase-tests: Likewise.
48912         * modules/unicase/u16-is-uppercase-tests: Likewise.
48913         * modules/unicase/u16-tolower-tests: Likewise.
48914         * modules/unicase/u16-totitle-tests: Likewise.
48915         * modules/unicase/u16-toupper-tests: Likewise.
48916         * modules/unicase/u32-casecmp-tests: Likewise.
48917         * modules/unicase/u32-casecoll-tests: Likewise.
48918         * modules/unicase/u32-casefold-tests: Likewise.
48919         * modules/unicase/u32-is-cased-tests: Likewise.
48920         * modules/unicase/u32-is-casefolded-tests: Likewise.
48921         * modules/unicase/u32-is-lowercase-tests: Likewise.
48922         * modules/unicase/u32-is-titlecase-tests: Likewise.
48923         * modules/unicase/u32-is-uppercase-tests: Likewise.
48924         * modules/unicase/u32-tolower-tests: Likewise.
48925         * modules/unicase/u32-totitle-tests: Likewise.
48926         * modules/unicase/u32-toupper-tests: Likewise.
48927         * modules/unicase/ulc-casecmp-tests: Likewise.
48928         * modules/unicase/ulc-casecoll-tests: Likewise.
48929         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
48930         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
48931         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
48932         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
48933         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
48934         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
48935         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
48936         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
48937         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
48938         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
48939         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
48940         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
48941         * modules/unictype/bidicategory-byname-tests: Likewise.
48942         * modules/unictype/bidicategory-name-tests: Likewise.
48943         * modules/unictype/bidicategory-of-tests: Likewise.
48944         * modules/unictype/bidicategory-test-tests: Likewise.
48945         * modules/unictype/block-list-tests: Likewise.
48946         * modules/unictype/block-of-tests: Likewise.
48947         * modules/unictype/block-test-tests: Likewise.
48948         * modules/unictype/category-C-tests: Likewise.
48949         * modules/unictype/category-Cc-tests: Likewise.
48950         * modules/unictype/category-Cf-tests: Likewise.
48951         * modules/unictype/category-Cn-tests: Likewise.
48952         * modules/unictype/category-Co-tests: Likewise.
48953         * modules/unictype/category-Cs-tests: Likewise.
48954         * modules/unictype/category-L-tests: Likewise.
48955         * modules/unictype/category-Ll-tests: Likewise.
48956         * modules/unictype/category-Lm-tests: Likewise.
48957         * modules/unictype/category-Lo-tests: Likewise.
48958         * modules/unictype/category-Lt-tests: Likewise.
48959         * modules/unictype/category-Lu-tests: Likewise.
48960         * modules/unictype/category-M-tests: Likewise.
48961         * modules/unictype/category-Mc-tests: Likewise.
48962         * modules/unictype/category-Me-tests: Likewise.
48963         * modules/unictype/category-Mn-tests: Likewise.
48964         * modules/unictype/category-N-tests: Likewise.
48965         * modules/unictype/category-Nd-tests: Likewise.
48966         * modules/unictype/category-Nl-tests: Likewise.
48967         * modules/unictype/category-No-tests: Likewise.
48968         * modules/unictype/category-P-tests: Likewise.
48969         * modules/unictype/category-Pc-tests: Likewise.
48970         * modules/unictype/category-Pd-tests: Likewise.
48971         * modules/unictype/category-Pe-tests: Likewise.
48972         * modules/unictype/category-Pf-tests: Likewise.
48973         * modules/unictype/category-Pi-tests: Likewise.
48974         * modules/unictype/category-Po-tests: Likewise.
48975         * modules/unictype/category-Ps-tests: Likewise.
48976         * modules/unictype/category-S-tests: Likewise.
48977         * modules/unictype/category-Sc-tests: Likewise.
48978         * modules/unictype/category-Sk-tests: Likewise.
48979         * modules/unictype/category-Sm-tests: Likewise.
48980         * modules/unictype/category-So-tests: Likewise.
48981         * modules/unictype/category-Z-tests: Likewise.
48982         * modules/unictype/category-Zl-tests: Likewise.
48983         * modules/unictype/category-Zp-tests: Likewise.
48984         * modules/unictype/category-Zs-tests: Likewise.
48985         * modules/unictype/category-and-not-tests: Likewise.
48986         * modules/unictype/category-and-tests: Likewise.
48987         * modules/unictype/category-byname-tests: Likewise.
48988         * modules/unictype/category-name-tests: Likewise.
48989         * modules/unictype/category-none-tests: Likewise.
48990         * modules/unictype/category-of-tests: Likewise.
48991         * modules/unictype/category-or-tests: Likewise.
48992         * modules/unictype/category-test-withtable-tests: Likewise.
48993         * modules/unictype/combining-class-tests: Likewise.
48994         * modules/unictype/ctype-alnum-tests: Likewise.
48995         * modules/unictype/ctype-alpha-tests: Likewise.
48996         * modules/unictype/ctype-blank-tests: Likewise.
48997         * modules/unictype/ctype-cntrl-tests: Likewise.
48998         * modules/unictype/ctype-digit-tests: Likewise.
48999         * modules/unictype/ctype-graph-tests: Likewise.
49000         * modules/unictype/ctype-lower-tests: Likewise.
49001         * modules/unictype/ctype-print-tests: Likewise.
49002         * modules/unictype/ctype-punct-tests: Likewise.
49003         * modules/unictype/ctype-space-tests: Likewise.
49004         * modules/unictype/ctype-upper-tests: Likewise.
49005         * modules/unictype/ctype-xdigit-tests: Likewise.
49006         * modules/unictype/decimal-digit-tests: Likewise.
49007         * modules/unictype/digit-tests: Likewise.
49008         * modules/unictype/mirror-tests: Likewise.
49009         * modules/unictype/numeric-tests: Likewise.
49010         * modules/unictype/property-alphabetic-tests: Likewise.
49011         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
49012         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
49013         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
49014         * modules/unictype/property-bidi-block-separator-tests: Likewise.
49015         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
49016         * modules/unictype/property-bidi-common-separator-tests: Likewise.
49017         * modules/unictype/property-bidi-control-tests: Likewise.
49018         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
49019         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
49020         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
49021         * modules/unictype/property-bidi-european-digit-tests: Likewise.
49022         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
49023         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
49024         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
49025         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
49026         * modules/unictype/property-bidi-pdf-tests: Likewise.
49027         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
49028         * modules/unictype/property-bidi-whitespace-tests: Likewise.
49029         * modules/unictype/property-byname-tests: Likewise.
49030         * modules/unictype/property-combining-tests: Likewise.
49031         * modules/unictype/property-composite-tests: Likewise.
49032         * modules/unictype/property-currency-symbol-tests: Likewise.
49033         * modules/unictype/property-dash-tests: Likewise.
49034         * modules/unictype/property-decimal-digit-tests: Likewise.
49035         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
49036         * modules/unictype/property-deprecated-tests: Likewise.
49037         * modules/unictype/property-diacritic-tests: Likewise.
49038         * modules/unictype/property-extender-tests: Likewise.
49039         * modules/unictype/property-format-control-tests: Likewise.
49040         * modules/unictype/property-grapheme-base-tests: Likewise.
49041         * modules/unictype/property-grapheme-extend-tests: Likewise.
49042         * modules/unictype/property-grapheme-link-tests: Likewise.
49043         * modules/unictype/property-hex-digit-tests: Likewise.
49044         * modules/unictype/property-hyphen-tests: Likewise.
49045         * modules/unictype/property-id-continue-tests: Likewise.
49046         * modules/unictype/property-id-start-tests: Likewise.
49047         * modules/unictype/property-ideographic-tests: Likewise.
49048         * modules/unictype/property-ids-binary-operator-tests: Likewise.
49049         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
49050         * modules/unictype/property-ignorable-control-tests: Likewise.
49051         * modules/unictype/property-iso-control-tests: Likewise.
49052         * modules/unictype/property-join-control-tests: Likewise.
49053         * modules/unictype/property-left-of-pair-tests: Likewise.
49054         * modules/unictype/property-line-separator-tests: Likewise.
49055         * modules/unictype/property-logical-order-exception-tests: Likewise.
49056         * modules/unictype/property-lowercase-tests: Likewise.
49057         * modules/unictype/property-math-tests: Likewise.
49058         * modules/unictype/property-non-break-tests: Likewise.
49059         * modules/unictype/property-not-a-character-tests: Likewise.
49060         * modules/unictype/property-numeric-tests: Likewise.
49061         * modules/unictype/property-other-alphabetic-tests: Likewise.
49062         * modules/unictype/property-other-default-ignorable-code-point-tests:
49063         Likewise.
49064         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
49065         * modules/unictype/property-other-id-continue-tests: Likewise.
49066         * modules/unictype/property-other-id-start-tests: Likewise.
49067         * modules/unictype/property-other-lowercase-tests: Likewise.
49068         * modules/unictype/property-other-math-tests: Likewise.
49069         * modules/unictype/property-other-uppercase-tests: Likewise.
49070         * modules/unictype/property-paired-punctuation-tests: Likewise.
49071         * modules/unictype/property-paragraph-separator-tests: Likewise.
49072         * modules/unictype/property-pattern-syntax-tests: Likewise.
49073         * modules/unictype/property-pattern-white-space-tests: Likewise.
49074         * modules/unictype/property-private-use-tests: Likewise.
49075         * modules/unictype/property-punctuation-tests: Likewise.
49076         * modules/unictype/property-quotation-mark-tests: Likewise.
49077         * modules/unictype/property-radical-tests: Likewise.
49078         * modules/unictype/property-sentence-terminal-tests: Likewise.
49079         * modules/unictype/property-soft-dotted-tests: Likewise.
49080         * modules/unictype/property-space-tests: Likewise.
49081         * modules/unictype/property-terminal-punctuation-tests: Likewise.
49082         * modules/unictype/property-test-tests: Likewise.
49083         * modules/unictype/property-titlecase-tests: Likewise.
49084         * modules/unictype/property-unassigned-code-value-tests: Likewise.
49085         * modules/unictype/property-unified-ideograph-tests: Likewise.
49086         * modules/unictype/property-uppercase-tests: Likewise.
49087         * modules/unictype/property-variation-selector-tests: Likewise.
49088         * modules/unictype/property-white-space-tests: Likewise.
49089         * modules/unictype/property-xid-continue-tests: Likewise.
49090         * modules/unictype/property-xid-start-tests: Likewise.
49091         * modules/unictype/property-zero-width-tests: Likewise.
49092         * modules/unictype/scripts-tests: Likewise.
49093         * modules/unictype/syntax-c-ident-tests: Likewise.
49094         * modules/unictype/syntax-c-whitespace-tests: Likewise.
49095         * modules/unictype/syntax-java-ident-tests: Likewise.
49096         * modules/unictype/syntax-java-whitespace-tests: Likewise.
49097         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
49098         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
49099         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
49100         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
49101         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
49102         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
49103         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
49104         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
49105         * modules/uniname/uniname-tests: Likewise.
49106         * modules/uninorm/canonical-decomposition-tests: Likewise.
49107         * modules/uninorm/compat-decomposition-tests: Likewise.
49108         * modules/uninorm/composition-tests: Likewise.
49109         * modules/uninorm/decomposing-form-tests: Likewise.
49110         * modules/uninorm/decomposition-tests: Likewise.
49111         * modules/uninorm/filter-tests: Likewise.
49112         * modules/uninorm/nfc-tests: Likewise.
49113         * modules/uninorm/nfd-tests: Likewise.
49114         * modules/uninorm/nfkc-tests: Likewise.
49115         * modules/uninorm/nfkd-tests: Likewise.
49116         * modules/uninorm/u8-normcmp-tests: Likewise.
49117         * modules/uninorm/u8-normcoll-tests: Likewise.
49118         * modules/uninorm/u16-normcmp-tests: Likewise.
49119         * modules/uninorm/u16-normcoll-tests: Likewise.
49120         * modules/uninorm/u32-normcmp-tests: Likewise.
49121         * modules/uninorm/u32-normcoll-tests: Likewise.
49122         * modules/unistdio/u8-asnprintf-tests: Likewise.
49123         * modules/unistdio/u8-vasnprintf-tests: Likewise.
49124         * modules/unistdio/u8-vasprintf-tests: Likewise.
49125         * modules/unistdio/u8-vsnprintf-tests: Likewise.
49126         * modules/unistdio/u8-vsprintf-tests: Likewise.
49127         * modules/unistdio/u16-asnprintf-tests: Likewise.
49128         * modules/unistdio/u16-vasnprintf-tests: Likewise.
49129         * modules/unistdio/u16-vasprintf-tests: Likewise.
49130         * modules/unistdio/u16-vsnprintf-tests: Likewise.
49131         * modules/unistdio/u16-vsprintf-tests: Likewise.
49132         * modules/unistdio/u32-asnprintf-tests: Likewise.
49133         * modules/unistdio/u32-vasnprintf-tests: Likewise.
49134         * modules/unistdio/u32-vasprintf-tests: Likewise.
49135         * modules/unistdio/u32-vsnprintf-tests: Likewise.
49136         * modules/unistdio/u32-vsprintf-tests: Likewise.
49137         * modules/unistdio/ulc-asnprintf-tests: Likewise.
49138         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
49139         * modules/unistdio/ulc-vasprintf-tests: Likewise.
49140         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
49141         * modules/unistdio/ulc-vsprintf-tests: Likewise.
49142         * modules/unistr/u8-check-tests: Likewise.
49143         * modules/unistr/u8-chr-tests: Likewise.
49144         * modules/unistr/u8-cmp-tests: Likewise.
49145         * modules/unistr/u8-cmp2-tests: Likewise.
49146         * modules/unistr/u8-cpy-alloc-tests: Likewise.
49147         * modules/unistr/u8-cpy-tests: Likewise.
49148         * modules/unistr/u8-mblen-tests: Likewise.
49149         * modules/unistr/u8-mbsnlen-tests: Likewise.
49150         * modules/unistr/u8-mbtouc-tests: Likewise.
49151         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
49152         * modules/unistr/u8-mbtoucr-tests: Likewise.
49153         * modules/unistr/u8-move-tests: Likewise.
49154         * modules/unistr/u8-next-tests: Likewise.
49155         * modules/unistr/u8-prev-tests: Likewise.
49156         * modules/unistr/u8-set-tests: Likewise.
49157         * modules/unistr/u8-stpcpy-tests: Likewise.
49158         * modules/unistr/u8-stpncpy-tests: Likewise.
49159         * modules/unistr/u8-strcat-tests: Likewise.
49160         * modules/unistr/u8-strcmp-tests: Likewise.
49161         * modules/unistr/u8-strcoll-tests: Likewise.
49162         * modules/unistr/u8-strcpy-tests: Likewise.
49163         * modules/unistr/u8-strdup-tests: Likewise.
49164         * modules/unistr/u8-strlen-tests: Likewise.
49165         * modules/unistr/u8-strmblen-tests: Likewise.
49166         * modules/unistr/u8-strmbtouc-tests: Likewise.
49167         * modules/unistr/u8-strncat-tests: Likewise.
49168         * modules/unistr/u8-strncmp-tests: Likewise.
49169         * modules/unistr/u8-strncpy-tests: Likewise.
49170         * modules/unistr/u8-strnlen-tests: Likewise.
49171         * modules/unistr/u8-to-u16-tests: Likewise.
49172         * modules/unistr/u8-to-u32-tests: Likewise.
49173         * modules/unistr/u8-uctomb-tests: Likewise.
49174         * modules/unistr/u16-check-tests: Likewise.
49175         * modules/unistr/u16-chr-tests: Likewise.
49176         * modules/unistr/u16-cmp-tests: Likewise.
49177         * modules/unistr/u16-cmp2-tests: Likewise.
49178         * modules/unistr/u16-cpy-alloc-tests: Likewise.
49179         * modules/unistr/u16-cpy-tests: Likewise.
49180         * modules/unistr/u16-mblen-tests: Likewise.
49181         * modules/unistr/u16-mbsnlen-tests: Likewise.
49182         * modules/unistr/u16-mbtouc-tests: Likewise.
49183         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
49184         * modules/unistr/u16-mbtoucr-tests: Likewise.
49185         * modules/unistr/u16-move-tests: Likewise.
49186         * modules/unistr/u16-next-tests: Likewise.
49187         * modules/unistr/u16-prev-tests: Likewise.
49188         * modules/unistr/u16-set-tests: Likewise.
49189         * modules/unistr/u16-stpcpy-tests: Likewise.
49190         * modules/unistr/u16-stpncpy-tests: Likewise.
49191         * modules/unistr/u16-strcat-tests: Likewise.
49192         * modules/unistr/u16-strcmp-tests: Likewise.
49193         * modules/unistr/u16-strcoll-tests: Likewise.
49194         * modules/unistr/u16-strcpy-tests: Likewise.
49195         * modules/unistr/u16-strdup-tests: Likewise.
49196         * modules/unistr/u16-strlen-tests: Likewise.
49197         * modules/unistr/u16-strmblen-tests: Likewise.
49198         * modules/unistr/u16-strmbtouc-tests: Likewise.
49199         * modules/unistr/u16-strncat-tests: Likewise.
49200         * modules/unistr/u16-strncmp-tests: Likewise.
49201         * modules/unistr/u16-strncpy-tests: Likewise.
49202         * modules/unistr/u16-strnlen-tests: Likewise.
49203         * modules/unistr/u16-to-u32-tests: Likewise.
49204         * modules/unistr/u16-to-u8-tests: Likewise.
49205         * modules/unistr/u16-uctomb-tests: Likewise.
49206         * modules/unistr/u32-check-tests: Likewise.
49207         * modules/unistr/u32-chr-tests: Likewise.
49208         * modules/unistr/u32-cmp-tests: Likewise.
49209         * modules/unistr/u32-cmp2-tests: Likewise.
49210         * modules/unistr/u32-cpy-alloc-tests: Likewise.
49211         * modules/unistr/u32-cpy-tests: Likewise.
49212         * modules/unistr/u32-mblen-tests: Likewise.
49213         * modules/unistr/u32-mbsnlen-tests: Likewise.
49214         * modules/unistr/u32-mbtouc-tests: Likewise.
49215         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
49216         * modules/unistr/u32-mbtoucr-tests: Likewise.
49217         * modules/unistr/u32-move-tests: Likewise.
49218         * modules/unistr/u32-next-tests: Likewise.
49219         * modules/unistr/u32-prev-tests: Likewise.
49220         * modules/unistr/u32-set-tests: Likewise.
49221         * modules/unistr/u32-stpcpy-tests: Likewise.
49222         * modules/unistr/u32-stpncpy-tests: Likewise.
49223         * modules/unistr/u32-strcat-tests: Likewise.
49224         * modules/unistr/u32-strcmp-tests: Likewise.
49225         * modules/unistr/u32-strcoll-tests: Likewise.
49226         * modules/unistr/u32-strcpy-tests: Likewise.
49227         * modules/unistr/u32-strdup-tests: Likewise.
49228         * modules/unistr/u32-strlen-tests: Likewise.
49229         * modules/unistr/u32-strmblen-tests: Likewise.
49230         * modules/unistr/u32-strmbtouc-tests: Likewise.
49231         * modules/unistr/u32-strncat-tests: Likewise.
49232         * modules/unistr/u32-strncmp-tests: Likewise.
49233         * modules/unistr/u32-strncpy-tests: Likewise.
49234         * modules/unistr/u32-strnlen-tests: Likewise.
49235         * modules/unistr/u32-to-u16-tests: Likewise.
49236         * modules/unistr/u32-to-u8-tests: Likewise.
49237         * modules/unistr/u32-uctomb-tests: Likewise.
49238         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
49239         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
49240         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
49241         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
49242         * modules/uniwidth/u8-strwidth-tests: Likewise.
49243         * modules/uniwidth/u8-width-tests: Likewise.
49244         * modules/uniwidth/u16-strwidth-tests: Likewise.
49245         * modules/uniwidth/u16-width-tests: Likewise.
49246         * modules/uniwidth/u32-strwidth-tests: Likewise.
49247         * modules/uniwidth/u32-width-tests: Likewise.
49248         * modules/uniwidth/width-tests: Likewise.
49250 2010-05-18  Richard Jones  <rjones@redhat.com>
49252         doc: users.txt: list hivex
49253         * users.txt: Add hivex.
49255 2010-05-18  Richard Jones  <rjones@redhat.com>
49257         doc: users.txt: list febootstrap
49258         * users.txt: Add febootstrap.
49260 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
49262         bootstrap: fix an error when gnulib is not used as a git submodule
49263         * build-aux/bootstrap (gnulib_path): If its length is zero then
49264         assign "gnulib" to it.
49265         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
49267 2010-05-16  Bruno Haible  <bruno@clisp.org>
49269         Avoid autoconf warnings about AM_ICONV.
49270         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
49271         2.64.
49273 2010-05-16  Bruno Haible  <bruno@clisp.org>
49275         absolute-header: Make the macro usable in more situations.
49276         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
49277         from gl_ABSOLUTE_HEADER.
49278         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
49280 2010-05-16  James Youngman  <jay@gnu.org>
49282         doc: update users.txt
49283         * users.txt: Add CSSC.
49285 2010-05-16  Jim Meyering  <meyering@redhat.com>
49287         init.sh: fix an error in the previous change; add more comments
49288         * tests/init.sh: Compare exit code in loop against 9, not 2.
49289         Patch by Bruno Haible.
49290         Make the two tests more similar by adding an empty "then" clause.
49291         Add comments.
49293         init.sh: avoid unnecessary shell re-exec
49294         * tests/init.sh: Improve the re-exec-required check to first test the
49295         current shell.  If it passes the test, do not search for a shell that
49296         does pass, and do not re-exec.  This test is particularly contorted to
49297         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
49298         of $(...) evokes a syntax error and causes immediate shell exit with
49299         status 2.  Bruno Haible reported that the re-exec made it impossible
49300         to single-step through any init.sh-using script.
49302 2010-05-16  Bruno Haible  <bruno@clisp.org>
49304         Fix collision between gnulib's and libintl's printf replacements.
49305         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
49306         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
49307         (printf): When using GNU C, map the __printf__ function to rpl_printf
49308         via __asm__. When not using GNU C, define rpl_printf instead of
49309         __printf__.
49310         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
49311         commit.
49312         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
49313         commit.
49314         * m4/asm-underscore.m4: New file.
49315         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
49316         * modules/stdio (Files): Add m4/asm-underscore.m4.
49317         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
49318         Reported by Ben Pfaff.
49320 2010-05-16  Bruno Haible  <bruno@clisp.org>
49322         verify: Avoid skipping the test on openSUSE 11.0.
49323         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
49325 2010-05-13  Bruno Haible  <bruno@clisp.org>
49327         Avoid useless warnings from G++.
49328         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
49329         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
49330         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49332 2010-05-11  Jim Meyering  <meyering@redhat.com>
49334         maint.mk: tweak preceding change
49335         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
49336         regexps tighter by anchoring at EOL, and make the new group "shy"
49337         for slightly decreased overhead.
49339 2010-05-11  Eric Blake  <eblake@redhat.com>
49341         maint.mk: gnulib doesn't guarantee NSIG
49342         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
49344 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
49346         test-pwrite.c: Remove unused variable declaration.
49347         * tests/test-pwrite.c (main): Remove read_buf declaration.
49349         Remove useless test-pwrite.sh file.
49350         * tests/test-pwrite.sh: Delete file.
49351         * modules/pwrite-tests: Remove references.
49352         Reported by Bruno Haible.
49354 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
49356         init.sh: fix a typo
49357         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
49359 2010-05-10  Jim Meyering  <meyering@redhat.com>
49361         maint.mk: avoid using a temporary file in the always-defined-macros check
49362         * top/maint.mk (.re-defmac): Remove rule.
49363         (gl_trap_): Remove definition.
49364         (sc_prohibit_always-defined_macros): Rewrite not to create and
49365         depend on a temporary file.  Instead, depend on GNU grep's ability
49366         to read a list of regular expressions from stdin when given "-f -".
49368 2010-05-09  Bruno Haible  <bruno@clisp.org>
49370         Update to GNU gettext 0.18, part 1.
49371         * m4/gettext.m4: Update to GNU gettext 0.18.
49372         * m4/intl.m4: Likewise.
49373         * m4/po.m4: Likewise.
49374         * modules/gettext (Files): Add m4/fcntl-o.m4.
49375         (configure.ac): Require gettext infrastructure from version 0.18.
49377 2010-05-09  Jim Meyering  <meyering@redhat.com>
49379         init.sh: enable MALLOC_PERTURB_
49380         * tests/init.sh: Enable glibc's malloc-perturbing option.
49382         maint.mk: improve sc_cross_check_PATH_usage_in_tests
49383         With my recent change in init.sh from the two-line form:
49384             -#   : ${srcdir=.}
49385             -#   . "$srcdir/init.sh"; path_prepend_ .
49386             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
49387         I noticed that using the one-line form would cause this test
49388         to fail with a false-positive, or to stop working altogether,
49389         depending on whether help-version changed or all the tests did.
49390         * top/maint.mk (_hv_regex): Remove this definition.
49391         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
49392         (_hv_regex_strong): Use a stronger regex to check for conformance.
49393         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
49394         Give a separate diagnostic for lack of conforming use.
49396         maint.mk: prohibit definition of symbols defined by gnulib
49397         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
49398         definition of symbols defined by gnulib.
49400 2010-05-09  Bruno Haible  <bruno@clisp.org>
49402         acl: Avoid test failure on Cygwin-hosted mingw.
49403         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
49405 2010-05-09  Bruno Haible  <bruno@clisp.org>
49407         error: Use system's fcntl function.
49408         * lib/error.c (fcntl): Undefine.
49410 2010-05-09  Jim Meyering  <meyering@redhat.com>
49412         verify: adjust formatting to be more consistent
49413         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
49414         argument-list '('s, and after one comma.
49416 2010-05-09  Bruno Haible  <bruno@clisp.org>
49418         error: More reliable output on mingw.
49419         * lib/error.c: Include <windows.h>.
49420         (is_open): New function.
49421         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
49422         defined.
49424 2010-05-09  Bruno Haible  <bruno@clisp.org>
49426         vasnprintf: Fix syntax errors in libintl build on mingw.
49427         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
49428         pad_ourselves and prec_ourselves after use.
49430 2010-05-08  Bruno Haible  <bruno@clisp.org>
49432         * lib/config.charset: Update comments for Cygwin 1.7.
49433         * lib/localcharset.c: Likewise.
49435 2010-05-07  Jim Meyering  <meyering@redhat.com>
49437         init.sh: improve comments
49438         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
49439         . "${srcdir=.}/init.sh"; path_prepend_ .
49440         Add a note about path_prepend_ and the alternative of using
49441         TESTS_ENVIRONMENT.
49443 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
49445         exclude: Unescape hashed patterns in wildcard mode.
49446         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
49447         to the hash list.
49448         * tests/test-exclude8.sh: New test case.
49449         * modules/exclude-tests: Add new test.
49451 2010-05-05  Eric Blake  <eblake@redhat.com>
49453         verify: automate tests
49454         * modules/verify-tests: New module.
49455         * tests/test-verify.sh: New file.
49456         * tests/test-verify.c: Guard each negative test with a unique id.
49457         Also avoid warning about unused left hand of comma expressions.
49459 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
49461         Further improvements to verify.h, suggested by Eric Blake.
49462         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
49463         the GL_* versions, to avoid collision with OpenGL.
49464         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
49465         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
49466         than testing merely whether it's defined.
49468         Modify verify.h to pacify gcc -Wredundant_decls.
49469         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
49470         These use the prefix "GL_" since they're likely to be useful elsewhere.
49471         We may need to break them out into a different .h file.
49472         (__COUNTER__): Define to 0 if the compiler doesn't support it.
49473         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
49474         of verify_function__.
49476 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
49478         Tests for module pwrite.
49479         * modules/pwrite-tests: New file.
49480         * tests/test-pwrite.sh: New file.
49481         * tests/test-pwrite.c: New file.
49483         New module pwrite.
49484         * lib/unistd.in.h (pwrite): New declaration.
49485         * lib/pwrite.c: New file, from glibc with modifications.
49486         * m4/pwrite.m4: New file.
49487         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
49488         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
49489         REPLACE_PWRITE.
49490         * modules/pwrite: New file.
49491         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
49492         REPLACE_PWRITE.
49493         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
49494         * doc/posix-functions/pwrite.texi: Mention the new module.
49496 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
49498         pread: Update documentation.
49499         * doc/posix-functions/pread.texi: Mention the 'pread' module.
49501 2010-05-04  Eric Blake  <eblake@redhat.com>
49503         docs: update cygwin progress
49504         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
49505         this bug.
49506         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
49507         Added in cygwin 1.7.2.
49508         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
49509         Likewise.
49510         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
49511         Likewise.
49512         * doc/glibc-functions/dup3.texi (dup3): Likewise.
49513         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
49514         * doc/glibc-functions/accept4.texi (accept4): Likewise.
49515         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
49516         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
49517         Mention nproc module.
49518         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
49519         bug in cygwin 1.7.5 addition.
49520         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
49521         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
49522         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
49523         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
49524         1.7.5.
49525         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
49526         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
49527         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
49528         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
49529         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
49530         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
49531         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
49532         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
49533         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
49534         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
49535         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
49536         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
49537         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
49538         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
49539         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
49540         Likewise.
49541         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
49542         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
49543         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
49544         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
49545         Likewise.
49546         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
49547         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
49548         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
49549         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
49550         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
49551         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
49552         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
49553         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
49554         Likewise.
49555         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
49556         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
49557         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
49558         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
49559         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
49560         Likewise.
49561         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
49562         Likewise.
49563         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
49564         Likewise.
49565         * doc/glibc-functions/xdrrec_endofrecord.texi
49566         (xdrrec_endofrecord): Likewise.
49567         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
49568         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
49569         Likewise.
49570         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
49571         Likewise.
49573 2010-05-04  Jim Meyering  <meyering@redhat.com>
49575         gendocs.sh: make its "-s FILE" option more useful
49576         * build-aux/gendocs.sh: When honoring the -s FILE option, update
49577         $PACKAGE to reflect the probably-different basename of "FILE".
49579 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49581         bootstrap: don't ignore download_po_files failure
49582         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
49583         failure.
49585 2010-05-03  Jim Meyering  <meyering@redhat.com>
49587         maint.mk: allow to pass options to gendocs.sh
49588         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
49589         (gendocs_options_): New overridable variable.
49591         gnu-web-doc-update: don't ignore configure or build failure
49592         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
49594         announce-gen: backslash-escape '@'s in --help output
49595         * build-aux/announce-gen: Fix syntax errors.
49597         maint.mk, announce-gen: allow project-specific announcement mail headers
49598         * top/maint.mk (translation_project_): Define default.
49599         (announcement_Cc_, announcement_mail_headers_): Likewise.
49600         (announcement): Invoke announce-gen with new --mail-headers option.
49601         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
49603         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
49604         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
49605         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
49606         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
49607         line in the "err2" output file when running "make check" in verbose
49608         mode (i.e., with set -x enabled).
49610 2010-05-03  Bruno Haible  <bruno@clisp.org>
49612         wctob: Fix for weird platforms.
49613         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
49614         argument value.
49616 2010-05-03  Jim Meyering  <meyering@redhat.com>
49618         maint.mk: prohibit unwarranted use of <strings.h>
49619         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
49620         strings.h in a file that does not also use strcasecmp, strncasecmp,
49621         ffs or ffsll.
49623         maint.mk: remove obsolete comments
49624         * top/maint.mk: Remove stale, commented-out rules.
49626 2010-05-02  Bruno Haible  <bruno@clisp.org>
49628         wcwidth: Declare also when it's aliased.
49629         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
49630         macro.
49632 2010-05-02  Bruno Haible  <bruno@clisp.org>
49634         Fix regression from 2010-04-25.
49635         * gnulib-tool (func_modules_transitive_closure): Check the status of
49636         all modules, not only of the tests that are of the form foo-tests where
49637         foo is a module.
49639 2010-05-02  Bruno Haible  <bruno@clisp.org>
49641         wctob: Work around nasty Cygwin 1.7.2 bug.
49642         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
49643         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
49645 2010-05-01  Bruno Haible  <bruno@clisp.org>
49647         fpurge: Sharper test.
49648         * tests/test-fpurge.c (main): Add one more ftell check.
49649         * modules/fpurge-tests (Depends-on): Add ftell.
49650         Suggested by Eric Blake.
49652 2010-05-01  Bruno Haible  <bruno@clisp.org>
49654         ftello: Another test.
49655         * tests/test-ftello3.c: New file.
49656         * modules/ftello-tests (Files): Add it.
49657         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
49658         MOSTLYCLEANFILES.
49660         ftell: Another test.
49661         * tests/test-ftell3.c: New file.
49662         * modules/ftell-tests (Files): Add it.
49663         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
49664         MOSTLYCLEANFILES.
49666 2010-05-01  Bruno Haible  <bruno@clisp.org>
49668         ftell, ftello: Work around Solaris bug.
49669         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
49670         * lib/ftello.c: Include stdio-impl.h.
49671         (ftello): On Solaris, when _IOWRT is set, compute the result without
49672         looking at _IOREAD.
49673         * modules/ftello (Files): Add lib/stdio-impl.h.
49674         * doc/posix-functions/ftell.texi: Mention Solaris bug.
49675         * doc/posix-functions/ftello.texi: Likewise.
49676         Reported by Eric Blake.
49678 2010-05-01  Bruno Haible  <bruno@clisp.org>
49680         freading: Adapt to special meaning of _IOREAD flag on Solaris.
49681         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
49682         the _IOWRT flag is also set.
49684 2010-05-01  Bruno Haible  <bruno@clisp.org>
49686         Fix doc about a HP-UX stdio bug.
49687         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
49688         * doc/posix-functions/ftello.texi: Likewise.
49690 2010-05-01  Bruno Haible  <bruno@clisp.org>
49692         lseek test: Fix failure on Solaris.
49693         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
49694         output.
49696 2010-04-30  Jim Meyering  <meyering@redhat.com>
49698         bootstrap: don't ignore failure to generate po*/Makevars
49699         * build-aux/bootstrap (with_gettext): Don't ignore failure
49700         to create po/Makevars or runtime-po/Makevars.
49702 2010-04-29  Eric Blake  <eblake@redhat.com>
49704         headers: relax license to LGPLv2+
49705         * modules/fcntl-h (License): Relax license.
49706         * modules/getopt-posix (License): Likewise.
49707         * modules/locale (License): Likewise.
49708         * modules/math (License): Likewise.
49709         * modules/pty (License): Likewise.
49710         * modules/sched (License): Likewise.
49711         * modules/search (License): Likewise.
49712         * modules/spawn (License): Likewise.
49713         * modules/stdarg (License): Likewise.
49714         * modules/sysexits (License): Likewise.
49716 2010-04-29  Jim Meyering  <meyering@redhat.com>
49718         inttypes: relax license to LGPLv2+
49719         * modules/inttypes (License): Relax license.
49721 2010-04-29  Simon Josefsson  <simon@josefsson.org>
49723         * top/maint.mk (indent): Run twice to produce idempotent results.
49725 2010-04-28  Bruno Haible  <bruno@clisp.org>
49727         getdate: Generate getdate.c in the source directory.
49728         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
49729         MOSTLYCLEANFILES.
49730         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
49732 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
49734         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
49735         is not declared as a const *; avoid warnings in that case.
49737 2010-04-28  Eric Blake  <eblake@redhat.com>
49739         canonicalize-lgpl: avoid compiler warning
49740         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
49741         declaration' / 'extraneous semicolon' warning with some compilers.
49742         Reported by Andreas Gruenbacher.
49744 2010-04-28  Jim Meyering  <meyering@redhat.com>
49746         init.sh: ensure a more reliable exit status when exiting via trap
49747         * tests/init.sh (setup_): Don't rely on $? in signal handler.
49748         Inspired by patches from Dmitry V. Levin.
49749         Also trap on signal 3 (SIGQUIT).
49751 2010-04-27  Bruno Haible  <bruno@clisp.org>
49753         Update doc about utimes().
49754         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
49755         'utimens' module.
49756         Reported by Andreas Gruenbacher <agruen@suse.de>.
49758 2010-04-27  Eric Blake  <eblake@redhat.com>
49760         full-read, full-write: relax license
49761         * modules/full-read (License): Drop to LGPLv2+.
49762         * modules/full-write (License): Likewise.
49763         * modules/safe-read (License): Likewise.
49764         * modules/safe-write (License): Likewise.
49766         pthread: mention library for linking
49767         * modules/pthread (Link): Mention $(LIB_PTHREAD).
49769 2010-04-27  Jim Meyering  <meyering@redhat.com>
49771         maint.mk: fix a bug introduced in last change
49772         * top/maint.mk (gl_assured_headers_): Now that all names are on
49773         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
49774         is not anchored to end of word, it should be adequate.
49776         maint.mk: avoid side-effect in latest syntax-check
49777         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
49778         to run commands via $(shell...), and hence to incur cost only when
49779         the new rule is actually run.
49781         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
49782         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
49783         and use that to create a regexp used to detect all #if HAVE_..._H uses.
49784         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
49785         (gl_assured_headers_, az_, AZ_): Define.
49786         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
49788 2010-04-26  Jim Meyering  <jim@meyering.net>
49789             Bruno Haible  <bruno@clisp.org>
49791         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
49792         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
49793         Prompted by an exchange with Gilles Espinasse.
49795 2010-04-26  Jim Meyering  <meyering@redhat.com>
49797         git-version-gen: aesthetic tweak
49798         * build-aux/git-version-gen: Use "$nl" rather than a literal,
49799         so that the command remains on a single line.
49801 2010-04-26  Eric Blake  <eblake@redhat.com>
49803         git-version-gen: allow use on EBCDIC hosts
49804         * build-aux/git-version-gen (dirty): Use literal rather than tying
49805         ourselves to ascii.
49806         Reported by Steve Goetze.
49808 2010-04-25  Bruno Haible  <bruno@clisp.org>
49810         netdb: Add support for GNULIB_POSIXCHECK.
49811         * lib/netdb.in.h: Include warn-on-use.h.
49812         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
49813         functions are used when GNULIB_POSIXCHECK is defined and the
49814         getaddrinfo module is not in use.
49815         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
49816         freeaddrinfo, gai_strerror, getnameinfo are declared.
49817         * modules/netdb (Depends-on): Add warn-on-use.
49818         (Makefile.am): Include warn-on-use.h in netdb.h.
49820 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
49822         build: avoid "make check" failure without .git/ directory
49823         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
49824         there is no .git/ directory.
49826 2010-04-25  Bruno Haible  <bruno@clisp.org>
49828         ptsname: Fix misuse of ttyname_r.
49829         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
49830         of errno.
49832 2010-04-25  Bruno Haible  <bruno@clisp.org>
49834         ttyname_r: Make it work on Solaris 10.
49835         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
49836         if the system function has the POSIX declaration. Test whether the
49837         function fails if the buffer is less than 128 bytes large.
49838         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
49839         system's ttyname_r function. Provide a reasonably large buffer.
49840         * modules/ttyname_r (Depends-on): Add extensions.
49841         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
49843 2010-04-25  Bruno Haible  <bruno@clisp.org>
49845         Use the 'extensions' module for some more functions on Solaris.
49846         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
49847         module.
49848         * doc/posix-functions/ctime_r.texi: Likewise.
49849         * doc/posix-functions/getgrgid_r.texi: Likewise.
49850         * doc/posix-functions/getgrnam_r.texi: Likewise.
49851         * doc/posix-functions/getpwnam_r.texi: Likewise.
49852         * doc/posix-functions/getpwuid_r.texi: Likewise.
49853         * doc/posix-functions/readdir_r.texi: Likewise.
49854         * doc/posix-functions/sigwait.texi: Likewise.
49855         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
49856         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
49858 2010-04-25  Bruno Haible  <bruno@clisp.org>
49860         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
49861         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
49862         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
49863         * lib/ttyname_r.c: Include <limits.h>.
49864         (ttyname_r): Define using the system's ttyname_r function, if it exists
49865         and not on Solaris.
49866         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
49867         set.
49868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
49869         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
49870         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
49871         Reported by Simon Josefsson.
49873 2010-04-25  Bruno Haible  <bruno@clisp.org>
49875         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
49876         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
49877         * doc/posix-functions/ctime_r.texi: Likewise.
49878         * doc/posix-functions/getgrgid_r.texi: Likewise.
49879         * doc/posix-functions/getgrnam_r.texi: Likewise.
49880         * doc/posix-functions/getlogin_r.texi: Likewise.
49881         * doc/posix-functions/getpwnam_r.texi: Likewise.
49882         * doc/posix-functions/getpwuid_r.texi: Likewise.
49883         * doc/posix-functions/readdir_r.texi: Likewise.
49884         * doc/posix-functions/sigwait.texi: Likewise.
49885         * doc/posix-functions/ttyname_r.texi: Likewise.
49886         Reported by Simon Josefsson.
49888 2010-04-25  Bruno Haible  <bruno@clisp.org>
49890         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
49891         * gnulib-tool (func_usage): Document that --with-*-tests options apply
49892         also to --create-testdir.
49893         (func_acceptable): Don't consider the status of *-tests modules here.
49894         (func_modules_transitive_closure): Consider it here, before including a
49895         test module.
49896         (func_import, func_create_testdir): Set inc_all_direct_tests,
49897         inc_all_indirect_tests.
49898         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
49899         --create-testdir and --create-megatestdir.
49901 2010-04-25  Bruno Haible  <bruno@clisp.org>
49903         gnulib-tool: Add --without-*-tests options.
49904         * gnulib-tool (func_usage): Document the --without-*-tests options.
49905         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
49906         excl_unportable_tests): New variables.
49907         Fail if they are specified with --import or --update.
49908         (func_acceptable): Respect the excl_*_tests variables.
49909         (func_import): Set the excl_*_tests variables to empty.
49911 2010-04-25  Simon Josefsson  <simon@josefsson.org>
49912             Bruno Haible  <bruno@clisp.org>
49914         Work around a MacOS X 10.4 bug with openpty.
49915         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
49916         * tests/test-openpty.c (main): Close the master side explicitly.
49918 2010-04-25  Bruno Haible  <bruno@clisp.org>
49920         strnlen: Fix a C++ test error on MacOS X and Solaris.
49921         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
49922         the function is not declared.
49923         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
49924         Simon Josefsson.
49926 2010-04-24  Bruno Haible  <bruno@clisp.org>
49928         Avoid a gcc warning.
49929         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
49930         of correct type for %08lx directive.
49931         Reported by Eric Blake.
49933 2010-04-24  Bruno Haible  <bruno@clisp.org>
49935         vasnprintf: Correct errno value in case of out-of-memory.
49936         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
49937         or sprintf. Use the errno value from SNPRINTF or sprintf.
49938         Reported by Ian Beckwith <ianb@erislabs.net>.
49940 2010-04-24  Bruno Haible  <bruno@clisp.org>
49942         ansi-c++-opt: Find correct compiler when cross-compiling.
49943         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
49944         AC_CHECK_PROGS.
49945         Reported by Simon Josefsson.
49947 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
49949         vc-list-files: Add support for subversion
49950         * build-aux/vc-list-files: Use "svn list" to generate the list of
49951         files controlled by subversion.
49953 2010-04-23  Jim Meyering  <meyering@redhat.com>
49955         vc-list-files tests: convert to use init.sh
49956         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
49957         path_prepend_.
49958         Use Exit, not exit.
49959         Use skip_ rather than open coding it.
49960         Remove trap set-up and compare definitions.
49961         * tests/test-vc-list-files-git.sh: Likewise.
49962         * modules/vc-list-files-tests (Files): Add tests/init.sh.
49964 2010-04-22  Simon Josefsson  <simon@josefsson.org>
49966         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
49967         backup files.
49969 2010-04-21  Simon Josefsson  <simon@josefsson.org>
49971         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
49973 2010-04-20  Eric Blake  <eblake@redhat.com>
49975         tests: be robust to ignored SIGPIPE
49976         * tests/test-select-in.sh: Consume all output.
49977         * tests/test-lseek.sh: Check correct exit status, while avoiding
49978         EPIPE.
49980 2010-04-20  Simon Josefsson  <simon@josefsson.org>
49981             Bruno Haible  <bruno@clisp.org>
49983         visibility: Don't use -fvisibility if it leads to a warning.
49984         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
49985         yes, don't pretend that visibility works if it leads to a warning.
49986         Reported by Mike Gran <spk121@yahoo.com>.
49988 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
49990         * build-aux/bootstrap: Use "git -h" for testing for supported options
49991         instead of "git --help".  The short-form option only shows a summary,
49992         and doesn't layout the full man page.  Grep for the full option name
49993         in the summary, too.
49995 2010-04-19  Bruno Haible  <bruno@clisp.org>
49997         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
49998         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
49999         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
50000         mention of RELOCATABLE_STRIP.
50001         Reported by Sylvain Beucler <beuc@beuc.net>.
50003 2010-04-19  Bruno Haible  <bruno@clisp.org>
50005         * lib/diffseq.h: Fix typo in comment.
50006         Reported by Eric Blake.
50008 2010-04-19  Bruno Haible  <bruno@clisp.org>
50010         ioctl: Move autoconf macro to a .m4 file.
50011         * m4/ioctl.m4: New file, extracted from modules/ioctl.
50012         * modules/ioctl (Files): Add it.
50013         (configure.ac): Simply invoke gl_FUNC_IOCTL.
50014         Reported by Ian Beckwith <ianb@erislabs.net>.
50016 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
50017             Bruno Haible  <bruno@clisp.org>
50019         diffseq: Accommodate use-case with abstract arrays.
50020         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
50021         is not defined.
50022         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
50023         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
50025 2010-04-18  Bruno Haible  <bruno@clisp.org>
50027         * doc/posix-headers/stdbool.texi: More precise wording.
50029 2010-04-17  Jim Meyering  <meyering@redhat.com>
50031         maint.mk: use gnu-style indentation in an embedded perl script
50032         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
50033         Rename variable: s/two/last_two_bytes/
50035 2010-04-16  Eric Blake  <eblake@redhat.com>
50037         test-stdbool: skip test that fails with Solaris CC
50038         * tests/test-stdbool.c (f): Skip test that causes compilation
50039         error under buggy C++ compiler.
50040         * lib/stdbool.in.h: Document the limitation.
50041         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
50043         setenv: allow compilation with C++
50044         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
50045         register keyword.
50047         stdint: allow test to pass with C++
50048         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
50050         getopt: allow compilation with C++
50051         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
50052         struct.
50053         * lib/getopt.c (_getopt_internal_r): Use correct type.
50054         Reported by Dagobert Michelson, via Joel E. Denny.
50056 2010-04-16  Bruno Haible  <bruno@clisp.org>
50058         Override netdb.h always.
50059         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
50060         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
50061         Reported by Ludovic Courtès <ludo@gnu.org>.
50063 2010-04-15  Bruno Haible  <bruno@clisp.org>
50065         openpty: Fix mistake from 2010-03-21.
50066         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
50067         Reported by Simon Josefsson.
50069 2010-04-15  Eric Blake  <eblake@redhat.com>
50071         test-forkpty: fix expected signature
50072         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
50073         Reported by Simon Josefsson.
50075 2010-04-15  Jim Meyering  <meyering@redhat.com>
50077         maint.mk: texinfo_suffix_re_: correct the default regexp
50078         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
50080         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
50081         make it configurable via texinfo_suffix_re_.
50083 2010-04-14  Eric Blake  <eblake@redhat.com>
50085         strtok_r: relax license to LGPLv2+
50086         * modules/strtok_r (License): Relax license.
50087         Reported by Matthias Bolte.
50089 2010-04-14  Simon Josefsson  <simon@josefsson.org>
50091         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
50092         version 1.4.4 by default instead of requiring the libgcrypt
50093         version used during build.  This makes it possible to use the
50094         application with older but still binary compatible libgcrypt
50095         versions.
50097 2010-04-13  Eric Blake  <eblake@redhat.com>
50099         getopt-gnu: match recent glibc fixes and posix ruling
50100         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
50101         '+' handling, when requesting extensions.
50102         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
50103         'W;' handling.
50104         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
50105         * doc/posix-functions/getopt.texi (getopt): Document this.
50106         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50107         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50108         Likewise.
50110         getopt: merge bug fixes from glibc
50111         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
50112         diagnostics.  Honor '+:' correctly.  Reject ';'.
50114         getopt-posix: detect MacOS bug
50115         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
50116         optind when missing a required argument.
50117         * doc/posix-functions/getopt.texi (getopt): Document the bug.
50118         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50119         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50120         Likewise.
50122         getopt-posix: avoid spurious failure on Solaris
50123         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
50124         an indicator that setting optind=1 is sufficient for reset.
50126         getopt-posix: avoid spurious failure on FreeBSD
50127         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
50128         in POSIX mode, since the m4 test uses it.
50130         gnulib-tool: silence warning on BSD sh
50131         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
50133 2010-04-13  Jim Meyering  <meyering@redhat.com>
50135         doc: users.txt: GNU patch now uses gnulib
50136         * users.txt: Add patch.
50138 2010-04-12  Jim Meyering  <meyering@redhat.com>
50140         maint.mk: generate more concise timing data for syntax-check rules
50141         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
50142         " done" from each line that reports a syntax-check test duration.
50144 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
50146         git-version-gen: use "git update-index..." rather than "git status"
50147         * build-aux/git-version-gen: Use git update-index --refresh, not
50148         "git status".  With some versions of git, "git status" would fail
50149         to update the index and result in an unwarranted "-dirty" suffix.
50151 2010-04-11  Jim Meyering  <meyering@redhat.com>
50153         openat: correct formatting (no semantic change)
50154         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
50155         Suggested by Bruno Haible.
50157 2010-04-11  Bruno Haible  <bruno@clisp.org>
50159         Stricter declaration checking in testdirs.
50160         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50161         If for_tests is true, augment AM_CPPFLAGS to define
50162         GNULIB_STRICT_CHECKING.
50163         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
50164         GNULIB_STRICT_CHECKING is defined, verify that the function is
50165         declared.
50167 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
50168             Bruno Haible  <bruno@clisp.org>
50170         libunistring: Improve configure output.
50171         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
50172         Don't say "consider installing GNU libunistring" when checking again
50173         with libiconv.
50175 2010-04-11  Bruno Haible  <bruno@clisp.org>
50177         libunistring: Correct value of $LTLIBUNISTRING.
50178         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
50179         correct the value of $LTLIBUNISTRING.
50181 2010-04-11  Bruno Haible  <bruno@clisp.org>
50183         havelib: Add static libraries to LIBS in the right order.
50184         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
50185         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
50187 2010-04-11  Bruno Haible  <bruno@clisp.org>
50189         libunistring: Detect libunistring also when it depends on libiconv.
50190         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
50191         the second AC_LIB_HAVE_LINKFLAGS invocation.
50193 2010-04-11  James Youngman  <jay@gnu.org>
50195         close-stream: declare local scalars to be "const"
50196         * lib/close-stream.c (close_stream): Make boolean variables const
50197         to document the fact that we set but do not change them.
50199 2010-04-11  Bruno Haible  <bruno@clisp.org>
50201         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
50203 2010-04-11  Jim Meyering  <meyering@redhat.com>
50205         maint.mk: don't include dist-check.mk
50206         * top/maint.mk: Remove bogus include directive.
50208         maint.mk: improve empty-line-at-EOF check
50209         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
50210         solution, rather than tail+Perl-based one.  The latter would read
50211         a few kilobytes from the end of each file, and did not handle empty
50212         files properly.
50214         maint.mk: print the elapsed time for each syntax-check rule
50215         * top/maint.mk (sc_m_rules_): Save start time in a file.
50216         (sc_z_rules_): New rules: remove temp file and print elapsed time.
50217         (local-check): Interpose the .z rules
50219 2010-04-11  Jim Meyering  <meyering@redhat.com>
50221         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
50222         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
50223         empty file with one that ends in an empty line.
50225 2010-04-10  Bruno Haible  <bruno@clisp.org>
50227         mkdir: Make it work on mingw64.
50228         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
50229         * lib/mkdir.c: Update comment.
50230         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
50232 2010-04-10  Bruno Haible  <bruno@clisp.org>
50234         Don't override improved macro from newer autoconf.
50235         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
50236         autoconf >= 2.62.
50237         Reported by Joel E. Denny <jdenny@clemson.edu>.
50239 2010-04-10  Jim Meyering  <meyering@redhat.com>
50241         maint.mk: new syntax-check rule: prohibit empty lines at end of file
50242         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
50244         maint.mk: correct a diagnostic
50245         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
50246         in diagnostic; now use $prohibit.
50248 2010-04-10  Bruno Haible  <address@hidden>
50250         fchownat: Fix a C++ test error on Solaris 8.
50251         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
50252         the function does not exist.
50254 2010-04-10  Bruno Haible  <bruno@clisp.org>
50256         vasnprintf: Add more tests.
50257         * tests/test-vasnprintf-posix.c: Include <errno.h>.
50258         (test_function): Test converting an invalid wide string.
50260         vasnprintf: Correct handling of unconvertible wide string arguments.
50261         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
50262         VASNPRINTF.
50263         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
50264         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
50265         smaller than the expected maximum need for the directive. Set errno to
50266         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
50267         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
50268         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
50269         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
50270         * modules/vasnprintf (Files): Add m4/printf.m4.
50271         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50273 2010-04-10  Bruno Haible  <bruno@clisp.org>
50275         vasnprintf: Fix crash in %ls directive.
50276         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
50277         string is passed as argument to %ls, with no precision and no width.
50278         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50280 2010-04-10  Bruno Haible  <bruno@clisp.org>
50282         vasnprintf: Fix multiple test failures on mingw.
50283         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
50284         _snprintf, or snwprintf, not _snwprintf.
50286 2010-04-10  Bruno Haible  <bruno@clisp.org>
50288         write: Fix a C++ test error on mingw.
50289         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
50291 2010-04-10  Bruno Haible  <bruno@clisp.org>
50293         vasnprintf test: Reduce code duplication.
50294         * tests/test-vasnprintf.c (test_function): New function, extracted from
50295         test_vasnprintf.
50296         (test_vasnprintf, test_asnprintf): Invoke it.
50298 2010-04-10  Bruno Haible  <bruno@clisp.org>
50300         strnlen: Fix warning in C++ mode on MacOS X.
50301         * lib/string.in.h (strnlen): Use the modern idiom.
50302         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
50303         defining strnlen as a macro already in <config.h>.
50304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50305         REPLACE_STRNLEN.
50306         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
50307         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50309 2010-04-08  James Youngman  <jay@gnu.org>
50311         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
50312         the example.
50314 2010-04-09  Jim Meyering  <meyering@redhat.com>
50316         maint.mk: print better diagnostic when there is no $(_hv_file)
50317         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
50318         announce that when $(_hv_file) (aka help-version) does not exist.
50320         init.sh: run tr in the "C" locale to avoid multibyte interpretation
50321         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
50322         not try to interpret its random input bytes.  Jarno Rajahalme reported
50323         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
50324         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
50325         (mktempd_): Likewise, just in case.
50327         ftruncate: add two years to projected module removal date: 2012
50328         * m4/ftruncate.m4: Adjust comments.
50330         ftruncate: mark module as obsolete; even MinGW provides it, now
50331         * modules/ftruncate (Status): Obsolete.
50332         (Notice): Say that.
50333         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
50334         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
50336 2010-04-08  Bruno Haible  <bruno@clisp.org>
50338         Fix side effects from tests-related modules.
50339         * modules/dprintf-posix (Comment): New section.
50340         * modules/fprintf-posix (Comment): Likewise.
50341         * modules/obstack-printf-posix (Comment): Likewise.
50342         * modules/printf-posix (Comment): Likewise.
50343         * modules/snprintf-posix (Comment): Likewise.
50344         * modules/sprintf-posix (Comment): Likewise.
50345         * modules/vasnprintf-posix (Comment): Likewise.
50346         * modules/vasprintf-posix (Comment): Likewise.
50347         * modules/vdprintf-posix (Comment): Likewise.
50348         * modules/vfprintf-posix (Comment): Likewise.
50349         * modules/vprintf-posix (Comment): Likewise.
50350         * modules/vsnprintf-posix (Comment): Likewise.
50351         * modules/vsprintf-posix (Comment): Likewise.
50352         * modules/xprintf-posix (Comment): Likewise.
50353         * modules/xvasprintf-posix (Comment): Likewise.
50354         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
50355         * modules/floorf-tests (Depends-on): Likewise.
50356         * modules/round-tests (Depends-on): Likewise.
50357         * modules/roundf-tests (Depends-on): Likewise.
50358         * modules/trunc-tests (Depends-on): Likewise.
50359         * modules/truncf-tests (Depends-on): Likewise.
50360         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
50361         'fprintf-posix' module is not present.
50362         * tests/test-floorf2.c (check): Likewise.
50363         * tests/test-trunc2.c (check): Likewise.
50364         * tests/test-truncf2.c (check): Likewise.
50365         * tests/test-round2.c (equal): Likewise.
50366         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50368 2010-04-07  Karl Berry  <karl@gnu.org>
50370         * config/srclist.txt,
50371         * config/srclistvars.sh,
50372         * config/srclist-update: doc fixes.
50374 2010-04-07  Jim Meyering  <meyering@redhat.com>
50376         maint.mk: add a PATH crosschecking syntax-check rule
50377         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
50378         Useful if you use a test like the one in help-version (coreutils,
50379         diffutils, grep, gzip) that ensures $(VERSION) matches what is
50380         printed by prog --version.
50382 2010-04-06  Bruno Haible  <bruno@clisp.org>
50384         Fix link error on mingw.
50385         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
50386         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
50388 2010-04-06  Bruno Haible  <bruno@clisp.org>
50390         Assume rmdir exists.
50391         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
50393 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
50395         doc: update users.txt
50396         * users.txt: Add gcal.
50398 2010-04-06  Jim Meyering  <meyering@redhat.com>
50400         init.sh: simply unset TMPDIR rather than risking env -i
50401         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
50402         although it probably works fine on all Unix-based systems, some
50403         systems (Cygwin?) cannot tolerate a totally cleared environment.
50404         Suggestion from Eric Blake.
50406 2010-04-06  Jim Meyering  <meyering@redhat.com>
50408         init.sh: portability fix: use env's POSIX-specified -i option not -u
50409         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
50410         than unportable env -u.  Solaris 5.11's env lacks support for -u.
50412 2010-04-05  Bruno Haible  <bruno@clisp.org>
50414         btowc: Work around Cygwin 1.7.2 bug.
50415         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
50416         does not map NUL to 0.
50417         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
50419 2010-04-05  Bruno Haible  <bruno@clisp.org>
50421         Make the multithread modules work on Cygwin 1.7.2.
50422         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
50423         imported symbols can be declared weak, so that it returns "no" on
50424         Cygwin 1.7.2.
50426 2010-04-05  Bruno Haible  <bruno@clisp.org>
50428         Use the module 'strncat'.
50429         * modules/unistr/u8-strncat (Depends-on): Add strncat.
50431         Tests for module 'strncat'.
50432         * modules/strncat-tests: New file.
50433         * tests/test-strncat.c: New file.
50435         New module 'strncat'.
50436         * lib/string.in.h (strncat): New declaration.
50437         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
50438         * m4/strncat.m4: New file, based on m4/memchr.m4.
50439         * modules/strncat: New file.
50440         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
50441         is declared.
50442         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
50443         REPLACE_STRNCAT.
50444         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
50445         REPLACE_STRNCAT.
50446         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
50447         module.
50448         * tests/test-string-c++.cc: Check signature of strncat.
50450 2010-04-05  Jim Meyering  <meyering@redhat.com>
50452         xstrtoumax-tests: convert to use init.sh
50453         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
50454         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50455         Use Exit, not exit.
50456         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50458         xstrtoimax-tests: convert to use init.sh
50459         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
50460         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50461         Use Exit, not exit.
50462         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50464 2010-04-05  Bruno Haible  <bruno@clisp.org>
50466         sys_socket: Avoid #define replacements in C++ mode.
50467         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
50468         warning to the function if possible, rather than #defining the symbol
50469         to a dysfunctional alias.
50471 2010-04-05  Bruno Haible  <bruno@clisp.org>
50473         fseeko: Fix C++ test error on mingw.
50474         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
50475         gl_FUNC_FSEEKO.
50476         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
50477         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
50478         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
50479         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
50481 2010-04-05  Bruno Haible  <bruno@clisp.org>
50483         duplocale: Improve test output.
50484         * tests/test-duplocale.c (main): Print reason for skipped test.
50486 2010-04-05  Bruno Haible  <bruno@clisp.org>
50488         Assume rmdir exists.
50489         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
50490         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
50492 2010-04-05  Bruno Haible  <bruno@clisp.org>
50494         Fix link error on Solaris 8 with cc.
50495         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
50497 2010-04-05  Bruno Haible  <bruno@clisp.org>
50499         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
50500         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
50502 2010-04-05  Bruno Haible  <bruno@clisp.org>
50504         vasprintf: Update documentation.
50505         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
50507 2010-04-05  Bruno Haible  <bruno@clisp.org>
50509         ptsname: Improve test.
50510         * tests/test-ptsname.c (main): Also try the various master names of BSD
50511         systems.
50513 2010-04-05  Bruno Haible  <bruno@clisp.org>
50515         memchr: Avoid a possible C++ test error.
50516         * lib/string.in.h (memchr): Provide declaration if function is missing.
50517         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
50518         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
50519         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
50520         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
50522 2010-04-05  Bruno Haible  <bruno@clisp.org>
50524         strtok_r: Improve idiom.
50525         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
50526         AC_LIBOBJ is used.
50528 2010-04-05  Bruno Haible  <bruno@clisp.org>
50530         strdup: Improve idiom.
50531         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
50532         AC_LIBOBJ is used.
50533         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
50534         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
50535         when AC_LIBOBJ is used.
50537 2010-04-05  Bruno Haible  <bruno@clisp.org>
50539         mbsinit, mbrtowc, wcrtomb: Improve idioms.
50540         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
50541         don't set REPLACE_MBSINIT to 1.
50542         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
50543         don't set REPLACE_MBRTOWC to 1.
50544         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
50545         exist, don't set REPLACE_MBSRTOWCS to 1.
50546         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
50547         exist, don't set REPLACE_MBSNRTOWCS to 1.
50548         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
50549         don't set REPLACE_WCRTOMB to 1.
50550         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
50551         exist, don't set REPLACE_WCSRTOMBS to 1.
50552         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
50553         exist, don't set REPLACE_WCSNRTOMBS to 1.
50555 2010-04-05  Bruno Haible  <bruno@clisp.org>
50557         ldexpl: Improve idiom.
50558         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
50559         make sure to set HAVE_DECL_LDEXPL to 0.
50561 2010-04-05  Jim Meyering  <meyering@redhat.com>
50563         xstrtol-tests: convert to use init.sh
50564         * modules/xstrtol-tests (Files): Add tests/init.sh.
50565         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50566         Use Exit, not exit.
50567         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50569         atexit-tests: convert to use init.sh
50570         * modules/atexit-tests (Files): Add tests/init.sh.
50571         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50572         Use Exit, not exit.
50573         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50575         init.sh: fix typo
50576         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
50578         init.sh: make it easier for a test script to write to the tty, ...
50579         when using automake's parallel-tests mode.
50580         * tests/init.sh (stderr_fileno_): Define overridable variable.
50581         (warn_): New function, to use it.
50582         (fail_, skip_, framework_failure_): Use warn_.
50584 2010-04-04  Bruno Haible  <bruno@clisp.org>
50586         btowc: Avoid warning.
50587         * lib/btowc.c: Include <stdlib.h>.
50588         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
50590 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
50591             Bruno Haible  <bruno@clisp.org>
50593         wchar: Port to NetBSD 1.5.
50594         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
50595         * lib/wctype.in.h (WEOF): Likewise.
50597 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
50598             Bruno Haible  <bruno@clisp.org>
50600         Port extended stdio to NetBSD 1.5.
50601         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
50602         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
50603         older.
50605 2010-04-04  Bruno Haible  <bruno@clisp.org>
50607         string: Remove unused substitution.
50608         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
50609         HAVE_DECL_STRERROR.
50610         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
50612 2010-04-04  Bruno Haible  <bruno@clisp.org>
50614         strtod: Avoid a possible C++ test error.
50615         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
50616         set REPLACE_STRTOD.
50618 2010-04-04  Bruno Haible  <bruno@clisp.org>
50620         strerror: Update documentation.
50621         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
50623 2010-04-04  Bruno Haible  <bruno@clisp.org>
50625         stdio: Fix some C++ test errors on Solaris 8 with GCC.
50626         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
50627         _GL_CXXALIAS_SYS_CAST.
50629 2010-04-04  Bruno Haible  <bruno@clisp.org>
50631         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
50632         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
50633         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
50634         REPLACE_FREXPL to 1.
50635         * doc/posix-functions/frexpl.texi: Update documentation.
50637 2010-04-04  Bruno Haible  <bruno@clisp.org>
50639         math: Fix some C++ test errors on Solaris 8 and Cygwin.
50640         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
50642 2010-04-04  Bruno Haible  <bruno@clisp.org>
50644         Implement nanosleep for native Windows.
50645         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
50647 2010-04-04  Bruno Haible  <bruno@clisp.org>
50649         math: Fix some C++ test errors on Solaris 8.
50650         * lib/math.in.h (truncf, trunc): Use simpler idiom.
50652 2010-04-04  Bruno Haible  <bruno@clisp.org>
50654         math: Fix some C++ test errors on Cygwin.
50655         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
50656         truncl): Provide declaration if the system does not have it.
50657         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
50658         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
50659         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
50660         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
50661         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
50662         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
50663         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
50664         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
50665         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
50666         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
50667         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
50668         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
50669         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
50670         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
50671         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
50672         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
50673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
50674         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
50675         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
50676         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
50677         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
50678         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
50680 2010-04-04  Bruno Haible  <bruno@clisp.org>
50682         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
50683         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
50684         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
50685         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50686         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50687         * m4/isinf.m4 (gl_ISINF): Likewise.
50688         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
50690 2010-04-04  Bruno Haible  <bruno@clisp.org>
50692         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
50693         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
50695 2010-04-04  Bruno Haible  <bruno@clisp.org>
50697         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
50698         * modules/tmpfile (configure.ac): Update.
50700         tmpfile: Fix C++ test error on mingw.
50701         * lib/stdio.in.h (tmpfile): New declaration.
50702         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
50703         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
50704         * modules/tmpfile (Depends-on): Add stdio.
50705         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50706         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
50707         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
50708         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
50709         REPLACE_TMPFILE.
50710         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
50712 2010-04-04  Bruno Haible  <bruno@clisp.org>
50714         ioctl: Fix C++ test error on mingw.
50715         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
50716         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
50717         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
50719 2010-04-03  Bruno Haible  <bruno@clisp.org>
50721         wcwidth: Fix C++ test error on mingw.
50722         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
50723         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
50724         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
50726 2010-04-03  Bruno Haible  <bruno@clisp.org>
50728         nanosleep: Fix C++ test error on mingw.
50729         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
50730         * lib/time.in.h (nanosleep): Use modern idiom.
50731         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
50732         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
50733         REPLACE_NANOSLEEP to 1.
50734         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
50735         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
50737 2010-04-03  Bruno Haible  <bruno@clisp.org>
50739         strptime: Fix C++ test error on mingw.
50740         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
50741         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
50742         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
50743         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
50744         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
50745         not REPLACE_STRPTIME.
50746         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
50747         REPLACE_STRPTIME.
50749 2010-04-03  Bruno Haible  <bruno@clisp.org>
50751         timegm: Fix C++ test error on mingw.
50752         * lib/time.in.h (timegm): Use modern idiom.
50753         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
50754         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
50755         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
50756         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
50758 2010-04-03  Bruno Haible  <bruno@clisp.org>
50760         timegm: Assume declaration if function exists.
50761         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
50762         if it exists. Don't clobber ac_cv_func_timegm.
50764 2010-04-03  Bruno Haible  <bruno@clisp.org>
50766         time_r: Fix C++ test error on mingw.
50767         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
50768         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
50769         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
50770         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
50771         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
50773 2010-04-03  Bruno Haible  <bruno@clisp.org>
50775         time_r: Minor updates.
50776         * modules/time_r (Description): Mention the provided functions.
50777         * lib/time_r.c: Don't include <string.h>.
50778         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
50779         * doc/posix-functions/localtime_r.texi: Likewise.
50781 2010-04-03  Bruno Haible  <bruno@clisp.org>
50783         time: Fix regression introduced on 2010-03-08.
50784         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
50785         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
50787 2010-04-03  Jim Meyering  <meyering@redhat.com>
50789         maint.mk: don't silently disable project-specific syntax-check rules
50790         * top/maint.mk (_prohibit_regexp): Define, to help people realize
50791         that they need to convert their project-specific syntax-check rules
50792         to use the new _sc_search_regexp.
50794 2010-04-03  Bruno Haible  <bruno@clisp.org>
50796         fchdir: Fix regression introduced on 2010-03-08.
50797         * lib/unistd.in.h (fchdir): Fix declaration.
50798         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
50799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
50800         REPLACE_FCHDIR.
50801         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
50802         REPLACE_FCHDIR.
50804 2010-04-03  Bruno Haible  <bruno@clisp.org>
50806         getpagesize: Fix C++ test error on mingw.
50807         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
50808         system does not declare the function.
50809         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
50810         declared.
50811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50812         HAVE_DECL_GETPAGESIZE.
50813         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
50815 2010-04-03  Bruno Haible  <bruno@clisp.org>
50817         stdio: Make C++ tests work on mingw.
50818         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
50819         does not declare the function.
50821 2010-04-03  Bruno Haible  <bruno@clisp.org>
50823         ftello: Fix C++ test error on mingw.
50824         * lib/stdio.in.h (ftello): Use modern idiom.
50825         * lib/ftello.c (ftello): Renamed from rpl_ftello.
50826         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
50827         is missing and that it needs to be replaced.
50828         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
50829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
50830         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
50832 2010-04-03  Bruno Haible  <bruno@clisp.org>
50834         fseeko: Fix C++ test error on mingw.
50835         * lib/stdio.in.h (fseeko): Use modern idiom.
50836         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
50837         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
50838         is missing and that it needs to be replaced.
50839         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
50840         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
50841         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
50843 2010-04-03  Bruno Haible  <bruno@clisp.org>
50845         mkstemp: Fix C++ test error on mingw.
50846         * lib/stdlib.in.h (mkstemp): Use modern idiom.
50847         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
50848         function is missing and that it needs to be replaced.
50849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
50850         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
50852 2010-04-03  Bruno Haible  <bruno@clisp.org>
50854         stpncpy: Fix C++ test error on mingw.
50855         * lib/string.in.h (stpncpy): Use modern idiom.
50856         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
50857         function is missing and that it needs to be replaced.
50858         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50859         REPLACE_STPNCPY.
50860         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
50862 2010-04-03  Bruno Haible  <bruno@clisp.org>
50864         sys_stat: Fix C++ test error on mingw.
50865         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
50866         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
50868 2010-04-03  Bruno Haible  <bruno@clisp.org>
50870         pty: Update doc.
50871         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
50873 2010-04-03  Bruno Haible  <bruno@clisp.org>
50875         unistd: Fix C++ test error on mingw.
50876         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
50878 2010-04-03  Bruno Haible  <bruno@clisp.org>
50880         Update doc regarding mingw.
50881         * doc/glibc-functions/openpty.texi: Update regarding mingw.
50882         * doc/glibc-functions/login_tty.texi: Likewise.
50883         * doc/glibc-functions/forkpty.texi: Likewise.
50885 2010-04-03  Bruno Haible  <bruno@clisp.org>
50887         stdlib: Avoid compilation failure of c-strtold on mingw.
50888         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
50890 2010-04-03  Bruno Haible  <bruno@clisp.org>
50892         locale: Make C++ tests work on Cygwin and mingw.
50893         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
50894         cannot provide the function.
50895         Reported by Simon Josefsson.
50897 2010-04-03  Bruno Haible  <bruno@clisp.org>
50899         localename: Port to MacOS X 10.6.
50900         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
50901         memory layout of the locales in MacOS X 10.6 as well.
50902         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
50904 2010-04-02  Bruno Haible  <bruno@clisp.org>
50906         gnulib-tool: Ensure that long-running tests are executed last.
50907         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
50908         running tests after the one for the other tests.
50910 2010-04-02  Bruno Haible  <bruno@clisp.org>
50912         gnulib-tool: Ensure the tests in the main directory are executed first.
50913         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
50914         start with the current directory.
50916 2010-04-02  Bruno Haible  <bruno@clisp.org>
50918         Tests for module 'havelib', moved here from GNU gettext.
50919         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
50920         modifications.
50921         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
50922         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
50923         with modifications.
50924         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
50925         modifications.
50926         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
50927         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
50928         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
50929         with modifications.
50930         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
50931         with modifications.
50932         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
50933         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
50934         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
50935         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
50936         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
50937         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
50938         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
50939         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
50940         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
50941         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
50942         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
50943         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
50944         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
50945         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
50946         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
50947         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
50948         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
50949         with modifications.
50950         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
50951         with modifications.
50952         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
50953         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
50954         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
50955         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
50956         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
50957         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
50958         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
50959         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
50960         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
50961         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
50962         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
50963         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
50964         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
50965         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
50966         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
50967         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
50968         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
50969         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
50970         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
50971         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
50972         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
50973         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
50974         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
50975         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
50976         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
50977         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
50978         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
50979         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
50980         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
50981         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
50982         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
50983         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
50984         * tests/havelib/rpathx/rpathx.c: New file, from
50985         gettext/autoconf-lib-link.
50986         * tests/havelib/rpathx/Makefile.am: New file, from
50987         gettext/autoconf-lib-link.
50988         * tests/havelib/rpathx/configure.ac: New file, from
50989         gettext/autoconf-lib-link with modifications.
50990         * tests/havelib/rpathy/rpathy.c: New file, from
50991         gettext/autoconf-lib-link.
50992         * tests/havelib/rpathy/Makefile.am: New file, from
50993         gettext/autoconf-lib-link.
50994         * tests/havelib/rpathy/configure.ac: New file, from
50995         gettext/autoconf-lib-link with modifications.
50996         * tests/havelib/rpathz/rpathz.c: New file, from
50997         gettext/autoconf-lib-link.
50998         * tests/havelib/rpathz/Makefile.am: New file, from
50999         gettext/autoconf-lib-link.
51000         * tests/havelib/rpathz/configure.ac: New file, from
51001         gettext/autoconf-lib-link with modifications.
51002         * tests/havelib/rpathlx/usex.c: New file, from
51003         gettext/autoconf-lib-link.
51004         * tests/havelib/rpathlx/Makefile.am: New file, from
51005         gettext/autoconf-lib-link.
51006         * tests/havelib/rpathlx/configure.ac: New file, from
51007         gettext/autoconf-lib-link with modifications.
51008         * tests/havelib/rpathly/usey.c: New file, from
51009         gettext/autoconf-lib-link.
51010         * tests/havelib/rpathly/Makefile.am: New file, from
51011         gettext/autoconf-lib-link.
51012         * tests/havelib/rpathly/configure.ac: New file, from
51013         gettext/autoconf-lib-link with modifications.
51014         * tests/havelib/rpathlz/usez.c: New file, from
51015         gettext/autoconf-lib-link.
51016         * tests/havelib/rpathlz/Makefile.am: New file, from
51017         gettext/autoconf-lib-link.
51018         * tests/havelib/rpathlz/configure.ac: New file, from
51019         gettext/autoconf-lib-link with modifications.
51020         * tests/havelib/rpathlyx/usey.c: New file, from
51021         gettext/autoconf-lib-link.
51022         * tests/havelib/rpathlyx/Makefile.am: New file, from
51023         gettext/autoconf-lib-link.
51024         * tests/havelib/rpathlyx/configure.ac: New file, from
51025         gettext/autoconf-lib-link with modifications.
51026         * tests/havelib/rpathlzyx/usez.c: New file, from
51027         gettext/autoconf-lib-link.
51028         * tests/havelib/rpathlzyx/Makefile.am: New file, from
51029         gettext/autoconf-lib-link.
51030         * tests/havelib/rpathlzyx/configure.ac: New file, from
51031         gettext/autoconf-lib-link with modifications.
51032         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
51033         with modifications.
51035 2010-04-02  Bruno Haible  <bruno@clisp.org>
51037         gnulib-tool: Create distributed built sources also for the tests.
51038         * gnulib-tool (func_create_testdir): Also generate distributed built
51039         sources in the tests directory.
51041 2010-04-02  Bruno Haible  <bruno@clisp.org>
51043         gnulib-tool: Obey user's environment variables.
51044         * gnulib-tool (func_create_testdir): When creating built sources,
51045         respect the environment variables for autoconf, automake, etc. given by
51046         the user.
51048 2010-04-02  Bruno Haible  <bruno@clisp.org>
51050         gnulib-tool: Provide the value of --m4-base to modules.
51051         * gnulib-tool (func_import, func_create_testdir): Emit a definition
51052         of gl_m4_base.
51054 2010-04-02  Eric Blake  <eblake@redhat.com>
51056         maint.mk: fix some fallout
51057         * NEWS: Document the incompatible change, and its effect on cfg.mk.
51058         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
51060 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
51062         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
51063         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
51064         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
51065         (sc_cast_of_x_alloc_return_value): Likewise.
51066         (sc_cast_of_alloca_return_value): Likewise.
51067         (sc_space_tab): Likewise.
51068         (sc_prohibit_atoi_atof): Likewise.
51069         (sc_prohibit_magic_number_exit): Likewise.
51070         (sc_error_exit_success): Likewise.
51071         (sc_file_system): Likewise.
51072         (sc_prohibit_have_config_h): Likewise.
51073         (sc_require_config_h): Likewise.
51074         (sc_prohibit_HAVE_MBRTOWC): Likewise.
51075         (sc_obsolete_symbols): Likewise.
51076         (sc_changelog): Likewise.
51077         (sc_program_name): Likewise.
51078         (sc_the_the): Likewise.
51079         (sc_trailing_blank): Likewise.
51080         (sc_two_space_separator_in_usage): Likewise.
51081         (sc_useless_cpp_parens): Likewise.
51082         (sc_GPL_version): Likewise.
51083         (sc_GFDL_version): Likewise.
51084         (sc_texinfo_acronym): Likewise.
51085         (sc_prohibit_cvs_keyword): Likewise.
51086         (sc_prohibit_stat_st_blocks): Likewise.
51087         (sc_prohibit_S_IS_definition): Likewise.
51088         (sc_redundant_const): Likewise.
51089         (sc_makefile_TAB_only_indentation): Likewise.
51090         (sc_m4_quote_check): Likewise.
51091         (sc_makefile_path_separator_check): Likewise.
51092         (sc_copyright_check): Likewise.
51093         (sc_Wundef_boolean): Likewise.
51094         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
51096         maint.mk: match 0 or more whitespace-before-function-call '('
51097         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
51098         that have zero or two-and-more spaces between the function name
51099         and the open parenthesis.
51100         (sc_error_message_warn_fatal): Likewise.
51101         (sc_error_message_uppercase): Likewise.
51102         (sc_error_message_period): Likewise.
51104 2010-03-31  Eric Blake  <eblake@redhat.com>
51106         maint.mk: check for [ as well as test
51107         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
51108         Based on a libvirt report by Matthias Bolte.
51110         gnumakefile: don't squelch _version output
51111         * top/GNUmakefile (_version): Create one-shot dependency rather
51112         than using $(shell) when version must be regenerated.
51113         (_autoreconf): Run verbosely, by default.
51115         sys_time: avoid compiler warnings
51116         * lib/sys_time.in.h (includes): Ensure gcc pragma is
51117         unconditional, fixing regression from 2010-03-29.
51118         Reported by Simon Josefsson.
51120 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
51122         maint.mk: s/_header_without_use/_sc_header_without_use/
51123         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
51124         (sc_prohibit_assert_without_use): Use the new name.
51125         (sc_prohibit_close_stream_without_use): Likewise.
51126         (sc_prohibit_getopt_without_use): Likewise.
51127         (sc_prohibit_quotearg_without_use): Likewise.
51128         (sc_prohibit_quote_without_use): Likewise.
51129         (sc_prohibit_long_options_without_use): Likewise.
51130         (sc_prohibit_inttostr_without_use): Likewise.
51131         (sc_prohibit_ignore_value_without_use): Likewise.
51132         (sc_prohibit_error_without_use): Likewise.
51133         (sc_prohibit_xalloc_without_use): Likewise.
51134         (sc_prohibit_hash_without_use): Likewise.
51135         (sc_prohibit_hash_pjw_without_use): Likewise.
51136         (sc_prohibit_safe_read_without_use): Likewise.
51137         (sc_prohibit_argmatch_without_use): Likewise.
51138         (sc_prohibit_canonicalize_without_use): Likewise.
51139         (sc_prohibit_root_dev_ino_without_use): Likewise.
51140         (sc_prohibit_openat_without_use): Likewise.
51141         (sc_prohibit_c_ctype_without_use): Likewise.
51142         (sc_prohibit_signal_without_use): Likewise.
51143         (sc_prohibit_intprops_without_use): Likewise.
51145 2010-03-30  Eric Blake  <eblake@redhat.com>
51147         maint: improve module indicators
51148         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
51149         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
51150         columns, and avoid extra macro expansion.
51152         fdopendir: work around FreeBSD bug
51153         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
51154         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
51155         * modules/dirent (Makefile.am): Substitute it.
51156         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
51157         declaration.
51158         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
51159         fix.
51160         Reported by Christian Weisgerber <naddy@mips.inka.de>.
51162 2010-03-29  Bruno Haible  <bruno@clisp.org>
51164         Emit #pragma system_header after the inclusion guard, not before.
51165         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
51166         guard that spans the entire file, not before. This enables an
51167         optimization in GCC's preprocessor.
51168         * lib/ctype.in.h: Likewise.
51169         * lib/dirent.in.h: Likewise.
51170         * lib/errno.in.h: Likewise.
51171         * lib/float.in.h: Likewise.
51172         * lib/getopt.in.h: Likewise.
51173         * lib/iconv.in.h: Likewise.
51174         * lib/langinfo.in.h: Likewise.
51175         * lib/locale.in.h: Likewise.
51176         * lib/math.in.h: Likewise.
51177         * lib/netdb.in.h: Likewise.
51178         * lib/netinet_in.in.h: Likewise.
51179         * lib/pty.in.h: Likewise.
51180         * lib/sched.in.h: Likewise.
51181         * lib/se-selinux.in.h: Likewise.
51182         * lib/search.in.h: Likewise.
51183         * lib/spawn.in.h: Likewise.
51184         * lib/stdarg.in.h: Likewise.
51185         * lib/stdint.in.h: Likewise.
51186         * lib/string.in.h: Likewise.
51187         * lib/strings.in.h: Likewise.
51188         * lib/sys_file.in.h: Likewise.
51189         * lib/sys_ioctl.in.h: Likewise.
51190         * lib/sys_time.in.h: Likewise.
51191         * lib/sys_times.in.h: Likewise.
51192         * lib/sys_utsname.in.h: Likewise.
51193         * lib/sys_wait.in.h: Likewise.
51194         * lib/sysexits.in.h: Likewise.
51195         * lib/wctype.in.h: Likewise.
51197 2010-03-28  James Youngman  <jay@gnu.org>
51199         save-cwd: don't leak a file descriptor when the caller execs.
51200         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
51201         saved file descriptor.
51202         * modules/save-cwd (Depends-on): Depend on cloexec.
51204 2010-03-29  Bruno Haible  <bruno@clisp.org>
51206         Remove vestiges of fts-lgpl module.
51207         * lib/fts_.h: Assume GNULIB_FTS is 1.
51208         * lib/fts.c: Likewise.
51209         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
51211 2010-03-28  Bruno Haible  <bruno@clisp.org>
51213         Fix definition of tests witness macro.
51214         * gnulib-tool (func_import): Fix definition of witness macro.
51216 2010-03-28  Bruno Haible  <bruno@clisp.org>
51218         Fix ioctl's protoype on glibc systems.
51219         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
51220         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
51221         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
51222         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
51223         signature. If not, arrange to replace the ioctl function.
51224         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
51225         REPLACE_IOCTL.
51226         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
51227         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
51228         Reported by Ludovic Courtès <ludo@gnu.org>.
51230 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
51232         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
51233         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
51234         made it so grep -r --include=GLOB* ... did not work.
51236 2010-03-26  Jim Meyering  <meyering@redhat.com>
51237             Eric Blake  <eblake@redhat.com>
51239         maint.mk: prohibit use of test's -o and -a operators
51240         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
51242 2010-03-28  Bruno Haible  <bruno@clisp.org>
51244         Remove unused GNULIB_XYZ macro definitions.
51245         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
51246         invocation.
51248 2010-03-28  Bruno Haible  <bruno@clisp.org>
51250         Mark privileged tests modules.
51251         * modules/idpriv-drop-tests (Status): New section.
51252         * modules/idpriv-droptemp-tests (Status): New section.
51254 2010-03-28  Bruno Haible  <bruno@clisp.org>
51256         Split C++ tests into separate tests modules.
51257         * modules/dirent-c++-tests: New file, extracted from
51258         modules/dirent-tests.
51259         * modules/dirent-tests: Depend on it.
51260         * modules/fcntl-h-c++-tests: New file, extracted from
51261         modules/fcntl-h-tests.
51262         * modules/fcntl-h-tests: Depend on it.
51263         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
51264         * modules/glob-tests: Depend on it.
51265         * modules/iconv-h-c++-tests: New file, extracted from
51266         modules/iconv-h-tests.
51267         * modules/iconv-h-tests: Depend on it.
51268         * modules/langinfo-c++-tests: New file, extracted from
51269         modules/langinfo-tests.
51270         * modules/langinfo-tests: Depend on it.
51271         * modules/locale-c++-tests: New file, extracted from
51272         modules/locale-tests.
51273         * modules/locale-tests: Depend on it.
51274         * modules/math-c++-tests: New file, extracted from modules/math-tests.
51275         * modules/math-tests: Depend on it.
51276         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
51277         * modules/pty-tests: Depend on it.
51278         * modules/search-c++-tests: New file, extracted from
51279         modules/search-tests.
51280         * modules/search-tests: Depend on it.
51281         * modules/signal-c++-tests: New file, extracted from
51282         modules/signal-tests.
51283         * modules/signal-tests: Depend on it.
51284         * modules/spawn-c++-tests: New file, extracted from
51285         modules/spawn-tests.
51286         * modules/spawn-tests: Depend on it.
51287         * modules/stdio-c++-tests: New file, extracted from
51288         modules/stdio-tests.
51289         * modules/stdio-tests: Depend on it.
51290         * modules/stdlib-c++-tests: New file, extracted from
51291         modules/stdlib-tests.
51292         * modules/stdlib-tests: Depend on it.
51293         * modules/string-c++-tests: New file, extracted from
51294         modules/string-tests.
51295         * modules/string-tests: Depend on it.
51296         * modules/sys_ioctl-c++-tests: New file, extracted from
51297         modules/sys_ioctl-tests.
51298         * modules/sys_ioctl-tests: Depend on it.
51299         * modules/sys_select-c++-tests: New file, extracted from
51300         modules/sys_select-tests.
51301         * modules/sys_select-tests: Depend on it.
51302         * modules/sys_socket-c++-tests: New file, extracted from
51303         modules/sys_socket-tests.
51304         * modules/sys_socket-tests: Depend on it.
51305         * modules/sys_stat-c++-tests: New file, extracted from
51306         modules/sys_stat-tests.
51307         * modules/sys_stat-tests: Depend on it.
51308         * modules/sys_time-c++-tests: New file, extracted from
51309         modules/sys_time-tests.
51310         * modules/sys_time-tests: Depend on it.
51311         * modules/time-c++-tests: New file, extracted from modules/time-tests.
51312         * modules/time-tests: Depend on it.
51313         * modules/unistd-c++-tests: New file, extracted from
51314         modules/unistd-tests.
51315         * modules/unistd-tests: Depend on it.
51316         * modules/wchar-c++-tests: New file, extracted from
51317         modules/wchar-tests.
51318         * modules/wchar-tests: Depend on it.
51319         * modules/wctype-c++-tests: New file, extracted from
51320         modules/wctype-tests.
51321         * modules/wctype-tests: Depend on it.
51322         Reported by Simon Josefsson.
51324 2010-03-28  Bruno Haible  <bruno@clisp.org>
51326         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
51327         * gnulib-tool (func_exists_module): New function, extracted from
51328         func_verify_module.
51329         (func_verify_module): Use it.
51330         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
51331         'foo' only if 'foo' exists.
51332         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
51333         module.
51335 2010-03-28  Bruno Haible  <bruno@clisp.org>
51337         gnulib-tool: Add support for special categories of tests.
51338         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
51339         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
51340         (func_usage): Document them.
51341         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
51342         inc_unportable_tests, inc_all_tests): New variables.
51343         (func_acceptable): Consider these variables.
51344         (func_modules_transitive_closure): Make it work when the 'Status' field
51345         consists of multiple words.
51346         (func_import): Store and restore the values of inc_cxx_tests,
51347         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
51348         inc_all_tests in gnulib-comp.m4.
51349         (func_create_testdir): Set inc_all_tests to true.
51350         * doc/gnulib.texi (Extra tests modules): New section.
51351         Suggested by Jim Meyering.
51353 2010-03-28  Bruno Haible  <bruno@clisp.org>
51355         ansi-c++-opt: Allow turning off the C++ build by default.
51356         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
51357         gl_CXX_CHOICE_DEFAULT_NO is defined.
51358         Requested by Eric Blake.
51360 2010-03-28  Bruno Haible  <bruno@clisp.org>
51362         unistd: Avoid #define replacements in C++ mode.
51363         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
51364         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
51365         setsockopt, shutdown, select): In C++, attach a warning to the function
51366         if possible, rather than #defining the symbol to a dysfunctional alias.
51367         Reported by John W. Eaton <jwe@gnu.org>.
51369 2010-03-28  Bruno Haible  <bruno@clisp.org>
51371         Fix link errors on mingw.
51372         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
51373         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
51374         $(LIBSOCKET).
51375         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
51376         $(LIBSOCKET).
51378 2010-03-28  Bruno Haible  <bruno@clisp.org>
51379             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51381         lib-ignore: Determine different options for different compilers.
51382         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
51383         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
51384         Add comments.
51385         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
51386         * NEWS: Mention the change.
51388 2010-03-27  Bruno Haible  <bruno@clisp.org>
51390         Remove unused GNULIB_XYZ macro definitions.
51391         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
51392         * modules/fseek (configure.ac): Likewise.
51393         * modules/ioctl (configure.ac): Likewise.
51394         * modules/open (configure.ac): Likewise.
51395         * modules/stdlib-safer (configure.ac): Likewise.
51397 2010-03-27  Bruno Haible  <bruno@clisp.org>
51399         Add a remark about certain modules.
51400         * modules/malloc (Comment): New section.
51401         * modules/realloc (Comment): Likewise.
51402         * modules/sigpipe (Comment): Likewise.
51404 2010-03-27  Bruno Haible  <bruno@clisp.org>
51406         Resolve conflict between the two kinds of module indicators.
51407         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
51408         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
51409         * modules/canonicalize (configure.ac): Invoke
51410         gl_MODULE_INDICATOR_FOR_TESTS.
51411         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
51412         GNULIB_XYZ.
51413         * tests/test-dirent-c++.cc: Likewise.
51414         * tests/test-dirent-safer.c: Likewise.
51415         * tests/test-dup2.c: Likewise.
51416         * tests/test-fchdir.c: Likewise.
51417         * tests/test-fcntl-h-c++.cc: Likewise.
51418         * tests/test-getopt.c: Likewise.
51419         * tests/test-getopt.h: Likewise.
51420         * tests/test-langinfo-c++.cc: Likewise.
51421         * tests/test-locale-c++.cc: Likewise.
51422         * tests/test-math-c++.cc: Likewise.
51423         * tests/test-pty-c++.cc: Likewise.
51424         * tests/test-search-c++.cc: Likewise.
51425         * tests/test-signal-c++.cc: Likewise.
51426         * tests/test-spawn-c++.cc: Likewise.
51427         * tests/test-stdio-c++.cc: Likewise.
51428         * tests/test-stdlib-c++.cc: Likewise.
51429         * tests/test-string-c++.cc: Likewise.
51430         * tests/test-sys_ioctl-c++.cc: Likewise.
51431         * tests/test-sys_select-c++.cc: Likewise.
51432         * tests/test-sys_socket-c++.cc: Likewise.
51433         * tests/test-sys_stat-c++.cc: Likewise.
51434         * tests/test-sys_time-c++.cc: Likewise.
51435         * tests/test-time-c++.cc: Likewise.
51436         * tests/test-unistd-c++.cc: Likewise.
51437         * tests/test-wchar-c++.cc: Likewise.
51438         * tests/uninorm/test-u8-nfc.c: Likewise.
51439         * tests/uninorm/test-u8-nfd.c: Likewise.
51440         * tests/uninorm/test-u8-nfkc.c: Likewise.
51441         * tests/uninorm/test-u8-nfkd.c: Likewise.
51442         * tests/uninorm/test-u16-nfc.c: Likewise.
51443         * tests/uninorm/test-u16-nfd.c: Likewise.
51444         * tests/uninorm/test-u16-nfkc.c: Likewise.
51445         * tests/uninorm/test-u16-nfkd.c: Likewise.
51446         * tests/uninorm/test-u32-nfc.c: Likewise.
51447         * tests/uninorm/test-u32-nfc-big.c: Likewise.
51448         * tests/uninorm/test-u32-nfd.c: Likewise.
51449         * tests/uninorm/test-u32-nfd-big.c: Likewise.
51450         * tests/uninorm/test-u32-nfkc.c: Likewise.
51451         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
51452         * tests/uninorm/test-u32-nfkd.c: Likewise.
51453         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
51454         * tests/uninorm/test-u32-normalize-big.c: Likewise.
51456 2010-03-27  Bruno Haible  <bruno@clisp.org>
51458         Distinguish two kinds of module indicators.
51459         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
51460         gl_MODULE_INDICATOR.
51461         (gl_MODULE_INDICATOR): New macro.
51462         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
51463         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
51464         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
51465         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
51466         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
51467         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
51468         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
51469         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
51470         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
51471         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
51472         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
51473         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
51474         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
51475         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
51476         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
51477         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
51478         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
51479         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
51480         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
51481         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
51482         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
51483         * modules/cloexec (configure.ac): Likewise.
51484         * modules/getopt-gnu (configure.ac): Likewise.
51485         * modules/uninorm/u8-normalize (configure.ac): Likewise.
51486         * modules/uninorm/u16-normalize (configure.ac): Likewise.
51487         * modules/uninorm/u32-normalize (configure.ac): Likewise.
51488         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
51490 2010-03-27  Bruno Haible  <bruno@clisp.org>
51492         New module description field 'Comment'.
51493         * gnulib-tool: New option --extract-comment.
51494         (func_usage): Document it.
51495         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
51496         (func_get_comment): New function.
51497         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
51499 2010-03-27  Bruno Haible  <bruno@clisp.org>
51501         Addendum to 2010-02-07 commit.
51502         * gnulib-tool (func_usage): Document --extract-applicability option.
51504 2010-03-27  Bruno Haible  <bruno@clisp.org>
51506         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
51507         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
51508         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
51509         rather than link errors.
51511 2010-03-27  Bruno Haible  <bruno@clisp.org>
51513         Avoid side effects from tests-related modules on the compilation of lib.
51514         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
51515         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
51516         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
51517         parameter. Emit into AM_CPPFLAGS a definition of the designated C
51518         macro.
51519         (func_import): Define a witness macro. Assign it a value that depends
51520         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
51521         tests-related modules.
51522         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
51523         Reported by Jim Meyering.
51525 2010-03-27  Bruno Haible  <bruno@clisp.org>
51527         Factorize common .m4 code.
51528         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
51529         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
51530         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
51531         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
51532         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
51533         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
51534         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
51535         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
51536         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
51537         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
51538         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
51539         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
51540         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
51541         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
51542         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
51543         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
51544         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
51545         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
51546         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
51547         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
51548         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
51549         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
51550         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
51551         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
51552         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
51553         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
51554         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
51555         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
51556         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
51557         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
51558         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
51559         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
51561 2010-03-27  Bruno Haible  <bruno@clisp.org>
51563         Fix a compilation error on Cygwin with g++ >= 4.3.
51564         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
51565         if it is undefined or if we alias it to chmod.
51566         (lstat): Don't warn about the use of this function if it is undefined
51567         or if we alias it to stat.
51568         Reported by Simon Josefsson.
51570 2010-03-27  Bruno Haible  <bruno@clisp.org>
51572         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
51573         * modules/getlogin (configure.ac): Update.
51575         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
51576         * modules/getlogin_r (configure.ac): Update.
51578         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
51579         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
51580         * modules/inet_ntop (configure.ac): Update.
51582         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
51583         * modules/inet_pton (configure.ac): Update.
51585         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
51586         * modules/mbslen (configure.ac): Update.
51588         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
51589         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
51590         * modules/forkpty (configure.ac): Update.
51591         * modules/openpty (configure.ac): Update.
51593 2010-03-26  Simon Josefsson  <simon@josefsson.org>
51595         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
51596         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
51598 2010-03-25  Eric Blake  <eblake@redhat.com>
51600         maint: use pragma consistently across replacement headers
51601         * lib/ctype.in.h (system_header): Hoist for consistent placement.
51602         * lib/dirent.in.h (system_header): Likewise.
51603         * lib/errno.in.h (system_header): Likewise.
51604         * lib/float.in.h (system_header): Likewise.
51605         * lib/getopt.in.h (system_header): Likewise.
51606         * lib/iconv.in.h (system_header): Likewise.
51607         * lib/inttypes.in.h (system_header): Likewise.
51608         * lib/langinfo.in.h (system_header): Likewise.
51609         * lib/locale.in.h (system_header): Likewise.
51610         * lib/math.in.h (system_header): Likewise.
51611         * lib/netdb.in.h (system_header): Likewise.
51612         * lib/netinet_in.in.h (system_header): Likewise.
51613         * lib/pty.in.h (system_header): Likewise.
51614         * lib/sched.in.h (system_header): Likewise.
51615         * lib/se-selinux.in.h (system_header): Likewise.
51616         * lib/search.in.h (system_header): Likewise.
51617         * lib/spawn.in.h (system_header): Likewise.
51618         * lib/stdarg.in.h (system_header): Likewise.
51619         * lib/stdint.in.h (system_header): Likewise.
51620         * lib/string.in.h (system_header): Likewise.
51621         * lib/strings.in.h (system_header): Likewise.
51622         * lib/sys_file.in.h (system_header): Likewise.
51623         * lib/sys_ioctl.in.h (system_header): Likewise.
51624         * lib/sys_socket.in.h (system_header): Likewise.
51625         * lib/sys_times.in.h (system_header): Likewise.
51626         * lib/sys_utsname.in.h (system_header): Likewise.
51627         * lib/sys_wait.in.h (system_header): Likewise.
51628         * lib/sysexits.in.h (system_header): Likewise.
51629         * lib/unistd.in.h (system_header): Likewise.
51630         * lib/wctype.in.h (system_header): Likewise.
51632         arpa/inet: fix mingw compilation warning
51633         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
51634         Reported by Matthew Bolte.
51636 2010-03-25  Bruno Haible  <bruno@clisp.org>
51638         Avoid collision between gnulib wrapper and libintl wrapper.
51639         * lib/printf.c (printf): Don't define if a printf wrapper is already
51640         defined in intl/printf.c.
51641         Reported by Michel Boaventura <michel@michelboaventura.com>.
51643 2010-03-25  Bruno Haible  <bruno@clisp.org>
51645         Use ANSI C.
51646         * lib/readutmp.h (getutent): Provide ANSI C prototype.
51648 2010-03-25  Bruno Haible  <bruno@clisp.org>
51650         Minor formatting changes.
51651         * lib/acosl.c: Insert space before function argument list.
51652         * lib/argz.c: Likewise.
51653         * lib/asinl.c: Likewise.
51654         * lib/expl.c: Likewise.
51655         * lib/gen-uni-tables.c: Likewise.
51656         * lib/gettext.h: Likewise.
51657         * lib/glthread/lock.h: Likewise.
51658         * lib/tanl.c: Likewise.
51659         * lib/uniname/uniname.c: Likewise.
51660         * tests/test-idpriv-drop.c: Likewise.
51661         * tests/test-idpriv-droptemp.c: Likewise.
51662         * tests/test-lock.c: Likewise.
51663         * tests/test-tls.c: Likewise.
51664         * lib/argp-help.c: Insert space before function-like macro argument
51665         list.
51666         * lib/memcmp.c: Likewise.
51667         * tests/test-base64.c: Likewise.
51668         * lib/localename.c: Insert space before sizeof's argument list.
51669         * lib/safe-alloc.h: Likewise.
51670         * lib/file-set.h: Insert space before macro argument list.
51671         * tests/test-argp.c: Likewise.
51672         * lib/argp-namefrob.h: Insert space before function parameter list.
51673         * lib/getaddrinfo.c: Likewise.
51674         * lib/netdb.in.h: Likewise.
51675         * lib/parse-duration.h: Likewise.
51676         * lib/parse-duration.c: Likewise.
51677         * lib/poll.c: Likewise.
51678         * lib/select.c: Likewise.
51679         * lib/trim.h: Likewise.
51680         * tests/test-usleep.c: Likewise.
51681         * lib/ldexpl.c: Insert space before function parameter list and before
51682         function argument list.
51683         * lib/logl.c: Likewise.
51684         * lib/sqrtl.c: Likewise.
51685         * lib/trim.c: Likewise.
51686         * lib/cosl.c: Use GNU style indentation. Insert space before function
51687         argument list.
51688         * lib/sinl.c: Likewise.
51689         * lib/tsearch.c: Insert space after 'for'.
51690         Reported by Jim Meyering.
51692 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
51694         * maint.mk (sc_Wundef_boolean): Check for the presence of the
51695         config header before grepping, as it's not present before
51696         autoreconf/configure are run.  Reported by Simon Josefsson.
51698 2010-03-23  Bruno Haible  <bruno@clisp.org>
51700         pt_chown: Make it work with automake < 1.11.
51701         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
51702         Reported by Simon Josefsson.
51704 2010-03-23  Bruno Haible  <bruno@clisp.org>
51706         pt_chown: Don't depend on GPLed modules.
51707         * lib/pt_chown.c: Don't include idpriv.h.
51708         (main): Don't drop privileges.
51709         * modules/pt_chown (Depends-on): Remove idpriv-drop.
51710         Reported by Simon Josefsson.
51712 2010-03-24  Simon Josefsson  <simon@josefsson.org>
51714         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
51715         suggestions from karl@freefriends.org (Karl Berry).
51717 2010-03-22  Eric Blake  <eblake@redhat.com>
51719         gethostname: further tweaks
51720         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
51721         are overriding gethostname.
51722         Suggested by Bruno Haible.
51724 2010-03-21  Bruno Haible  <bruno@clisp.org>
51726         Fix comments.
51727         * lib/forkpty.c (rpl_forkpty): Fix comment.
51728         * lib/openpty.c (rpl_openpty): Likewise.
51729         Reported by Eric Blake.
51731 2010-03-22  Eric Blake  <eblake@redhat.com>
51733         gethostname: fix build on mingw
51734         * lib/unistd.in.h (includes): Work around fact that mingw
51735         <winsock2.h> re-includes <unistd.h>, by avoiding any
51736         redeclarations if we are being included by <winsock2.h>.
51737         Reported by Matthias Bolte.
51739 2010-03-21  Bruno Haible  <bruno@clisp.org>
51741         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
51742         * lib/forkpty.c (forkpty): New replacement function, from glibc with
51743         modifications.
51744         * lib/pty.in.h (forkpty): Update declaration. Add comments.
51745         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
51746         provide the replacement.
51747         * modules/forkpty (Depends-on): Add openpty, login_tty.
51748         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
51749         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
51750         * doc/glibc-functions/forkpty.texi: More supported platforms.
51751         * config/srclist.txt: Add forkpty.c (commented).
51753 2010-03-21  Bruno Haible  <bruno@clisp.org>
51755         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
51756         (Makefile.am): Verify that PTY_LIB is defined.
51758         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
51760 2010-03-21  Bruno Haible  <bruno@clisp.org>
51762         Tests for module 'login_tty'.
51763         * modules/login_tty-tests: New file.
51764         * tests/test-login_tty.c: New file.
51766         New module 'login_tty'.
51767         * lib/login_tty.c: New file.
51768         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
51769         * modules/login_tty: New file.
51770         * doc/glibc-functions/login_tty.texi: Mention the new module.
51772 2010-03-21  Bruno Haible  <bruno@clisp.org>
51774         login_tty: Documentation.
51775         * doc/glibc-functions/login_tty.texi: New file.
51776         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
51778 2010-03-21  Bruno Haible  <bruno@clisp.org>
51780         pty: Consistent macro naming.
51781         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
51782         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
51783         * modules/pty (configure.ac): Update.
51785 2010-03-21  Bruno Haible  <bruno@clisp.org>
51787         Tests for openpty: Make stricter.
51788         * tests/test-openpty.c (main): Add test of canonical processing and
51789         erase.
51790         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
51792         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
51793         * lib/openpty.c (openpty): New replacement function.
51794         * lib/pty.in.h: Include <termios.h>.
51795         (openpty): Update declaration. Add comments.
51796         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
51797         is not declared, arrange to provide the replacement. Check for _getpty
51798         and posix_openpt.
51799         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
51800         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
51801         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
51802         * modules/pty-tests (test_pty_c___LDADD): New variable.
51803         * doc/glibc-functions/openpty.texi: More supported platforms.
51805 2010-03-21  Bruno Haible  <bruno@clisp.org>
51807         setenv: Tweaks.
51808         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
51809         the test program.
51810         * doc/posix-functions/setenv.texi: Update platforms list.
51812 2010-03-21  Bruno Haible  <bruno@clisp.org>
51814         New module 'unlockpt'.
51815         * lib/unlockpt.c: New file, from glibc with modifications.
51816         * m4/unlockpt.m4: New file.
51817         * modules/unlockpt: New file.
51818         * lib/stdlib.in.h (unlockpt): New declaration.
51819         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
51820         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
51821         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
51822         HAVE_UNLOCKPT.
51823         * doc/posix-functions/unlockpt.texi: Mention the new module.
51824         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
51825         * config/srclist.txt: Add unlockpt.c (commented).
51827 2010-03-21  Jim Meyering  <meyering@redhat.com>
51829         maint.mk: prohibit inclusion of "intprops.h" without use
51830         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
51832 2010-03-21  Bruno Haible  <bruno@clisp.org>
51834         New module 'grantpt'.
51835         * lib/grantpt.c: New file, from glibc with modifications.
51836         * m4/grantpt.m4: New file.
51837         * modules/grantpt: New file.
51838         * lib/stdlib.in.h (grantpt): New declaration.
51839         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
51840         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
51841         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
51842         HAVE_GRANTPT.
51843         * doc/posix-functions/grantpt.texi: Mention the new module.
51844         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
51845         * config/srclist.txt: Add grantpt.c (commented).
51847 2010-03-21  Bruno Haible  <bruno@clisp.org>
51849         New module 'pt_chown'.
51850         * lib/pt_chown.c: New file, from glibc with modifications.
51851         * lib/pty-private.h: New file, from glibc with modifications.
51852         * modules/pt_chown: New file.
51853         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
51855 2010-03-21  Bruno Haible  <bruno@clisp.org>
51857         Tests for module 'ptsname'.
51858         * modules/ptsname-tests: New file.
51859         * tests/test-ptsname.c: New file.
51861         New module 'ptsname'.
51862         * lib/ptsname.c: New file, from glibc with modifications.
51863         * m4/ptsname.m4: New file.
51864         * modules/ptsname: New file.
51865         * lib/stdlib.in.h (ptsname): New declaration.
51866         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
51867         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
51868         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
51869         HAVE_PTSNAME.
51870         * doc/posix-functions/ptsname.texi: Mention the new module.
51871         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
51872         * config/srclist.txt: Add ptsname.c (commented).
51874 2010-03-21  Bruno Haible  <bruno@clisp.org>
51876         Tests for module 'ttyname_r'.
51877         * modules/ttyname_r-tests: New file.
51878         * tests/test-ttyname_r.c: New file.
51880         New module 'ttyname_r'.
51881         * lib/ttyname_r.c: New file.
51882         * m4/ttyname_r.m4: New file.
51883         * modules/ttyname_r: New file.
51884         * lib/unistd.in.h (ttyname_r): New declaration.
51885         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
51886         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
51887         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
51888         HAVE_TTYNAME_R.
51889         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
51890         * doc/posix-functions/ttyname_r.texi: Mention the new module.
51892 2010-03-20  Bruno Haible  <bruno@clisp.org>
51894         signal: Undefine macro definitions in C++ mode.
51895         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
51896         sigfillset): Undefine macro definitions from the system header in C++
51897         mode.
51898         Reported by John W. Eaton <jwe@gnu.org>.
51900 2010-03-20  Bruno Haible  <bruno@clisp.org>
51902         Ensure no #include statements inside extern "C" { ... }.
51903         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
51904         contain #include statements.
51905         * lib/time.in.h: Likewise.
51907 2010-03-20  Bruno Haible  <bruno@clisp.org>
51909         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
51910         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
51911         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
51912         Reported by John W. Eaton <jwe@gnu.org>.
51914 2010-03-20  Bruno Haible  <bruno@clisp.org>
51916         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
51917         Reported by Jim Meyering.
51919 2010-03-20  Bruno Haible  <bruno@clisp.org>
51921         pipe: Set errno upon failure.
51922         * lib/pipe.h: Specify that when -1 is returned, errno is set.
51923         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
51924         errno value in error message.
51926 2010-03-20  Bruno Haible  <bruno@clisp.org>
51927             Jim Meyering  <meyering@redhat.com>
51929         lchown: Avoid "unused variable" warning.
51930         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
51932 2010-03-20  Bruno Haible  <bruno@clisp.org>
51934         Work around unlink() bug on MacOS X 10.5.6.
51935         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
51936         attempting to unlink a parent directory.
51937         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
51938         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
51939         activate for the replacement function.
51940         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
51942 2010-03-20  Bruno Haible  <bruno@clisp.org>
51944         Fix link errors on Solaris 8.
51945         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
51946         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
51948 2010-03-19  Jim Meyering  <meyering@redhat.com>
51950         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
51951         The _LIBC implementation of build_range_exp correctly honors the
51952         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
51953         However, the non-_LIBC implementation would ignore that syntax-bit
51954         flag and return REG_ERANGE unconditionally.
51955         This change makes it honor that flag.
51956         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
51957         Make two pointer parameters "const".
51958         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
51959         (parse_bracket_exp): Update caller.
51961         regex.m4: correct the reversed range endpoint ([b-a]) test
51962         * m4/regex.m4: When requiring that [b-a] evoke failure,
51963         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
51964         test pass once again for x86-based systems.
51966 2010-03-19  Bruno Haible  <bruno@clisp.org>
51968         scandir: Fix link error on Solaris 8.
51969         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
51970         macros.
51972 2010-03-19  Bruno Haible  <bruno@clisp.org>
51974         getusershell: Fix documentation.
51975         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
51976         module.
51977         * doc/glibc-functions/setusershell.texi: Likewise.
51979         getusershell: Provide declaration, missing on Solaris 9.
51980         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
51981         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
51982         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
51983         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
51984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51985         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
51986         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
51987         HAVE_GETUSERSHELL.
51988         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
51990 2010-03-19  Bruno Haible  <bruno@clisp.org>
51992         wctype: Provide iswblank function.
51993         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
51994         exists and is fine.
51995         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
51996         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
51997         * tests/test-wctype.c (main): Re-enable the iswblank tests.
51998         * doc/posix-functions/iswblank.texi: Update.
52000 2010-03-19  Bruno Haible  <bruno@clisp.org>
52002         Tests of module 'pty' in C++ mode.
52003         * modules/pty-tests: New file.
52004         * tests/test-pty-c++.cc: New file.
52005         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
52007 2010-03-19  Eric Blake  <eblake@redhat.com>
52009         logb: fix documentation
52010         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
52011         1.5 declaration bug.
52013         forkpty, openpty: prefer glibc's const-safe prototype
52014         * lib/forkpty.c (rpl_forkpty): New file.
52015         * lib/openpty.c (rpl_openpty): Likewise.
52016         * modules/forkpty (Files): Distribute it.
52017         * modules/openpty (Files): Likewise.
52018         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
52019         check...
52020         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
52021         replacement for non-const BSD signature.
52022         * modules/pty (Makefile.am): Substitute witnesses.
52023         * lib/pty.in.h (forkpty, openpty): Declare replacements.
52024         * tests/test-forkpty.c: Update signature check.
52025         * tests/test-openpty.c: Likewise.
52026         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
52027         * doc/glibc-functions/openpty.texi (openpty): Likewise.
52029         forkpty, openpty: split functions into new modules
52030         * modules/pty (Makefile.am): Substitute new witnesses.
52031         (Libraries): Move library detection...
52032         * modules/forkpty: ...into new module.
52033         * modules/openpty: Another new module.
52034         * modules/pty-tests: Rename and split...
52035         * modules/forkpty-tests: ...to this...
52036         * modules/openpty-tests: ...and this.
52037         * tests/test-pty.c: Rename and split...
52038         * tests/test-forkpty.c: ...to this...
52039         * tests/test-openpty.c: ...and this.
52040         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
52041         (gl_PTY): Split library searching...
52042         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
52043         (gl_FORKPTY, gl_OPENPTY): New macros.
52044         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
52045         * NEWS: Mention the split.
52046         * MODULES.html.sh (Misc): Document the modules.
52047         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
52048         * doc/glibc-functions/openpty.texi (openpty): Likewise.
52050         pty: improve replacement header
52051         * lib/pty.in.h: New file.
52052         * modules/pty (Files): Ship it.
52053         (Makefile.am): Always build replacement.
52054         * m4/pty.m4: Rename...
52055         * m4/pty_h.m4: ...to this.
52056         (gl_PTY): Modernize setting of witness macros; update check of
52057         forkpty to take proper advantage of cache.
52058         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
52060         getopt: avoid compiler warning
52061         * lib/getopt.c (attribute_hidden): Remove unused macro.
52063 2010-03-18  Bruno Haible  <bruno@clisp.org>
52065         Fix link errors on Solaris 8.
52066         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
52067         * modules/search-tests (test_search_c___LDADD): Likewise.
52068         * modules/signal-tests (test_signal_c___LDADD): Likewise.
52069         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
52070         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
52071         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
52072         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
52073         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
52074         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
52076 2010-03-18  Bruno Haible  <bruno@clisp.org>
52078         Fix bug introduced on 2010-03-14.
52079         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
52080         (gl_SPAWN_H): Require it.
52081         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
52082         Reported by Simon Josefsson.
52084 2010-03-18  Bruno Haible  <bruno@clisp.org>
52086         Fix typo introduced on 2009-12-31.
52087         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
52088         posix_spawn_file_actions_adddup2.
52090 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
52091         and Eric Blake  <eblake@redhat.com>
52093         test-vc-list-files-git: make more robust
52094         * tests/test-vc-list-files-git.sh: Unset problematic environment
52095         variables.  Chain commands together.
52097 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
52099         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
52100         `AC_CHECK_DECL' invocation.
52102 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
52104         * lib/inttostr.c (inttostr): Make sure the invocation of verify
52105         appears before executable statements. Suggested by Petr Sumbera
52106         <Petr.Sumbera@Sun.COM>.
52108 2010-03-14  Bruno Haible  <bruno@clisp.org>
52110         * tests/test-flock.c (test_exclusive): Comment out a test that causes
52111         portability problems. Instead use a simpler test.
52112         (main): Check that invalid arguments are rejected only on Linux.
52114 2010-03-14  Bruno Haible  <bruno@clisp.org>
52116         Fix bug introduced on 2009-12-31.
52117         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
52118         gl_PREREQ_SYS_H_WINSOCK2 always.
52119         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
52120         SYS_SOCKET_H variable.
52121         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
52122         Update comments.
52123         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
52124         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
52125         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
52126         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
52127         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
52129 2010-03-14  Bruno Haible  <bruno@clisp.org>
52131         Fix values returned by sinl, cosl.
52132         * lib/trigl.h: Add specification comments.
52133         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
52134         that combines the values from the precomputed table with the values of
52135         the Chebyshev polynomials.
52137 2010-03-14  Bruno Haible  <bruno@clisp.org>
52139         Fix compilation error when modules 'posix_spawn[p]' are not used.
52140         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
52141         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
52143 2010-03-14  Bruno Haible  <bruno@clisp.org>
52145         Fix compilation error on mingw when module 'time_r' is not used.
52146         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
52147         is 1.
52148         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
52149         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
52150         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
52151         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
52153 2010-03-14  Bruno Haible  <bruno@clisp.org>
52155         Fix compilation error with Sun C.
52156         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
52157         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
52158         instead of GCC specific ULONG_LONG_MAX.
52159         * lib/xstrtoll.c: Likewise.
52160         * lib/xstrtoull.c: Likewise.
52162 2010-03-13  Bruno Haible  <bruno@clisp.org>
52164         Allow the user to disable C++ code and tests.
52165         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
52166         (gl_PROG_ANSI_CXX): Require it.
52168 2010-03-13  Bruno Haible  <bruno@clisp.org>
52170         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
52171         cases.
52173 2010-03-13  Bruno Haible  <bruno@clisp.org>
52175         Test that gnulib does not break the standard C++ headers.
52176         * tests/test-locale-c++2.cc: New file.
52177         * modules/locale-tests (Files): Add it.
52178         (Makefile.am): Compile it for test-locale-c++.
52179         * tests/test-math-c++2.cc: New file.
52180         * modules/math-tests (Files): Add it.
52181         (Makefile.am): Compile it for test-math-c++.
52182         * tests/test-signal-c++2.cc: New file.
52183         * modules/signal-tests (Files): Add it.
52184         (Makefile.am): Compile it for test-signal-c++.
52185         * tests/test-stdio-c++2.cc: New file.
52186         * modules/stdio-tests (Files): Add it.
52187         (Makefile.am): Compile it for test-stdio-c++.
52188         * tests/test-stdlib-c++2.cc: New file.
52189         * modules/stdlib-tests (Files): Add it.
52190         (Makefile.am): Compile it for test-stdlib-c++.
52191         * tests/test-string-c++2.cc: New file.
52192         * modules/string-tests (Files): Add it.
52193         (Makefile.am): Compile it for test-string-c++.
52194         * tests/test-time-c++2.cc: New file.
52195         * modules/time-tests (Files): Add it.
52196         (Makefile.am): Compile it for test-time-c++.
52197         Reported by John W. Eaton <jwe@gnu.org>.
52199 2010-03-13  Bruno Haible  <bruno@clisp.org>
52201         * gnulib-tool (func_usage): Clarify which options are available for
52202         --create-testdir and --create-megatestdir.
52204 2010-03-13  Bruno Haible  <bruno@clisp.org>
52206         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
52207         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
52208         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
52209         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
52210         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
52211         when appropriate.
52212         Reported by Jim Meyering.
52214 2010-03-12  Simon Josefsson  <simon@josefsson.org>
52216         * gnulib-tool (func_import): Explain origin of code.
52218 2010-03-12  Bruno Haible  <bruno@clisp.org>
52220         Fix problem with automake's definition of CXXLINK.
52221         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
52222         Reported by Simon Josefsson and Ludovic Courtès.
52224 2010-03-12  Bruno Haible  <bruno@clisp.org>
52226         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
52227         stable releases.
52229 2010-03-11  Bruno Haible  <bruno@clisp.org>
52231         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
52232         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
52233         whether the system provides one variant or multiple variants of the
52234         function.
52235         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
52236         C++ compilers.
52237         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
52238         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
52239         Reported by Jim Meyering.
52241 2010-03-09  Simon Josefsson  <simon@josefsson.org>
52243         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
52245 2010-03-08  Bruno Haible  <bruno@clisp.org>
52247         gnulib-tool: Add support for --libtool in --create-testdir.
52248         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
52249         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
52251 2010-03-08  Eric Blake  <eblake@redhat.com>
52253         gnulib-tool.texi: mention possibility of git submodule
52254         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
52255         submodules.
52256         * doc/.gitignore: Ignore another generated file.
52258 2010-03-08  Karl Berry  <karl@gnu.org>
52260         * doc/gnulib-tool.texi (VCS Issues): Mention third option
52261         of committing gnulib files while skipping others.
52263 2010-03-07  Bruno Haible  <bruno@clisp.org>
52265         Tests of module 'wctype' in C++ mode.
52266         * tests/test-wctype-c++.cc: New file.
52267         * modules/wctype-tests (Files): Add it and tests/signature.h.
52268         (Depends-on): Add ansi-c++-opt.
52269         (Makefile.am): Arrange to compile and run test-wctype-c++.
52271         Tests of module 'wchar' in C++ mode.
52272         * tests/test-wchar-c++.cc: New file.
52273         * modules/wchar-tests (Files): Add it and tests/signature.h.
52274         (Depends-on): Add ansi-c++-opt.
52275         (Makefile.am): Arrange to compile and run test-wchar-c++.
52276         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
52277         gl_MODULE_INDICATOR.
52279         Tests of module 'unistd' in C++ mode.
52280         * tests/test-unistd-c++.cc: New file.
52281         * modules/unistd-tests (Files): Add it and tests/signature.h.
52282         (Depends-on): Add ansi-c++-opt.
52283         (Makefile.am): Arrange to compile and run test-unistd-c++.
52284         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
52285         gl_MODULE_INDICATOR.
52287         Tests of module 'time' in C++ mode.
52288         * tests/test-time-c++.cc: New file.
52289         * modules/time-tests (Files): Add it and tests/signature.h.
52290         (Depends-on): Add ansi-c++-opt.
52291         (Makefile.am): Arrange to compile and run test-time-c++.
52292         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
52294         Tests of module 'sys_time' in C++ mode.
52295         * tests/test-sys_time-c++.cc: New file.
52296         * modules/sys_time-tests (Files): Add it and tests/signature.h.
52297         (Depends-on): Add ansi-c++-opt.
52298         (Makefile.am): Arrange to compile and run test-sys_time-c++.
52299         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
52300         gl_MODULE_INDICATOR.
52302         Tests of module 'sys_stat' in C++ mode.
52303         * tests/test-sys_stat-c++.cc: New file.
52304         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
52305         (Depends-on): Add ansi-c++-opt.
52306         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
52307         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
52308         gl_MODULE_INDICATOR.
52310         Tests of module 'sys_socket' in C++ mode.
52311         * tests/test-sys_socket-c++.cc: New file.
52312         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
52313         (Depends-on): Add ansi-c++-opt.
52314         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
52315         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
52316         gl_MODULE_INDICATOR.
52318         Tests of module 'sys_select' in C++ mode.
52319         * tests/test-sys_select-c++.cc: New file.
52320         * modules/sys_select-tests (Files): Add it and tests/signature.h.
52321         (Depends-on): Add ansi-c++-opt.
52322         (Makefile.am): Arrange to compile and run test-sys_select-c++.
52323         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
52324         gl_MODULE_INDICATOR.
52326         Tests of module 'sys_ioctl' in C++ mode.
52327         * tests/test-sys_ioctl-c++.cc: New file.
52328         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
52329         (Depends-on): Add ansi-c++-opt.
52330         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
52331         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
52332         gl_MODULE_INDICATOR.
52334         Tests of module 'string' in C++ mode.
52335         * tests/test-string-c++.cc: New file.
52336         * modules/string-tests (Files): Add it and tests/signature.h.
52337         (Depends-on): Add ansi-c++-opt.
52338         (Makefile.am): Arrange to compile and run test-string-c++.
52339         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
52340         gl_MODULE_INDICATOR.
52342         Tests of module 'stdlib' in C++ mode.
52343         * tests/test-stdlib-c++.cc: New file.
52344         * modules/stdlib-tests (Files): Add it and tests/signature.h.
52345         (Depends-on): Add ansi-c++-opt.
52346         (Makefile.am): Arrange to compile and run test-stdlib-c++.
52347         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
52348         gl_MODULE_INDICATOR.
52350         Tests of module 'stdio' in C++ mode.
52351         * tests/test-stdio-c++.cc: New file.
52352         * modules/stdio-tests (Files): Add it and tests/signature.h.
52353         (Depends-on): Add ansi-c++-opt.
52354         (Makefile.am): Arrange to compile and run test-stdio-c++.
52355         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
52356         gl_MODULE_INDICATOR.
52358         Tests of module 'spawn' in C++ mode.
52359         * tests/test-spawn-c++.cc: New file.
52360         * modules/spawn-tests (Files): Add it and tests/signature.h.
52361         (Depends-on): Add ansi-c++-opt.
52362         (Makefile.am): Arrange to compile and run test-spawn-c++.
52363         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
52364         gl_MODULE_INDICATOR.
52366         Tests of module 'signal' in C++ mode.
52367         * tests/test-signal-c++.cc: New file.
52368         * modules/signal-tests (Files): Add it and tests/signature.h.
52369         (Depends-on): Add ansi-c++-opt.
52370         (Makefile.am): Arrange to compile and run test-signal-c++.
52371         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
52372         gl_MODULE_INDICATOR.
52374         Tests of module 'search' in C++ mode.
52375         * tests/test-search-c++.cc: New file.
52376         * modules/search-tests (Files): Add it and tests/signature.h.
52377         (Depends-on): Add ansi-c++-opt.
52378         (Makefile.am): Arrange to compile and run test-search-c++.
52379         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
52380         gl_MODULE_INDICATOR.
52382         Tests of module 'math' in C++ mode.
52383         * tests/test-math-c++.cc: New file.
52384         * modules/math-tests (Files): Add it and tests/signature.h.
52385         (Depends-on): Add ansi-c++-opt.
52386         (Makefile.am): Arrange to compile and run test-math-c++.
52387         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
52389         Tests of module 'locale' in C++ mode.
52390         * tests/test-locale-c++.cc: New file.
52391         * modules/locale-tests (Files): Add it and tests/signature.h.
52392         (Depends-on): Add ansi-c++-opt.
52393         (Makefile.am): Arrange to compile and run test-locale-c++.
52394         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
52395         gl_MODULE_INDICATOR.
52397         Tests of module 'langinfo' in C++ mode.
52398         * tests/test-langinfo-c++.cc: New file.
52399         * modules/langinfo-tests (Files): Add it and tests/signature.h.
52400         (Depends-on): Add ansi-c++-opt.
52401         (Makefile.am): Arrange to compile and run test-langinfo-c++.
52402         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
52403         gl_MODULE_INDICATOR.
52405         Tests of module 'iconv-h' in C++ mode.
52406         * tests/test-iconv-h-c++.cc: New file.
52407         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
52408         (Depends-on): Add ansi-c++-opt.
52409         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
52411         Tests of module 'glob' in C++ mode.
52412         * tests/test-glob-c++.cc: New file.
52413         * modules/glob-tests (Files): Add it.
52414         (Depends-on): Add ansi-c++-opt.
52415         (Makefile.am): Arrange to compile and run test-glob-c++.
52417         Tests of module 'fcntl-h' in C++ mode.
52418         * tests/test-fcntl-h-c++.cc: New file.
52419         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
52420         (Depends-on): Add ansi-c++-opt.
52421         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
52422         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
52423         gl_MODULE_INDICATOR.
52425         Tests of module 'dirent' in C++ mode.
52426         * tests/test-dirent-c++.cc: New file.
52427         * modules/dirent-tests (Files): Add it and tests/signature.h.
52428         (Depends-on): Add ansi-c++-opt.
52429         (Makefile.am): Arrange to compile and run test-dirent-c++.
52430         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
52431         gl_MODULE_INDICATOR.
52433         New module 'ansi-c++-opt'.
52434         * modules/ansi-c++-opt: New file.
52435         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
52437         Document C++ namespace mode.
52438         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
52440         wctype: Avoid #define replacements in C++ mode.
52441         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
52442         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
52443         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
52444         In C++, define a namespaced alias symbol.
52445         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
52446         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
52447         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
52448         rule.
52450         wchar: Avoid #define replacements in C++ mode.
52451         * lib/wchar.in.h: Include c++defs.h.
52452         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
52453         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
52454         symbol.
52455         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
52456         * modules/wchar (Depends-on): Add c++defs.
52457         (Makefile.am): Update wchar.h rule.
52459         unistd: Avoid #define replacements in C++ mode.
52460         * lib/unistd.in.h: Include c++defs.h.
52461         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
52462         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
52463         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
52464         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
52465         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
52466         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
52467         symbol.
52468         (environ): Update.
52469         * modules/unistd (Depends-on): Add c++defs.
52470         (Makefile.am): Update unistd.h rule.
52472         time: Avoid #define replacements in C++ mode.
52473         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
52474         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
52475         define a namespaced alias symbol.
52476         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
52477         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
52478         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
52479         * modules/time (Depends-on): Add c++defs, warn-on-use.
52480         (Makefile.am): Update time.h rule.
52481         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
52482         * modules/nanosleep (configure.ac): Likewise.
52483         * modules/strptime (configure.ac): Likewise.
52484         * modules/timegm (configure.ac): Likewise.
52486         sys_time: Avoid #define replacements in C++ mode.
52487         * lib/sys_time.in.h: Include c++defs.h.
52488         (gettimeofday): In C++, define a namespaced alias symbol.
52489         * modules/sys_time (Depends-on): Add c++defs.
52490         (Makefile.am): Update sys/time.h rule.
52492         sys_stat: Avoid #define replacements in C++ mode.
52493         * lib/sys_stat.in.h: Include c++defs.h.
52494         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
52495         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
52496         namespaced alias symbol.
52497         In C++, define a namespaced alias symbol.
52498         * modules/sys_stat (Depends-on): Add c++defs.
52499         (Makefile.am): Update sys/stat.h rule.
52501         sys_socket: Avoid #define replacements in C++ mode.
52502         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
52503         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
52504         definitions also when the system has a <sys/socket.h>.
52505         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52506         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
52507         In C++, define a namespaced alias symbol.
52508         * modules/sys_socket (Depends-on): Add c++defs.
52509         (Makefile.am): Update sys/socket.h rule.
52511         sys_select: Avoid #define replacements in C++ mode.
52512         * lib/sys_select.in.h: Include c++defs.h. Enable the function
52513         definitions also when the system has a <sys/select.h>.
52514         (select): In C++, define a namespaced alias symbol.
52515         * modules/sys_select (Depends-on): Add c++defs.
52516         (Makefile.am): Update sys/select.h rule.
52518         sys_ioctl: Avoid #define replacements in C++ mode.
52519         * lib/sys_ioctl.in.h: Include c++defs.h.
52520         (ioctl): In C++, define a namespaced alias symbol.
52521         * modules/sys_ioctl (Depends-on): Add c++defs.
52522         (Makefile.am): Update sys/ioctl.h rule.
52524         string: Avoid #define replacements in C++ mode.
52525         * lib/string.in.h: Include c++defs.h.
52526         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
52527         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
52528         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
52529         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
52530         strsignal, strverscmp): In C++, define a namespaced alias symbol.
52531         * modules/string (Depends-on): Add c++defs.
52532         (Makefile.am): Update string.h rule.
52534         stdlib: Avoid #define replacements in C++ mode.
52535         * lib/stdlib.in.h: Include c++defs.h.
52536         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
52537         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
52538         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
52539         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
52540         symbol.
52541         * modules/stdlib (Depends-on): Add c++defs.
52542         (Makefile.am): Update stdlib.h rule.
52544         stdio: Avoid #define replacements in C++ mode.
52545         * lib/stdio.in.h: Include c++defs.h.
52546         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
52547         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
52548         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
52549         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
52550         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
52551         namespaced alias symbol.
52552         * modules/stdio (Depends-on): Add c++defs.
52553         (Makefile.am): Update stdio.h rule.
52555         spawn: Avoid #define replacements in C++ mode.
52556         * lib/spawn.in.h: Include c++defs.h.
52557         (posix_spawn, posix_spawnp, posix_spawnattr_init,
52558         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
52559         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
52560         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
52561         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
52562         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
52563         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
52564         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
52565         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
52566         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
52567         In C++, define a namespaced alias symbol.
52568         * modules/spawn (Depends-on): Add c++defs.
52569         (Makefile.am): Update spawn.h rule.
52571         signal: Avoid #define replacements in C++ mode.
52572         * lib/signal.in.h: Include c++defs.h.
52573         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
52574         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
52575         namespaced alias symbol.
52576         * modules/signal (Depends-on): Add c++defs.
52577         (Makefile.am): Update signal.h rule.
52579         search: Avoid #define replacements in C++ mode.
52580         * lib/search.in.h: Include c++defs.h.
52581         (_gl_search_compar_fn, _gl_search_action_fn): New types.
52582         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
52583         symbol.
52584         * modules/search (Depends-on): Add c++defs.
52585         (Makefile.am): Update search.h rule.
52587         math: Avoid #define replacements in C++ mode.
52588         * lib/math.in.h: Include c++defs.h.
52589         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
52590         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
52591         trunc, truncl): In C++, define a namespaced alias symbol.
52592         * modules/math (Depends-on): Add c++defs.
52593         (Makefile.am): Update math.h rule.
52595         locale: Avoid #define replacements in C++ mode.
52596         * lib/locale.in.h: Include c++defs.h.
52597         (duplocale): In C++, define a namespaced alias symbol.
52598         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
52599         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
52600         * modules/locale (Depends-on): Add c++defs.
52601         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
52603         langinfo: Avoid #define replacements in C++ mode.
52604         * lib/langinfo.in.h: Include c++defs.h.
52605         (nl_langinfo): In C++, define a namespaced alias symbol.
52606         * modules/langinfo (Depends-on): Add c++defs.
52607         (Makefile.am): Update langinfo.h rule.
52609         iconv-h: Avoid #define replacements in C++ mode.
52610         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
52611         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
52612         symbol.
52613         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52614         whenever iconv is present.
52615         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
52616         (Makefile.am): Update iconv.h rule.
52618         glob: Avoid #define replacements in C++ mode.
52619         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
52620         (_gl_glob_errfunc_fn): New type.
52621         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
52622         symbol.
52623         * modules/glob (Depends-on): Add c++defs, warn-on-use.
52624         (Makefile.am): Update glob.h rule.
52626         fcntl-h: Avoid #define replacements in C++ mode.
52627         * lib/fcntl.in.h: Include c++defs.h.
52628         (fcntl, open, openat): In C++, define a namespaced alias symbol.
52629         * modules/fcntl-h (Depends-on): Add c++defs.
52630         (Makefile.am): Update fcntl.h rule.
52632         dirent: Avoid #define replacements in C++ mode.
52633         * lib/dirent.in.h: Include c++defs.h.
52634         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
52635         namespaced alias symbol.
52636         (dirfd): Update declaration.
52637         * modules/dirent (Depends-on): Add c++defs.
52638         (Makefile.am): Update dirent.h rule.
52640         ctype: Make it usable in C++ code.
52641         * lib/ctype.in.h: Include c++defs.h.
52642         (isblank): Declare as extern "C".
52643         * modules/ctype (Depends-on): Add c++defs.
52644         (Makefile.am): Update ctype.h rule.
52646         New module 'c++defs'.
52647         * modules/c++defs: New file.
52648         * build-aux/c++defs.h: New file.
52649         Reported by John W. Eaton <jwe@gnu.org>.
52651 2010-03-07  Bruno Haible  <bruno@clisp.org>
52653         logb: Provide missing declaration for Cygwin.
52654         * lib/math.in.h (logb): New declaration.
52655         * m4/logb.m4: New file.
52656         * modules/logb (Files): Add m4/logb.m4.
52657         (Depends-on): Add math.
52658         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
52659         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
52660         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
52661         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
52662         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
52664 2010-03-07  Bruno Haible  <bruno@clisp.org>
52666         Fix test-cond link error.
52667         * tests/test-cond.c: Include <stdio.h>.
52669 2010-03-07  Bruno Haible  <bruno@clisp.org>
52671         Fix test-dirent-safer link error.
52672         * modules/dirent-safer-tests (Makefile.am): Define
52673         test_dirent_safer_LDADD.
52675 2010-03-07  Bruno Haible  <bruno@clisp.org>
52677         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
52678         among default module list.
52680 2010-03-07  Bruno Haible  <bruno@clisp.org>
52682         Fix link error on platforms with GNU libiconv.
52683         * modules/unistr/u8-strcoll-tests (Makefile): Define
52684         test_u8_strcoll_LDADD.
52685         * modules/unistr/u16-strcoll-tests (Makefile): Define
52686         test_u16_strcoll_LDADD.
52687         * modules/unistr/u32-strcoll-tests (Makefile): Define
52688         test_u32_strcoll_LDADD.
52690 2010-03-07  Bruno Haible  <bruno@clisp.org>
52692         Use POSIX declarations for socket functions.
52693         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
52694         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
52695         rpl_sendto): Change declaration to match POSIX.
52696         * lib/connect.c (rpl_connect): Likewise.
52697         * lib/accept.c (rpl_accept): Likewise.
52698         * lib/bind.c (rpl_bind): Likewise.
52699         * lib/getpeername.c (rpl_getpeername): Likewise.
52700         * lib/getsockname.c (rpl_getsockname): Likewise.
52701         * lib/recv.c (rpl_recv): Likewise.
52702         * lib/send.c (rpl_send): Likewise.
52703         * lib/recvfrom.c (rpl_recvfrom): Likewise.
52704         * lib/sendto.c (rpl_sendto): Likewise.
52706 2010-03-06  Bruno Haible  <bruno@clisp.org>
52708         Clarify access, euidaccess, faccessat.
52709         * doc/posix-functions/faccessat.texi: Mention security problem under
52710         "Other problems", not "Portability problems".
52711         * doc/posix-functions/access.texi: Likewise. Mention a related security
52712         problem.
52713         * doc/glibc-functions/euidaccess.texi: Mention security problems.
52714         * lib/euidaccess.c: Add comments about platforms.
52715         * lib/unistd.in.h (access, euidaccess): Add warnings.
52717 2010-03-07  Bruno Haible  <bruno@clisp.org>
52719         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
52720         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
52721         (POSIX_SPAWN_SETSCHEDULER): Likewise.
52722         (POSIX_SPAWN_USEVFORK): Define in a way that works when
52723         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
52724         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
52725         declare when POSIX_SPAWN_SETSCHEDULER is zero.
52726         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
52727         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
52728         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
52729         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
52730         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
52731         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
52732         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
52733         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
52734         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
52735         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
52736         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
52737         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
52738         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
52739         Likewise.
52740         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
52741         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
52742         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
52743         Likewise.
52744         * tests/test-spawn.c (main): Make it work when
52745         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
52747 2010-03-07  Bruno Haible  <bruno@clisp.org>
52749         Fix incorrect Makefile.am generation in German locale.
52750         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52751         Execute sed command with character range in C locale.
52753 2010-03-06  Bruno Haible  <bruno@clisp.org>
52755         Tests for module 'iconv-h'.
52756         * modules/iconv-h-tests: New file.
52757         * tests/test-iconv-h.c: New file.
52759         New module 'iconv-h'.
52760         * modules/iconv-h: New file.
52761         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
52762         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
52763         (configure.ac): Remove gl_ICONV_H.
52764         (Makefile.am): Remove rule for iconv.h.
52766 2010-03-06  Bruno Haible  <bruno@clisp.org>
52768         More consistent naming of *.m4 files.
52769         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
52770         * modules/wctype (Files): Update.
52772         More consistent naming of *.m4 files.
52773         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
52774         * modules/wchar (Files): Update.
52776 2010-03-06  Jim Meyering  <meyering@redhat.com>
52778         euidaccess: relax license to LGPLv2+
52779         * modules/euidaccess (License): Relax to LGPLv2+.
52781 2010-03-06  Bruno Haible  <bruno@clisp.org>
52783         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
52784         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
52785         (Makefile.am): Augment lib_SOURCES instead.
52787 2010-03-04  Jim Meyering  <meyering@redhat.com>
52789         utime: remove obsolete module
52790         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
52791         unnecessary for years, and has been marked as obsolete for 10 months.
52792         * modules/utime: Remove file.
52793         * lib/utime.c: Remove file.
52794         * m4/utime.m4: Remove file.
52795         * m4/utimes-null.m4: Remove file.
52796         * doc/posix-functions/utime.texi (utime): Remove reference to
52797         the module.  Move the sole "fixed by gnulib" item into the
52798         "problems not fixed by Gnulib" list.
52799         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
52801 2010-03-05  Simon Josefsson  <simon@josefsson.org>
52803         * modules/exit (License): Relax license to LGPLv2+.
52804         (Status): Mark as obsolete.
52805         * NEWS: Mention deprecated 'exit' module.
52806         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
52807         of now obsolete 'exit'.
52809 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52811         fts-lgpl: remove unused module
52812         * modules/fts-lgpl: Remove.
52813         * MODULES.html.sh (func_all_modules): Adjust.
52814         * check-module (find_included_lib_files): Adjust.
52815         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
52817 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
52819         copy-acl: enhance Solaris ACL error handling
52820         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
52821         * lib/set-mode-acl.c (qset_acl): Likewise.
52823 2010-03-02  Bruno Haible  <bruno@clisp.org>
52825         spawn: Don't override the system defined values on FreeBSD 8.
52826         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
52827         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
52828         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
52829         if HAVE_POSIX_SPAWN is 1.
52830         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
52832 2010-03-01  Bruno Haible  <bruno@clisp.org>
52834         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
52835         regarding Automake.
52837 2010-02-25  Bruno Haible  <bruno@clisp.org>
52839         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
52840         * gnulib-tool: Define 'echo' as a function only before the ksh alias
52841         setting, not afterwards.
52842         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
52844 2010-02-24  Eric Blake  <eblake@redhat.com>
52846         bootstrap, git-version-gen: use timestamp
52847         * build-aux/git-version-gen (scriptversion): Force UTC.
52848         * build-aux/bootstrap (scriptversion): New variable.
52850         bootstrap: allow older git
52851         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
52852         older than 1.6.4.  Requested by the libvirt project.
52854 2010-02-23  Eric Blake  <eblake@redhat.com>
52856         warn-on-use: work with old autoconf
52857         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
52858         AS_VAR semantics of autoconf 2.60.
52859         Reported by Bruno Haible.
52861         bootstrap: improve some comments
52862         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
52863         clarification comments.
52865         gettimeofday: provide correct function
52866         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
52867         when replacement is declared, otherwise provide gettimeofday.
52868         Reported by Michael Goffioul.
52870 2010-02-23  Jim Meyering  <meyering@redhat.com>
52872         lib-ignore: relax license to "unlimited", not LGPLv2+
52873         * modules/lib-ignore (License): Relax to "unlimited".
52875 2010-02-23  Jim Meyering  <meyering@redhat.com>
52877         lib-ignore: relax license to LGPLv2+
52878         * modules/lib-ignore (License): Relax to LGPLv2+.
52880 2010-02-22  Eric Blake  <eblake@redhat.com>
52882         lseek: avoid bash 3.2 broken pipe bug
52883         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
52884         warning from bash 3.2.
52885         Reported by Ben Pfaff, with analysis from Bruno Haible.
52887         bootstrap: support non-FSF copyright holder
52888         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
52889         bootstrap.conf override of COPYRIGHT_HOLDER.
52890         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
52892         bootstrap: interoperate with gettext 0.14.1
52893         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
52895         bootstrap: allow for alternate submodule location
52896         * build-aux/bootstrap (gnulib_path): New variable; use instead of
52897         hardcoding submodule location.
52898         (gnulib_mk): Allow direct use of Makefile.am.
52900         bootstrap: use GNULIB_SRCDIR to reduce disk usage
52901         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
52902         rather than reconfiguring where the submodule points.
52904         gettimeofday: restore support for platforms that lack function
52905         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
52906         replacement if function is missing.
52907         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
52908         * modules/sys_time (Makefile.am): Substitute it.
52909         * lib/sys_time.in.h (gettimeofday): Check it.
52910         Reported by Michael Goffioul.
52912 2010-02-21  Bruno Haible  <bruno@clisp.org>
52914         * lib/stdio.in.h (obstack_printf): Fix typo.
52916 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
52918         vc-list-files: use bzr ls's -R option
52919         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
52920         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
52922 2010-02-21  Jim Meyering  <meyering@redhat.com>
52924         init.sh: fix EXEEXT shims to work also for names like test-prog
52925         * tests/init.sh: Re-exec a better shell, when needed.
52926         If the current shell lacks support for posix $(...), an init.sh-using
52927         test will now try to find a shell that supports that.  If EXEEXT is
52928         nonempty, we also require support for hyphen-in-alias-name and shell
52929         substitutions like ${var#glob}.  Failure to find such a shell results
52930         in a skipped test.
52932 2010-02-21  Bruno Haible  <bruno@clisp.org>
52934         Really work around "broken pipe" error message from bash 3.2.
52935         * gnulib-tool (func_reset_sigpipe): Remove function.
52936         (echo): In bash 3.2, define to a function that uses printf.
52937         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
52939 2010-02-20  Bruno Haible  <bruno@clisp.org>
52941         Restore support for automake 1.9.6 with autoconf 2.61.
52942         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
52943         Reported by James Youngman <jay@gnu.org>.
52945 2010-02-20  Bruno Haible  <bruno@clisp.org>
52947         Improve *printf warning condition.
52948         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
52949         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
52950         and the function is overridden due to SIGPIPE emulation.
52952 2010-02-20  Bruno Haible  <bruno@clisp.org>
52954         * lib/stdio.in.h: Tweak comments.
52956 2010-02-19  Bruno Haible  <bruno@clisp.org>
52958         Make it easier to find modules. New gnulib-tool option '--find'.
52959         * gnulib-tool: New option --find.
52960         (func_usage): Document it.
52961         (func_sanitize_modulelist): New function, extracted from
52962         func_all_modules.
52963         (func_all_modules): Invoke it.
52964         * doc/gnulib-tool.texi (Which modules?): New node.
52966 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
52968         * lib/sys_select.in.h: Provide select replacement even if
52969         sys/select.h exists on a system, for Interix.
52971 2010-02-18  Jim Meyering  <meyering@redhat.com>
52973         init.sh: don't use $(...) just yet
52974         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
52975         to accommodate e.g., Solaris' /bin/sh.
52977 2010-02-17  Bruno Haible  <bruno@clisp.org>
52979         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
52980         Reported by Ludovic Courtès <ludo@gnu.org>.
52982 2010-02-16  Simon Josefsson  <simon@josefsson.org>
52984         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
52985         linking with -lintl.
52987 2010-02-17  Simon Josefsson  <simon@josefsson.org>
52989         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
52990         if not provided by the system's netdb.h.  Reported by
52991         ludo@gnu.org (Ludovic Courtès).
52993 2010-02-15  Jim Meyering  <meyering@redhat.com>
52995         init.sh: improve portability and efficiency
52996         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
52997         "dummy" in a for loop.
52998         Use '!', not '^' to select the complement of a character set used
52999         in a "case" statement.
53000         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
53001         Suggestions from Eric Blake.
53003         init.sh: automatically accommodate programs with the .exe suffix
53004         Automatically arrange for an invocation of "prog" to execute the
53005         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
53006         may use the simpler "prog", yet still work when built on a system
53007         that requires specifying the added suffix.
53008         Do this by constructing a function named "prog" that invokes
53009         "prog.exe" for each .exe file in selected directories.
53010         * tests/init.sh (find_exe_basenames_): New function.
53011         (create_exe_shim_functions_): New function.
53012         (path_prepend_): Use it.
53014         maint.mk: mark syntax-check sc_*.m rules as .PHONY
53015         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
53016         "make -t syntax-check" doesn't create a ton of sc_*.m files.
53018 2010-02-14  Jim Meyering  <meyering@redhat.com>
53020         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
53021         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
53022         (sc_prohibit_hash_pjw_without_use): New rule.
53024         maint.mk: allow the default upload destination dir to be overridden
53025         * top/maint.mk (upload_dest_dir_): Define with a default that
53026         preserves the status quo.
53027         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
53028         Reported by Peter Simons.
53030         maint.mk: prohibit inclusion of "hash.h" without_use
53031         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
53033 2010-02-10  Jim Meyering  <meyering@redhat.com>
53035         maint.mk: prohibit inclusion of "ignore-value.h" without_use
53036         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
53038 2010-02-09  Eric Blake  <ebb9@byu.net>
53039         and Bruno Haible  <bruno@clisp.org>
53041         obstack-printf-posix: ensure declaration
53042         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
53043         extracted from gl_FUNC_OBSTACK_PRINTF.
53044         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
53045         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53046         Likewise.
53047         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
53048         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
53049         0.
53051 2010-02-08  Bruno Haible  <bruno@clisp.org>
53053         gnulib-tool: Fix typo in 2010-02-07 commit.
53054         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
53055         Reported by Eric Blake.
53057 2010-02-07  Bruno Haible  <bruno@clisp.org>
53059         gnulib-tool: Fix up caching patches.
53060         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
53061         option --no-cache. Use associative arrays when supported by the shell.
53062         (sed_comments): New variable.
53063         (modcache): Renamed from do_cache.
53064         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
53065         abbreviate unnecessarily.
53066         (have_associative): New variable.
53067         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
53068         way also for ksh and zsh.
53069         (func_init_sed_convert_to_cache_statements): New function, extracted
53070         from func_cache_lookup_module. Add support for associative arrays.
53071         Don't set the c_MODULE_cached variable here. Ignore all lines before
53072         the first field header. Remove only the final newline, not all trailing
53073         newlines. Support empty fields correctly. Limit the use of 'eval' to
53074         assignments.
53075         (func_get_description, func_get_status, func_get_notice,
53076         func_get_applicability, func_get_filelist, func_get_dependencies,
53077         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
53078         func_get_automake_snippet, func_get_include_directive,
53079         func_get_link_directive, func_get_license, func_get_maintainer):
53080         Update documentation. List the unoptimized code first. Add support for
53081         associative arrays. Limit the use of 'eval' to assignments.
53082         (func_get_applicability): Undo stylistic pessimisations.
53083         (func_get_automake_snippet, func_get_include_directive): Reduce code
53084         duplication.
53085         (func_modules_transitive_closure, func_modules_add_dummy,
53086         func_modules_notice, func_modules_to_filelist, func_add_file,
53087         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
53088         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
53089         func_create_testdir, func_create_megatestdir): Update documentation.
53091 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53093         * gnulib-tool (func_cache_lookup_module): Store the module name
53094         belonging to the cache variable; error out if two different
53095         module names map to the same cache variable name.
53097 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53099         gnulib-tool: Make caching optional.
53100         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
53101         Update matching short versions of --no-changelog.
53102         (func_usage): Update.
53103         (sed_extract_cache_prog): Renamed from ...
53104         (sed_extract_prog): ... this; revert to old extraction script.
53105         (func_get_description, func_get_status)
53106         (func_get_notice, func_get_applicability, func_get_filelist)
53107         (func_get_dependencies, func_get_autoconf_early_snippet)
53108         (func_get_autoconf_snippet, func_get_automake_snippet)
53109         (func_get_include_directive, func_get_link_directive)
53110         (func_get_license, func_get_maintainer): If $do_cache is false,
53111         use old, non-caching extraction scripts.
53112         Suggestion by Bruno Haible.
53114 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53116         gnulib-tool: cache module metainformation.
53117         * gnulib-tool (sed_extract_prog): Match newline before each
53118         header, and rewrite header to a shell variable suffix.
53119         (func_cache_var, func_cache_lookup_module): New functions,
53120         to turn a module name into a cache variable prefix, and to
53121         look up and cache module metainformation.
53122         (func_get_description, func_get_status)
53123         (func_get_notice, func_get_applicability, func_get_filelist)
53124         (func_get_dependencies, func_get_autoconf_early_snippet)
53125         (func_get_autoconf_snippet, func_get_automake_snippet)
53126         (func_get_include_directive, func_get_link_directive)
53127         (func_get_license, func_get_maintainer): Use
53128         func_cache_lookup_module.
53130 2010-02-07  Bruno Haible  <bruno@clisp.org>
53132         fnctl: Fix missing dependency.
53133         * modules/fcntl (Depends-on): Add getdtablesize.
53134         Reported by John W. Eaton <jwe@gnu.org>.
53136 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53138         Argp: fix recognition of short alias options.
53140         * lib/argp-parse.c (convert_options): Fix improper use of
53141         `|' between character values.
53142         * tests/test-argp.c (group1_option): New alias option
53143         --read (-r).
53144         (group1_parser): Special handling for 'r'.
53145         (test15): New test case.
53146         (test_fun): Add test15.
53147         * tests/test-argp-2.sh: Update expected --help and --usage
53148         outputs.
53150 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53152         * tests/test-argp.c: Fix indentation.
53154 2010-02-04  Eric Blake  <ebb9@byu.net>
53156         gettimeofday: expose type of second argument
53157         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
53158         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
53159         * tests/test-gettimeofday.c: Use it to silence warning.
53160         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
53161         the issue.
53163 2010-02-03  Jim Meyering  <meyering@redhat.com>
53165         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
53166         * lib/regcomp.c (TYPE_SIGNED): Define.
53167         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
53169         regcomp.c: avoid a new -Wshadow warning
53170         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
53172 2010-02-01  Jim Meyering  <meyering@redhat.com>
53174         removing useless parentheses in cpp #define directives
53175         For motivation, see commit c0221df4, "define STREQ(a,b)
53176         consistently, removing useless parentheses"
53177         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
53178         * lib/mountlist.c (MNT_IGNORE): Likewise.
53179         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
53181 2010-02-01  Eric Blake  <ebb9@byu.net>
53183         sys_time: use link-warning
53184         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
53185         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
53186         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
53187         * modules/sys_time (Depends-on): Add warn-on-use.
53188         (Makefile.am): Always build replacement.
53189         (configure.ac): Update substitutions.
53190         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
53191         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
53192         bother with SYS_TIME_H.
53193         * modules/gettimeofday (configure.ac): Declare indicator.
53194         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
53195         in use.
53197         closein-tests: silence compiler warning
53198         * tests/test-closein.c (main): Ignore fread result.
53199         * modules/closein-tests (Depends-on): Add ignore-value.
53201         tests: silence warning about system return
53202         * tests/test-areadlink-with-size.c (main): Ignore system result.
53203         * tests/test-areadlink.c (main): Likewise.
53204         * tests/test-areadlinkat-with-size.c (main): Likewise.
53205         * tests/test-areadlinkat.c (main): Likewise.
53206         * tests/test-canonicalize-lgpl.c (main): Likewise.
53207         * tests/test-canonicalize.c (main): Likewise.
53208         * tests/test-chown.c (main): Likewise.
53209         * tests/test-fchownat.c (main): Likewise.
53210         * tests/test-fdutimensat.c (main): Likewise.
53211         * tests/test-fstatat.c (main): Likewise.
53212         * tests/test-futimens.c (main): Likewise.
53213         * tests/test-lchown.c (main): Likewise.
53214         * tests/test-link.c (main): Likewise.
53215         * tests/test-linkat.c (main): Likewise.
53216         * tests/test-lstat.c (main): Likewise.
53217         * tests/test-mkdir.c (main): Likewise.
53218         * tests/test-mkdirat.c (main): Likewise.
53219         * tests/test-mkfifo.c (main): Likewise.
53220         * tests/test-mkfifoat.c (main): Likewise.
53221         * tests/test-mknod.c (main): Likewise.
53222         * tests/test-readlink.c (main): Likewise.
53223         * tests/test-remove.c (main): Likewise.
53224         * tests/test-rename.c (main): Likewise.
53225         * tests/test-renameat.c (main): Likewise.
53226         * tests/test-rmdir.c (main): Likewise.
53227         * tests/test-symlink.c (main): Likewise.
53228         * tests/test-symlinkat.c (main): Likewise.
53229         * tests/test-unlink.c (main): Likewise.
53230         * tests/test-unlinkat.c (main): Likewise.
53231         * tests/test-utimens.c (main): Likewise.
53232         * tests/test-utimensat.c (main): Likewise.
53233         * modules/areadlink-tests (Depends-on): Add ignore-value.
53234         * modules/areadlink-with-size-tests (Depends-on): Likewise.
53235         * modules/areadlinkat-tests (Depends-on): Likewise.
53236         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
53237         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
53238         * modules/canonicalize-tests (Depends-on): Likewise.
53239         * modules/chown-tests (Depends-on): Likewise.
53240         * modules/fdutimensat-tests (Depends-on): Likewise.
53241         * modules/futimens-tests (Depends-on): Likewise.
53242         * modules/lchown-tests (Depends-on): Likewise.
53243         * modules/link-tests (Depends-on): Likewise.
53244         * modules/linkat-tests (Depends-on): Likewise.
53245         * modules/lstat-tests (Depends-on): Likewise.
53246         * modules/mkdir-tests (Depends-on): Likewise.
53247         * modules/mkfifo-tests (Depends-on): Likewise.
53248         * modules/mkfifoat-tests (Depends-on): Likewise.
53249         * modules/mknod-tests (Depends-on): Likewise.
53250         * modules/openat-tests (Depends-on): Likewise.
53251         * modules/readlink-tests (Depends-on): Likewise.
53252         * modules/remove-tests (Depends-on): Likewise.
53253         * modules/rename-tests (Depends-on): Likewise.
53254         * modules/renameat-tests (Depends-on): Likewise.
53255         * modules/rmdir-tests (Depends-on): Likewise.
53256         * modules/symlink-tests (Depends-on): Likewise.
53257         * modules/symlinkat-tests (Depends-on): Likewise.
53258         * modules/unlink-tests (Depends-on): Likewise.
53259         * modules/utimens-tests (Depends-on): Likewise.
53260         * modules/utimensat-tests (Depends-on): Likewise.
53262 2010-01-31  Bruno Haible  <bruno@clisp.org>
53264         Perform the same test for many <math.h> functions.
53265         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
53266         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
53267         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
53268         of gl_MATHFUNC.
53269         * modules/acos (configure.ac): Likewise.
53270         * modules/asin (configure.ac): Likewise.
53271         * modules/atan (configure.ac): Likewise.
53272         * modules/atan2 (configure.ac): Likewise.
53273         * modules/cbrt (configure.ac): Likewise.
53274         * modules/copysign (configure.ac): Likewise.
53275         * modules/cos (configure.ac): Likewise.
53276         * modules/cosh (configure.ac): Likewise.
53277         * modules/erf (configure.ac): Likewise.
53278         * modules/erfc (configure.ac): Likewise.
53279         * modules/exp (configure.ac): Likewise.
53280         * modules/fmod (configure.ac): Likewise.
53281         * modules/hypot (configure.ac): Likewise.
53282         * modules/j0 (configure.ac): Likewise.
53283         * modules/j1 (configure.ac): Likewise.
53284         * modules/jn (configure.ac): Likewise.
53285         * modules/lgamma (configure.ac): Likewise.
53286         * modules/log (configure.ac): Likewise.
53287         * modules/log10 (configure.ac): Likewise.
53288         * modules/log1p (configure.ac): Likewise.
53289         * modules/pow (configure.ac): Likewise.
53290         * modules/remainder (configure.ac): Likewise.
53291         * modules/sin (configure.ac): Likewise.
53292         * modules/sinh (configure.ac): Likewise.
53293         * modules/tan (configure.ac): Likewise.
53294         * modules/tanh (configure.ac): Likewise.
53295         * modules/y0 (configure.ac): Likewise.
53296         * modules/y1 (configure.ac): Likewise.
53297         * modules/yn (configure.ac): Likewise.
53298         Suggested by Paolo Bonzini.
53300 2010-01-31  Bruno Haible  <bruno@clisp.org>
53302         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
53304 2010-01-31  Bruno Haible  <bruno@clisp.org>
53306         Work around getdelim() bug on FreeBSD 8.0.
53307         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
53308         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
53309         not work.
53310         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
53311         is 1.
53312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
53313         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
53314         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
53315         a non-zero size.
53316         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
53318 2010-01-31  Bruno Haible  <bruno@clisp.org>
53320         Work around getline() bug on FreeBSD 8.0.
53321         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
53322         and a non-zero size.
53323         * tests/test-getline.c (main): Likewise.
53324         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
53325         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
53327 2010-01-28  Eric Blake  <ebb9@byu.net>
53329         regex: fix build failure
53330         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
53331         platforms.
53333 2010-01-28  Jim Meyering  <meyering@redhat.com>
53335         regex: do not ignore memory allocation failure
53336         * lib/regex_internal.c (create_cd_newstate): Detect
53337         re_node_set_init_copy failure.   Extracted from glibc commit
53338         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
53340         regex: sync more white-space changes from libc
53341         * lib/regex_internal.c: White-space only changes.
53342         * lib/regexec.c: Likewise.
53344         regex: add many uses of __attribute_warn_unused_result__
53345         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
53346         * lib/regexec.c: Likewise.
53347         Extracted from a messy glibc commit.
53349         regcomp.c: spelling and merge-artifact from glibc
53350         * lib/regcomp.c: Merge remainder of glibc's
53351         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
53353         regcomp.c: sync white-space changes from glibc
53354         * lib/regcomp.c: Merge to accommodate white space
53355         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
53357         regcomp.c: do not ignore internal return values
53358         * lib/regcomp.c: Do not ignore internal return values.
53359         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
53360         but without its white-space changes and spelling fixes.
53362         regex_internal.h: define __attribute_warn_unused_result__
53363         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
53365         maint: add a syntax-check rule to check for vulnerable Makefile.in
53366         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
53368 2010-01-27  Jim Meyering  <meyering@redhat.com>
53370         ncftpput-ftp: clean up spaces
53371         * build-aux/ncftpput-ftp: Make Copyright line consistent.
53372         Remove trailing blanks.
53374 2010-01-27  Simon Josefsson  <simon@josefsson.org>
53376         * build-aux/git-version-gen: Fix copyright statement.
53377         * build-aux/gnupload: Likewise.
53378         * tests/test-arcfour.c: Likewise.
53379         * tests/test-arctwo.c: Likewise.
53380         * tests/test-count-one-bits.c: Likewise.
53381         * tests/test-crc.c: Likewise.
53382         * tests/test-des.c: Likewise.
53383         * tests/test-gc-arcfour.c: Likewise.
53384         * tests/test-gc-arctwo.c: Likewise.
53385         * tests/test-gc-des.c: Likewise.
53386         * tests/test-gc-hmac-md5.c: Likewise.
53387         * tests/test-gc-hmac-sha1.c: Likewise.
53388         * tests/test-gc-md2.c: Likewise.
53389         * tests/test-gc-md4.c: Likewise.
53390         * tests/test-gc-md5.c: Likewise.
53391         * tests/test-gc-pbkdf2-sha1.c: Likewise.
53392         * tests/test-gc-rijndael.c: Likewise.
53393         * tests/test-gc-sha1.c: Likewise.
53394         * tests/test-gc.c: Likewise.
53395         * tests/test-gethostname.c: Likewise.
53396         * tests/test-gettimeofday.c: Likewise.
53397         * tests/test-hash.c: Likewise.
53398         * tests/test-hmac-md5.c: Likewise.
53399         * tests/test-hmac-sha1.c: Likewise.
53400         * tests/test-md2.c: Likewise.
53401         * tests/test-md4.c: Likewise.
53402         * tests/test-md5.c: Likewise.
53403         * tests/test-memchr.c: Likewise.
53404         * tests/test-memchr2.c: Likewise.
53405         * tests/test-memcmp.c: Likewise.
53406         * tests/test-memmem.c: Likewise.
53407         * tests/test-memrchr.c: Likewise.
53408         * tests/test-rawmemchr.c: Likewise.
53409         * tests/test-read-file.c: Likewise.
53410         * tests/test-rijndael.c: Likewise.
53411         * tests/test-sockets.c: Likewise.
53412         * tests/test-strchrnul.c: Likewise.
53413         * tests/test-strstr.c: Likewise.
53414         * tests/test-strtod.c: Likewise.
53415         * build-aux/ncftpput-ftp: Likewise.
53417 2010-01-26  Eric Blake  <ebb9@byu.net>
53419         ignore-value: update recommended header name
53420         * modules/ignore-value (Include): Only use <> for headers that
53421         exist in glibc.
53423 2010-01-26  Jim Meyering  <meyering@redhat.com>
53425         test-userspec.c: avoid compiler warnings
53426         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
53427         and "initialization discards qualifiers..." warnings.
53428         Put the first "uid" in its own scope, and make char* members "const".
53430 2010-01-25  Bruno Haible  <bruno@clisp.org>
53432         gnulib-tool: Make warning diagnostics consistent.
53433         * gnulib-tool (func_warning): New function.
53434         Use it everywhere where gnulib-tool produces output to stderr and it is
53435         not a fatal error.
53437 2010-01-25  Bruno Haible  <bruno@clisp.org>
53439         Fix test dependencies.
53440         * modules/xstrtol-tests (Depends-on): Add inttypes.
53441         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
53443 2010-01-25  Pádraig Brady  <P@draigBrady.com>
53445         syntax-check: detect incorrect boolean macro values in config.h
53446         * modules/maintainer-makefile (configure.ac): Parameterize the location
53447         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
53448         The logic is from Eric Blake and the location indicated by Jim Meyering.
53449         Note the more natural CONFIG_HEADER name is prohibited by automake
53450         for backwards compatibility reasons.
53451         * top/maint.mk (sc_Wundef_boolean): New rule.
53453 2010-01-25  Jim Meyering  <meyering@redhat.com>
53455         bootstrap: detect MacOS 10.6's shasum, too
53456         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
53457         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
53459 2010-01-23  Jim Meyering  <meyering@redhat.com>
53461         xstrtoll: new module
53462         * modules/xstrtoll: New file.
53463         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
53464         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
53465         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
53466         ./configure fails if you use this module and lack "long long".
53467         * modules/xstrtoll-tests: New module.
53468         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
53469         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
53470         new init.sh-based test framework.
53472 2010-01-24  Bruno Haible  <bruno@clisp.org>
53474         Tests for module 'yn'.
53475         * modules/yn-tests: New file.
53476         * tests/test-yn.c: New file.
53478         Tests for module 'y1'.
53479         * modules/y1-tests: New file.
53480         * tests/test-y1.c: New file.
53482         Tests for module 'y0'.
53483         * modules/y0-tests: New file.
53484         * tests/test-y0.c: New file.
53486         Tests for module 'tanh'.
53487         * modules/tanh-tests: New file.
53488         * tests/test-tanh.c: New file.
53490         Tests for module 'tan'.
53491         * modules/tan-tests: New file.
53492         * tests/test-tan.c: New file.
53494         Tests for module 'sqrt'.
53495         * modules/sqrt-tests: New file.
53496         * tests/test-sqrt.c: New file.
53498         Tests for module 'sinh'.
53499         * modules/sinh-tests: New file.
53500         * tests/test-sinh.c: New file.
53502         Tests for module 'sin'.
53503         * modules/sin-tests: New file.
53504         * tests/test-sin.c: New file.
53506         Tests for module 'rint'.
53507         * modules/rint-tests: New file.
53508         * tests/test-rint.c: New file.
53510         Tests for module 'remainder'.
53511         * modules/remainder-tests: New file.
53512         * tests/test-remainder.c: New file.
53514         Tests for module 'pow'.
53515         * modules/pow-tests: New file.
53516         * tests/test-pow.c: New file.
53518         Tests for module 'nextafter'.
53519         * modules/nextafter-tests: New file.
53520         * tests/test-nextafter.c: New file.
53522         Tests for module 'modf'.
53523         * modules/modf-tests: New file.
53524         * tests/test-modf.c: New file.
53526         Tests for module 'logb'.
53527         * modules/logb-tests: New file.
53528         * tests/test-logb.c: New file.
53530         Tests for module 'log1p'.
53531         * modules/log1p-tests: New file.
53532         * tests/test-log1p.c: New file.
53534         Tests for module 'log10'.
53535         * modules/log10-tests: New file.
53536         * tests/test-log10.c: New file.
53538         Tests for module 'log'.
53539         * modules/log-tests: New file.
53540         * tests/test-log.c: New file.
53542         Tests for module 'lgamma'.
53543         * modules/lgamma-tests: New file.
53544         * tests/test-lgamma.c: New file.
53546         Tests for module 'ldexp'.
53547         * modules/ldexp-tests: New file.
53548         * tests/test-ldexp.c: New file.
53550         Tests for module 'jn'.
53551         * modules/jn-tests: New file.
53552         * tests/test-jn.c: New file.
53554         Tests for module 'j1'.
53555         * modules/j1-tests: New file.
53556         * tests/test-j1.c: New file.
53558         Tests for module 'j0'.
53559         * modules/j0-tests: New file.
53560         * tests/test-j0.c: New file.
53562         Tests for module 'hypot'.
53563         * modules/hypot-tests: New file.
53564         * tests/test-hypot.c: New file.
53566         Tests for module 'fmod'.
53567         * modules/fmod-tests: New file.
53568         * tests/test-fmod.c: New file.
53570         Tests for module 'fabs'.
53571         * modules/fabs-tests: New file.
53572         * tests/test-fabs.c: New file.
53574         Tests for module 'exp'.
53575         * modules/exp-tests: New file.
53576         * tests/test-exp.c: New file.
53578         Tests for module 'erfc'.
53579         * modules/erfc-tests: New file.
53580         * tests/test-erfc.c: New file.
53582         Tests for module 'erf'.
53583         * modules/erf-tests: New file.
53584         * tests/test-erf.c: New file.
53586         Tests for module 'cosh'.
53587         * modules/cosh-tests: New file.
53588         * tests/test-cosh.c: New file.
53590         Tests for module 'cos'.
53591         * modules/cos-tests: New file.
53592         * tests/test-cos.c: New file.
53594         Tests for module 'copysign'.
53595         * modules/copysign-tests: New file.
53596         * tests/test-copysign.c: New file.
53598         Tests for module 'cbrt'.
53599         * modules/cbrt-tests: New file.
53600         * tests/test-cbrt.c: New file.
53602         Tests for module 'atan2'.
53603         * modules/atan2-tests: New file.
53604         * tests/test-atan2.c: New file.
53606         Tests for module 'atan'.
53607         * modules/atan-tests: New file.
53608         * tests/test-atan.c: New file.
53610         Tests for module 'asin'.
53611         * modules/asin-tests: New file.
53612         * tests/test-asin.c: New file.
53614         Tests for module 'acos'.
53615         * modules/acos-tests: New file.
53616         * tests/test-acos.c: New file.
53618 2010-01-24  Bruno Haible  <bruno@clisp.org>
53620         Fix tests for common <math.h> functions.
53621         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
53622         code snippet that references the function pointer, rather than merely
53623         calling the function. Substitute the FUNC_LIBM variable.
53624         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
53625         * modules/acos (configure.ac): Likewise.
53626         * modules/asin (configure.ac): Likewise.
53627         * modules/atan (configure.ac): Likewise.
53628         * modules/atan2 (configure.ac): Likewise.
53629         * modules/cbrt (configure.ac): Likewise.
53630         * modules/copysign (configure.ac): Likewise.
53631         * modules/cos (configure.ac): Likewise.
53632         * modules/cosh (configure.ac): Likewise.
53633         * modules/erf (configure.ac): Likewise.
53634         * modules/erfc (configure.ac): Likewise.
53635         * modules/exp (configure.ac): Likewise.
53636         * modules/fabs (configure.ac): Likewise.
53637         * modules/fmod (configure.ac): Likewise.
53638         * modules/hypot (configure.ac): Likewise.
53639         * modules/j0 (configure.ac): Likewise.
53640         * modules/j1 (configure.ac): Likewise.
53641         * modules/jn (configure.ac): Likewise.
53642         * modules/ldexp (configure.ac): Likewise.
53643         * modules/lgamma (configure.ac): Likewise.
53644         * modules/log (configure.ac): Likewise.
53645         * modules/log10 (configure.ac): Likewise.
53646         * modules/log1p (configure.ac): Likewise.
53647         * modules/logb (configure.ac): Likewise.
53648         * modules/modf (configure.ac): Likewise.
53649         * modules/nextafter (configure.ac): Likewise.
53650         * modules/pow (configure.ac): Likewise.
53651         * modules/remainder (configure.ac): Likewise.
53652         * modules/rint (configure.ac): Likewise.
53653         * modules/sin (configure.ac): Likewise.
53654         * modules/sinh (configure.ac): Likewise.
53655         * modules/tan (configure.ac): Likewise.
53656         * modules/tanh (configure.ac): Likewise.
53657         * modules/y0 (configure.ac): Likewise.
53658         * modules/y1 (configure.ac): Likewise.
53659         * modules/yn (configure.ac): Likewise.
53661 2010-01-24  Bruno Haible  <bruno@clisp.org>
53663         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
53664         * tests/test-acosl.c (x): New variable.
53665         (main): Store argument in x and fetch it from x.
53666         * tests/test-asinl.c (x): New variable.
53667         (main): Store argument in x and fetch it from x.
53668         * tests/test-atanl.c (x): New variable.
53669         (main): Store argument in x and fetch it from x.
53670         * tests/test-cosl.c (x): New variable.
53671         (main): Store argument in x and fetch it from x.
53672         * tests/test-expl.c (x): New variable.
53673         (main): Store argument in x and fetch it from x.
53674         * tests/test-logl.c (x): New variable.
53675         (main): Store argument in x and fetch it from x.
53676         * tests/test-sinl.c (x): New variable.
53677         (main): Store argument in x and fetch it from x.
53678         * tests/test-sqrtl.c (x): New variable.
53679         (main): Store argument in x and fetch it from x.
53680         * tests/test-tanl.c (x): New variable.
53681         (main): Store argument in x and fetch it from x.
53683 2010-01-24  Bruno Haible  <bruno@clisp.org>
53685         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
53686         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
53687         assignments to the initial TESTS_ENVIRONMENT.
53688         * doc/gnulib.texi (Unit test modules): Document it.
53689         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
53690         TESTS_ENVIRONMENT.
53691         * modules/btowc-tests (Makefile.am): Likewise.
53692         * modules/c-stack-tests (Makefile.am): Likewise.
53693         * modules/c-strcase-tests (Makefile.am): Likewise.
53694         * modules/copy-file-tests (Makefile.am): Likewise.
53695         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
53696         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
53697         * modules/mbrtowc-tests (Makefile.am): Likewise.
53698         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53699         * modules/mbscasestr-tests (Makefile.am): Likewise.
53700         * modules/mbschr-tests (Makefile.am): Likewise.
53701         * modules/mbscspn-tests (Makefile.am): Likewise.
53702         * modules/mbsinit-tests (Makefile.am): Likewise.
53703         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53704         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
53705         * modules/mbspbrk-tests (Makefile.am): Likewise.
53706         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53707         * modules/mbsrchr-tests (Makefile.am): Likewise.
53708         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
53709         * modules/mbsspn-tests (Makefile.am): Likewise.
53710         * modules/mbsstr-tests (Makefile.am): Likewise.
53711         * modules/nl_langinfo-tests (Makefile.am): Likewise.
53712         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
53713         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53714         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53715         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53716         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53717         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
53718         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53719         * modules/wcrtomb-tests (Makefile.am): Likewise.
53720         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
53721         * modules/wcsrtombs-tests (Makefile.am): Likewise.
53722         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
53723         assignments from TESTS_ENVIRONMENT.
53724         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
53725         augmentation.
53726         * modules/argp-version-etc-tests (Makefile.am): Likewise.
53727         * modules/atexit-tests (Makefile.am): Likewise.
53728         * modules/binary-io-tests (Makefile.am): Likewise.
53729         * modules/closein-tests (Makefile.am): Likewise.
53730         * modules/dprintf-posix-tests (Makefile.am): Likewise.
53731         * modules/exclude-tests (Makefile.am): Likewise.
53732         * modules/fflush-tests (Makefile.am): Likewise.
53733         * modules/fpending-tests (Makefile.am): Likewise.
53734         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53735         * modules/freadahead-tests (Makefile.am): Likewise.
53736         * modules/freadptr-tests (Makefile.am): Likewise.
53737         * modules/freadseek-tests (Makefile.am): Likewise.
53738         * modules/fseek-tests (Makefile.am): Likewise.
53739         * modules/fseeko-tests (Makefile.am): Likewise.
53740         * modules/ftell-tests (Makefile.am): Likewise.
53741         * modules/ftello-tests (Makefile.am): Likewise.
53742         * modules/idpriv-drop-tests (Makefile.am): Likewise.
53743         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
53744         * modules/lseek-tests (Makefile.am): Likewise.
53745         * modules/parse-duration-tests (Makefile.am): Likewise.
53746         * modules/perror-tests (Makefile.am): Likewise.
53747         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
53748         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
53749         * modules/pipe-tests (Makefile.am): Likewise.
53750         * modules/pread-tests (Makefile.am): Likewise.
53751         * modules/printf-posix-tests (Makefile.am): Likewise.
53752         * modules/select-tests (Makefile.am): Likewise.
53753         * modules/sigpipe-tests (Makefile.am): Likewise.
53754         * modules/tsearch-tests (Makefile.am): Likewise.
53755         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
53756         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
53757         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53758         * modules/uniwidth/width-tests (Makefile.am): Likewise.
53759         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
53760         * modules/version-etc-tests (Makefile.am): Likewise.
53761         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53762         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53763         * modules/xalloc-die-tests (Makefile.am): Likewise.
53764         * modules/xprintf-posix-tests (Makefile.am): Likewise.
53765         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53766         * modules/xstrtol-tests (Makefile.am): Likewise.
53767         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53768         * modules/yesno-tests (Makefile.am): Likewise.
53769         Suggested by Jim Meyering.
53771 2010-01-24  Bruno Haible  <bruno@clisp.org>
53773         More documentation.
53774         * doc/gnulib.texi (Writing modules): New chapter.
53775         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
53776         the new chapter.
53778 2010-01-24  Jim Meyering  <meyering@redhat.com>
53780         maint.mk: do not prepend "./" after filtering
53781         * top/maint.mk (_prepend_srcdir_prefix): New variable
53782         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
53783         "./" when $(srcdir) is ".".
53785         define STREQ(a,b) consistently, removing useless parentheses
53786         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
53787         since the only risk is that "a" or "b" contains an unparenthesized
53788         comma, but if either did that, STREQ would have 3 or more arguments.
53789         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
53790         * lib/fts.c (STREQ): Remove unnecessary parentheses.
53791         * lib/hash-triple.c (STREQ): Likewise.
53792         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
53793         * lib/getugroups.c (STREQ): Likewise.
53795 2010-01-23  Jim Meyering  <meyering@redhat.com>
53797         maint.mk: fix syntax-check in a non-srcdir build directory
53798         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
53799         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
53801 2010-01-22  Jim Meyering  <meyering@redhat.com>
53803         userspec: add unit tests
53804         * tests/test-userspec.c: New file.
53805         * modules/userspec-tests: Likewise.
53807 2010-01-21  Jim Meyering  <meyering@redhat.com>
53809         maint.mk: handle source file names containing "." robustly
53810         * top/maint.mk (_dot_escaped_srcdir): Define.
53811         (VC_LIST): Use it in LHS of sed substitution.
53813 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
53815         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
53816         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
53817         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
53818         from a non-srcdir build.
53820 2010-01-20  Eric Blake  <ebb9@byu.net>
53822         warn-on-use: use instead of link-warning
53823         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
53824         * modules/unistd (Depends-on, Makefile.am): Likewise.
53825         * modules/arpa_inet (Depends-on): Replace link-warning with
53826         warn-on-use.
53827         (Makefile.am): Update rules accordingly.
53828         * modules/ctype (Depends-on, Makefile.am): Likewise.
53829         * modules/dirent (Depends-on, Makefile.am): Likewise.
53830         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
53831         * modules/inttypes (Depends-on, Makefile.am): Likewise.
53832         * modules/langinfo (Depends-on, Makefile.am): Likewise.
53833         * modules/locale (Depends-on, Makefile.am): Likewise.
53834         * modules/math (Depends-on, Makefile.am): Likewise.
53835         * modules/search (Depends-on, Makefile.am): Likewise.
53836         * modules/signal (Depends-on, Makefile.am): Likewise.
53837         * modules/spawn (Depends-on, Makefile.am): Likewise.
53838         * modules/stdlib (Depends-on, Makefile.am): Likewise.
53839         * modules/string (Depends-on, Makefile.am): Likewise.
53840         * modules/strings (Depends-on, Makefile.am): Likewise.
53841         * modules/sys_file (Depends-on, Makefile.am): Likewise.
53842         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
53843         * modules/sys_select (Depends-on, Makefile.am): Likewise.
53844         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
53845         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
53846         * modules/sys_times (Depends-on, Makefile.am): Likewise.
53847         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
53848         * modules/wchar (Depends-on, Makefile.am): Likewise.
53849         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
53850         should be poisoned.
53851         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
53852         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
53853         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
53854         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53855         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
53856         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
53857         * m4/math_h.m4 (gl_MATH_H): Likewise.
53858         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
53859         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
53860         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
53861         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
53862         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
53863         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
53864         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
53865         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
53866         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
53867         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53868         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53869         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
53870         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
53871         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
53872         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
53873         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
53874         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
53875         GL_LINK_WARNING.
53876         * lib/ctype.in.h: Likewise.
53877         * lib/dirent.in.h: Likewise.
53878         * lib/fcntl.in.h: Likewise.
53879         * lib/inttypes.in.h: Likewise.
53880         * lib/langinfo.in.h: Likewise.
53881         * lib/locale.in.h: Likewise.
53882         * lib/math.in.h: Likewise.
53883         * lib/search.in.h: Likewise.
53884         * lib/signal.in.h: Likewise.
53885         * lib/spawn.in.h: Likewise.
53886         * lib/stdio.in.h: Likewise.
53887         * lib/stdlib.in.h: Likewise.
53888         * lib/string.in.h: Likewise.
53889         * lib/strings.in.h: Likewise.
53890         * lib/sys_file.in.h: Likewise.
53891         * lib/sys_ioctl.in.h: Likewise.
53892         * lib/sys_select.in.h: Likewise.
53893         * lib/sys_socket.in.h: Likewise.
53894         * lib/sys_stat.in.h: Likewise.
53895         * lib/sys_times.in.h: Likewise.
53896         * lib/sys_utsname.in.h: Likewise.
53897         * lib/unistd.in.h: Likewise.
53898         * lib/wchar.in.h: Likewise.
53900 2010-01-20  Bruno Haible  <bruno@clisp.org>
53902         Avoid duplicate -lm.
53903         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
53904         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
53905         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
53906         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
53907         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
53908         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
53909         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
53910         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
53911         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
53912         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
53913         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
53914         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
53915         Reported by Paolo Bonzini.
53917 2010-01-19  Bruno Haible  <bruno@clisp.org>
53919         langinfo, nl_langinfo: Relicense under LGPLv2+.
53920         * modules/langinfo (License): Change to LGPLv2+.
53921         * modules/nl_langinfo (License): Likewise.
53922         Patch by David Lutterkort <lutter@redhat.com>.
53924 2010-01-19  Bruno Haible  <bruno@clisp.org>
53926         Avoid compilation error with cc on OSF/1 5.1.
53927         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
53928         statement, not before.
53929         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53931 2010-01-18  Bruno Haible  <bruno@clisp.org>
53933         Avoid a link error due to the __printf__ symbol.
53934         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
53935         and 2.6.x.
53936         (__format__, __printf__): Remove definitions.
53937         * lib/argp-fmtstream.h: Likewise.
53938         * lib/argp.h: Likewise.
53939         * lib/error.h: Likewise.
53940         * lib/vasnprintf.h: Likewise.
53941         * lib/xprintf.h: Likewise.
53942         * lib/xvasprintf.h: Likewise.
53943         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53945 2010-01-18  Bruno Haible  <bruno@clisp.org>
53947         Tests for module 'tanl'.
53948         * modules/tanl-tests: New file.
53949         * tests/test-tanl.c: New file.
53951         Tests for module 'sqrtl'.
53952         * modules/sqrtl-tests: New file.
53953         * tests/test-sqrtl.c: New file.
53955         Tests for module 'sinl'.
53956         * modules/sinl-tests: New file.
53957         * tests/test-sinl.c: New file.
53959         Tests for module 'logl'.
53960         * modules/logl-tests: New file.
53961         * tests/test-logl.c: New file.
53963         Tests for module 'expl'.
53964         * modules/expl-tests: New file.
53965         * tests/test-expl.c: New file.
53967         Tests for module 'cosl'.
53968         * modules/cosl-tests: New file.
53969         * tests/test-cosl.c: New file.
53971         Tests for module 'atanl'.
53972         * modules/atanl-tests: New file.
53973         * tests/test-atanl.c: New file.
53975         Tests for module 'asinl'.
53976         * modules/asinl-tests: New file.
53977         * tests/test-asinl.c: New file.
53979         Tests for module 'acosl'.
53980         * modules/acosl-tests: New file.
53981         * tests/test-acosl.c: New file.
53983         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
53984         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
53985         tanl): Use the standard gnulib idiom.
53986         * lib/cosl.c: Don't include trigl.c and sincosl.c.
53987         * lib/sinl.c: Likewise.
53988         * lib/tanl.c: Don't include trigl.c.
53989         (kernel_tanl): Make static.
53990         * lib/sincosl.c: Include trigl.h first.
53991         * lib/trigl.c: Likewise.
53992         * m4/acosl.m4: New file.
53993         * m4/asinl.m4: New file.
53994         * m4/atanl.m4: New file.
53995         * m4/cosl.m4: New file.
53996         * m4/expl.m4: New file.
53997         * m4/logl.m4: New file.
53998         * m4/sinl.m4: New file.
53999         * m4/sqrtl.m4: New file.
54000         * m4/tanl.m4: New file.
54001         * m4/mathl.m4: Remove file.
54002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
54003         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
54004         Don't initialize GNULIB_MATHL.
54005         * modules/acosl: New file.
54006         * modules/asinl: New file.
54007         * modules/atanl: New file.
54008         * modules/cosl: New file.
54009         * modules/expl: New file.
54010         * modules/logl: New file.
54011         * modules/sinl: New file.
54012         * modules/sqrtl: New file.
54013         * modules/tanl: New file.
54014         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
54015         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
54016         substitute GNULIB_MATHL.
54017         * modules/mathl: Rewritten.
54018         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
54019         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
54020         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
54021         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
54022         * doc/posix-functions/expl.texi: Mention the 'expl' module.
54023         * doc/posix-functions/logl.texi: Mention the 'logl' module.
54024         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
54025         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
54026         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
54028 2010-01-18  Bruno Haible  <bruno@clisp.org>
54030         sqrt: Make gl_FUNC_SQRT requirable.
54031         * m4/sqrt.m4: New file.
54032         * modules/sqrt (Files): Add it.
54033         (configure.ac): Invoke gl_FUNC_SQRT.
54035 2010-01-18  Bruno Haible  <bruno@clisp.org>
54037         New modules for common <math.h> functions.
54038         * m4/mathfunc.m4: New file.
54039         * modules/acos: New file.
54040         * modules/asin: New file.
54041         * modules/atan: New file.
54042         * modules/atan2: New file.
54043         * modules/cbrt: New file.
54044         * modules/copysign: New file.
54045         * modules/cos: New file.
54046         * modules/cosh: New file.
54047         * modules/erf: New file.
54048         * modules/erfc: New file.
54049         * modules/exp: New file.
54050         * modules/fabs: New file.
54051         * modules/fmod: New file.
54052         * modules/hypot: New file.
54053         * modules/j0: New file.
54054         * modules/j1: New file.
54055         * modules/jn: New file.
54056         * modules/ldexp: New file.
54057         * modules/lgamma: New file.
54058         * modules/log: New file.
54059         * modules/log10: New file.
54060         * modules/log1p: New file.
54061         * modules/logb: New file.
54062         * modules/modf: New file.
54063         * modules/nextafter: New file.
54064         * modules/pow: New file.
54065         * modules/remainder: New file.
54066         * modules/rint: New file.
54067         * modules/sin: New file.
54068         * modules/sinh: New file.
54069         * modules/sqrt: New file.
54070         * modules/tan: New file.
54071         * modules/tanh: New file.
54072         * modules/y0: New file.
54073         * modules/y1: New file.
54074         * modules/yn: New file.
54075         * doc/posix-functions/acos.texi: Mention the 'acos' module.
54076         * doc/posix-functions/asin.texi: Mention the 'asin' module.
54077         * doc/posix-functions/atan.texi: Mention the 'atan' module.
54078         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
54079         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
54080         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
54081         * doc/posix-functions/cos.texi: Mention the 'cos' module.
54082         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
54083         * doc/posix-functions/erf.texi: Mention the 'erf' module.
54084         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
54085         * doc/posix-functions/exp.texi: Mention the 'exp' module.
54086         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
54087         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
54088         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
54089         * doc/posix-functions/j0.texi: Mention the 'j0' module.
54090         * doc/posix-functions/j1.texi: Mention the 'j1' module.
54091         * doc/posix-functions/jn.texi: Mention the 'jn' module.
54092         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
54093         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
54094         * doc/posix-functions/log.texi: Mention the 'log' module.
54095         * doc/posix-functions/log10.texi: Mention the 'log10' module.
54096         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
54097         * doc/posix-functions/logb.texi: Mention the 'logb' module.
54098         * doc/posix-functions/modf.texi: Mention the 'modf' module.
54099         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
54100         * doc/posix-functions/pow.texi: Mention the 'pow' module.
54101         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
54102         * doc/posix-functions/rint.texi: Mention the 'rint' module.
54103         * doc/posix-functions/sin.texi: Mention the 'sin' module.
54104         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
54105         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
54106         * doc/posix-functions/tan.texi: Mention the 'tan' module.
54107         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
54108         * doc/posix-functions/y0.texi: Mention the 'y0' module.
54109         * doc/posix-functions/y1.texi: Mention the 'y1' module.
54110         * doc/posix-functions/yn.texi: Mention the 'yn' module.
54112 2010-01-18  Jim Meyering  <meyering@redhat.com>
54114         ignore-value: relax license to LGPLv2+
54115         * modules/ignore-value (License): Relax to LGPLv2+.
54117         getdate: don't leak when TZ contains two or more '"'s
54118         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
54119         double quote in TZ after the first one.
54121         readtokens: do not leak internal token_lengths buffer
54122         * lib/readtokens.c (readtokens): Free the local, lengths,
54123         when the supplied "token_lengths" parameter is NULL.
54125 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54127         Fix a couple of missing LIBTHREAD link failures on AIX.
54128         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
54129         $(LIBTHREAD).
54130         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
54132         Link test-poll against INET_PTON_LIB.
54133         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
54134         for inet_pton on Solaris 10.
54136 2010-01-17  Bruno Haible  <bruno@clisp.org>
54138         unistdio/*-sprintf: Fix typo in module description.
54139         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
54140         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
54141         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
54142         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
54143         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
54144         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
54145         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
54146         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54148 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54150         gnulib-tool: fix filelist for AIX, HP-UX ksh.
54151         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
54152         variables in shell case patterns, for AIX and HP-UX ksh.
54154         Split large sed scripts, for HP-UX sed.
54155         * modules/stdio: Split sed scripts around 50 sed commands,
54156         to avoid HP-UX limit of 99 commands, in the near future.
54157         * modules/string: Likewise.
54158         * modules/unistd: Likewise.
54160         gnulib-tool: avoid writing in the current directory.
54161         * gnulib-tool (func_emit_lib_Makefile_am)
54162         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
54163         not in the current directory, so concurrent gnulib-tool
54164         instances do not interfere.
54166 2010-01-16  Jim Meyering  <meyering@redhat.com>
54168         doc: update users.txt
54169         * users.txt: Add grep.
54170         (diffutils, gzip): Update URLs.
54172 2010-01-12  Bruno Haible  <bruno@clisp.org>
54174         posix_spawn: Avoid test failure on Cygwin.
54175         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
54176         characters.
54177         Reported by Simon Josefsson.
54179 2010-01-12  Bruno Haible  <bruno@clisp.org>
54181         * tests/test-cond.c (main): When skipping the test, show the reason.
54183 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54185         * lib/striconv.c (str_cd_iconv): Avoid if before free.
54187 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54189         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
54190         VC_LIST_ALWAYS_EXCLUDE_REGEX.
54192 2010-01-12  Eric Blake  <ebb9@byu.net>
54194         build: guarantee AS_VAR_IF
54195         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
54196         (gl_AS_VAR_IF): Move...
54197         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
54198         Reported by Simon Josefsson.
54200 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54202         * lib/stdio.in.h: Fix typo.
54204 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54206         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
54207         libgpg-error.
54209 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54211         * tests/test-xalloc-die.sh: Use $EXEEXT.
54213 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54214             Bruno Haible  <bruno@clisp.org>
54216         getlogin, getlogin_r: Avoid test failure.
54217         * tests/test-getlogin.c: Include <stdio.h>.
54218         (main): Skip the test when the function fails because stdin is not a
54219         tty.
54220         * tests/test-getlogin_r.c: Include <stdio.h>.
54221         (main): Skip the test when the function fails because stdin is not a
54222         tty.
54224 2010-01-11  Eric Blake  <ebb9@byu.net>
54226         tests: avoid more large file warnings
54227         * tests/test-fflush.c: Avoid warning about ftell use.
54228         * tests/test-fseek.c: Avoid warning about fseek use.
54230 2010-01-10  Bruno Haible  <bruno@clisp.org>
54232         nproc: Work better on Linux when /proc and /sys are not mounted.
54233         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
54234         as lower bound when, on glibc/Linux systems,
54235         sysconf (_SC_NPROCESSORS_CONF) returns 1.
54236         Suggested by Pádraig Brady <P@draigbrady.com>.
54237         Reported by Dmitry V. Levin <ldv@altlinux.org>.
54239         nproc: Refactor.
54240         * lib/nproc.c (num_processors_via_affinity_mask): New function,
54241         extracted from num_processors.
54242         (num_processors): Call it.
54244 2010-01-11  Jim Meyering  <meyering@redhat.com>
54246         utimecmp: avoid new warning from upcoming gcc-4.5.0
54247         * lib/utimecmp.c (BILLION): Define using #define rather than an
54248         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
54250 2010-01-11  Eric Blake  <ebb9@byu.net>
54252         math: add portability warnings for classification macros
54253         * modules/math (Depends-on): Add warn-on-use.
54254         (Makefile.am): Provide new substitutions.
54255         * m4/math_h.m4 (gl_MATH_H): Require inline.
54256         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
54257         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
54258         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
54259         implement warnings.
54261         unistd: warn on use of environ without module
54262         * modules/unistd (Depends-on): Add warn-on-use.
54263         (Makefile.am): Provide new substitutions.
54264         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
54265         * lib/unistd.in.h (environ): Wrap with a warning helper function.
54267         stdio: warn on suspicious uses
54268         * modules/stdio (Depends-on): Add warn-on-use.
54269         (Makefile.am): Provide new substitutions.
54270         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
54271         fseeko.
54272         * lib/stdio.in.h (gets): Always warn on use.
54273         (fseek, ftell): Adjust when warnings are issued, and honor
54274         _GL_NO_LARGE_FILES as a way to silence the warning.
54275         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
54276         any warning about large file offsets.
54277         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
54278         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
54279         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
54280         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
54281         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
54282         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
54283         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
54284         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
54286         warn-on-use: new module
54287         * modules/warn-on-use: New file.
54288         * build-aux/warn-on-use.h: Likewise.
54289         * m4/warn-on-use.m4: Likewise.
54290         * MODULES.html.sh (Support for building): Mention it.
54292 2010-01-10  Bruno Haible  <bruno@clisp.org>
54294         Tests for module 'unistr/u32-strdup'.
54295         * modules/unistr/u32-strdup-tests: New file.
54296         * tests/unistr/test-u32-strdup.c: New file.
54298         Tests for module 'unistr/u16-strdup'.
54299         * modules/unistr/u16-strdup-tests: New file.
54300         * tests/unistr/test-u16-strdup.c: New file.
54302         Tests for module 'unistr/u8-strdup'.
54303         * modules/unistr/u8-strdup-tests: New file.
54304         * tests/unistr/test-u8-strdup.c: New file.
54305         * tests/unistr/test-strdup.h: New file.
54307         Tests for module 'unistr/u32-strncmp'.
54308         * modules/unistr/u32-strncmp-tests: New file.
54309         * tests/unistr/test-u32-strncmp.c: New file.
54311         Tests for module 'unistr/u16-strncmp'.
54312         * modules/unistr/u16-strncmp-tests: New file.
54313         * tests/unistr/test-u16-strncmp.c: New file.
54315         Tests for module 'unistr/u8-strncmp'.
54316         * modules/unistr/u8-strncmp-tests: New file.
54317         * tests/unistr/test-u8-strncmp.c: New file.
54318         * tests/unistr/test-strncmp.h: New file.
54320         Tests for module 'unistr/u32-strcoll'.
54321         * modules/unistr/u32-strcoll-tests: New file.
54322         * tests/unistr/test-u32-strcoll.c: New file.
54324         Tests for module 'unistr/u16-strcoll'.
54325         * modules/unistr/u16-strcoll-tests: New file.
54326         * tests/unistr/test-u16-strcoll.c: New file.
54328         Tests for module 'unistr/u8-strcoll'.
54329         * modules/unistr/u8-strcoll-tests: New file.
54330         * tests/unistr/test-u8-strcoll.c: New file.
54332         Tests for module 'unistr/u32-strcmp'.
54333         * modules/unistr/u32-strcmp-tests: New file.
54334         * tests/unistr/test-u32-strcmp.c: New file.
54335         * tests/unistr/test-u32-strcmp.h: New file.
54337         Tests for module 'unistr/u16-strcmp'.
54338         * modules/unistr/u16-strcmp-tests: New file.
54339         * tests/unistr/test-u16-strcmp.c: New file.
54340         * tests/unistr/test-u16-strcmp.h: New file.
54342         Tests for module 'unistr/u8-strcmp'.
54343         * modules/unistr/u8-strcmp-tests: New file.
54344         * tests/unistr/test-u8-strcmp.c: New file.
54345         * tests/unistr/test-u8-strcmp.h: New file.
54346         * tests/unistr/test-strcmp.h: New file.
54348         Tests for module 'unistr/u32-strncat'.
54349         * modules/unistr/u32-strncat-tests: New file.
54350         * tests/unistr/test-u32-strncat.c: New file.
54352         Tests for module 'unistr/u16-strncat'.
54353         * modules/unistr/u16-strncat-tests: New file.
54354         * tests/unistr/test-u16-strncat.c: New file.
54356         Tests for module 'unistr/u8-strncat'.
54357         * modules/unistr/u8-strncat-tests: New file.
54358         * tests/unistr/test-u8-strncat.c: New file.
54359         * tests/unistr/test-strncat.h: New file.
54361         Tests for module 'unistr/u32-strcat'.
54362         * modules/unistr/u32-strcat-tests: New file.
54363         * tests/unistr/test-u32-strcat.c: New file.
54365         Tests for module 'unistr/u16-strcat'.
54366         * modules/unistr/u16-strcat-tests: New file.
54367         * tests/unistr/test-u16-strcat.c: New file.
54369         Tests for module 'unistr/u8-strcat'.
54370         * modules/unistr/u8-strcat-tests: New file.
54371         * tests/unistr/test-u8-strcat.c: New file.
54372         * tests/unistr/test-strcat.h: New file.
54374         Tests for module 'unistr/u32-stpncpy'.
54375         * modules/unistr/u32-stpncpy-tests: New file.
54376         * tests/unistr/test-u32-stpncpy.c: New file.
54378         Tests for module 'unistr/u16-stpncpy'.
54379         * modules/unistr/u16-stpncpy-tests: New file.
54380         * tests/unistr/test-u16-stpncpy.c: New file.
54382         Tests for module 'unistr/u8-stpncpy'.
54383         * modules/unistr/u8-stpncpy-tests: New file.
54384         * tests/unistr/test-u8-stpncpy.c: New file.
54385         * tests/unistr/test-stpncpy.h: New file.
54387         Tests for module 'unistr/u32-strncpy'.
54388         * modules/unistr/u32-strncpy-tests: New file.
54389         * tests/unistr/test-u32-strncpy.c: New file.
54391         Tests for module 'unistr/u16-strncpy'.
54392         * modules/unistr/u16-strncpy-tests: New file.
54393         * tests/unistr/test-u16-strncpy.c: New file.
54395         Tests for module 'unistr/u8-strncpy'.
54396         * modules/unistr/u8-strncpy-tests: New file.
54397         * tests/unistr/test-u8-strncpy.c: New file.
54398         * tests/unistr/test-strncpy.h: New file.
54400         Tests for module 'unistr/u32-stpcpy'.
54401         * modules/unistr/u32-stpcpy-tests: New file.
54402         * tests/unistr/test-u32-stpcpy.c: New file.
54404         Tests for module 'unistr/u16-stpcpy'.
54405         * modules/unistr/u16-stpcpy-tests: New file.
54406         * tests/unistr/test-u16-stpcpy.c: New file.
54408         Tests for module 'unistr/u8-stpcpy'.
54409         * modules/unistr/u8-stpcpy-tests: New file.
54410         * tests/unistr/test-u8-stpcpy.c: New file.
54411         * tests/unistr/test-stpcpy.h: New file.
54413         Tests for module 'unistr/u32-strcpy'.
54414         * modules/unistr/u32-strcpy-tests: New file.
54415         * tests/unistr/test-u32-strcpy.c: New file.
54417         Tests for module 'unistr/u16-strcpy'.
54418         * modules/unistr/u16-strcpy-tests: New file.
54419         * tests/unistr/test-u16-strcpy.c: New file.
54421         Tests for module 'unistr/u8-strcpy'.
54422         * modules/unistr/u8-strcpy-tests: New file.
54423         * tests/unistr/test-u8-strcpy.c: New file.
54424         * tests/unistr/test-strcpy.h: New file.
54426         Tests for module 'unistr/u32-strnlen'.
54427         * modules/unistr/u32-strnlen-tests: New file.
54428         * tests/unistr/test-u32-strnlen.c: New file.
54430         Tests for module 'unistr/u16-strnlen'.
54431         * modules/unistr/u16-strnlen-tests: New file.
54432         * tests/unistr/test-u16-strnlen.c: New file.
54434         Tests for module 'unistr/u8-strnlen'.
54435         * modules/unistr/u8-strnlen-tests: New file.
54436         * tests/unistr/test-u8-strnlen.c: New file.
54437         * tests/unistr/test-strnlen.h: New file.
54439         Tests for module 'unistr/u32-strlen'.
54440         * modules/unistr/u32-strlen-tests: New file.
54441         * tests/unistr/test-u32-strlen.c: New file.
54443         Tests for module 'unistr/u16-strlen'.
54444         * modules/unistr/u16-strlen-tests: New file.
54445         * tests/unistr/test-u16-strlen.c: New file.
54447         Tests for module 'unistr/u8-strlen'.
54448         * modules/unistr/u8-strlen-tests: New file.
54449         * tests/unistr/test-u8-strlen.c: New file.
54451         Tests for module 'unistr/u32-prev'.
54452         * modules/unistr/u32-prev-tests: New file.
54453         * tests/unistr/test-u32-prev.c: New file.
54455         Tests for module 'unistr/u16-prev'.
54456         * modules/unistr/u16-prev-tests: New file.
54457         * tests/unistr/test-u16-prev.c: New file.
54459         Tests for module 'unistr/u8-prev'.
54460         * modules/unistr/u8-prev-tests: New file.
54461         * tests/unistr/test-u8-prev.c: New file.
54463         Tests for module 'unistr/u32-next'.
54464         * modules/unistr/u32-next-tests: New file.
54465         * tests/unistr/test-u32-next.c: New file.
54467         Tests for module 'unistr/u16-next'.
54468         * modules/unistr/u16-next-tests: New file.
54469         * tests/unistr/test-u16-next.c: New file.
54471         Tests for module 'unistr/u8-next'.
54472         * modules/unistr/u8-next-tests: New file.
54473         * tests/unistr/test-u8-next.c: New file.
54475         Tests for module 'unistr/u32-strmbtouc'.
54476         * modules/unistr/u32-strmbtouc-tests: New file.
54477         * tests/unistr/test-u32-strmbtouc.c: New file.
54479         Tests for module 'unistr/u16-strmbtouc'.
54480         * modules/unistr/u16-strmbtouc-tests: New file.
54481         * tests/unistr/test-u16-strmbtouc.c: New file.
54483         Tests for module 'unistr/u8-strmbtouc'.
54484         * modules/unistr/u8-strmbtouc-tests: New file.
54485         * tests/unistr/test-u8-strmbtouc.c: New file.
54487         Tests for module 'unistr/u32-strmblen'.
54488         * modules/unistr/u32-strmblen-tests: New file.
54489         * tests/unistr/test-u32-strmblen.c: New file.
54491         Tests for module 'unistr/u16-strmblen'.
54492         * modules/unistr/u16-strmblen-tests: New file.
54493         * tests/unistr/test-u16-strmblen.c: New file.
54495         Tests for module 'unistr/u8-strmblen'.
54496         * modules/unistr/u8-strmblen-tests: New file.
54497         * tests/unistr/test-u8-strmblen.c: New file.
54499         Tests for module 'unistr/u32-cpy-alloc'.
54500         * modules/unistr/u32-cpy-alloc-tests: New file.
54501         * tests/unistr/test-u32-cpy-alloc.c: New file.
54503         Tests for module 'unistr/u16-cpy-alloc'.
54504         * modules/unistr/u16-cpy-alloc-tests: New file.
54505         * tests/unistr/test-u16-cpy-alloc.c: New file.
54507         Tests for module 'unistr/u8-cpy-alloc'.
54508         * modules/unistr/u8-cpy-alloc-tests: New file.
54509         * tests/unistr/test-u8-cpy-alloc.c: New file.
54510         * tests/unistr/test-cpy-alloc.h: New file.
54512         Tests for module 'unistr/u32-mbsnlen'.
54513         * modules/unistr/u32-mbsnlen-tests: New file.
54514         * tests/unistr/test-u32-mbsnlen.c: New file.
54516         Tests for module 'unistr/u16-mbsnlen'.
54517         * modules/unistr/u16-mbsnlen-tests: New file.
54518         * tests/unistr/test-u16-mbsnlen.c: New file.
54520         Tests for module 'unistr/u8-mbsnlen'.
54521         * modules/unistr/u8-mbsnlen-tests: New file.
54522         * tests/unistr/test-u8-mbsnlen.c: New file.
54524         Tests for module 'unistr/u32-chr'.
54525         * modules/unistr/u32-chr-tests: New file.
54526         * tests/unistr/test-u32-chr.c: New file.
54528         Tests for module 'unistr/u16-chr'.
54529         * modules/unistr/u16-chr-tests: New file.
54530         * tests/unistr/test-u16-chr.c: New file.
54532         Tests for module 'unistr/u8-chr'.
54533         * modules/unistr/u8-chr-tests: New file.
54534         * tests/unistr/test-u8-chr.c: New file.
54535         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
54537         Tests for module 'unistr/u32-cmp2'.
54538         * modules/unistr/u32-cmp2-tests: New file.
54539         * tests/unistr/test-u32-cmp2.c: New file.
54541         Tests for module 'unistr/u16-cmp2'.
54542         * modules/unistr/u16-cmp2-tests: New file.
54543         * tests/unistr/test-u16-cmp2.c: New file.
54545         Tests for module 'unistr/u8-cmp2'.
54546         * modules/unistr/u8-cmp2-tests: New file.
54547         * tests/unistr/test-u8-cmp2.c: New file.
54548         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
54550         Tests for module 'unistr/u32-cmp'.
54551         * modules/unistr/u32-cmp-tests: New file.
54552         * tests/unistr/test-u32-cmp.c: New file.
54554         Tests for module 'unistr/u16-cmp'.
54555         * modules/unistr/u16-cmp-tests: New file.
54556         * tests/unistr/test-u16-cmp.c: New file.
54558         Tests for module 'unistr/u8-cmp'.
54559         * modules/unistr/u8-cmp-tests: New file.
54560         * tests/unistr/test-u8-cmp.c: New file.
54561         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
54563         Tests for module 'unistr/u32-set'.
54564         * modules/unistr/u32-set-tests: New file.
54565         * tests/unistr/test-u32-set.c: New file.
54567         Tests for module 'unistr/u16-set'.
54568         * modules/unistr/u16-set-tests: New file.
54569         * tests/unistr/test-u16-set.c: New file.
54571         Tests for module 'unistr/u8-set'.
54572         * modules/unistr/u8-set-tests: New file.
54573         * tests/unistr/test-u8-set.c: New file.
54574         * tests/unistr/test-set.h: New file.
54576         Tests for module 'unistr/u32-move'.
54577         * modules/unistr/u32-move-tests: New file.
54578         * tests/unistr/test-u32-move.c: New file.
54580         Tests for module 'unistr/u16-move'.
54581         * modules/unistr/u16-move-tests: New file.
54582         * tests/unistr/test-u16-move.c: New file.
54584         Tests for module 'unistr/u8-move'.
54585         * modules/unistr/u8-move-tests: New file.
54586         * tests/unistr/test-u8-move.c: New file.
54587         * tests/unistr/test-move.h: New file.
54589         Tests for module 'unistr/u32-cpy'.
54590         * modules/unistr/u32-cpy-tests: New file.
54591         * tests/unistr/test-u32-cpy.c: New file.
54593         Tests for module 'unistr/u16-cpy'.
54594         * modules/unistr/u16-cpy-tests: New file.
54595         * tests/unistr/test-u16-cpy.c: New file.
54597         Tests for module 'unistr/u8-cpy'.
54598         * modules/unistr/u8-cpy-tests: New file.
54599         * tests/unistr/test-u8-cpy.c: New file.
54600         * tests/unistr/test-cpy.h: New file.
54602 2010-01-09  Bruno Haible  <bruno@clisp.org>
54604         Tests for module 'unistr/u32-uctomb'.
54605         * modules/unistr/u32-uctomb-tests: New file.
54606         * tests/unistr/test-u32-uctomb.c: New file.
54608         Tests for module 'unistr/u16-uctomb'.
54609         * modules/unistr/u16-uctomb-tests: New file.
54610         * tests/unistr/test-u16-uctomb.c: New file.
54612         Tests for module 'unistr/u8-uctomb'.
54613         * modules/unistr/u8-uctomb-tests: New file.
54614         * tests/unistr/test-u8-uctomb.c: New file.
54616         Tests for module 'unistr/u32-mbtoucr'.
54617         * modules/unistr/u32-mbtoucr-tests: New file.
54618         * tests/unistr/test-u32-mbtoucr.c: New file.
54620         Tests for module 'unistr/u16-mbtoucr'.
54621         * modules/unistr/u16-mbtoucr-tests: New file.
54622         * tests/unistr/test-u16-mbtoucr.c: New file.
54624         Tests for module 'unistr/u8-mbtoucr'.
54625         * modules/unistr/u8-mbtoucr-tests: New file.
54626         * tests/unistr/test-u8-mbtoucr.c: New file.
54628         Tests for module 'unistr/u32-mbtouc'.
54629         * modules/unistr/u32-mbtouc-tests: New file.
54630         * tests/unistr/test-u32-mbtouc.c: New file.
54632         Tests for module 'unistr/u16-mbtouc'.
54633         * modules/unistr/u16-mbtouc-tests: New file.
54634         * tests/unistr/test-u16-mbtouc.c: New file.
54636         Tests for module 'unistr/u8-mbtouc'.
54637         * modules/unistr/u8-mbtouc-tests: New file.
54638         * tests/unistr/test-u8-mbtouc.c: New file.
54640         Tests for module 'unistr/u32-mbtouc-unsafe'.
54641         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
54642         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
54643         * tests/unistr/test-u32-mbtouc.h: New file.
54645         Tests for module 'unistr/u16-mbtouc-unsafe'.
54646         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
54647         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
54648         * tests/unistr/test-u16-mbtouc.h: New file.
54650         Tests for module 'unistr/u8-mbtouc-unsafe'.
54651         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
54652         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
54653         * tests/unistr/test-u8-mbtouc.h: New file.
54655         Tests for module 'unistr/u32-mblen'.
54656         * modules/unistr/u32-mblen-tests: New file.
54657         * tests/unistr/test-u32-mblen.c: New file.
54659         Tests for module 'unistr/u16-mblen'.
54660         * modules/unistr/u16-mblen-tests: New file.
54661         * tests/unistr/test-u16-mblen.c: New file.
54663         Tests for module 'unistr/u8-mblen'.
54664         * modules/unistr/u8-mblen-tests: New file.
54665         * tests/unistr/test-u8-mblen.c: New file.
54667         Tests for module 'unistr/u32-to-u16'.
54668         * modules/unistr/u32-to-u16-tests: New file.
54669         * tests/unistr/test-u32-to-u16.c: New file.
54671         Tests for module 'unistr/u32-to-u8'.
54672         * modules/unistr/u32-to-u8-tests: New file.
54673         * tests/unistr/test-u32-to-u8.c: New file.
54675         Tests for module 'unistr/u16-to-u32'.
54676         * modules/unistr/u16-to-u32-tests: New file.
54677         * tests/unistr/test-u16-to-u32.c: New file.
54679         Tests for module 'unistr/u16-to-u8'.
54680         * modules/unistr/u16-to-u8-tests: New file.
54681         * tests/unistr/test-u16-to-u8.c: New file.
54683         Tests for module 'unistr/u8-to-u32'.
54684         * modules/unistr/u8-to-u32-tests: New file.
54685         * tests/unistr/test-u8-to-u32.c: New file.
54687         Tests for module 'unistr/u8-to-u16'.
54688         * modules/unistr/u8-to-u16-tests: New file.
54689         * tests/unistr/test-u8-to-u16.c: New file.
54691         Tests for module 'unistr/u32-check'.
54692         * modules/unistr/u32-check-tests: New file.
54693         * tests/unistr/test-u32-check.c: New file.
54695         Tests for module 'unistr/u16-check'.
54696         * modules/unistr/u16-check-tests: New file.
54697         * tests/unistr/test-u16-check.c: New file.
54699         Tests for module 'unistr/u8-check'.
54700         * modules/unistr/u8-check-tests: New file.
54701         * tests/unistr/test-u8-check.c: New file.
54703         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
54704         (category_equals): New function.
54705         (main): Add more tests.
54706         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
54708         * tests/unictype/test-bidi_byname.c (main): Add more tests.
54710 2010-01-10  Bruno Haible  <bruno@clisp.org>
54712         unistr/u*-strcoll: Try harder to distinguish different strings.
54713         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
54714         compare s1 and s2 to see if they are different.
54716 2010-01-10  Bruno Haible  <bruno@clisp.org>
54718         unistr/u*-stpncpy: Fix the return value.
54719         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
54720         description of the return value consistent with stpncpy in glibc.
54721         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
54722         written non-NUL unit.
54724 2010-01-10  Bruno Haible  <bruno@clisp.org>
54726         unistr/u*-next: Add missing dependencies.
54727         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
54728         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
54729         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
54731 2010-01-10  Bruno Haible  <bruno@clisp.org>
54733         unistr/u8-mbsnlen: Fix return value for incomplete character.
54734         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
54735         u8_mblen.
54736         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
54737         Remove unistr/u8-mblen.
54738         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
54739         u16_mblen.
54740         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
54741         Remove unistr/u16-mblen.
54743 2010-01-10  Bruno Haible  <bruno@clisp.org>
54745         wchar: Fix compilation error when <wchar.h> is used from coreutils.
54746         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
54747         Reported by Brian Gough <bjg@gnu.org> and
54748         Chris Clayton <chris2553@googlemail.com> via
54749         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
54751 2010-01-09  Bruno Haible  <bruno@clisp.org>
54753         unistr/u16-to-u32: Reject invalid input.
54754         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
54755         u16_mbtouc.
54756         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
54757         Remove unistr/u16-mbtouc.
54759         unistr/u16-to-u8: Reject invalid input.
54760         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
54761         u16_mbtouc.
54762         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
54763         Remove unistr/u16-mbtouc.
54765         unistr/u8-to-u32: Reject invalid input.
54766         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
54767         u8_mbtouc.
54768         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
54769         Remove unistr/u8-mbtouc.
54771         unistr/u8-to-u16: Reject invalid input.
54772         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
54773         u8_mbtouc.
54774         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
54775         Remove unistr/u8-mbtouc.
54777 2010-01-09  Bruno Haible  <bruno@clisp.org>
54779         Tests for module 'getlogin'.
54780         * modules/getlogin-tests: New file.
54781         * tests/test-getlogin.c: New file.
54783         New module 'getlogin'.
54784         * lib/unistd.in.h (getlogin): New declaration.
54785         * lib/getlogin.c: New file.
54786         * m4/getlogin.m4: New file.
54787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
54788         HAVE_GETLOGIN.
54789         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
54790         HAVE_GETLOGIN.
54791         * modules/getlogin: New file.
54792         * doc/posix-functions/getlogin.texi: Mention the new module.
54793         Reported by John W. Eaton <jwe@gnu.org>.
54795 2010-01-09  Bruno Haible  <bruno@clisp.org>
54797         getlogin_r: Support for native Windows.
54798         * lib/getlogin_r.c: Include <windows.h>
54799         (getlogin_r): Implement for native Windows.
54800         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
54801         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
54802         via John W. Eaton <jwe@gnu.org>.
54804 2010-01-09  Bruno Haible  <bruno@clisp.org>
54806         getlogin_r: Small fixes.
54807         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
54808         succeeds.
54809         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
54810         before testing whether getlogin_r is declared. No need to set
54811         HAVE_DECL_GETLOGIN_R to 1.
54812         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
54814 2010-01-09  Bruno Haible  <bruno@clisp.org>
54816         * lib/unistd.in.h (getlogin_r): Add comment.
54818 2010-01-09  Bruno Haible  <bruno@clisp.org>
54820         Tests for module 'getlogin_r'.
54821         * modules/getlogin_r-tests: New file.
54822         * tests/test-getlogin_r.c: New file.
54824 2010-01-09  Jim Meyering  <meyering@redhat.com>
54826         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
54827         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
54828         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
54830 2010-01-08  Simon Josefsson  <simon@josefsson.org>
54832         * lib/dup2.c (rpl_dup2): Improve comment.
54834 2010-01-08  Eric Blake  <ebb9@byu.net>
54836         maint.mk: allow packages to add makefile @@ exceptions
54837         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
54838         (sc_makefile_check): Rename...
54839         (sc_makefile_at_at_check): ...to this, and use hook.
54841         dup2: work around mingw bug
54842         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
54843         Reported by Simon Josefsson.
54845 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
54847         glob: Fix C++ compilation.
54848         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
54849         C++.
54851 2010-01-07  Bruno Haible  <bruno@clisp.org>
54853         Fix indentation of wctype.in.h, broken since 2007-01-06.
54854         * lib/wctype.in.h: Fix indentation of preprocessor directives.
54856 2010-01-07  Bruno Haible  <bruno@clisp.org>
54858         mbslen: Avoid collision with system function.
54859         * lib/string.in.h [MirBSD]: Include <wchar.h>.
54860         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
54861         * m4/mbslen.m4: New file.
54862         * modules/mbslen (Files): Add it.
54863         (configure.ac): Invoke gl_MBSLEN.
54864         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
54865         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
54866         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
54867         via Ian Beckwith <ianb@erislabs.net>.
54869 2010-01-07  Bruno Haible  <bruno@clisp.org>
54871         dirent: Document the last fix.
54872         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
54874 2010-01-07  Bruno Haible  <bruno@clisp.org>
54876         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
54877         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
54878         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
54879         va_list are defined.
54880         * doc/posix-headers/stdio.texi: Document the bug of missing types.
54881         Reported by Eric Blake.
54883 2010-01-07  Bruno Haible  <bruno@clisp.org>
54885         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
54886         * modules/xlist (Depends-on): Add 'list',
54887         * modules/xoset (Depends-on): Add 'oset'.
54888         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54890 2010-01-07  Bruno Haible  <bruno@clisp.org>
54892         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
54893         * doc/posix-functions/strncasecmp.texi: Likewise.
54895 2010-01-07  Bruno Haible  <bruno@clisp.org>
54897         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
54899 2010-01-07  John W. Eaton  <jwe@octave.org>
54901         wctype: allow C++ use
54902         * lib/wctype.in.h: Add extern "C" block for C++.
54904 2010-01-06  Eric Blake  <ebb9@byu.net>
54906         maint.mk: detect incorrect GFDL usage
54907         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
54909 2010-01-06  Jim Meyering  <meyering@redhat.com>
54910         and Eric Blake  <ebb9@byu.net>
54912         maint.mk: ignore multi-line copyright in NEWS
54913         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
54915 2010-01-06  Eric Blake  <ebb9@byu.net>
54917         select: add missing dependency
54918         * modules/select-tests (Depends-on): Move sockets dependency...
54919         * modules/select (Depends-on): ...here.
54920         Reported by Ian Beckwith.
54922         doc: regenerate INSTALL
54923         * doc/INSTALL: Reflect recent autoconf update.
54924         * doc/INSTALL.ISO: Likewise.
54925         * doc/INSTALL.UTF-8: Likewise.
54927         pread: fix compilation on glibc
54928         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
54929         Reported by Ralf Wildenhues.
54931         dirent: fix test failure
54932         * lib/dirent.in.h (includes): Guarantee ino_t.
54933         Reported by Ralf Wildenhues.
54935 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
54937         linkat, renameat: avoid bad free
54938         * lib/at-func2.c (at_func2): Fix typo.
54939         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
54941 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54943         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
54944         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
54945         to avoid failure of symlink test later.
54947 2010-01-06  Eric Blake  <ebb9@byu.net>
54949         stdio, unistd: guarantee ssize_t
54950         * lib/unistd.in.h (includes): Ensure that types required by POSIX
54951         2008 are exposed when needed.
54952         * lib/stdio.in.h (includes): Likewise.
54953         Reported by Ralf Wildenhues.
54955 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
54957         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
54958         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
54959         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
54961 2010-01-06  Jim Meyering  <meyering@redhat.com>
54963         readtokens: this module *does* require xalloc.h
54964         It uses only functions that were omitted by the old syntax-check rule.
54965         * lib/readtokens.c: Include "xalloc.h" once again.
54966         * modules/readtokens (Depends-on): Add xalloc.
54967         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
54969 2010-01-05  Eric Blake  <ebb9@byu.net>
54971         maint: support 'make announcement' from a VPATH build
54972         * top/maint.mk (announcement): Look for correct NEWS file.
54974 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
54976         utimens (fdutimens): ignore a negative FD, per contract
54977         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
54978         when we have a valid file descriptor.  Otherwise, using a brand
54979         new glibc (with just-patched futimens that now fails with EBADF)
54980         would cause this function to fail with ENOSYS.
54981         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
54982         See also http://bugzilla.redhat.com/552320.
54984 2010-01-05  Eric Blake  <ebb9@byu.net>
54986         strcase: document what it provides
54987         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
54988         gnulib module.
54989         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
54990         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
54992 2010-01-05  Jim Meyering  <meyering@redhat.com>
54994         maint: remove useless inclusions of "xalloc.h"
54995         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
54996         * lib/readtokens.c: Likewise.
54997         * lib/same.c: Likewise.
54998         * modules/getloadavg (Depends-on): Remove xalloc.
54999         * modules/readtokens: Likewise.
55000         * modules/same: Likewise.
55002         maint.mk: include 4 more function names in alloca.h-checking regexp
55003         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
55004         regexp.  Before, we would give a false-positive (saying alloca.h
55005         is included unnecessarily) when the only uses involved omitted symbols.
55007         xalloc.h: use consistent formatting
55008         * lib/xalloc.h: Move declarations to start in the first column.
55010 2010-01-05  Eric Blake  <ebb9@byu.net>
55012         mkdir: avoid xalloc
55013         * lib/mkdir.c (includes): Drop unused header.
55014         Reported by John W. Eaton.
55016 2010-01-04  Jim Meyering  <meyering@redhat.com>
55018         nl_langinfo: avoid configure-time syntax error
55019         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
55020         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
55021         the empty string.  Don't let that provoke a shell syntax error.
55023         regcomp, regexec, fnmatch: avoid array bounds read error
55024         * lib/regcomp.c (build_equiv_class): From glibc:
55025         Use only the low 24 bits of a findidx return value as an index
55026         into the weights array.  Patch by Ulrich Drepper:
55027         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
55028         * lib/regexec.c (check_node_accept_bytes): Likewise.
55029         * lib/fnmatch_loop.c (FCT): Likewise.
55031         regcomp: skip collseq lookup when there are no rules
55032         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
55033         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
55035         regcomp: recognize ill-formed { } expressions
55036         * lib/regcomp.c (parse_dup_op): From glibc:
55037         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
55039         regcomp: fix typo in comment
55040         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
55041         s/satisfy/satisfies/.
55043         regcomp: sync from glibc: remove dead store
55044         * lib/regcomp.c (duplicate_node_closure): Remove useless
55045         search_duplicated_node call and dead store.
55047         regcomp: sync from glibc; always use nl_langinfo
55048         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
55049         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
55050         * modules/regex (Depends-on): Add nl_langinfo.
55052 2010-01-04  Eric Blake  <ebb9@byu.net>
55054         fdopendir: fix configure test
55055         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
55057 2010-01-01  Bruno Haible  <bruno@clisp.org>
55059         wchar: Remove unused configure check.
55060         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
55062 2010-01-01  Eric Blake  <ebb9@byu.net>
55064         headers: make check of system header explicit
55065         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
55066         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
55067         ourselves.
55068         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55069         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55070         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55071         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
55072         internals.
55073         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
55074         missing.
55075         Suggested by Bruno Haible.
55077 2010-01-01  Jim Meyering  <meyering@redhat.com>
55079         ChangeLog: tweak to eliminate unnecessary copyright line
55080         * ChangeLog: Remove a copyright line that was mistakenly updated
55081         by today's update-copyright run.  Reported by Eric Blake.
55083         test-update-copyright: don't let envvar setting cause test failure
55084         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
55086 2010-01-01  Bruno Haible  <bruno@clisp.org>
55088         localename: Avoid gcc warning.
55089         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
55090         function if it is not used.
55092 2010-01-01  Jim Meyering  <meyering@redhat.com>
55094         update nearly all FSF copyright year lists to include 2010
55095         Use the same procedure as for 2009, outlined in
55096         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
55098         version-etc: set COPYRIGHT_YEAR to 2010
55099         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
55101 2009-12-31  Eric Blake  <ebb9@byu.net>
55103         doc: correct availability of cygwin 1.5.x getopt
55104         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
55105         variables.
55106         * doc/posix-functions/opterr.texi (opterr): Likewise.
55107         * doc/posix-functions/optind.texi (optind): Likewise.
55108         * doc/posix-functions/optopt.texi (optopt): Likewise.
55109         * doc/posix-functions/tzname.texi (tzname): Likewise.
55111         openat: update maintainer
55112         * modules/openat (Maintainer): Add myself.
55114         utimens: avoid shadowing warning
55115         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
55116         buffers into one, to avoid shadowing, as well as avoiding a
55117         redundant stat.
55118         Reported by Jim Meyering.
55120         test-dup2: avoid compiler warning
55121         * tests/test-dup2.c (is_inheritable): Only define if used.
55123 2010-01-01  Bruno Haible  <bruno@clisp.org>
55125         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
55126         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
55127         defined, use wctomb instead of wcrtomb.
55129 2010-01-01  Bruno Haible  <bruno@clisp.org>
55131         iconv: Reject native Solaris iconv.
55132         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
55133         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
55135 2009-12-31  Bruno Haible  <bruno@clisp.org>
55137         * tests/test-signal.c (main): Remove test of 'SIG'.
55139 2009-12-31  Bruno Haible  <bruno@clisp.org>
55141         spawn: Fix incomplete fix.
55142         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
55143         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
55144         warnings for GNULIB_POSIXCHECK again.
55145         Reported by Eric Blake.
55147 2009-12-31  Bruno Haible  <bruno@clisp.org>
55149         Avoid namespace pollution on glibc systems.
55150         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
55151         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
55152         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
55153         glibc systems.
55155 2009-12-31  Bruno Haible  <bruno@clisp.org>
55157         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
55158         (gl_REPLACE_WCHAR_H): Turn into a no-op.
55159         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
55160         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
55161         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
55162         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
55163         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
55165 2009-12-31  Bruno Haible  <bruno@clisp.org>
55167         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
55168         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
55169         afterwards.
55171 2009-12-31  Bruno Haible  <bruno@clisp.org>
55173         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
55174         SYS_UTSNAME_H.
55176 2009-12-31  Bruno Haible  <bruno@clisp.org>
55178         spawn: Fix misapplied patch.
55179         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
55180         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
55181         warnings for GNULIB_POSIXCHECK.
55183 2009-12-31  Bruno Haible  <bruno@clisp.org>
55185         times: Update after sys_times changed.
55186         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
55187         * modules/times (Files): Add it.
55188         (configure.ac): Invoke gl_FUNC_TIMES.
55190 2009-12-31  Bruno Haible  <bruno@clisp.org>
55192         Use AC_C_INLINE where necessary.
55193         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
55194         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55195         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
55196         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55197         * m4/mbfile.m4 (gl_MBFILE): Likewise.
55198         * m4/mbiter.m4 (gl_MBITER): Likewise.
55199         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55200         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
55201         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
55202         * modules/u64 (configure.ac): Likewise.
55204 2009-12-31  Bruno Haible  <bruno@clisp.org>
55206         Use AC_C_INLINE instead of module 'inline' where possible.
55207         * modules/inline (Description): Clarify purpose.
55208         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
55209         * modules/count-one-bits (Depends-on): Remove inline.
55210         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
55211         * modules/openat (Depends-on): Remove inline.
55212         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
55213         instead of depending on module 'inline'.
55214         * modules/filevercmp (Depends-on, configure.ac): Likewise.
55215         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
55216         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
55217         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
55218         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
55219         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
55220         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
55221         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
55222         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
55223         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
55224         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
55225         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
55226         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
55227         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
55228         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
55229         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
55230         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
55231         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
55232         Likewise.
55233         * modules/unictype/property-ascii-hex-digit (Depends-on,
55234         configure.ac): Likewise.
55235         * modules/unictype/property-bidi-arabic-digit (Depends-on,
55236         configure.ac): Likewise.
55237         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
55238         configure.ac): Likewise.
55239         * modules/unictype/property-bidi-block-separator (Depends-on,
55240         configure.ac): Likewise.
55241         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
55242         configure.ac): Likewise.
55243         * modules/unictype/property-bidi-common-separator (Depends-on,
55244         configure.ac): Likewise.
55245         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
55246         Likewise.
55247         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
55248         configure.ac): Likewise.
55249         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
55250         configure.ac): Likewise.
55251         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
55252         configure.ac): Likewise.
55253         * modules/unictype/property-bidi-european-digit (Depends-on,
55254         configure.ac): Likewise.
55255         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
55256         configure.ac): Likewise.
55257         * modules/unictype/property-bidi-left-to-right (Depends-on,
55258         configure.ac): Likewise.
55259         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
55260         configure.ac): Likewise.
55261         * modules/unictype/property-bidi-other-neutral (Depends-on,
55262         configure.ac): Likewise.
55263         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
55264         Likewise.
55265         * modules/unictype/property-bidi-segment-separator (Depends-on,
55266         configure.ac): Likewise.
55267         * modules/unictype/property-bidi-whitespace (Depends-on,
55268         configure.ac): Likewise.
55269         * modules/unictype/property-combining (Depends-on, configure.ac):
55270         Likewise.
55271         * modules/unictype/property-composite (Depends-on, configure.ac):
55272         Likewise.
55273         * modules/unictype/property-currency-symbol (Depends-on,
55274         configure.ac): Likewise.
55275         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
55276         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
55277         Likewise.
55278         * modules/unictype/property-default-ignorable-code-point (Depends-on,
55279         configure.ac): Likewise.
55280         * modules/unictype/property-deprecated (Depends-on, configure.ac):
55281         Likewise.
55282         * modules/unictype/property-diacritic (Depends-on, configure.ac):
55283         Likewise.
55284         * modules/unictype/property-extender (Depends-on, configure.ac):
55285         Likewise.
55286         * modules/unictype/property-format-control (Depends-on, configure.ac):
55287         Likewise.
55288         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
55289         Likewise.
55290         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
55291         Likewise.
55292         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
55293         Likewise.
55294         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
55295         Likewise.
55296         * modules/unictype/property-hyphen (Depends-on, configure.ac):
55297         Likewise.
55298         * modules/unictype/property-id-continue (Depends-on, configure.ac):
55299         Likewise.
55300         * modules/unictype/property-id-start (Depends-on, configure.ac):
55301         Likewise.
55302         * modules/unictype/property-ideographic (Depends-on, configure.ac):
55303         Likewise.
55304         * modules/unictype/property-ids-binary-operator (Depends-on,
55305         configure.ac): Likewise.
55306         * modules/unictype/property-ids-trinary-operator (Depends-on,
55307         configure.ac): Likewise.
55308         * modules/unictype/property-ignorable-control (Depends-on,
55309         configure.ac): Likewise.
55310         * modules/unictype/property-iso-control (Depends-on, configure.ac):
55311         Likewise.
55312         * modules/unictype/property-join-control (Depends-on, configure.ac):
55313         Likewise.
55314         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
55315         Likewise.
55316         * modules/unictype/property-line-separator (Depends-on, configure.ac):
55317         Likewise.
55318         * modules/unictype/property-logical-order-exception (Depends-on,
55319         configure.ac): Likewise.
55320         * modules/unictype/property-lowercase (Depends-on, configure.ac):
55321         Likewise.
55322         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
55323         * modules/unictype/property-non-break (Depends-on, configure.ac):
55324         Likewise.
55325         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
55326         Likewise.
55327         * modules/unictype/property-numeric (Depends-on, configure.ac):
55328         Likewise.
55329         * modules/unictype/property-other-alphabetic (Depends-on,
55330         configure.ac): Likewise.
55331         * modules/unictype/property-other-default-ignorable-code-point
55332         (Depends-on, configure.ac): Likewise.
55333         * modules/unictype/property-other-grapheme-extend (Depends-on,
55334         configure.ac): Likewise.
55335         * modules/unictype/property-other-id-continue (Depends-on,
55336         configure.ac): Likewise.
55337         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
55338         Likewise.
55339         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
55340         Likewise.
55341         * modules/unictype/property-other-math (Depends-on, configure.ac):
55342         Likewise.
55343         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
55344         Likewise.
55345         * modules/unictype/property-paired-punctuation (Depends-on,
55346         configure.ac): Likewise.
55347         * modules/unictype/property-paragraph-separator (Depends-on,
55348         configure.ac): Likewise.
55349         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
55350         Likewise.
55351         * modules/unictype/property-pattern-white-space (Depends-on,
55352         configure.ac): Likewise.
55353         * modules/unictype/property-private-use (Depends-on, configure.ac):
55354         Likewise.
55355         * modules/unictype/property-punctuation (Depends-on, configure.ac):
55356         Likewise.
55357         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
55358         Likewise.
55359         * modules/unictype/property-radical (Depends-on, configure.ac):
55360         Likewise.
55361         * modules/unictype/property-sentence-terminal (Depends-on,
55362         configure.ac): Likewise.
55363         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
55364         Likewise.
55365         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
55366         * modules/unictype/property-terminal-punctuation (Depends-on,
55367         configure.ac): Likewise.
55368         * modules/unictype/property-titlecase (Depends-on, configure.ac):
55369         Likewise.
55370         * modules/unictype/property-unassigned-code-value (Depends-on,
55371         configure.ac): Likewise.
55372         * modules/unictype/property-unified-ideograph (Depends-on,
55373         configure.ac): Likewise.
55374         * modules/unictype/property-uppercase (Depends-on, configure.ac):
55375         Likewise.
55376         * modules/unictype/property-variation-selector (Depends-on,
55377         configure.ac): Likewise.
55378         * modules/unictype/property-white-space (Depends-on, configure.ac):
55379         Likewise.
55380         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
55381         Likewise.
55382         * modules/unictype/property-xid-start (Depends-on, configure.ac):
55383         Likewise.
55384         * modules/unictype/property-zero-width (Depends-on, configure.ac):
55385         Likewise.
55386         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
55387         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
55388         Likewise.
55390 2009-12-31  Bruno Haible  <bruno@clisp.org>
55392         Remove unnecessary AC_C_INLINE invocation.
55393         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
55394         since 2009-08-21.
55396 2009-12-31  Jim Meyering  <meyering@redhat.com>
55398         maint.mk: don't require explicit gpg_key_ID in cfg.mk
55399         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
55400         With this change, we can all remove the gpg_key_ID = ... definition
55401         from our respective cfg.mk files.
55403         maint.mk: create announcement template in ~/, not in /tmp
55404         * top/maint.mk (emit_upload_commands): Adjust.
55405         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
55406         Remove temporary file, .ci-msg.
55408 2009-12-31  Eric Blake  <ebb9@byu.net>
55410         link-warning: always build headers with link warnings
55411         * modules/arpa_inet (Makefile.am): Always build replacement
55412         header.
55413         * modules/ctype (Makefile.am): Likewise.
55414         * modules/dirent (Makefile.am): Likewise.
55415         * modules/inttypes (Makefile.am): Likewise.
55416         * modules/langinfo (Makefile.am): Likewise.
55417         * modules/locale (Makefile.am): Likewise.
55418         * modules/spawn (Makefile.am): Likewise.
55419         * modules/sys_file (Makefile.am): Likewise.
55420         * modules/sys_ioctl (Makefile.am): Likewise.
55421         * modules/sys_select (Makefile.am): Likewise.
55422         * modules/sys_socket (Makefile.am): Likewise.
55423         * modules/sys_times (Makefile.am): Likewise.
55424         * modules/sys_utsname (Makefile.am): Likewise.
55425         * modules/sys_wait (Makefile.am): Likewise.
55426         * modules/wchar (Makefile.am): Likewise.
55427         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
55428         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
55429         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
55430         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
55431         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
55432         Likewise.
55433         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55434         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
55435         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
55436         Likewise.
55437         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
55438         Likewise.
55439         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
55440         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
55441         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
55442         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55443         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
55444         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
55445         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
55446         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
55447         (gl_WCHAR_H_DEFAULTS): Likewise.
55449 2009-12-31  Eric Blake  <ebb9@byu.net>
55451         signal, spawn: use link warnings
55452         * lib/signal.in.h (sigset_t): Make unconditional.
55453         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
55454         (sigpending, sigprocmask, sigaction): Add link warnings.
55455         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
55456         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
55457         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
55458         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
55459         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
55460         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
55461         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
55462         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
55463         (posix_spawn_file_actions_destroy)
55464         (posix_spawn_file_actions_addopen)
55465         (posix_spawn_file_actions_addclose)
55466         (posix_spawn_file_actions_adddup2): Likewise.
55467         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
55468         * tests/test-signal.c (main): Enhance test.
55470         spawn: improve wrapper support
55471         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
55472         (gl_SPAWN_H_DEFAULTS): New defaults.
55473         * modules/spawn (Makefile.am): Substitute them.
55474         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
55475         Only declare if missing or broken.
55477         sys_times, sys_utsname: use include_next
55478         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
55479         header.
55480         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
55481         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
55482         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
55483         * modules/sys_times (Depends-on): Add include_next.
55484         (Makefile.am): Substitute additional values.
55485         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
55486         * lib/sys_times.in.h (includes): Include native header, if
55487         available.
55488         * lib/sys_utsname.in.h (includes): Likewise.
55489         * tests/test-sys_times.c (main): Enhance test.
55491         fdutimensat: revert prior patch
55492         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
55493         utimens.h.
55494         Reported by Bruno Haible.
55496 2009-12-30  Eric Blake  <ebb9@byu.net>
55498         sys_wait: drop link-warning dependency
55499         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
55500         link-warning efforts.
55501         * lib/sys_wait.in.h: Likewise.
55503         fdutimensat: remove bogus dependency
55504         * modules/fdutimensat (Depends-on): Drop inline.
55506         unistd: fix typo
55507         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
55509 2009-12-30  Bruno Haible  <bruno@clisp.org>
55511         Fix compilation error with Solaris cc.
55512         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
55513         * lib/unicase/u16-is-invariant.c: Likewise.
55514         * lib/unicase/u32-is-invariant.c: Likewise.
55515         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55517 2009-12-30  Bruno Haible  <bruno@clisp.org>
55519         Fix test crash.
55520         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
55521         locales.
55522         Reported by Simon Josefsson <simon@josefsson.org>.
55524 2009-12-30  Bruno Haible  <bruno@clisp.org>
55526         Fix compilation error on most platforms.
55527         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
55528         Reported by Simon Josefsson <simon@josefsson.org>
55529         and Nelson H. F. Beebe <beebe@math.utah.edu>.
55531 2009-12-30  Eric Blake  <ebb9@byu.net>
55533         futimens, utimensat: work around ntfs-3g bug
55534         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
55535         a ctime bug is present, and expand workaround to cover ntfs-3g.
55536         * lib/utimens.c (fdutimens, lutimens): Likewise.
55537         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
55538         (validate_timespec): Adjust return value.
55539         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
55540         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
55541         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
55543 2009-12-29  Eric Blake  <ebb9@byu.net>
55545         link-warning: make usage consistent
55546         * modules/ctype (Depends-on): Add link-warning.
55547         (Makefile.am): Update rules accordingly.
55548         * modules/langinfo (Depends-on, Makefile.am): Likewise.
55549         * modules/locale (Depends-on, Makefile.am): Likewise.
55550         * modules/sys_file (Makefile.am): Likewise.
55551         * modules/getopt-posix (Makefile.am): Delete unused link warning
55552         efforts.
55553         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
55554         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
55555         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
55556         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
55558         stdio: remove unused variables
55559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
55560         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
55561         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
55563         tests: test more substitute headers
55564         * modules/ctype-tests: New file.
55565         * modules/dirent-tests: Likewise.
55566         * modules/spawn-tests: Likewise.
55567         * modules/sys_file-tests: Likewise.
55568         * modules/sys_ioctl-tests: Likewise.
55569         * modules/sys_wait-tests: Likewise.
55570         * tests/test-ctype.c: Likewise.
55571         * tests/test-dirent.c: Likewise.
55572         * tests/test-spawn.c: Likewise.
55573         * tests/test-sys_file.c: Likewise.
55574         * tests/test-sys_ioctl.c: Likewise.
55575         * tests/test-sys_wait.c: Likewise.
55576         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
55577         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
55578         whether or not flock is in use.
55580         tests: remove License section from module
55581         * modules/arpa_inet-tests: Remove unneeded section.
55582         * modules/byteswap-tests: Likewise.
55583         * modules/ceilf-tests: Likewise.
55584         * modules/ceill-tests: Likewise.
55585         * modules/crypto/des-tests: Likewise.
55586         * modules/crypto/gc-arcfour-tests: Likewise.
55587         * modules/crypto/gc-arctwo-tests: Likewise.
55588         * modules/crypto/gc-des-tests: Likewise.
55589         * modules/crypto/gc-hmac-md5-tests: Likewise.
55590         * modules/crypto/gc-hmac-sha1-tests: Likewise.
55591         * modules/crypto/gc-md2-tests: Likewise.
55592         * modules/crypto/gc-md4-tests: Likewise.
55593         * modules/crypto/gc-md5-tests: Likewise.
55594         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
55595         * modules/crypto/gc-rijndael-tests: Likewise.
55596         * modules/crypto/gc-sha1-tests: Likewise.
55597         * modules/crypto/gc-tests: Likewise.
55598         * modules/crypto/md2-tests: Likewise.
55599         * modules/crypto/md4-tests: Likewise.
55600         * modules/fcntl-h-tests: Likewise.
55601         * modules/floorf-tests: Likewise.
55602         * modules/floorl-tests: Likewise.
55603         * modules/frexp-nolibm-tests: Likewise.
55604         * modules/frexp-tests: Likewise.
55605         * modules/frexpl-nolibm-tests: Likewise.
55606         * modules/frexpl-tests: Likewise.
55607         * modules/getaddrinfo-tests: Likewise.
55608         * modules/inttypes-tests: Likewise.
55609         * modules/isfinite-tests: Likewise.
55610         * modules/isinf-tests: Likewise.
55611         * modules/ldexpl-tests: Likewise.
55612         * modules/locale-tests: Likewise.
55613         * modules/math-tests: Likewise.
55614         * modules/netdb-tests: Likewise.
55615         * modules/netinet_in-tests: Likewise.
55616         * modules/printf-frexp-tests: Likewise.
55617         * modules/printf-frexpl-tests: Likewise.
55618         * modules/priv-set-tests: Likewise.
55619         * modules/random_r-tests: Likewise.
55620         * modules/round-tests: Likewise.
55621         * modules/roundf-tests: Likewise.
55622         * modules/roundl-tests: Likewise.
55623         * modules/search-tests: Likewise.
55624         * modules/select-tests: Likewise.
55625         * modules/signal-tests: Likewise.
55626         * modules/stdbool-tests: Likewise.
55627         * modules/stddef-tests: Likewise.
55628         * modules/stdint-tests: Likewise.
55629         * modules/stdio-tests: Likewise.
55630         * modules/stdlib-tests: Likewise.
55631         * modules/string-tests: Likewise.
55632         * modules/strings-tests: Likewise.
55633         * modules/sys_select-tests: Likewise.
55634         * modules/sys_socket-tests: Likewise.
55635         * modules/sys_stat-tests: Likewise.
55636         * modules/sys_time-tests: Likewise.
55637         * modules/sys_utsname-tests: Likewise.
55638         * modules/sysexits-tests: Likewise.
55639         * modules/time-tests: Likewise.
55640         * modules/trunc-tests: Likewise.
55641         * modules/truncf-tests: Likewise.
55642         * modules/truncl-tests: Likewise.
55643         * modules/tsearch-tests: Likewise.
55644         * modules/unistd-tests: Likewise.
55645         * modules/wchar-tests: Likewise.
55646         * modules/wctype-tests: Likewise.
55648         tests: fix license on several tests
55649         * tests/test-des.c: Update to GPLv3+.
55650         * tests/test-flock.c: Likewise.
55651         * tests/test-fsync.c: Likewise.
55652         * tests/test-futimens.h: Likewise.
55653         * tests/test-gc-arcfour.c: Likewise.
55654         * tests/test-gc-arctwo.c: Likewise.
55655         * tests/test-gc-des.c: Likewise.
55656         * tests/test-gc-hmac-md5.c: Likewise.
55657         * tests/test-gc-hmac-sha1.c: Likewise.
55658         * tests/test-gc-md2.c: Likewise.
55659         * tests/test-gc-md4.c: Likewise.
55660         * tests/test-gc-md5.c: Likewise.
55661         * tests/test-gc-pbkdf2-sha1.c: Likewise.
55662         * tests/test-gc-rijndael.c: Likewise.
55663         * tests/test-gc-sha1.c: Likewise.
55664         * tests/test-gc.c: Likewise.
55665         * tests/test-getcwd.c: Likewise.
55666         * tests/test-link.c: Likewise.
55667         * tests/test-link.h: Likewise.
55668         * tests/test-lutimens.h: Likewise.
55669         * tests/test-md2.c: Likewise.
55670         * tests/test-md4.c: Likewise.
55671         * tests/test-mkdir.h: Likewise.
55672         * tests/test-rename.c: Likewise.
55673         * tests/test-rename.h: Likewise.
55674         * tests/test-safe-alloc.c: Likewise.
55675         * tests/test-utimens-common.h: Likewise.
55676         * tests/test-utimens.h: Likewise.
55678         maint: sync license texts
55679         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
55680         * doc/gpl-3.0.texi: Revert copyright year update.
55681         * doc/lgpl-3.0.texi: Likewise.
55683 2009-12-29  Jim Meyering  <meyering@redhat.com>
55685         update nearly all FSF copyright year lists to include 2009
55686         The files named by the following are exempted:
55687             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
55688               test -f "$dst" && { echo "$dst"; continue; }
55689               test -d "$dst" || continue
55690               echo "$dst"/$(basename "$src")
55691             done > exempt
55692             git ls-files tests/unictype >> exempt
55693         In the remaining files, convert to all-interval notation if
55694         - there is already at least one year interval like 2000-2003
55695         - the file is maintained by me
55696         - the file is in lib/uni*/, where that style already prevails
55697         Otherwise, use update-copyright's default.
55699 2009-12-29  Simon Josefsson  <simon@josefsson.org>
55700         and Eric Blake  <ebb9@byu.net>
55702         tests: don't require debug system() to pass
55703         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
55704         * tests/test-rmdir.h (test_rmdir_func): Likewise.
55705         * tests/test-unlink.h (test_unlink_func): Likewise.
55706         * tests/test-fstatat.c (main): ...into callers.
55707         * tests/test-lstat.c (main): Likewise.
55708         * tests/test-rmdir.c (main): Likewise.
55709         * tests/test-unlink.c (main): Likewise.
55710         * tests/test-unlinkat.c (main): Likewise.
55711         * tests/test-areadlink-with-size.c (main): Don't require a
55712         debug-only system call to pass, aiding cross-testing to mingw.
55713         * tests/test-areadlink.c (main): Likewise.
55714         * tests/test-areadlinkat-with-size.c (main): Likewise.
55715         * tests/test-areadlinkat.c (main): Likewise.
55716         * tests/test-canonicalize-lgpl.c (main): Likewise.
55717         * tests/test-canonicalize.c (main): Likewise.
55718         * tests/test-chown.c (main): Likewise.
55719         * tests/test-fchownat.c (main): Likewise.
55720         * tests/test-lchown.c (main): Likewise.
55721         * tests/test-fdutimensat.c (main): Likewise.
55722         * tests/test-futimens.c (main): Likewise.
55723         * tests/test-link.c (main): Likewise.
55724         * tests/test-linkat.c (main): Likewise.
55725         * tests/test-mkdir.c (main): Likewise.
55726         * tests/test-mkdirat.c (main): Likewise.
55727         * tests/test-mkfifo.c (main): Likewise.
55728         * tests/test-mkfifoat.c (main): Likewise.
55729         * tests/test-mknod.c (main): Likewise.
55730         * tests/test-readlink.c (main): Likewise.
55731         * tests/test-remove.c (main): Likewise.
55732         * tests/test-rename.c (main): Likewise.
55733         * tests/test-renameat.c (main): Likewise.
55734         * tests/test-symlink.c (main): Likewise.
55735         * tests/test-symlinkat.c (main): Likewise.
55736         * tests/test-utimens.c (main): Likewise.
55737         * tests/test-utimensat.c (main): Likewise.
55739 2009-12-29  Simon Josefsson  <simon@josefsson.org>
55741         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
55742         on $(UNUSED_PARAMETER_H) to avoid build failure.
55744 2009-12-28  Jim Meyering  <meyering@redhat.com>
55746         update-copyright: you may specify a max. line length other than 72
55747         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
55749         maint: use consistent FSF copyright line syntax
55750         * lib/posixtm.c: Add missing comma in FSF copyright line.
55751         * lib/posixtm.h: Likewise.
55752         * lib/getugroups.c: Add missing ", Inc.".
55754         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
55755         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
55756         FSF copyright line.  Remove trailing blanks.
55758 2009-12-28  Eric Blake  <ebb9@byu.net>
55760         test-dup2: reduce dependencies
55761         * modules/cloexec (Configure.ac): Set witness.
55762         * modules/dup2-tests (Depends-on): Drop cloexec.
55763         * tests/test-dup2.c (main): Skip portion of test if cloexec module
55764         not present.
55765         Suggested by Bruno Haible.
55767 2009-12-26  Bruno Haible  <bruno@clisp.org>
55769         Remove an unneeded dependency.
55770         * modules/fseterr (Depends-on): Remove dup2.
55772 2009-12-26  Eric Blake  <ebb9@byu.net>
55774         tests: use macros.h in more places
55775         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
55776         (ASSERT_STREAM): Provide default of stderr.
55777         * tests/test-dirent-safer.c: Include macros.h, using alternate
55778         stream for assertions.
55779         * tests/test-dup-safer.c: Likewise.
55780         * tests/test-freopen-safer.c: Likewise.
55781         * tests/test-getopt.c: Likewise.
55782         * tests/test-openat-safer.c: Likewise.
55783         * tests/test-pipe.c: Likewise.
55784         * tests/test-popen-safer.c: Likewise.
55785         * modules/dirent-safer-tests (Files): Include macros.h.
55786         * modules/unistd-safer-tests (Files): Likewise.
55787         * modules/freopen-safer-tests (Files): Likewise.
55788         * modules/getopt-posix-tests (Files): Likewise.
55789         * modules/openat-safer-tests (Files): Likewise.
55790         * modules/pipe-tests (Files): Likewise.
55792 2009-12-26  Bruno Haible  <bruno@clisp.org>
55794         javacomp-script: Portability fix.
55795         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
55796         that it also works on Solaris.
55798 2009-12-26  Bruno Haible  <bruno@clisp.org>
55800         localename: Fix storage allocation of gl_locale_name_thread's result.
55801         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
55802         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
55803         all platforms that have 'uselocale'.
55804         (gl_locale_name_thread_unsafe): New function, extracted from
55805         gl_locale_name_thread.
55806         (gl_locale_name_thread): Call struniq on all platforms that have
55807         'uselocale'.
55808         * tests/test-localename.c (test_locale_name_thread): Check that the
55809         resulting strings are permanently allocated.
55810         * modules/localename-tests (Depends-on): Add strdup.
55812 2009-12-26  Bruno Haible  <bruno@clisp.org>
55814         * tests/test-localename.c (categories): Fill in the strings.
55816 2009-12-26  Jim Meyering  <meyering@redhat.com>
55818         isdir: complete the removal of m4/isdir.m4
55819         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
55821         isdir: clean up, since at least grep still uses it
55822         * lib/isdir.c: Include "isdir.h".
55823         (S_ISDIR): Remove now-unneeded definition.
55824         * modules/isdir (Files): Add lib/isdir.h.
55825         * lib/isdir.h: New file, with declaration.
55826         * m4/isdir.m4: Remove file -- unneeded.
55828 2009-12-25  Bruno Haible  <bruno@clisp.org>
55830         selinux-h: Make generated .h files standalone.
55831         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
55832         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
55833         * lib/se-selinux.in.h: Likewise.
55834         * modules/selinux-h (Depends-on): Add unused-parameter.
55835         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
55836         selinux/selinux.h and selinux/context.h.
55837         Suggested by Eric Blake.
55839 2009-12-25  Bruno Haible  <bruno@clisp.org>
55841         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
55842         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
55843         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
55844         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
55845         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
55847 2009-12-24  Bruno Haible  <bruno@clisp.org>
55849         openat: Fix warning.
55850         * lib/openat-proc.c: Include <unistd.h>.
55852 2009-12-24  Bruno Haible  <bruno@clisp.org>
55854         New module 'unused-parameter'.
55855         * build-aux/unused-parameter.h: New file, extracted from earlier
55856         gnulib-common.m4.
55857         * modules/unused-parameter: New file.
55858         * lib/unistr.h: Include unused-parameter.h.
55859         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
55860         _GL_UNUSED.
55861         * modules/unistr/base (Depends-on): Add unused-parameter.
55863 2009-12-24  Bruno Haible  <bruno@clisp.org>
55865         Add missing dependencies to 'extensions' module.
55866         * m4/extensions.m4: Add comment.
55867         * modules/accept4 (Depends-on): Add extensions.
55868         * modules/dup3 (Depends-on): Likewise.
55869         * modules/fcntl (Depends-on): Likewise.
55870         * modules/futimens (Depends-on): Likewise.
55871         * modules/mknod (Depends-on): Likewise.
55872         * modules/pipe2 (Depends-on): Likewise.
55873         * modules/stat-time (Depends-on): Likewise.
55874         * modules/strcasestr-simple (Depends-on): Likewise.
55875         * modules/strsignal (Depends-on): Likewise.
55876         * modules/utimensat (Depends-on): Likewise.
55877         * modules/localcharset (Depends-on): Likewise. Needed because of
55878         gl_FCNTL_O_FLAGS.
55879         * modules/wcrtomb (Depends-on): Likewise. Needed because of
55880         AC_TYPE_MBSTATE_T.
55881         * modules/wcsnrtombs (Depends-on): Likewise.
55882         * modules/wcsrtombs (Depends-on): Likewise.
55884 2009-12-24  Bruno Haible  <bruno@clisp.org>
55886         binary-io: Avoid gcc warning due to SET_BINARY.
55887         * lib/binary-io.h (SET_BINARY): Cast the result to void.
55888         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
55890 2009-12-24  Bruno Haible  <bruno@clisp.org>
55892         Avoid future namespace pollution on glibc systems.
55893         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
55894         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
55895         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
55896         glibc systems.
55898 2009-12-24  Bruno Haible  <bruno@clisp.org>
55900         Refactor common macros used in tests.
55901         * tests/macros.h: New file.
55902         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
55903         and/or <stdlib.h>, if appropriate.
55904         (ASSERT, SIZEOF): Remove macros.
55905         * tests/test-areadlink-with-size.c: Likewise.
55906         * tests/test-areadlinkat.c: Likewise.
55907         * tests/test-areadlinkat-with-size.c: Likewise.
55908         * tests/test-argmatch.c: Likewise.
55909         * tests/test-argv-iter.c: Likewise.
55910         * tests/test-array-mergesort.c: Likewise.
55911         * tests/test-array_list.c: Likewise.
55912         * tests/test-array_oset.c: Likewise.
55913         * tests/test-avltree_list.c: Likewise.
55914         * tests/test-avltree_oset.c: Likewise.
55915         * tests/test-avltreehash_list.c: Likewise.
55916         * tests/test-base64.c: Likewise.
55917         * tests/test-binary-io.c: Likewise.
55918         * tests/test-bitrotate.c: Likewise.
55919         * tests/test-btowc.c: Likewise.
55920         * tests/test-byteswap.c: Likewise.
55921         * tests/test-c-ctype.c: Likewise.
55922         * tests/test-c-stack.c: Likewise.
55923         * tests/test-c-strcasecmp.c: Likewise.
55924         * tests/test-c-strcasestr.c: Likewise.
55925         * tests/test-c-strncasecmp.c: Likewise.
55926         * tests/test-c-strstr.c: Likewise.
55927         * tests/test-canonicalize-lgpl.c: Likewise.
55928         * tests/test-canonicalize.c: Likewise.
55929         * tests/test-carray_list.c: Likewise.
55930         * tests/test-ceilf1.c: Likewise.
55931         * tests/test-ceilf2.c: Likewise.
55932         * tests/test-ceill.c: Likewise.
55933         * tests/test-chown.c: Likewise.
55934         * tests/test-cloexec.c: Likewise.
55935         * tests/test-copy-acl.c: Likewise.
55936         * tests/test-copy-file.c: Likewise.
55937         * tests/test-count-one-bits.c: Likewise.
55938         * tests/test-dprintf-posix.c: Likewise.
55939         * tests/test-dup2.c: Likewise.
55940         * tests/test-dup3.c: Likewise.
55941         * tests/test-duplocale.c: Likewise.
55942         * tests/test-fbufmode.c: Likewise.
55943         * tests/test-fchdir.c: Likewise.
55944         * tests/test-fchownat.c: Likewise.
55945         * tests/test-fcntl-safer.c: Likewise.
55946         * tests/test-fcntl.c: Likewise.
55947         * tests/test-fdopendir.c: Likewise.
55948         * tests/test-fdutimensat.c: Likewise.
55949         * tests/test-fflush2.c: Likewise.
55950         * tests/test-file-has-acl.c: Likewise.
55951         * tests/test-filevercmp.c: Likewise.
55952         * tests/test-flock.c: Likewise.
55953         * tests/test-floorf1.c: Likewise.
55954         * tests/test-floorf2.c: Likewise.
55955         * tests/test-floorl.c: Likewise.
55956         * tests/test-fnmatch.c: Likewise.
55957         * tests/test-fopen.h: Likewise.
55958         * tests/test-fpending.c: Likewise.
55959         * tests/test-fprintf-posix.c: Likewise.
55960         * tests/test-fpurge.c: Likewise.
55961         * tests/test-freadable.c: Likewise.
55962         * tests/test-freadahead.c: Likewise.
55963         * tests/test-freading.c: Likewise.
55964         * tests/test-freadptr.c: Likewise.
55965         * tests/test-freadptr2.c: Likewise.
55966         * tests/test-freadseek.c: Likewise.
55967         * tests/test-freopen.c: Likewise.
55968         * tests/test-frexp.c: Likewise.
55969         * tests/test-frexpl.c: Likewise.
55970         * tests/test-fseek.c: Likewise.
55971         * tests/test-fseeko.c: Likewise.
55972         * tests/test-fstatat.c: Likewise.
55973         * tests/test-fstrcmp.c: Likewise.
55974         * tests/test-fsync.c: Likewise.
55975         * tests/test-ftell.c: Likewise.
55976         * tests/test-ftello.c: Likewise.
55977         * tests/test-func.c: Likewise.
55978         * tests/test-futimens.c: Likewise.
55979         * tests/test-fwritable.c: Likewise.
55980         * tests/test-fwriting.c: Likewise.
55981         * tests/test-getcwd.c: Likewise.
55982         * tests/test-getdate.c: Likewise.
55983         * tests/test-getdelim.c: Likewise.
55984         * tests/test-getdtablesize.c: Likewise.
55985         * tests/test-getgroups.c: Likewise.
55986         * tests/test-getline.c: Likewise.
55987         * tests/test-getndelim2.c: Likewise.
55988         * tests/test-glob.c: Likewise.
55989         * tests/test-hash.c: Likewise.
55990         * tests/test-i-ring.c: Likewise.
55991         * tests/test-iconv-utf.c: Likewise.
55992         * tests/test-iconv.c: Likewise.
55993         * tests/test-idpriv-drop.c: Likewise.
55994         * tests/test-idpriv-droptemp.c: Likewise.
55995         * tests/test-inet_ntop.c: Likewise.
55996         * tests/test-inet_pton.c: Likewise.
55997         * tests/test-isblank.c: Likewise.
55998         * tests/test-isfinite.c: Likewise.
55999         * tests/test-isinf.c: Likewise.
56000         * tests/test-isnan.c: Likewise.
56001         * tests/test-isnand.h: Likewise.
56002         * tests/test-isnanf.h: Likewise.
56003         * tests/test-isnanl.h: Likewise.
56004         * tests/test-lchown.c: Likewise.
56005         * tests/test-ldexpl.c: Likewise.
56006         * tests/test-link.c: Likewise.
56007         * tests/test-linkat.c: Likewise.
56008         * tests/test-linked_list.c: Likewise.
56009         * tests/test-linkedhash_list.c: Likewise.
56010         * tests/test-localename.c: Likewise.
56011         * tests/test-lseek.c: Likewise.
56012         * tests/test-lstat.c: Likewise.
56013         * tests/test-mbmemcasecmp.c: Likewise.
56014         * tests/test-mbmemcasecoll.c: Likewise.
56015         * tests/test-mbrtowc.c: Likewise.
56016         * tests/test-mbscasecmp.c: Likewise.
56017         * tests/test-mbscasestr1.c: Likewise.
56018         * tests/test-mbscasestr2.c: Likewise.
56019         * tests/test-mbscasestr3.c: Likewise.
56020         * tests/test-mbscasestr4.c: Likewise.
56021         * tests/test-mbschr.c: Likewise.
56022         * tests/test-mbscspn.c: Likewise.
56023         * tests/test-mbsinit.c: Likewise.
56024         * tests/test-mbsncasecmp.c: Likewise.
56025         * tests/test-mbsnrtowcs.c: Likewise.
56026         * tests/test-mbspbrk.c: Likewise.
56027         * tests/test-mbspcasecmp.c: Likewise.
56028         * tests/test-mbsrchr.c: Likewise.
56029         * tests/test-mbsrtowcs.c: Likewise.
56030         * tests/test-mbsspn.c: Likewise.
56031         * tests/test-mbsstr1.c: Likewise.
56032         * tests/test-mbsstr2.c: Likewise.
56033         * tests/test-mbsstr3.c: Likewise.
56034         * tests/test-memchr.c: Likewise.
56035         * tests/test-memchr2.c: Likewise.
56036         * tests/test-memcmp.c: Likewise.
56037         * tests/test-memmem.c: Likewise.
56038         * tests/test-memrchr.c: Likewise.
56039         * tests/test-mkdir.c: Likewise.
56040         * tests/test-mkdirat.c: Likewise.
56041         * tests/test-mkfifo.c: Likewise.
56042         * tests/test-mkfifoat.c: Likewise.
56043         * tests/test-mknod.c: Likewise.
56044         * tests/test-nanosleep.c: Likewise.
56045         * tests/test-nl_langinfo.c: Likewise.
56046         * tests/test-obstack-printf.c: Likewise.
56047         * tests/test-open.c: Likewise.
56048         * tests/test-openat.c: Likewise.
56049         * tests/test-pipe-filter-gi1.c: Likewise.
56050         * tests/test-pipe-filter-gi2-main.c: Likewise.
56051         * tests/test-pipe-filter-ii1.c: Likewise.
56052         * tests/test-pipe-filter-ii2-main.c: Likewise.
56053         * tests/test-pipe2.c: Likewise.
56054         * tests/test-popen.h: Likewise.
56055         * tests/test-posixtm.c: Likewise.
56056         * tests/test-pread.c: Likewise.
56057         * tests/test-printf-frexp.c: Likewise.
56058         * tests/test-printf-frexpl.c: Likewise.
56059         * tests/test-printf-posix.c: Likewise.
56060         * tests/test-priv-set.c: Likewise.
56061         * tests/test-quotearg.c: Likewise.
56062         * tests/test-random_r.c: Likewise.
56063         * tests/test-rawmemchr.c: Likewise.
56064         * tests/test-rbtree_list.c: Likewise.
56065         * tests/test-rbtree_oset.c: Likewise.
56066         * tests/test-rbtreehash_list.c: Likewise.
56067         * tests/test-readlink.c: Likewise.
56068         * tests/test-remove.c: Likewise.
56069         * tests/test-rename.c: Likewise.
56070         * tests/test-renameat.c: Likewise.
56071         * tests/test-rmdir.c: Likewise.
56072         * tests/test-round1.c: Likewise.
56073         * tests/test-roundf1.c: Likewise.
56074         * tests/test-roundl.c: Likewise.
56075         * tests/test-safe-alloc.c: Likewise.
56076         * tests/test-sameacls.c: Likewise.
56077         * tests/test-set-mode-acl.c: Likewise.
56078         * tests/test-setenv.c: Likewise.
56079         * tests/test-sigaction.c: Likewise.
56080         * tests/test-signbit.c: Likewise.
56081         * tests/test-sleep.c: Likewise.
56082         * tests/test-snprintf-posix.c: Likewise.
56083         * tests/test-snprintf.c: Likewise.
56084         * tests/test-sprintf-posix.c: Likewise.
56085         * tests/test-stat-time.c: Likewise.
56086         * tests/test-stat.c: Likewise.
56087         * tests/test-strcasestr.c: Likewise.
56088         * tests/test-strchrnul.c: Likewise.
56089         * tests/test-strerror.c: Likewise.
56090         * tests/test-striconv.c: Likewise.
56091         * tests/test-striconveh.c: Likewise.
56092         * tests/test-striconveha.c: Likewise.
56093         * tests/test-strsignal.c: Likewise.
56094         * tests/test-strstr.c: Likewise.
56095         * tests/test-strtod.c: Likewise.
56096         * tests/test-strverscmp.c: Likewise.
56097         * tests/test-symlink.c: Likewise.
56098         * tests/test-symlinkat.c: Likewise.
56099         * tests/test-trunc1.c: Likewise.
56100         * tests/test-trunc2.c: Likewise.
56101         * tests/test-truncf1.c: Likewise.
56102         * tests/test-truncf2.c: Likewise.
56103         * tests/test-truncl.c: Likewise.
56104         * tests/test-uname.c: Likewise.
56105         * tests/test-unlink.c: Likewise.
56106         * tests/test-unlinkat.c: Likewise.
56107         * tests/test-unsetenv.c: Likewise.
56108         * tests/test-usleep.c: Likewise.
56109         * tests/test-utimens.c: Likewise.
56110         * tests/test-utimensat.c: Likewise.
56111         * tests/test-vasnprintf-posix.c: Likewise.
56112         * tests/test-vasnprintf-posix2.c: Likewise.
56113         * tests/test-vasnprintf.c: Likewise.
56114         * tests/test-vasprintf-posix.c: Likewise.
56115         * tests/test-vasprintf.c: Likewise.
56116         * tests/test-vdprintf-posix.c: Likewise.
56117         * tests/test-vfprintf-posix.c: Likewise.
56118         * tests/test-vprintf-posix.c: Likewise.
56119         * tests/test-vsnprintf-posix.c: Likewise.
56120         * tests/test-vsnprintf.c: Likewise.
56121         * tests/test-vsprintf-posix.c: Likewise.
56122         * tests/test-wcrtomb.c: Likewise.
56123         * tests/test-wcsnrtombs.c: Likewise.
56124         * tests/test-wcsrtombs.c: Likewise.
56125         * tests/test-wctype.c: Likewise.
56126         * tests/test-wcwidth.c: Likewise.
56127         * tests/test-xfprintf-posix.c: Likewise.
56128         * tests/test-xmemdup0.c: Likewise.
56129         * tests/test-xprintf-posix.c: Likewise.
56130         * tests/test-xvasprintf.c: Likewise.
56131         * tests/unicase/test-locale-language.c: Likewise.
56132         * tests/unicase/test-mapping-part1.h: Likewise.
56133         * tests/unicase/test-predicate-part1.h: Likewise.
56134         * tests/unicase/test-u8-casecmp.c: Likewise.
56135         * tests/unicase/test-u8-casecoll.c: Likewise.
56136         * tests/unicase/test-u8-casefold.c: Likewise.
56137         * tests/unicase/test-u8-is-cased.c: Likewise.
56138         * tests/unicase/test-u8-is-casefolded.c: Likewise.
56139         * tests/unicase/test-u8-is-lowercase.c: Likewise.
56140         * tests/unicase/test-u8-is-titlecase.c: Likewise.
56141         * tests/unicase/test-u8-is-uppercase.c: Likewise.
56142         * tests/unicase/test-u8-tolower.c: Likewise.
56143         * tests/unicase/test-u8-totitle.c: Likewise.
56144         * tests/unicase/test-u8-toupper.c: Likewise.
56145         * tests/unicase/test-u16-casecmp.c: Likewise.
56146         * tests/unicase/test-u16-casecoll.c: Likewise.
56147         * tests/unicase/test-u16-casefold.c: Likewise.
56148         * tests/unicase/test-u16-is-cased.c: Likewise.
56149         * tests/unicase/test-u16-is-casefolded.c: Likewise.
56150         * tests/unicase/test-u16-is-lowercase.c: Likewise.
56151         * tests/unicase/test-u16-is-titlecase.c: Likewise.
56152         * tests/unicase/test-u16-is-uppercase.c: Likewise.
56153         * tests/unicase/test-u16-tolower.c: Likewise.
56154         * tests/unicase/test-u16-totitle.c: Likewise.
56155         * tests/unicase/test-u16-toupper.c: Likewise.
56156         * tests/unicase/test-u32-casecmp.c: Likewise.
56157         * tests/unicase/test-u32-casecoll.c: Likewise.
56158         * tests/unicase/test-u32-casefold.c: Likewise.
56159         * tests/unicase/test-u32-is-cased.c: Likewise.
56160         * tests/unicase/test-u32-is-casefolded.c: Likewise.
56161         * tests/unicase/test-u32-is-lowercase.c: Likewise.
56162         * tests/unicase/test-u32-is-titlecase.c: Likewise.
56163         * tests/unicase/test-u32-is-uppercase.c: Likewise.
56164         * tests/unicase/test-u32-tolower.c: Likewise.
56165         * tests/unicase/test-u32-totitle.c: Likewise.
56166         * tests/unicase/test-u32-toupper.c: Likewise.
56167         * tests/unicase/test-ulc-casecmp.c: Likewise.
56168         * tests/unicase/test-ulc-casecoll.c: Likewise.
56169         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56170         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56171         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56172         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56173         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56174         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56175         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56176         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56177         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56178         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56179         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56180         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56181         * tests/unictype/test-bidi_byname.c: Likewise.
56182         * tests/unictype/test-bidi_name.c: Likewise.
56183         * tests/unictype/test-bidi_of.c: Likewise.
56184         * tests/unictype/test-bidi_test.c: Likewise.
56185         * tests/unictype/test-block_list.c: Likewise.
56186         * tests/unictype/test-block_of.c: Likewise.
56187         * tests/unictype/test-block_test.c: Likewise.
56188         * tests/unictype/test-categ_and.c: Likewise.
56189         * tests/unictype/test-categ_and_not.c: Likewise.
56190         * tests/unictype/test-categ_byname.c: Likewise.
56191         * tests/unictype/test-categ_name.c: Likewise.
56192         * tests/unictype/test-categ_none.c: Likewise.
56193         * tests/unictype/test-categ_of.c: Likewise.
56194         * tests/unictype/test-categ_or.c: Likewise.
56195         * tests/unictype/test-categ_test_withtable.c: Likewise.
56196         * tests/unictype/test-combining.c: Likewise.
56197         * tests/unictype/test-decdigit.c: Likewise.
56198         * tests/unictype/test-digit.c: Likewise.
56199         * tests/unictype/test-mirror.c: Likewise.
56200         * tests/unictype/test-numeric.c: Likewise.
56201         * tests/unictype/test-pr_byname.c: Likewise.
56202         * tests/unictype/test-pr_test.c: Likewise.
56203         * tests/unictype/test-predicate-part1.h: Likewise.
56204         * tests/unictype/test-scripts.c: Likewise.
56205         * tests/unictype/test-sy_c_ident.c: Likewise.
56206         * tests/unictype/test-sy_java_ident.c: Likewise.
56207         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
56208         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
56209         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
56210         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
56211         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
56212         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
56213         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
56214         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
56215         * tests/uninorm/test-canonical-decomposition.c: Likewise.
56216         * tests/uninorm/test-compat-decomposition.c: Likewise.
56217         * tests/uninorm/test-composition.c: Likewise.
56218         * tests/uninorm/test-decomposing-form.c: Likewise.
56219         * tests/uninorm/test-decomposition.c: Likewise.
56220         * tests/uninorm/test-u8-nfc.c: Likewise.
56221         * tests/uninorm/test-u8-nfd.c: Likewise.
56222         * tests/uninorm/test-u8-nfkc.c: Likewise.
56223         * tests/uninorm/test-u8-nfkd.c: Likewise.
56224         * tests/uninorm/test-u8-normcmp.c: Likewise.
56225         * tests/uninorm/test-u8-normcoll.c: Likewise.
56226         * tests/uninorm/test-u16-nfc.c: Likewise.
56227         * tests/uninorm/test-u16-nfd.c: Likewise.
56228         * tests/uninorm/test-u16-nfkc.c: Likewise.
56229         * tests/uninorm/test-u16-nfkd.c: Likewise.
56230         * tests/uninorm/test-u16-normcmp.c: Likewise.
56231         * tests/uninorm/test-u16-normcoll.c: Likewise.
56232         * tests/uninorm/test-u32-nfc.c: Likewise.
56233         * tests/uninorm/test-u32-nfd.c: Likewise.
56234         * tests/uninorm/test-u32-nfkc.c: Likewise.
56235         * tests/uninorm/test-u32-nfkd.c: Likewise.
56236         * tests/uninorm/test-u32-normalize-big.c: Likewise.
56237         * tests/uninorm/test-u32-normcmp.c: Likewise.
56238         * tests/uninorm/test-u32-normcoll.c: Likewise.
56239         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
56240         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56241         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56242         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56243         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56244         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56245         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56246         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56247         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56248         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56249         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56250         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56251         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56252         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56253         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56254         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56255         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56256         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56257         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56258         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56259         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56260         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56261         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56262         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56263         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56264         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56265         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56266         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56267         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56268         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
56269         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
56270         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
56271         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
56272         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56273         * tests/uniwidth/test-u8-width.c: Likewise.
56274         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56275         * tests/uniwidth/test-u16-width.c: Likewise.
56276         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56277         * tests/uniwidth/test-u32-width.c: Likewise.
56278         * tests/uniwidth/test-uc_width.c: Likewise.
56279         * tests/uniwidth/test-uc_width2.c: Likewise.
56280         * modules/acl-tests (Files): Add tests/macros.h.
56281         * modules/areadlink-tests (Files): Likewise.
56282         * modules/areadlink-with-size-tests (Files): Likewise.
56283         * modules/areadlinkat-tests (Files): Likewise.
56284         * modules/areadlinkat-with-size-tests (Files): Likewise.
56285         * modules/argmatch-tests (Files): Likewise.
56286         * modules/argv-iter-tests (Files): Likewise.
56287         * modules/array-list-tests (Files): Likewise.
56288         * modules/array-mergesort-tests (Files): Likewise.
56289         * modules/array-oset-tests (Files): Likewise.
56290         * modules/avltree-list-tests (Files): Likewise.
56291         * modules/avltree-oset-tests (Files): Likewise.
56292         * modules/avltreehash-list-tests (Files): Likewise.
56293         * modules/base64-tests (Files): Likewise.
56294         * modules/binary-io-tests (Files): Likewise.
56295         * modules/bitrotate-tests (Files): Likewise.
56296         * modules/btowc-tests (Files): Likewise.
56297         * modules/byteswap-tests (Files): Likewise.
56298         * modules/c-ctype-tests (Files): Likewise.
56299         * modules/c-stack-tests (Files): Likewise.
56300         * modules/c-strcase-tests (Files): Likewise.
56301         * modules/c-strcasestr-tests (Files): Likewise.
56302         * modules/c-strstr-tests (Files): Likewise.
56303         * modules/canonicalize-lgpl-tests (Files): Likewise.
56304         * modules/canonicalize-tests (Files): Likewise.
56305         * modules/carray-list-tests (Files): Likewise.
56306         * modules/ceilf-tests (Files): Likewise.
56307         * modules/ceill-tests (Files): Likewise.
56308         * modules/chown-tests (Files): Likewise.
56309         * modules/cloexec-tests (Files): Likewise.
56310         * modules/copy-file-tests (Files): Likewise.
56311         * modules/count-one-bits-tests (Files): Likewise.
56312         * modules/dprintf-posix-tests (Files): Likewise.
56313         * modules/dup2-tests (Files): Likewise.
56314         * modules/dup3-tests (Files): Likewise.
56315         * modules/duplocale-tests (Files): Likewise.
56316         * modules/fbufmode-tests (Files): Likewise.
56317         * modules/fchdir-tests (Files): Likewise.
56318         * modules/fcntl-safer-tests (Files): Likewise.
56319         * modules/fcntl-tests (Files): Likewise.
56320         * modules/fdopendir-tests (Files): Likewise.
56321         * modules/fdutimensat-tests (Files): Likewise.
56322         * modules/fflush-tests (Files): Likewise.
56323         * modules/filevercmp-tests (Files): Likewise.
56324         * modules/flock-tests (Files): Likewise.
56325         * modules/floorf-tests (Files): Likewise.
56326         * modules/floorl-tests (Files): Likewise.
56327         * modules/fnmatch-tests (Files): Likewise.
56328         * modules/fopen-safer-tests (Files): Likewise.
56329         * modules/fopen-tests (Files): Likewise.
56330         * modules/fpending-tests (Files): Likewise.
56331         * modules/fprintf-posix-tests (Files): Likewise.
56332         * modules/fpurge-tests (Files): Likewise.
56333         * modules/freadable-tests (Files): Likewise.
56334         * modules/freadahead-tests (Files): Likewise.
56335         * modules/freading-tests (Files): Likewise.
56336         * modules/freadptr-tests (Files): Likewise.
56337         * modules/freadseek-tests (Files): Likewise.
56338         * modules/freopen-tests (Files): Likewise.
56339         * modules/frexp-nolibm-tests (Files): Likewise.
56340         * modules/frexp-tests (Files): Likewise.
56341         * modules/frexpl-nolibm-tests (Files): Likewise.
56342         * modules/frexpl-tests (Files): Likewise.
56343         * modules/fseek-tests (Files): Likewise.
56344         * modules/fseeko-tests (Files): Likewise.
56345         * modules/fstrcmp-tests (Files): Likewise.
56346         * modules/fsync-tests (Files): Likewise.
56347         * modules/ftell-tests (Files): Likewise.
56348         * modules/ftello-tests (Files): Likewise.
56349         * modules/func-tests (Files): Likewise.
56350         * modules/futimens-tests (Files): Likewise.
56351         * modules/fwritable-tests (Files): Likewise.
56352         * modules/fwriting-tests (Files): Likewise.
56353         * modules/getcwd-tests (Files): Likewise.
56354         * modules/getdate-tests (Files): Likewise.
56355         * modules/getdelim-tests (Files): Likewise.
56356         * modules/getdtablesize-tests (Files): Likewise.
56357         * modules/getgroups-tests (Files): Likewise.
56358         * modules/getline-tests (Files): Likewise.
56359         * modules/getndelim2-tests (Files): Likewise.
56360         * modules/glob-tests (Files): Likewise.
56361         * modules/hash-tests (Files): Likewise.
56362         * modules/i-ring-tests (Files): Likewise.
56363         * modules/iconv-tests (Files): Likewise.
56364         * modules/iconv_open-utf-tests (Files): Likewise.
56365         * modules/idpriv-drop-tests (Files): Likewise.
56366         * modules/idpriv-droptemp-tests (Files): Likewise.
56367         * modules/inet_ntop-tests (Files): Likewise.
56368         * modules/inet_pton-tests (Files): Likewise.
56369         * modules/isblank-tests (Files): Likewise.
56370         * modules/isfinite-tests (Files): Likewise.
56371         * modules/isinf-tests (Files): Likewise.
56372         * modules/isnan-tests (Files): Likewise.
56373         * modules/isnand-nolibm-tests (Files): Likewise.
56374         * modules/isnand-tests (Files): Likewise.
56375         * modules/isnanf-nolibm-tests (Files): Likewise.
56376         * modules/isnanf-tests (Files): Likewise.
56377         * modules/isnanl-nolibm-tests (Files): Likewise.
56378         * modules/isnanl-tests (Files): Likewise.
56379         * modules/lchown-tests (Files): Likewise.
56380         * modules/ldexpl-tests (Files): Likewise.
56381         * modules/link-tests (Files): Likewise.
56382         * modules/linkat-tests (Files): Likewise.
56383         * modules/linked-list-tests (Files): Likewise.
56384         * modules/linkedhash-list-tests (Files): Likewise.
56385         * modules/localename-tests (Files): Likewise.
56386         * modules/lseek-tests (Files): Likewise.
56387         * modules/lstat-tests (Files): Likewise.
56388         * modules/mbmemcasecmp-tests (Files): Likewise.
56389         * modules/mbmemcasecoll-tests (Files): Likewise.
56390         * modules/mbrtowc-tests (Files): Likewise.
56391         * modules/mbscasecmp-tests (Files): Likewise.
56392         * modules/mbscasestr-tests (Files): Likewise.
56393         * modules/mbschr-tests (Files): Likewise.
56394         * modules/mbscspn-tests (Files): Likewise.
56395         * modules/mbsinit-tests (Files): Likewise.
56396         * modules/mbsncasecmp-tests (Files): Likewise.
56397         * modules/mbsnrtowcs-tests (Files): Likewise.
56398         * modules/mbspbrk-tests (Files): Likewise.
56399         * modules/mbspcasecmp-tests (Files): Likewise.
56400         * modules/mbsrchr-tests (Files): Likewise.
56401         * modules/mbsrtowcs-tests (Files): Likewise.
56402         * modules/mbsspn-tests (Files): Likewise.
56403         * modules/mbsstr-tests (Files): Likewise.
56404         * modules/memchr-tests (Files): Likewise.
56405         * modules/memchr2-tests (Files): Likewise.
56406         * modules/memcmp-tests (Files): Likewise.
56407         * modules/memmem-tests (Files): Likewise.
56408         * modules/memrchr-tests (Files): Likewise.
56409         * modules/mkdir-tests (Files): Likewise.
56410         * modules/mkfifo-tests (Files): Likewise.
56411         * modules/mkfifoat-tests (Files): Likewise.
56412         * modules/mknod-tests (Files): Likewise.
56413         * modules/nanosleep-tests (Files): Likewise.
56414         * modules/nl_langinfo-tests (Files): Likewise.
56415         * modules/obstack-printf-tests (Files): Likewise.
56416         * modules/open-tests (Files): Likewise.
56417         * modules/openat-tests (Files): Likewise.
56418         * modules/pipe-filter-gi-tests (Files): Likewise.
56419         * modules/pipe-filter-ii-tests (Files): Likewise.
56420         * modules/pipe2-tests (Files): Likewise.
56421         * modules/popen-safer-tests (Files): Likewise.
56422         * modules/popen-tests (Files): Likewise.
56423         * modules/posixtm-tests (Files): Likewise.
56424         * modules/pread-tests (Files): Likewise.
56425         * modules/printf-frexp-tests (Files): Likewise.
56426         * modules/printf-frexpl-tests (Files): Likewise.
56427         * modules/printf-posix-tests (Files): Likewise.
56428         * modules/priv-set-tests (Files): Likewise.
56429         * modules/quotearg-tests (Files): Likewise.
56430         * modules/random_r-tests (Files): Likewise.
56431         * modules/rawmemchr-tests (Files): Likewise.
56432         * modules/rbtree-list-tests (Files): Likewise.
56433         * modules/rbtree-oset-tests (Files): Likewise.
56434         * modules/rbtreehash-list-tests (Files): Likewise.
56435         * modules/readlink-tests (Files): Likewise.
56436         * modules/remove-tests (Files): Likewise.
56437         * modules/rename-tests (Files): Likewise.
56438         * modules/renameat-tests (Files): Likewise.
56439         * modules/rmdir-tests (Files): Likewise.
56440         * modules/round-tests (Files): Likewise.
56441         * modules/roundf-tests (Files): Likewise.
56442         * modules/roundl-tests (Files): Likewise.
56443         * modules/safe-alloc-tests (Files): Likewise.
56444         * modules/setenv-tests (Files): Likewise.
56445         * modules/sigaction-tests (Files): Likewise.
56446         * modules/signbit-tests (Files): Likewise.
56447         * modules/sleep-tests (Files): Likewise.
56448         * modules/snprintf-posix-tests (Files): Likewise.
56449         * modules/snprintf-tests (Files): Likewise.
56450         * modules/sprintf-posix-tests (Files): Likewise.
56451         * modules/stat-tests (Files): Likewise.
56452         * modules/stat-time-tests (Files): Likewise.
56453         * modules/strcasestr-tests (Files): Likewise.
56454         * modules/strchrnul-tests (Files): Likewise.
56455         * modules/strerror-tests (Files): Likewise.
56456         * modules/striconv-tests (Files): Likewise.
56457         * modules/striconveh-tests (Files): Likewise.
56458         * modules/striconveha-tests (Files): Likewise.
56459         * modules/strsignal-tests (Files): Likewise.
56460         * modules/strstr-tests (Files): Likewise.
56461         * modules/strtod-tests (Files): Likewise.
56462         * modules/strverscmp-tests (Files): Likewise.
56463         * modules/symlink-tests (Files): Likewise.
56464         * modules/symlinkat-tests (Files): Likewise.
56465         * modules/trunc-tests (Files): Likewise.
56466         * modules/truncf-tests (Files): Likewise.
56467         * modules/truncl-tests (Files): Likewise.
56468         * modules/uname-tests (Files): Likewise.
56469         * modules/unicase/cased-tests (Files): Likewise.
56470         * modules/unicase/ignorable-tests (Files): Likewise.
56471         * modules/unicase/locale-language-tests (Files): Likewise.
56472         * modules/unicase/tolower-tests (Files): Likewise.
56473         * modules/unicase/totitle-tests (Files): Likewise.
56474         * modules/unicase/toupper-tests (Files): Likewise.
56475         * modules/unicase/u8-casecmp-tests (Files): Likewise.
56476         * modules/unicase/u8-casecoll-tests (Files): Likewise.
56477         * modules/unicase/u8-casefold-tests (Files): Likewise.
56478         * modules/unicase/u8-is-cased-tests (Files): Likewise.
56479         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
56480         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
56481         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
56482         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
56483         * modules/unicase/u8-tolower-tests (Files): Likewise.
56484         * modules/unicase/u8-totitle-tests (Files): Likewise.
56485         * modules/unicase/u8-toupper-tests (Files): Likewise.
56486         * modules/unicase/u16-casecmp-tests (Files): Likewise.
56487         * modules/unicase/u16-casecoll-tests (Files): Likewise.
56488         * modules/unicase/u16-casefold-tests (Files): Likewise.
56489         * modules/unicase/u16-is-cased-tests (Files): Likewise.
56490         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
56491         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
56492         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
56493         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
56494         * modules/unicase/u16-tolower-tests (Files): Likewise.
56495         * modules/unicase/u16-totitle-tests (Files): Likewise.
56496         * modules/unicase/u16-toupper-tests (Files): Likewise.
56497         * modules/unicase/u32-casecmp-tests (Files): Likewise.
56498         * modules/unicase/u32-casecoll-tests (Files): Likewise.
56499         * modules/unicase/u32-casefold-tests (Files): Likewise.
56500         * modules/unicase/u32-is-cased-tests (Files): Likewise.
56501         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
56502         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
56503         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
56504         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
56505         * modules/unicase/u32-tolower-tests (Files): Likewise.
56506         * modules/unicase/u32-totitle-tests (Files): Likewise.
56507         * modules/unicase/u32-toupper-tests (Files): Likewise.
56508         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
56509         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
56510         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
56511         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
56512         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
56513         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
56514         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
56515         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
56516         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
56517         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
56518         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
56519         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
56520         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
56521         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
56522         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
56523         * modules/unictype/bidicategory-name-tests (Files): Likewise.
56524         * modules/unictype/bidicategory-of-tests (Files): Likewise.
56525         * modules/unictype/bidicategory-test-tests (Files): Likewise.
56526         * modules/unictype/block-list-tests (Files): Likewise.
56527         * modules/unictype/block-of-tests (Files): Likewise.
56528         * modules/unictype/block-test-tests (Files): Likewise.
56529         * modules/unictype/category-C-tests (Files): Likewise.
56530         * modules/unictype/category-Cc-tests (Files): Likewise.
56531         * modules/unictype/category-Cf-tests (Files): Likewise.
56532         * modules/unictype/category-Cn-tests (Files): Likewise.
56533         * modules/unictype/category-Co-tests (Files): Likewise.
56534         * modules/unictype/category-Cs-tests (Files): Likewise.
56535         * modules/unictype/category-L-tests (Files): Likewise.
56536         * modules/unictype/category-Ll-tests (Files): Likewise.
56537         * modules/unictype/category-Lm-tests (Files): Likewise.
56538         * modules/unictype/category-Lo-tests (Files): Likewise.
56539         * modules/unictype/category-Lt-tests (Files): Likewise.
56540         * modules/unictype/category-Lu-tests (Files): Likewise.
56541         * modules/unictype/category-M-tests (Files): Likewise.
56542         * modules/unictype/category-Mc-tests (Files): Likewise.
56543         * modules/unictype/category-Me-tests (Files): Likewise.
56544         * modules/unictype/category-Mn-tests (Files): Likewise.
56545         * modules/unictype/category-N-tests (Files): Likewise.
56546         * modules/unictype/category-Nd-tests (Files): Likewise.
56547         * modules/unictype/category-Nl-tests (Files): Likewise.
56548         * modules/unictype/category-No-tests (Files): Likewise.
56549         * modules/unictype/category-P-tests (Files): Likewise.
56550         * modules/unictype/category-Pc-tests (Files): Likewise.
56551         * modules/unictype/category-Pd-tests (Files): Likewise.
56552         * modules/unictype/category-Pe-tests (Files): Likewise.
56553         * modules/unictype/category-Pf-tests (Files): Likewise.
56554         * modules/unictype/category-Pi-tests (Files): Likewise.
56555         * modules/unictype/category-Po-tests (Files): Likewise.
56556         * modules/unictype/category-Ps-tests (Files): Likewise.
56557         * modules/unictype/category-S-tests (Files): Likewise.
56558         * modules/unictype/category-Sc-tests (Files): Likewise.
56559         * modules/unictype/category-Sk-tests (Files): Likewise.
56560         * modules/unictype/category-Sm-tests (Files): Likewise.
56561         * modules/unictype/category-So-tests (Files): Likewise.
56562         * modules/unictype/category-Z-tests (Files): Likewise.
56563         * modules/unictype/category-Zl-tests (Files): Likewise.
56564         * modules/unictype/category-Zp-tests (Files): Likewise.
56565         * modules/unictype/category-Zs-tests (Files): Likewise.
56566         * modules/unictype/category-and-not-tests (Files): Likewise.
56567         * modules/unictype/category-and-tests (Files): Likewise.
56568         * modules/unictype/category-byname-tests (Files): Likewise.
56569         * modules/unictype/category-name-tests (Files): Likewise.
56570         * modules/unictype/category-none-tests (Files): Likewise.
56571         * modules/unictype/category-of-tests (Files): Likewise.
56572         * modules/unictype/category-or-tests (Files): Likewise.
56573         * modules/unictype/category-test-withtable-tests (Files): Likewise.
56574         * modules/unictype/combining-class-tests (Files): Likewise.
56575         * modules/unictype/ctype-alnum-tests (Files): Likewise.
56576         * modules/unictype/ctype-alpha-tests (Files): Likewise.
56577         * modules/unictype/ctype-blank-tests (Files): Likewise.
56578         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
56579         * modules/unictype/ctype-digit-tests (Files): Likewise.
56580         * modules/unictype/ctype-graph-tests (Files): Likewise.
56581         * modules/unictype/ctype-lower-tests (Files): Likewise.
56582         * modules/unictype/ctype-print-tests (Files): Likewise.
56583         * modules/unictype/ctype-punct-tests (Files): Likewise.
56584         * modules/unictype/ctype-space-tests (Files): Likewise.
56585         * modules/unictype/ctype-upper-tests (Files): Likewise.
56586         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
56587         * modules/unictype/decimal-digit-tests (Files): Likewise.
56588         * modules/unictype/digit-tests (Files): Likewise.
56589         * modules/unictype/mirror-tests (Files): Likewise.
56590         * modules/unictype/numeric-tests (Files): Likewise.
56591         * modules/unictype/property-alphabetic-tests (Files): Likewise.
56592         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
56593         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
56594         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
56595         Likewise.
56596         * modules/unictype/property-bidi-block-separator-tests (Files):
56597         Likewise.
56598         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
56599         Likewise.
56600         * modules/unictype/property-bidi-common-separator-tests (Files):
56601         Likewise.
56602         * modules/unictype/property-bidi-control-tests (Files): Likewise.
56603         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
56604         Likewise.
56605         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
56606         Likewise.
56607         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
56608         Likewise.
56609         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
56610         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
56611         Likewise.
56612         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
56613         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
56614         Likewise.
56615         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
56616         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
56617         * modules/unictype/property-bidi-segment-separator-tests (Files):
56618         Likewise.
56619         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
56620         * modules/unictype/property-byname-tests (Files): Likewise.
56621         * modules/unictype/property-combining-tests (Files): Likewise.
56622         * modules/unictype/property-composite-tests (Files): Likewise.
56623         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
56624         * modules/unictype/property-dash-tests (Files): Likewise.
56625         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
56626         * modules/unictype/property-default-ignorable-code-point-tests (Files):
56627         Likewise.
56628         * modules/unictype/property-deprecated-tests (Files): Likewise.
56629         * modules/unictype/property-diacritic-tests (Files): Likewise.
56630         * modules/unictype/property-extender-tests (Files): Likewise.
56631         * modules/unictype/property-format-control-tests (Files): Likewise.
56632         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
56633         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
56634         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
56635         * modules/unictype/property-hex-digit-tests (Files): Likewise.
56636         * modules/unictype/property-hyphen-tests (Files): Likewise.
56637         * modules/unictype/property-id-continue-tests (Files): Likewise.
56638         * modules/unictype/property-id-start-tests (Files): Likewise.
56639         * modules/unictype/property-ideographic-tests (Files): Likewise.
56640         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
56641         * modules/unictype/property-ids-trinary-operator-tests (Files):
56642         Likewise.
56643         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
56644         * modules/unictype/property-iso-control-tests (Files): Likewise.
56645         * modules/unictype/property-join-control-tests (Files): Likewise.
56646         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
56647         * modules/unictype/property-line-separator-tests (Files): Likewise.
56648         * modules/unictype/property-logical-order-exception-tests (Files):
56649         Likewise.
56650         * modules/unictype/property-lowercase-tests (Files): Likewise.
56651         * modules/unictype/property-math-tests (Files): Likewise.
56652         * modules/unictype/property-non-break-tests (Files): Likewise.
56653         * modules/unictype/property-not-a-character-tests (Files): Likewise.
56654         * modules/unictype/property-numeric-tests (Files): Likewise.
56655         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
56656         * modules/unictype/property-other-default-ignorable-code-point-tests
56657         (Files): Likewise.
56658         * modules/unictype/property-other-grapheme-extend-tests (Files):
56659         Likewise.
56660         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
56661         * modules/unictype/property-other-id-start-tests (Files): Likewise.
56662         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
56663         * modules/unictype/property-other-math-tests (Files): Likewise.
56664         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
56665         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
56666         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
56667         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
56668         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
56669         * modules/unictype/property-private-use-tests (Files): Likewise.
56670         * modules/unictype/property-punctuation-tests (Files): Likewise.
56671         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
56672         * modules/unictype/property-radical-tests (Files): Likewise.
56673         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
56674         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
56675         * modules/unictype/property-space-tests (Files): Likewise.
56676         * modules/unictype/property-terminal-punctuation-tests (Files):
56677         Likewise.
56678         * modules/unictype/property-test-tests (Files): Likewise.
56679         * modules/unictype/property-titlecase-tests (Files): Likewise.
56680         * modules/unictype/property-unassigned-code-value-tests (Files):
56681         Likewise.
56682         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
56683         * modules/unictype/property-uppercase-tests (Files): Likewise.
56684         * modules/unictype/property-variation-selector-tests (Files): Likewise.
56685         * modules/unictype/property-white-space-tests (Files): Likewise.
56686         * modules/unictype/property-xid-continue-tests (Files): Likewise.
56687         * modules/unictype/property-xid-start-tests (Files): Likewise.
56688         * modules/unictype/property-zero-width-tests (Files): Likewise.
56689         * modules/unictype/scripts-tests (Files): Likewise.
56690         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
56691         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
56692         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
56693         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
56694         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
56695         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
56696         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
56697         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
56698         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
56699         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
56700         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
56701         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
56702         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
56703         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
56704         * modules/uninorm/composition-tests (Files): Likewise.
56705         * modules/uninorm/decomposing-form-tests (Files): Likewise.
56706         * modules/uninorm/decomposition-tests (Files): Likewise.
56707         * modules/uninorm/filter-tests (Files): Likewise.
56708         * modules/uninorm/nfc-tests (Files): Likewise.
56709         * modules/uninorm/nfd-tests (Files): Likewise.
56710         * modules/uninorm/nfkc-tests (Files): Likewise.
56711         * modules/uninorm/nfkd-tests (Files): Likewise.
56712         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
56713         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
56714         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
56715         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
56716         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
56717         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
56718         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
56719         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
56720         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
56721         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
56722         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
56723         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
56724         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
56725         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
56726         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
56727         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
56728         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
56729         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
56730         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
56731         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
56732         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
56733         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
56734         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
56735         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
56736         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
56737         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
56738         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
56739         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
56740         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
56741         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
56742         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
56743         * modules/uniwidth/u8-width-tests (Files): Likewise.
56744         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
56745         * modules/uniwidth/u16-width-tests (Files): Likewise.
56746         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
56747         * modules/uniwidth/u32-width-tests (Files): Likewise.
56748         * modules/uniwidth/width-tests (Files): Likewise.
56749         * modules/unlink-tests (Files): Likewise.
56750         * modules/unsetenv-tests (Files): Likewise.
56751         * modules/usleep-tests (Files): Likewise.
56752         * modules/utimens-tests (Files): Likewise.
56753         * modules/utimensat-tests (Files): Likewise.
56754         * modules/vasnprintf-posix-tests (Files): Likewise.
56755         * modules/vasnprintf-tests (Files): Likewise.
56756         * modules/vasprintf-posix-tests (Files): Likewise.
56757         * modules/vasprintf-tests (Files): Likewise.
56758         * modules/vdprintf-posix-tests (Files): Likewise.
56759         * modules/vfprintf-posix-tests (Files): Likewise.
56760         * modules/vprintf-posix-tests (Files): Likewise.
56761         * modules/vsnprintf-posix-tests (Files): Likewise.
56762         * modules/vsnprintf-tests (Files): Likewise.
56763         * modules/vsprintf-posix-tests (Files): Likewise.
56764         * modules/wcrtomb-tests (Files): Likewise.
56765         * modules/wcsnrtombs-tests (Files): Likewise.
56766         * modules/wcsrtombs-tests (Files): Likewise.
56767         * modules/wctype-tests (Files): Likewise.
56768         * modules/wcwidth-tests (Files): Likewise.
56769         * modules/xmemdup0-tests (Files): Likewise.
56770         * modules/xprintf-posix-tests (Files): Likewise.
56771         * modules/xvasprintf-tests (Files): Likewise.
56773 2009-12-24  Eric Blake  <ebb9@byu.net>
56775         test-nanosleep: fix typo
56776         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
56777         patch.
56778         Reported by Bruno Haible.
56780 2009-12-24  Bruno Haible  <bruno@clisp.org>
56782         Reduce namespace pollution on glibc systems.
56783         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
56784         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
56785         systems.
56786         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
56787         <getopt.h> on glibc systems.
56788         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
56789         systems.
56790         * lib/fcntl.c: Include <unistd.h> here instead.
56792 2009-12-24  Bruno Haible  <bruno@clisp.org>
56794         * lib/stdlib.in.h (includes): Fix typo in today's commit.
56796 2009-12-24  Eric Blake  <ebb9@byu.net>
56798         tests: add signature checks
56799         * tests/signature.h (SIGNATURE_CHECK): New file.
56800         * modules/atexit-tests (Files): Use it.
56801         * modules/btowc-tests (Files): Likewise.
56802         * modules/canonicalize-lgpl-tests (Files): Likewise.
56803         * modules/ceilf-tests (Files): Likewise.
56804         * modules/ceill-tests (Files): Likewise.
56805         * modules/chown-tests (Files): Likewise.
56806         * modules/dprintf-posix-tests (Files): Likewise.
56807         * modules/dup2-tests (Files): Likewise.
56808         * modules/dup3-tests (Files): Likewise.
56809         * modules/duplocale-tests (Files): Likewise.
56810         * modules/fchdir-tests (Files): Likewise.
56811         * modules/fcntl-tests (Files): Likewise.
56812         * modules/fdopendir-tests (Files): Likewise.
56813         * modules/fflush-tests (Files): Likewise.
56814         * modules/flock-tests (Files): Likewise.
56815         * modules/floorf-tests (Files): Likewise.
56816         * modules/floorl-tests (Files): Likewise.
56817         * modules/fnmatch-tests (Files): Likewise.
56818         * modules/fopen-tests (Files): Likewise.
56819         * modules/fprintf-posix-tests (Files): Likewise.
56820         * modules/freopen-tests (Files): Likewise.
56821         * modules/frexp-nolibm-tests (Files): Likewise.
56822         * modules/frexp-tests (Files): Likewise.
56823         * modules/frexpl-nolibm-tests (Files): Likewise.
56824         * modules/frexpl-tests (Files): Likewise.
56825         * modules/fseek-tests (Files): Likewise.
56826         * modules/fseeko-tests (Files): Likewise.
56827         * modules/fsync-tests (Files): Likewise.
56828         * modules/ftell-tests (Files): Likewise.
56829         * modules/ftello-tests (Files): Likewise.
56830         * modules/futimens-tests (Files): Likewise.
56831         * modules/getaddrinfo-tests (Files): Likewise.
56832         * modules/getcwd-tests (Files): Likewise.
56833         * modules/getdelim-tests (Files): Likewise.
56834         * modules/getdtablesize-tests (Files): Likewise.
56835         * modules/getgroups-tests (Files): Likewise.
56836         * modules/gethostname-tests (Files): Likewise.
56837         * modules/getline-tests (Files): Likewise.
56838         * modules/getopt-posix-tests (Files): Likewise.
56839         * modules/gettimeofday-tests (Files): Likewise.
56840         * modules/glob-tests (Files): Likewise.
56841         * modules/iconv-tests (Files): Likewise.
56842         * modules/inet_ntop-tests (Files): Likewise.
56843         * modules/inet_pton-tests (Files): Likewise.
56844         * modules/isblank-tests (Files): Likewise.
56845         * modules/lchown-tests (Files): Likewise.
56846         * modules/ldexpl-tests (Files): Likewise.
56847         * modules/link-tests (Files): Likewise.
56848         * modules/linkat-tests (Files): Likewise.
56849         * modules/lseek-tests (Files): Likewise.
56850         * modules/lstat-tests (Files): Likewise.
56851         * modules/mbrtowc-tests (Files): Likewise.
56852         * modules/mbsinit-tests (Files): Likewise.
56853         * modules/mbsnrtowcs-tests (Files): Likewise.
56854         * modules/mbsrtowcs-tests (Files): Likewise.
56855         * modules/memchr-tests (Files): Likewise.
56856         * modules/memcmp-tests (Files): Likewise.
56857         * modules/memmem-tests (Files): Likewise.
56858         * modules/memrchr-tests (Files): Likewise.
56859         * modules/mkdir-tests (Files): Likewise.
56860         * modules/mkfifo-tests (Files): Likewise.
56861         * modules/mkfifoat-tests (Files): Likewise.
56862         * modules/mknod-tests (Files): Likewise.
56863         * modules/nanosleep-tests (Files): Likewise.
56864         * modules/nl_langinfo-tests (Files): Likewise.
56865         * modules/obstack-printf-tests (Files): Likewise.
56866         * modules/open-tests (Files): Likewise.
56867         * modules/openat-tests (Files): Likewise.
56868         * modules/perror-tests (Files): Likewise.
56869         * modules/pipe2-tests (Files): Likewise.
56870         * modules/poll-tests (Files): Likewise.
56871         * modules/popen-tests (Files): Likewise.
56872         * modules/posix_spawn-tests (Files): Likewise.
56873         * modules/posix_spawnp-tests (Files): Likewise.
56874         * modules/pread-tests (Files): Likewise.
56875         * modules/printf-posix-tests (Files): Likewise.
56876         * modules/pty-tests (Files): Likewise.
56877         * modules/random_r-tests (Files): Likewise.
56878         * modules/rawmemchr-tests (Files): Likewise.
56879         * modules/readlink-tests (Files): Likewise.
56880         * modules/remove-tests (Files): Likewise.
56881         * modules/rename-tests (Files): Likewise.
56882         * modules/renameat-tests (Files): Likewise.
56883         * modules/rmdir-tests (Files): Likewise.
56884         * modules/round-tests (Files): Likewise.
56885         * modules/roundf-tests (Files): Likewise.
56886         * modules/roundl-tests (Files): Likewise.
56887         * modules/select-tests (Files): Likewise.
56888         * modules/setenv-tests (Files): Likewise.
56889         * modules/sigaction-tests (Files): Likewise.
56890         * modules/sleep-tests (Files): Likewise.
56891         * modules/snprintf-posix-tests (Files): Likewise.
56892         * modules/snprintf-tests (Files): Likewise.
56893         * modules/sprintf-posix-tests (Files): Likewise.
56894         * modules/stat-tests (Files): Likewise.
56895         * modules/strcasestr-tests (Files): Likewise.
56896         * modules/strchrnul-tests (Files): Likewise.
56897         * modules/strerror-tests (Files): Likewise.
56898         * modules/strsignal-tests (Files): Likewise.
56899         * modules/strstr-tests (Files): Likewise.
56900         * modules/strtod-tests (Files): Likewise.
56901         * modules/strverscmp-tests (Files): Likewise.
56902         * modules/symlink-tests (Files): Likewise.
56903         * modules/symlinkat-tests (Files): Likewise.
56904         * modules/times-tests (Files): Likewise.
56905         * modules/trunc-tests (Files): Likewise.
56906         * modules/truncf-tests (Files): Likewise.
56907         * modules/truncl-tests (Files): Likewise.
56908         * modules/tsearch-tests (Files): Likewise.
56909         * modules/uname-tests (Files): Likewise.
56910         * modules/unlink-tests (Files): Likewise.
56911         * modules/unsetenv-tests (Files): Likewise.
56912         * modules/usleep-tests (Files): Likewise.
56913         * modules/utimensat-tests (Files): Likewise.
56914         * modules/vasprintf-tests (Files): Likewise.
56915         * modules/vdprintf-posix-tests (Files): Likewise.
56916         * modules/vfprintf-posix-tests (Files): Likewise.
56917         * modules/vprintf-posix-tests (Files): Likewise.
56918         * modules/vsnprintf-posix-tests (Files): Likewise.
56919         * modules/vsnprintf-tests (Files): Likewise.
56920         * modules/vsprintf-posix-tests (Files): Likewise.
56921         * modules/wcrtomb-tests (Files): Likewise.
56922         * modules/wcsnrtombs-tests (Files): Likewise.
56923         * modules/wcsrtombs-tests (Files): Likewise.
56924         * modules/wcwidth-tests (Files): Likewise.
56925         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
56926         * tests/test-isinf.c (isinf): Likewise.
56927         * tests/test-isnan.c (isnan): Likewise.
56928         * tests/test-signbit.c (signbit): Likewise.
56929         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
56930         declaration, either as macro or with correct signature.
56931         (select): Ensure function under test is declared with correct
56932         signature in correct header.
56933         * tests/test-atexit.c (atexit): Likewise.
56934         * tests/test-btowc.c (btowc): Likewise.
56935         * tests/test-canonicalize-lgpl.c (realpath)
56936         (canonicalize_file_name): Likewise.
56937         * tests/test-ceilf1.c (ceilf): Likewise.
56938         * tests/test-ceill.c (ceill): Likewise.
56939         * tests/test-chown.c (chown): Likewise.
56940         * tests/test-dprintf-posix.c (dprintf): Likewise.
56941         * tests/test-dup2.c (dup2): Likewise.
56942         * tests/test-dup3.c (dup3): Likewise.
56943         * tests/test-duplocale.c (duplocale): Likewise.
56944         * tests/test-fchdir.c (fchdir): Likewise.
56945         * tests/test-fchownat.c (fchownat): Likewise.
56946         * tests/test-fcntl.c (fcntl): Likewise.
56947         * tests/test-fdopendir.c (fdopendir): Likewise.
56948         * tests/test-fflush.c (fflush): Likewise.
56949         * tests/test-flock.c (flock): Likewise.
56950         * tests/test-floorf1.c (floorf): Likewise.
56951         * tests/test-floorl.c (floorl): Likewise.
56952         * tests/test-fnmatch.c (fnmatch): Likewise.
56953         * tests/test-fopen.c (fopen): Likewise.
56954         * tests/test-fprintf-posix.c (fprintf): Likewise.
56955         * tests/test-freopen.c (freopen): Likewise.
56956         * tests/test-frexp.c (frexp): Likewise.
56957         * tests/test-frexpl.c (frexpl): Likewise.
56958         * tests/test-fseek.c (fseek): Likewise.
56959         * tests/test-fseeko.c (fseeko): Likewise.
56960         * tests/test-fstatat.c (fstatat): Likewise.
56961         * tests/test-fsync.c (fsync): Likewise.
56962         * tests/test-ftell.c (ftell): Likewise.
56963         * tests/test-ftello.c (ftello): Likewise.
56964         * tests/test-futimens.c (futimens): Likewise.
56965         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
56966         (gai_strerror): Likewise.
56967         * tests/test-getcwd.c (getcwd): Likewise.
56968         * tests/test-getdelim.c (getdelim): Likewise.
56969         * tests/test-getdtablesize.c (getdtablesize): Likewise.
56970         * tests/test-getgroups.c (getgroups): Likewise.
56971         * tests/test-gethostname.c (gethostname): Likewise.
56972         * tests/test-getline.c (getline): Likewise.
56973         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
56974         Likewise.
56975         * tests/test-gettimeofday.c (gettimeofday): Likewise.
56976         * tests/test-glob.c (glob, globfree): Likewise.
56977         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
56978         * tests/test-inet_ntop.c (inet_ntop): Likewise.
56979         * tests/test-inet_pton.c (inet_pton): Likewise.
56980         * tests/test-isblank.c (isblank): Likewise.
56981         * tests/test-lchown.c (lchown): Likewise.
56982         * tests/test-ldexpl.c (ldexpl): Likewise.
56983         * tests/test-link.c (link): Likewise.
56984         * tests/test-linkat.c (linkat): Likewise.
56985         * tests/test-lseek.c (lseek): Likewise.
56986         * tests/test-lstat.c (lstat): Likewise.
56987         * tests/test-mbrtowc.c (mbrtowc): Likewise.
56988         * tests/test-mbsinit.c (mbsinit): Likewise.
56989         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
56990         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
56991         * tests/test-memchr.c (memchr): Likewise.
56992         * tests/test-memcmp.c (memcmp): Likewise.
56993         * tests/test-memmem.c (memmem): Likewise.
56994         * tests/test-memrchr.c (memrchr): Likewise.
56995         * tests/test-mkdir.c (mkdir): Likewise.
56996         * tests/test-mkdirat.c (mkdirat): Likewise.
56997         * tests/test-mkfifo.c (mkfifo): Likewise.
56998         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
56999         * tests/test-mknod.c (mknod): Likewise.
57000         * tests/test-nanosleep.c (nanosleep): Likewise.
57001         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
57002         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
57003         Likewise.
57004         * tests/test-open.c (open): Likewise.
57005         * tests/test-openat.c (openat): Likewise.
57006         * tests/test-perror.c (perror): Likewise.
57007         * tests/test-pipe2.c (pipe2): Likewise.
57008         * tests/test-poll.c (poll): Likewise.
57009         * tests/test-popen.c (popen, pclose): Likewise.
57010         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
57011         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
57012         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
57013         (posix_spawn_file_actions_destroy)
57014         (posix_spawn_file_actions_addclose)
57015         (posix_spawn_file_actions_addopen)
57016         (posix_spawn_file_actions_adddup2): Likewise.
57017         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
57018         * tests/test-pread.c (pread): Likewise.
57019         * tests/test-printf-posix.c (printf): Likewise.
57020         * tests/test-pty.c (openpty, forkpty): Likewise.
57021         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
57022         (random_r): Likewise.
57023         * tests/test-rawmemchr.c (rawmemchr): Likewise.
57024         * tests/test-readlink.c (readlink): Likewise.
57025         * tests/test-remove.c (remove): Likewise.
57026         * tests/test-rename.c (rename): Likewise.
57027         * tests/test-renameat.c (renameat): Likewise.
57028         * tests/test-rmdir.c (rmdir): Likewise.
57029         * tests/test-round1.c (round): Likewise.
57030         * tests/test-roundf1.c (roundf): Likewise.
57031         * tests/test-roundl.c (roundl): Likewise.
57032         * tests/test-setenv.c (setenv): Likewise.
57033         * tests/test-sigaction.c (sigaction): Likewise.
57034         * tests/test-sleep.c (sleep): Likewise.
57035         * tests/test-snprintf.c (snprintf): Likewise.
57036         * tests/test-sprintf-posix.c (sprintf): Likewise.
57037         * tests/test-stat.c (stat): Likewise.
57038         * tests/test-stpncpy.c (stpncpy): Likewise.
57039         * tests/test-strcasestr.c (strcasestr): Likewise.
57040         * tests/test-strchrnul.c (strchrnul): Likewise.
57041         * tests/test-strerror.c (strerror): Likewise.
57042         * tests/test-strsignal.c (strsignal): Likewise.
57043         * tests/test-strstr.c (strstr): Likewise.
57044         * tests/test-strtod.c (strtod): Likewise.
57045         * tests/test-strverscmp.c (strverscmp): Likewise.
57046         * tests/test-symlink.c (symlink): Likewise.
57047         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
57048         * tests/test-times.c (times): Likewise.
57049         * tests/test-trunc1.c (trunc): Likewise.
57050         * tests/test-truncf1.c (truncf): Likewise.
57051         * tests/test-truncl.c (truncl): Likewise.
57052         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
57053         Likewise.
57054         * tests/test-uname.c (uname): Likewise.
57055         * tests/test-unlink.c (unlink): Likewise.
57056         * tests/test-unlinkat.c (unlinkat): Likewise.
57057         * tests/test-unsetenv.c (unsetenv): Likewise.
57058         * tests/test-usleep.c (usleep): Likewise.
57059         * tests/test-utimensat.c (utimensat): Likewise.
57060         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
57061         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
57062         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
57063         * tests/test-vprintf-posix.c (vprintf): Likewise.
57064         * tests/test-vsnprintf.c (vsnprintf): Likewise.
57065         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
57066         * tests/test-wcrtomb.c (wcrtomb): Likewise.
57067         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
57068         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
57069         * tests/test-wcwidth.c (wcwidth): Likewise.
57071         build: pull in conditional headers during GNULIB_POSIXCHECK
57072         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
57073         definitions from any conditionally-included headers.
57074         * lib/stdlib.in.h (includes): Likewise.
57075         * lib/unistd.in.h (includes): Likewise.
57077 2009-12-24  Bruno Haible  <bruno@clisp.org>
57079         * tests/test-argv-iter.c: Include header file being tested immediately
57080         after config.h.
57081         * tests/test-base64.c: Likewise.
57082         * tests/test-flock.c: Likewise.
57083         * tests/test-fsync.c: Likewise.
57084         * tests/test-getdate.c: Likewise.
57085         * tests/test-getndelim2.c: Likewise.
57086         * tests/test-isfinite.c: Likewise.
57087         * tests/test-isinf.c: Likewise.
57088         * tests/test-strerror.c: Likewise.
57089         * tests/test-strsignal.c: Likewise.
57091 2009-12-23  Eric Blake  <ebb9@byu.net>
57093         unistd: work around cygwin bug
57094         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
57095         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
57096         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
57098 2009-12-23  Bruno Haible  <bruno@clisp.org>
57100         localename: More tests.
57101         * tests/test-localename.c (SIZEOF): New macro.
57102         (categories): New variable.
57103         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
57104         test_locale_name_default): Add test w.r.t. thread locale.
57105         (test_locale_name_thread): New function.
57106         (main): Invoke it.
57108         localename: Make aware of thread locale.
57109         * lib/localename.h (gl_locale_name_thread): New declaration.
57110         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
57111         behaviour with respect to thread locale.
57112         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
57113         <langinfo.h>, glthread/lock.h.
57114         (SIZE_BITS): New macro.
57115         (string_hash): New function.
57116         (struct hash_node): New type.
57117         (HASH_TABLE_SIZE): New macro.
57118         (struniq_hash_table, struniq_lock): New variables.
57119         (struniq): New function.
57120         (gl_locale_name_thread): New function.
57121         (gl_locale_name): Invoke it.
57122         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
57123         * modules/localename (Depends-on): Add lock.
57124         Reported by Mike Gran <spk121@yahoo.com>.
57126 2009-12-23  Eric Blake  <ebb9@byu.net>
57128         va-args: new module
57129         * modules/va-args: New file.
57130         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
57131         * MODULES.html.sh (Core language properties): Mention it.
57133         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
57134         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
57135         named alias for __attribute__((__unused__)).
57136         * lib/chown.c: Update client.
57137         * lib/fchmodat.c: Likewise.
57138         * lib/fts.c: Likewise.
57139         * lib/getdate.y: Likewise.
57140         * lib/getgroups.c: Likewise.
57141         * lib/getopt.c: Likewise.
57142         * lib/getugroups.c: Likewise.
57143         * lib/mkdir.c: Likewise.
57144         * lib/mkfifo.c: Likewise.
57145         * lib/mkfifoat.c: Likewise.
57146         * lib/mknod.c: Likewise.
57147         * lib/mknodat.c: Likewise.
57148         * lib/readlink.c: Likewise.
57149         * lib/se-context.in.h: Likewise.
57150         * lib/se-selinux.in.h: Likewise.
57151         * lib/sockets.c: Likewise.
57152         * lib/symlink.c: Likewise.
57153         * lib/symlinkat.c: Likewise.
57154         * lib/unicodeio.c: Likewise.
57155         * lib/unistr.h: Likewise.
57156         * tests/test-areadlink.c: Likewise.
57157         * tests/test-areadlinkat.c: Likewise.
57158         * tests/test-filenamecat.c: Likewise.
57159         * tests/test-fseeko.c: Likewise.
57160         * tests/test-ftello.c: Likewise.
57161         * tests/test-getdate.c: Likewise.
57162         * tests/test-getgroups.c: Likewise.
57163         * tests/test-gethostname.c: Likewise.
57164         * tests/test-quotearg.c: Likewise.
57165         * tests/test-version-etc.c: Likewise.
57166         * tests/test-xalloc-die.c: Likewise.
57167         * tests/test-xfprintf-posix.c: Likewise.
57168         * tests/test-xprintf-posix.c: Likewise.
57169         * tests/test-xvasprintf.c: Likewise.
57171         tests: avoid compiler warnings
57172         * tests/test-fcntl.c (main): Delete unused parameters.
57173         * tests/test-freopen-safer.c (main): Likewise.
57174         * tests/test-xalloc-die.c (main): Mark unused parameters.
57175         * tests/test-fseeko.c (main): Likewise.
57176         * tests/test-ftello.c (main): Likewise.
57177         * tests/test-nanosleep.c (main): Avoid declaration warning.
57178         * tests/test-sleep.c (main): Likewise.
57179         * tests/test-unsetenv.c (main): Silence warning about string
57180         literal.
57181         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
57183 2009-12-23  Bruno Haible  <bruno@clisp.org>
57185         * tests/test-localename.c (test_locale_name): New function, extracted
57186         from main. Also test mixed situations.
57187         (test_locale_name_posix, test_locale_name_environ,
57188         test_locale_name_default): New functions.
57189         (main): Invoke them all.
57190         * modules/localename-tests (configure.ac): Test for newlocale.
57192 2009-12-23  Bruno Haible  <bruno@clisp.org>
57194         unistd: Ensure getcwd gets declared before being overridden.
57195         * lib/unistd.in.h: Conditionally include <io.h>.
57197 2009-12-22  Bruno Haible  <bruno@clisp.org>
57199         wchar: Diagnose broken combination of glibc and gcc versions and flags.
57200         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
57201         (gl_WCHAR_H): Invoke it.
57202         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
57203         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
57204         Reported by Karl Berry <karl@freefriends.org>.
57206 2009-12-22  Eric Blake  <ebb9@byu.net>
57208         math, unistd: avoid redundant includes
57209         * lib/math.in.h (isnan): No need to re-include <math.h>.
57210         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
57212         getsubopt: work around cygwin bug
57213         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
57214         avoid conflicting with system getsubopt.
57215         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
57216         bug.
57218         getopt: synchronize from glibc
57219         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
57220         parameter order.  Adjust all callers.
57221         (_getopt_internal_r, main): Adjust quoting in error messages.
57222         Drop considerations for outdated POSIX 1003.2 error message.
57223         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
57224         callers.
57225         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
57227         test-getopt: test stderr behavior
57228         * modules/getopt-posix-tests (Depends-on): Add dup2.
57229         * tests/test-getopt.c (ASSERT): Avoid stderr.
57230         (main): Move stderr to a temporary file.
57231         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
57232         Instead, add parameter to inform caller if output occurred.
57233         (test_getopt): Adjust all existing tests to expect silence, and
57234         add new tests of leading ":".
57235         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
57236         glibc shortcomings with leading "-:" or "+:" in optstring.
57237         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
57238         Likewise.
57239         * doc/posix-functions/getopt.texi (getopt): Likewise.
57241         test-getopt: enhance test
57242         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
57243         supports optind=0.
57244         * tests/test-getopt.c (OPTIND_MIN): Move...
57245         * tests/test-getopt.h (OPTIND_MIN): ...here.
57246         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
57247         Require that optind=0 works, since modern BSD supports it in
57248         addition to optreset, and since coreutils expects it.
57249         (test_getopt_long_only): New test.
57250         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
57251         glibc shortcomings with 'W;', and enforcement of optind=0.
57252         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
57253         Likewise.
57255 2009-12-21  Bruno Haible  <bruno@clisp.org>
57257         localename: Improvements for MacOS X and Cygwin.
57258         * lib/localename.h (gl_locale_name_environ): New declaration.
57259         * lib/localename.c (gl_locale_name_environ): New function, extracted from
57260         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
57261         (gl_locale_name_posix): Invoke it.
57262         (gl_locale_name_default): Add comments. Use Windows native API also on
57263         Cygwin.
57265 2009-12-21  Bruno Haible  <bruno@clisp.org>
57267         Update list of Win32 locale ids.
57268         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
57269         (LANG_SAMI): Renamed from LANG_SAAMI.
57270         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
57271         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
57272         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
57273         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
57274         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
57275         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
57276         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
57277         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
57278         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
57279         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
57280         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
57281         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
57282         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
57283         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
57284         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
57285         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
57286         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
57287         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
57288         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
57289         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
57290         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
57291         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
57292         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
57293         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
57294         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
57295         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
57296         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
57297         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
57298         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
57299         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
57300         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
57301         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
57302         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
57303         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
57304         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
57305         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
57306         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
57307         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
57308         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
57309         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
57310         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
57311         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
57312         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
57313         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
57314         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
57315         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
57316         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
57317         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
57318         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
57319         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
57320         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
57321         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
57322         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
57323         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
57324         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
57325         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
57326         Add more languages and countries for Sami, Sorbian. Add more countries
57327         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
57328         for Pashto. Change country for Syriac, Tswana.
57330 2009-12-21  Eric Blake  <ebb9@byu.net>
57332         test-utimens: avoid spurious failure
57333         * tests/test-chown.h (nap): Factor...
57334         * tests/nap.h: ...into new file.
57335         * tests/test-lchown.h (nap): Avoid duplication.
57336         * tests/test-utimens-common.h (nap): Use shared implementation,
57337         necessary on file systems with 1-second resolution.
57338         * modules/chown-tests (Files): Include new file.
57339         * modules/fdutimensat-tests (Files): Likewise.
57340         * modules/futimens-tests (Files): Likewise.
57341         * modules/lchown-tests (Files): Likewise.
57342         * modules/openat-tests (Files): Likewise.
57343         * modules/utimens-tests (Files): Likewise.
57344         * modules/utimensat-tests (Files): Likewise.
57346 2009-12-19  Eric Blake  <ebb9@byu.net>
57348         futimens, utimensat: work around Linux bug
57349         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
57350         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
57351         * lib/utimensat.c (rpl_utimensat): Work around it.
57352         * lib/futimens.c (rpl_futimens): Adjust comment.
57354         utimens: work around Linux ctime bug
57355         * lib/utimens.c (detect_ctime_bug): New helper function.
57356         (update_timespec): Differentiate between workaround needed for
57357         this bug vs. what is needed for systems that lack utimensat.
57358         (fdutimens, lutimens): Work around bug.
57360         utimens: check for ctime update
57361         * tests/test-utimens-common.h (check_ctime): Define.
57362         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
57363         * tests/test-futimens.h (test_futimens): Likewise.
57364         * tests/test-lutimens.h (test_lutimens): Likewise.
57365         * doc/posix-functions/futimens.texi (futimens): Document the bug.
57366         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
57368 2009-12-19  Bruno Haible  <bruno@clisp.org>
57370         dprintf-posix: Check against memory leak fixed on 2009-12-15.
57371         * tests/test-dprintf-posix2.sh: New file.
57372         * tests/test-dprintf-posix2.c: New file.
57373         * modules/dprintf-posix-tests (Files): Add them.
57374         (configure.ac): Check for getrlimit and setrlimit.
57375         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
57377 2009-12-19  Bruno Haible  <bruno@clisp.org>
57379         fprintf-posix: Check against memory leak fixed on 2009-12-15.
57380         * tests/test-fprintf-posix3.sh: New file.
57381         * tests/test-fprintf-posix3.c: New file.
57382         * modules/fprintf-posix-tests (Files): Add them.
57383         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
57385 2009-12-19  Eric Blake  <ebb9@byu.net>
57387         dirfd: fix prototype
57388         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
57389         * lib/dirfd.c (dirfd): Likewise.
57391         canonicalize: reduce memory usage
57392         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
57393         allocation to size.
57394         Reported by Solar Designer <solar@openwall.com>.
57396 2009-12-19  Bruno Haible  <bruno@clisp.org>
57398         New module attribute 'Applicability'.
57399         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
57400         * gnulib-tool: New option --extract-applicability.
57401         (func_usage): Document it.
57402         (sed_extract_prog): Recognize it.
57403         (func_get_applicability): New function.
57404         (func_import): Generalize handling of 'link-warning' module.
57405         * modules/link-warning (Applicability): New section.
57406         * modules/arg-nonnull (Applicability): New section.
57407         Repoted by Simon Josefsson <simon@josefsson.org>.
57409 2009-12-19  Bruno Haible  <bruno@clisp.org>
57411         fflush: tweak
57412         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
57413         * lib/fseeko.c (rpl_fseeko): Likewise.
57415 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
57417         * lib/gl_list.h: Fix typo in comment.
57419 2009-12-16  Eric Blake  <ebb9@byu.net>
57421         fcntl: use to simplify other modules
57422         * modules/cloexec (Depends-on): Add fcntl.
57423         * modules/fchdir (Depends-on): Likewise.
57424         * modules/fd-safer-flag (Depends-on): Likewise.
57425         * modules/unistd-safer (Depends-on): Likewise.
57426         * modules/dup3 (configure.ac): Set module indicator.
57427         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
57428         missing.
57429         * lib/fchdir.c (_gl_register_dup): Fix comment.
57430         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
57431         * lib/dup-safer.c (dup_safer): Likewise.
57432         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
57433         * lib/dup3.c (dup3): Likewise.
57434         * tests/test-fchdir.c (main): Enhance test.
57435         Fixes a dup_cloexec bug reported by Ondřej Vašík.
57437         fcntl: port portions of fcntl to mingw
57438         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
57439         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
57440         replacement for mingw.
57441         * modules/fcntl (Description): Update.
57442         (Depends-on): Add dup2.
57443         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
57444         * modules/fcntl-h (Makefile.am): Substitute it.
57445         * lib/fcntl.in.h (fcntl): Update declaration.
57446         (F_DUPFD, F_GETFD): New macros, when needed.
57447         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
57448         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
57449         * tests/test-fcntl.c (check_flags, main): Enhance test for items
57450         we now guarantee.
57452         fcntl: work around cygwin bug in F_DUPFD
57453         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
57454         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
57455         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
57456         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
57457         * doc/posix-functions/fcntl.texi (fcntl): Document it.
57459         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
57460         * modules/fcntl (Files): List new files.
57461         (configure.ac): Run a test.
57462         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
57463         * lib/fcntl.c (rpl_fcntl): Likewise.
57464         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
57465         (gl_FCNTL_H): Always replace fcntl.h.
57466         * modules/fcntl-h (Makefile.am): Substitute witnesses.
57467         * lib/fcntl.in.h (fcntl): Declare replacement.
57468         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
57469         needed, plus a witness.
57470         * doc/posix-functions/fcntl.texi (fcntl): Document this.
57471         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
57472         * tests/test-fcntl.c: New file.
57473         * modules/fcntl-tests: Likewise.
57475         binary-io: avoid potential compilation warning
57476         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
57477         directives.
57479         fflush: avoid compilation error on NetBSD
57480         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
57481         between off_t and fpos_t, since the latter is sometimes a struct.
57482         * lib/fseeko.c (rpl_fseeko): Likewise.
57483         Reported by Alexander Nasonov <alnsn@yandex.ru>.
57485 2009-12-15  Eric Blake  <ebb9@byu.net>
57487         fcntl-h, stdio, sys_ioctl: fix declarations
57488         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
57489         function must not take arguments.
57490         * lib/sys_ioctl.in.h (ioctl): Likewise.
57491         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
57492         (open): Add a link warning.
57494 2009-12-15  Jim Meyering  <meyering@redhat.com>
57496         areadlink, areadlink-with-size: relax license to LGPLv2+
57497         * modules/areadlink (License): Relax to LGPLv2+.
57498         * modules/areadlink-with-size (License): Likewise.
57500 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
57501             Bruno Haible  <bruno@clisp.org>
57503         *printf: Fix memory leak.
57504         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
57505         * lib/vfprintf.c (vfprintf): Likewise.
57506         * lib/dprintf.c (dprintf): Likewise.
57507         * lib/vdprintf.c (vdprintf): Likewise.
57509 2009-12-14  Eric Blake  <ebb9@byu.net>
57511         accept4: adjust module dependencies
57512         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
57514         utimens: one more try at avoiding compiler warning
57515         * lib/utimens.c (lutimens): Lower scope of result.
57517 2009-12-13  Bruno Haible  <bruno@clisp.org>
57519         Move the malloc checking from module 'list' to new module 'xlist'.
57520         * modules/xlist: New file.
57521         * lib/gl_xlist.h: New file.
57522         * lib/gl_xlist.c: New file.
57523         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
57524         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
57525         gl_list_add_last, gl_list_add_before, gl_list_add_after,
57526         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
57527         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
57528         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
57529         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
57530         gl_sortedlist_nx_add): New declarations.
57531         (struct gl_list_implementation): Rename and change methods accordingly.
57532         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
57533         (gl_list_nx_create): Renamed from gl_list_create.
57534         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
57535         (gl_list_nx_set_at): Renamed from gl_list_set_at.
57536         (gl_list_nx_add_first): Renamed from gl_list_add_first.
57537         (gl_list_nx_add_last): Renamed from gl_list_add_last.
57538         (gl_list_nx_add_before): Renamed from gl_list_add_before.
57539         (gl_list_nx_add_after): Renamed from gl_list_add_after.
57540         (gl_list_nx_add_at): Renamed from gl_list_add_at.
57541         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
57542         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
57543         gl_list_create_empty.
57544         (gl_list_nx_create): Renamed from gl_list_create.
57545         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
57546         (gl_list_nx_set_at): Renamed from gl_list_set_at.
57547         (gl_list_nx_add_first): Renamed from gl_list_add_first.
57548         (gl_list_nx_add_last): Renamed from gl_list_add_last.
57549         (gl_list_nx_add_before): Renamed from gl_list_add_before.
57550         (gl_list_nx_add_after): Renamed from gl_list_add_after.
57551         (gl_list_nx_add_at): Renamed from gl_list_add_at.
57552         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
57553         * lib/gl_array_list.c: Don't include xalloc.h.
57554         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
57555         NULL upon out-of-memory.
57556         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
57557         out-of-memory.
57558         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
57559         Change return type to 'int'.
57560         (gl_array_nx_set_at): Renamed from gl_array_set_at.
57561         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
57562         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
57563         upon out-of-memory.
57564         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
57565         upon out-of-memory.
57566         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
57567         upon out-of-memory.
57568         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
57569         upon out-of-memory.
57570         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
57571         out-of-memory.
57572         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
57573         Update.
57574         (gl_array_list_implementation): Update.
57575         * lib/gl_carray_list.c: Don't include xalloc.h.
57576         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
57577         Return NULL upon out-of-memory.
57578         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
57579         out-of-memory.
57580         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
57581         Change return type to 'int'.
57582         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
57583         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
57584         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
57585         upon out-of-memory.
57586         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
57587         upon out-of-memory.
57588         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
57589         out-of-memory.
57590         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
57591         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
57592         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
57593         Update.
57594         (gl_carray_list_implementation): Update.
57595         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
57596         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
57597         gl_linked_create_empty. Return NULL upon out-of-memory.
57598         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
57599         out-of-memory.
57600         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
57601         Change return type to 'int'. Return -1 upon out-of-memory.
57602         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
57603         out-of-memory.
57604         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
57605         upon out-of-memory.
57606         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
57607         upon out-of-memory.
57608         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
57609         NULL upon out-of-memory.
57610         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
57611         upon out-of-memory.
57612         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
57613         out-of-memory.
57614         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
57615         Update.
57616         * lib/gl_linked_list.c: Don't include xalloc.h.
57617         (gl_linked_list_implementation): Update.
57618         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
57619         (add_to_bucket): Change return type to 'int'.
57620         (gl_linkedhash_list_implementation): Update.
57621         * lib/gl_anytree_list1.h (free_subtree): New function.
57622         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
57623         gl_tree_create_empty. Return NULL upon out-of-memory.
57624         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
57625         Change return type to 'int'. Return -1 upon out-of-memory.
57626         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
57627         out-of-memory.
57628         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
57629         (gl_tree_remove_node): New function, moved here from
57630         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
57631         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
57632         Update.
57633         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
57634         malloc, not xmalloc. Return NULL upon out-of-memory.
57635         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
57636         out-of-memory.
57637         (gl_tree_remove_node_from_tree): New function, extracted from
57638         gl_tree_remove_node.
57639         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
57640         upon out-of-memory.
57641         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
57642         out-of-memory.
57643         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
57644         upon out-of-memory.
57645         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
57646         upon out-of-memory.
57647         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
57648         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
57649         not xmalloc. Return NULL upon out-of-memory.
57650         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
57651         out-of-memory.
57652         (gl_tree_remove_node_from_tree): New function, extracted from
57653         gl_tree_remove_node.
57654         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
57655         upon out-of-memory.
57656         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
57657         out-of-memory.
57658         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
57659         upon out-of-memory.
57660         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
57661         upon out-of-memory.
57662         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
57663         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
57664         gl_anytree_list1.h before gl_anyavltree_list2.h.
57665         (gl_avltree_list_implementation): Update.
57666         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
57667         gl_anytree_list1.h before gl_anyavltree_list2.h.
57668         (gl_rbtree_list_implementation): Update.
57669         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
57670         Change return type to 'int'. Return -1 upon out-of-memory. Use
57671         __builtin_expect.
57672         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
57673         (gl_avltreehash_list_implementation): Update.
57674         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
57675         (gl_rbtreehash_list_implementation): Update.
57676         * modules/array-list (Depends-on): Remove xalloc.
57677         * modules/carray-list (Depends-on): Likewise.
57678         * modules/linked-list (Depends-on): Likewise.
57679         * modules/linkedhash-list (Depends-on): Likewise.
57680         * modules/avltree-list (Depends-on): Likewise.
57681         * modules/rbtree-list (Depends-on): Likewise.
57682         * modules/avltreehash-list (Depends-on): Likewise.
57683         * modules/rbtreehash-list (Depends-on): Likewise.
57685         * modules/xsublist: New file.
57686         * lib/gl_xsublist.h: New file.
57687         * lib/gl_xsublist.c: New file.
57688         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
57689         (gl_sublist_nx_create): New declaration.
57690         * lib/gl_sublist.c: Don't include xalloc.h.
57691         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
57692         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
57693         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
57694         Change return type to 'int'. Return -1 upon out-of-memory.
57695         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
57696         upon out-of-memory.
57697         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
57698         NULL upon out-of-memory.
57699         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
57700         upon out-of-memory.
57701         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
57702         NULL upon out-of-memory.
57703         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
57704         NULL upon out-of-memory.
57705         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
57706         upon out-of-memory.
57707         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
57708         (gl_sublist_list_implementation): Update.
57709         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
57710         upon out-of-memory.
57711         * modules/sublist (Depends-on): Remove xalloc.
57713         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
57714         * tests/test-carray_list.c: Likewise.
57715         * tests/test-linked_list.c: Likewise.
57716         * tests/test-linkedhash_list.c: Likewise.
57717         * tests/test-avltree_list.c: Likewise.
57718         * tests/test-rbtree_list.c: Likewise.
57719         * tests/test-avltreehash_list.c: Likewise.
57720         * tests/test-rbtreehash_list.c: Likewise.
57721         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
57722         * modules/carray-list-tests (Makefile.am): Likewise.
57723         * modules/linked-list-tests (Makefile.am): Likewise.
57724         * modules/linkedhash-list-tests (Makefile.am): Likewise.
57725         * modules/avltree-list-tests (Makefile.am): Likewise.
57726         * modules/rbtree-list-tests (Makefile.am): Likewise.
57727         * modules/avltreehash-list-tests (Makefile.am): Likewise.
57728         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
57730         * NEWS: Mention the changes.
57732         * lib/clean-temp.c: Include gl_xlist.h.
57733         * modules/clean-temp (Depends-on): Add xlist.
57735         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
57736         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
57738         * tests/test-array_oset.c: Include gl_xlist.h.
57739         * modules/array-oset-tests (Depends-on): Add xlist.
57741         Reported by José E. Marchesi <jemarch@gnu.org>.
57743 2009-12-13  Bruno Haible  <bruno@clisp.org>
57745         Move the malloc checking from module 'oset' to new module 'xoset'.
57746         * modules/xoset: New file.
57747         * lib/gl_xoset.h: New file.
57748         * lib/gl_xoset.c: New file.
57749         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
57750         declarations.
57751         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
57752         (struct gl_oset_implementation): Rename and change methods accordingly.
57753         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
57754         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
57755         'int'. Mark as __warn_unused_result__.
57756         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
57757         gl_oset_create_empty.
57758         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
57759         'int'.
57760         * lib/gl_array_oset.c: Don't include xalloc.h.
57761         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
57762         malloc, not xmalloc.
57763         (grow): Change return type to 'int'. Don't call xalloc_die.
57764         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
57765         to 'int'.
57766         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
57767         'int'.
57768         (gl_array_oset_implementation): Update.
57769         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
57770         gl_tree_create_empty.
57771         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
57772         'int'.
57773         * lib/gl_avltree_oset.c: Don't include xalloc.h.
57774         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
57775         xmalloc.
57776         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
57777         not xmalloc.
57778         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
57779         xmalloc.
57780         (gl_avltree_oset_implementation): Update.
57781         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
57782         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
57783         xmalloc.
57784         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
57785         not xmalloc.
57786         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
57787         xmalloc.
57788         (gl_rbtree_oset_implementation): Update.
57789         * modules/array-oset (Depends-on): Remove xalloc.
57790         * modules/avltree-oset (Depends-on): Likewise.
57791         * modules/rbtree-oset (Depends-on): Likewise.
57792         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
57793         * tests/test-avltree_oset.c: Likewise.
57794         * tests/test-rbtree_oset.c: Likewise.
57795         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57796         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
57797         * modules/rbtree-oset-tests (Makefile.am): Likewise.
57798         * NEWS: Mention the change.
57800 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
57802         maint.mk: allow a project to override release-prep commands
57803         * top/maint.mk (alpha, beta, stable): Move release-preparatory
57804         commands into a new rule.
57805         (release-prep): New rule.
57806         (release-prep-hook): New overridable variable.
57808 2009-12-13  Bruno Haible  <bruno@clisp.org>
57810         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
57812 2009-12-13  Jim Meyering  <meyering@redhat.com>
57814         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
57815         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
57817 2009-12-12  Bruno Haible  <bruno@clisp.org>
57819         duplocale: Tweak.
57820         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
57822 2009-12-12  Karl Berry  <karl@gnu.org>
57824         * config/srclist.txt (strtoll.c): tab changes, no more sync.
57826 2009-12-12  Bruno Haible  <bruno@clisp.org>
57828         * m4/po.m4: Undo incorrect untabification.
57830 2009-12-12  Bruno Haible  <bruno@clisp.org>
57832         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
57833         * modules/c-strtod (Depends-on): Add locale.
57834         * modules/c-strtold (Depends-on): Likewise.
57836 2009-12-12  Bruno Haible  <bruno@clisp.org>
57838         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
57840 2009-12-11  Eric Blake  <ebb9@byu.net>
57842         setenv: relax requirement in light of POSIX ruling
57843         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
57844         not NULL.
57845         * tests/test-setenv.c (main): Relax test.
57846         * tests/test-unsetenv.c (main): Likewise.
57847         * doc/posix-functions/setenv.texi (setenv): Document this.
57848         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
57850 2009-12-11  Bruno Haible  <bruno@clisp.org>
57852         New module 'fd-safer-flag'.
57853         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
57854         * lib/dup-safer.c (dup_safer_flag): Remove function.
57855         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
57856         * lib/fd-safer.c (fd_safer_flag): Remove function.
57857         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
57858         * modules/cloexec (configure.ac): Drop indicator macro.
57859         * modules/fd-safer-flag: New file.
57860         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
57861         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
57862         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
57864 2009-12-11  Bruno Haible  <bruno@clisp.org>
57866         Tests for module 'nl_langinfo'.
57867         * modules/nl_langinfo-tests: New file.
57868         * tests/test-nl_langinfo.sh: New file.
57869         * tests/test-nl_langinfo.c: New file.
57871         New module 'nl_langinfo'.
57872         * lib/nl_langinfo.c: New file.
57873         * m4/nl_langinfo.m4: New file.
57874         * modules/nl_langinfo: New file.
57875         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
57877 2009-12-11  Bruno Haible  <bruno@clisp.org>
57879         Tests for module 'langinfo'.
57880         * modules/langinfo-tests: New file.
57881         * tests/test-langinfo.c: New file.
57883         New module 'langinfo'.
57884         * lib/langinfo.in.h: New file.
57885         * m4/langinfo_h.m4: New file.
57886         * modules/langinfo: New file.
57887         * doc/posix-headers/langinfo.texi: Mention the new module.
57889 2009-12-11  Bruno Haible  <bruno@clisp.org>
57891         * lib/config.charset: Untabify.
57893 2009-12-11  Bruno Haible  <bruno@clisp.org>
57895         * modules/unistd-safer (configure.ac): Drop indicator macro.
57897 2009-12-11  Bruno Haible  <bruno@clisp.org>
57899         Move pipe2-safer code to its own file.
57900         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
57901         * lib/pipe-safer.c (pipe2_safer): Remove function.
57902         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
57903         (Makefile.am): Add it to lib_SOURCES.
57905 2009-12-10  Bruno Haible  <bruno@clisp.org>
57907         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
57909 2009-12-10  Bruno Haible  <bruno@clisp.org>
57911         Declare which arguments expect non-NULL values, for GCC and clang.
57912         * build-aux/arg-nonnull.h: New file.
57913         * modules/arg-nonnull: New file.
57914         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
57915         (inet_ntop, inet_pton): Use it.
57916         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
57917         (closedir, dirfd, opendir, scandir, alphasort): Use it.
57918         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
57919         (open, openat): Use it.
57920         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
57921         (fnmatch): Use it.
57922         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
57923         (getopt, getopt_long, getopt_long_only): Use it.
57924         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
57925         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
57926         Use it.
57927         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
57928         (iconv_open): Use it.
57929         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
57930         (strtoimax, strtoumax): Use it.
57931         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
57932         (duplocale): Use it.
57933         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
57934         (frexp, frexpl): Use it.
57935         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
57936         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
57937         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
57938         (tsearch, tfind, tdelete, twalk): Use it.
57939         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
57940         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
57941         sigpending): Use it.
57942         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
57943         (posix_spawn, posix_spawnp, posix_spawnattr_init,
57944         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
57945         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
57946         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
57947         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
57948         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
57949         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
57950         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
57951         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
57952         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
57953         Use it.
57954         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
57955         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
57956         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
57957         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
57958         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
57959         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
57960         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
57961         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
57962         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
57963         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
57964         strtoull, unsetenv): Use it.
57965         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
57966         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
57967         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
57968         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
57969         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
57970         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
57971         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
57972         (strcasecmp, strncasecmp): Use it.
57973         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
57974         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
57975         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
57976         rpl_setsockopt): Use it.
57977         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
57978         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
57979         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
57980         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
57981         (gettimeofday): Use it.
57982         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
57983         (times): Use it.
57984         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
57985         (uname): Use it.
57986         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
57987         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
57988         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
57989         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
57990         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
57991         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
57992         unlinkat, write): Use it.
57993         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
57994         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
57995         * lib/argv-iter.h: Include arg-nonnull.h.
57996         (_ATTRIBUTE_NONNULL_): Remove macro.
57997         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
57998         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
57999         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
58000         optimization.
58001         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
58002         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
58003         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
58004         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
58005         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
58006         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
58007         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
58008         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
58009         * modules/arpa_inet (Depends-on): Add arg-nonnull.
58010         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
58011         * modules/dirent (Depends-on): Add arg-nonnull.
58012         (Makefile.am): Insert arg-nonnull.h into dirent.h.
58013         * modules/fcntl-h (Depends-on): Add arg-nonnull.
58014         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
58015         * modules/fnmatch (Depends-on): Add arg-nonnull.
58016         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
58017         * modules/getopt-posix (Depends-on): Add arg-nonnull.
58018         (Makefile.am): Insert arg-nonnull.h into getopt.h.
58019         * modules/glob (Depends-on): Add arg-nonnull.
58020         (Makefile.am): Insert arg-nonnull.h into glob.h.
58021         * modules/iconv_open (Depends-on): Add arg-nonnull.
58022         (Makefile.am): Insert arg-nonnull.h into iconv.h.
58023         * modules/inttypes (Depends-on): Add arg-nonnull.
58024         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
58025         * modules/locale (Depends-on): Add arg-nonnull.
58026         (Makefile.am): Insert arg-nonnull.h into locale.h.
58027         * modules/math (Depends-on): Add arg-nonnull.
58028         (Makefile.am): Insert arg-nonnull.h into math.h.
58029         * modules/netdb (Depends-on): Add arg-nonnull.
58030         (Makefile.am): Insert arg-nonnull.h into netdb.h.
58031         * modules/search (Depends-on): Add arg-nonnull.
58032         (Makefile.am): Insert arg-nonnull.h into search.h.
58033         * modules/signal (Depends-on): Add arg-nonnull.
58034         (Makefile.am): Insert arg-nonnull.h into signal.h.
58035         * modules/spawn (Depends-on): Add arg-nonnull.
58036         (Makefile.am): Insert arg-nonnull.h into spawn.h.
58037         * modules/stdio (Depends-on): Add arg-nonnull.
58038         (Makefile.am): Insert arg-nonnull.h into stdio.h.
58039         * modules/stdlib (Depends-on): Add arg-nonnull.
58040         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
58041         * modules/string (Depends-on): Add arg-nonnull.
58042         (Makefile.am): Insert arg-nonnull.h into string.h.
58043         * modules/strings (Depends-on): Add arg-nonnull.
58044         (Makefile.am): Insert arg-nonnull.h into strings.h.
58045         * modules/sys_socket (Depends-on): Add arg-nonnull.
58046         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
58047         * modules/sys_stat (Depends-on): Add arg-nonnull.
58048         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
58049         * modules/sys_time (Depends-on): Add arg-nonnull.
58050         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
58051         * modules/sys_times (Depends-on): Add arg-nonnull.
58052         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
58053         * modules/sys_utsname (Depends-on): Add arg-nonnull.
58054         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
58055         * modules/time (Depends-on): Add arg-nonnull.
58056         (Makefile.am): Insert arg-nonnull.h into time.h.
58057         * modules/unistd (Depends-on): Add arg-nonnull.
58058         (Makefile.am): Insert arg-nonnull.h into unistd.h.
58059         * modules/wchar (Depends-on): Add arg-nonnull.
58060         (Makefile.am): Insert arg-nonnull.h into wchar.h.
58061         * modules/argv-iter (Depends-on): Add arg-nonnull.
58062         * tests/test-canonicalize.c (null_ptr): New function.
58063         (main): Use it.
58064         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
58065         (main): Use it.
58066         * tests/test-memmem.c (null_ptr): New function.
58067         (main): Use it.
58068         Reported by Jim Meyering.
58070 2009-12-10  Bruno Haible  <bruno@clisp.org>
58072         Use spaces for indentation, not tabs.
58073         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
58074         * m4/*.m4: Untabify.
58075         * build-aux/*.h: Untabify.
58076         * tests/**/*.[hc]: Untabify.
58077         * README: New section "Indent with spaces, not TABs", based on
58078         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
58079         * NEWS: Mention the change.
58081 2009-12-10  Bruno Haible  <bruno@clisp.org>
58083         pty test: Fix link error.
58084         * modules/pty-tests (Makefile.am): Add the default LDADD value to
58085         test_pty_LDADD.
58087 2009-12-07  Simon Josefsson  <simon@josefsson.org>
58089         * modules/pty: New file.
58090         * modules/pty-tests: New file.
58091         * m4/pty.m4: New file.
58092         * tests/test-pty.c: New file.
58093         * doc/glibc-headers/pty.texi: Modified.
58094         * doc/glibc-functions/forkpty.texi: Modified.
58095         * doc/glibc-functions/openpty.texi: Modified.
58097 2009-12-10  Bruno Haible  <bruno@clisp.org>
58099         Avoid syntax error in C++ mode.
58100         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
58102 2009-12-10  Bruno Haible  <bruno@clisp.org>
58104         Use sed with option -e.
58105         * gnulib-tool (func_version, func_emit_copyright_notice,
58106         func_emit_initmacro_end, func_import, func_create_testdir): Pass
58107         option -e to sed.
58108         * modules/link-warning (Makefile.am): Likewise.
58110 2009-12-10  Jim Meyering  <meyering@redhat.com>
58112         mgetgroups: do not write bytes beyond end of malloc'd buffer
58113         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
58114         username, we call getgroups with a one-element-shorter buffer,
58115         but still told it the length was original, max_n_groups.
58117 2009-12-09  Eric Blake  <ebb9@byu.net>
58119         cloexec: relax license
58120         * modules/cloexec (Maintainer): Add myself.
58121         (License): Use LGPL, not GPL.
58123         link-warning: optimize generation
58124         * modules/link-warning (Makefile.am): Reduce process usage.
58126 2009-12-09  Bruno Haible  <bruno@clisp.org>
58128         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
58129         workaround was added on 2009-11-17.
58131 2009-12-09  Jim Meyering  <meyering@redhat.com>
58132             Bruno Haible  <bruno@clisp.org>
58134         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
58135         * modules/link-warning (Makefile.am): Make the comment-removing sed
58136         command more robust in the face of bootstrap-prepended comment lines.
58138 2009-12-09  Bruno Haible  <bruno@clisp.org>
58140         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
58141         most one group.
58143 2009-12-09  Simon Josefsson  <simon@josefsson.org>
58144             Bruno Haible  <bruno@clisp.org>
58146         * build-aux/link-warning.h: Add copyright notice.
58147         * modules/link-warning (Makefile.am): Generate link-warning.h from
58148         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
58149         * NEWS: Mention change in link-warning module.
58150         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
58151         * modules/dirent (Makefile.am): Add dependency to dirent.h.
58152         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
58153         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
58154         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
58155         * modules/math (Makefile.am): Add dependency to math.h.
58156         * modules/search (Makefile.am): Add dependency to search.h.
58157         * modules/signal (Makefile.am): Add dependency to signal.h.
58158         * modules/spawn (Makefile.am): Add dependency to spawn.h.
58159         * modules/stdio (Makefile.am): Add dependency to stdio.h.
58160         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
58161         * modules/string (Makefile.am): Add dependency to string.h.
58162         * modules/strings (Makefile.am): Add dependency to strings.h.
58163         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
58164         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
58165         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
58166         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
58167         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
58168         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
58169         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
58170         * modules/unistd (Makefile.am): Add dependency to unistd.h.
58171         * modules/wchar (Makefile.am): Add dependency to wchar.h.
58173 2009-12-09  Bruno Haible  <bruno@clisp.org>
58175         fchdir: Optimize away rpl_fstat when possible.
58176         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
58177         REPLACE_OPEN_DIRECTORY.
58178         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
58180 2009-12-09  Bruno Haible  <bruno@clisp.org>
58182         * lib/fchdir.c: Update comment.
58184 2009-12-09  Bruno Haible  <bruno@clisp.org>
58186         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
58188 2009-12-08  Eric Blake  <ebb9@byu.net>
58190         fchdir: avoid memory leak on re-registration.
58191         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
58193 2009-12-08  Jim Meyering  <meyering@redhat.com>
58195         init.sh: avoid Solaris 10 /bin/sh portability problem
58196         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
58197         sourced script:
58198           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
58199           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
58200           bar
58201         tests/init.sh relied on that, accepting a --set-path=DIR argument,
58202         and two tests used that idiom.
58203         * tests/init.sh: Update suggested usage comments.
58204         (path_prepend_): New function, to be used in place
58205         of the --src-path=DIR option.
58206         (setup_): Move PATH-prepending code into path_prepend_.
58207         * tests/test-pread.sh: Adapt to new usage.
58208         * tests/test-xalloc-die.sh: Likewise.
58210 2009-12-08  Simon Josefsson  <simon@josefsson.org>
58212         * doc/gnulib.texi (Glibc pty.h): Add.
58213         * doc/glibc-functions/forkpty.texi: Add.
58214         * doc/glibc-functions/openpty.texi: Add.
58215         Suggested by Bruno Haible.
58217 2009-12-08  Eric Blake  <ebb9@byu.net>
58219         fchdir: fix logic bugs
58220         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
58221         * tests/test-fchdir.c (main): Enhance test.
58222         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
58223         is in use.
58225         dup2: fix logic bugs
58226         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
58227         REPLACE_DUP2 to decide when rpl_dup2 is needed.
58228         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
58229         exists.
58230         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
58232 2009-12-07  Eric Blake  <ebb9@byu.net>
58234         unlink: fix m4 detection
58235         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
58237         unistd-safer: add unit test
58238         * modules/unistd-safer-tests: New file.
58239         * tests/test-dup-safer.c: Likewise.
58240         * tests/test-cloexec.c (setmode): Avoid compiler warning.
58241         * tests/test-dup2.c (setmode): Likewise.
58242         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
58244         cloexec: preserve text vs. binary across dup_cloexec
58245         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
58246         mode.
58247         * modules/dup2-tests (Depends-on): Add binary-io.
58248         * modules/cloexec-tests (Depends-on): Likewise.
58249         * tests/test-dup2.c (setmode, is_mode): New helpers.
58250         (main): Add tests that translation mode is preserved.
58251         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
58252         Reported by Bruno Haible.
58254         mgetgroups: reduce duplicate listings
58255         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
58256         resulting array.
58257         * tests/test-chown.h (test_chown): Simplify client.
58258         * tests/test-lchown.h (test_lchown): Likewise.
58260 2009-12-06  Bruno Haible  <bruno@clisp.org>
58262         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
58263         value.
58265 2009-12-06  Bruno Haible  <bruno@clisp.org>
58267         * lib/progname.c: Include stdio.h, stdlib.h.
58268         (set_program_name): Reject a NULL argument.
58270 2009-12-05  Eric Blake  <ebb9@byu.net>
58272         pipe2-safer: new module
58273         * modules/pipe2-safer: New file.
58274         * lib/unistd-safer.h (pipe2_safer): New prototype.
58275         * lib/unistd--.h (pipe2): New wrapper.
58276         * lib/pipe-safer.c (pipe2_safer): New function.
58277         * modules/pipe (Depends-on): Add pipe2-safer.
58278         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
58280         stdlib-safer: preserve cloexec flag for mkostemp[s]
58281         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
58282         fd_safer_flag.
58284         unistd-safer: allow preservation of cloexec status via flag
58285         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
58286         prototypes.
58287         * lib/dup-safer.c (dup_safer_flag): New function.
58288         * lib/fd-safer.c (fd_safer_flag): Likewise.
58289         * modules/cloexec (configure.ac): Set witness.
58291         test-dup2: enhance test
58292         * modules/dup2-tests (Depends-on): Add cloexec.
58293         * tests/test-dup2.c (main): Enhance test.
58295         cloexec: add dup_cloexec
58296         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
58297         header and comments.
58298         * lib/cloexec.c (set_cloexec_flag): Add comments.
58299         (dup_cloexec): New function, with mingw implementation borrowed
58300         from...
58301         * lib/w32spawn.h (dup_noinherit): ...here.
58302         * modules/execute (Depends-on): Add cloexec.
58303         * modules/pipe (Depends-on): Likewise.
58304         * modules/cloexec (Depends-on): Add dup2.
58305         * modules/cloexec-tests (Files): New file.
58306         * tests/test-cloexec.c: Likewise.
58308         test-xalloc-die: fix test for mingw
58309         * modules/xalloc-die-tests (Files): Add tests/init.sh.
58310         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
58311         directory and .exe suffix off argv[0] output.
58313         test-fseeko: fix test for mingw
58314         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
58315         than undefining fseek, so test will pass on mingw.
58317 2009-12-05  Bruno Haible  <bruno@clisp.org>
58319         * lib/progname.h (set_program_name): Clarify specification.
58320         * lib/progname.c (set_program_name): Likewise.
58321         Reported by Jim Meyering.
58323 2009-12-05  Jim Meyering  <meyering@redhat.com>
58325         maint.mk: backslash-escape parens in default regexp
58326         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
58327         backslash-escape the literal parentheses.
58329         maint.mk: news-date-check: use grep -E
58330         * top/maint.mk (today): Define a Make variable, not a...
58331         (news-date-check): ...shell variable.
58332         (news-date-regexp): Use the Make variable.
58333         Use grep's -E option.  Change the failing diagnostic to mention
58334         the variable, $(news-date-regexp).
58336 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
58338         maintainer-makefile: allow customization of NEWS entry format
58339         * top/maint.mk (news-date-regexp): New overridable variable.
58340         (news-date-check): Use it.
58342 2009-12-04  Eric Blake  <ebb9@byu.net>
58344         mgetgroups: add xgetgroups, and avoid ENOSYS failures
58345         * lib/mgetgroups.h (xgetgroups): New prototype.
58346         * lib/mgetgroups.c (xgetgroups): New wrapper.
58347         (mgetgroups): Handle ENOSYS.
58348         * modules/mgetgroups (Depends-on): Add realloc.
58349         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
58351         mgetgroups: avoid argument promotion issues with -1
58352         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
58353         for invalid gid_t.
58354         * tests/test-chown.h (getegid, test_chown): Likewise.
58355         * tests/test-lchown.h (getegid, test_lchown): Likewise.
58357 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
58359         exclude: Fix header file problems.
58360         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
58362 2009-12-01  Jim Meyering  <meyering@redhat.com>
58364         fts: fts_open: do not let an empty string cause immediate failure
58365         This is required in support of GNU rm, for which the command
58366         "rm A '' B" must process and remove both A and B, in spite of
58367         the empty string argument.
58368         * lib/fts.c (fts_open): Do not let the presence of an empty string
58369         cause fts_open to fail immediately.  Most fts-using tools must be
58370         able to process all arguments, in order, and can be expected to
58371         diagnose such arguments themselves.
58373 2009-11-30  Eric Blake  <ebb9@byu.net>
58375         utimens: fix compilation error
58376         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
58377         Declare variable at right scope.
58379 2009-11-29  Jim Meyering  <meyering@redhat.com>
58381         bootstrap: handle perl-5.11's changed --version output
58382         * build-aux/bootstrap (get_version): Handle perl separately,
58383         since perl-5.11's --version output is different.
58385 2009-11-28  Jim Meyering  <meyering@redhat.com>
58387         userspec: depend on the inttostr module, too
58388         * modules/userspec (Depends-on): Add inttostr.
58390         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
58391         * lib/userspec.c (parse_with_separator): Do not accept a user ID
58392         number of MAXUID when it evaluates to (uid_t) -1.
58393         Likewise for group ID.  Reported by Matt McCutchen in
58394         <http://savannah.gnu.org/bugs/?28113>
58396         userspec: reformat to use spaces, not TABs
58397         * lib/userspec.c: Expand TABs to spaces.
58398         Add Emacs' "indent-tabs-mode: nil" hint.
58400 2009-11-27  Eric Blake  <ebb9@byu.net>
58402         getopt-gnu: flush out another BSD bug
58403         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
58404         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
58405         flush out BSD bug.
58406         * tests/test-getopt.h (test_getopt): End lists with NULL.
58407         * tests/test-getopt_long.h (test_getopt_long): Likewise.
58408         (test_getopt_long_posix): Enhance test.
58409         * modules/getopt-posix-tests (Depends-on): Add stdbool.
58410         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
58411         getopt-gnu.
58412         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
58413         Likewise.
58415 2009-11-27  Simon Josefsson  <simon@josefsson.org>
58417         * modules/idpriv-droptemp-tests (Notice): Fix text.
58419 2009-11-27  Jim Meyering  <meyering@redhat.com>
58421         test-xalloc-die: avoid spurious failure due to libtool argv difference
58422         In a libtool-enabled project, this test would fail due to a difference
58423         in the emitted program name, e.g.,
58424         -test-xalloc-die: memory exhausted
58425         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
58426         Use program to avoid that.
58427         * modules/xalloc-die-tests (Depends-on): Add progname.
58428         * tests/test-xalloc-die.c: Include progname.h".
58429         (program_name): Remove decl.
58430         (main): Call set_program_name.
58431         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
58433 2009-11-26  Richard Jones  <rjones@redhat.com>
58435         w32sock: leave win32 error in place.
58436         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
58438 2009-11-26  Eric Blake  <ebb9@byu.net>
58440         init.sh: suggest to use skip_ and fail_ functions in comments
58441         * tests/init.sh: Add a sentence.
58443 2009-11-25  Bruno Haible  <bruno@clisp.org>
58445         init.sh: add documentation in comments
58446         * tests/init.sh: Add some developer and user documentation.
58448 2009-11-26  Jim Meyering  <meyering@redhat.com>
58450         init.sh: accommodate even those who specify bogus srcdir manually
58451         * tests/init.sh: Normally, srcdir is guaranteed by automake and
58452         configure-time tests to be sanitized, so that there is no need to
58453         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
58454         (with no double quotes) suffices.  However, since tests may be
58455         invoked manually, and since you may explicitly set srcdir to the
58456         name of a directory containing spaces, do quote its uses here.
58457         * tests/test-pread.sh: Likewise.
58458         Suggested by Bruno Haible.
58460         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
58461         * tests/test-pread.sh: Write no data into the pipe, because
58462         test-pread actually reads none.  This avoids a diagnostic,
58463         "bash: echo: write error: Broken pipe", that arises in the unusual
58464         event something is ignoring SIGPIPE, and might be interpreted
58465         as some sort of failure.  Reported by Bruno Haible.
58467 2009-11-25  Jim Meyering  <meyering@redhat.com>
58469         test-pread: cover failure with ESPIPE and EINVAL
58470         * tests/test-pread.c (main): Test for failure, too.
58471         * tests/test-pread.sh: Invoke with stdin on a pipe.
58472         Suggested by Eric Blake.
58474         pread: improvement and fix
58475         * modules/pread (Depends-on): Depend on lseek, for portability to
58476         e.g., mingw.  Suggested by Eric Blake.
58477         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
58479         unistd.in.h: correct declaration of pread
58480         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
58481         Reported by Richard W.M. Jones.
58483         test-pread.sh: distribute the test script
58484         * modules/pread-tests (Files): Include test-pread.sh.
58486         test-pread.sh: clean up
58487         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
58488         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
58489         That is unnecessary, since it's always ".".
58490         Suggestion from Eric Blake.
58492         test-pread.sh: make executable
58493         * tests/test-pread.sh: Set executable bit.
58494         Reported by Eric Blake.
58496         correct typo in test-pread.sh
58497         * tests/test-pread.sh: Add #! line.
58499         test pread
58500         * tests/test-pread.c: New file.
58501         * tests/test-pread.sh: Likewise.
58502         * modules/pread-tests: Likewise.
58504         pread: new module
58505         * modules/pread: New file.
58506         * lib/unistd.in.h (pread): Define/declare.
58507         * lib/pread.c (pread): New file.
58508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
58509         * modules/unistd (Makefile.am): Substitute witnesses.
58510         * doc/posix-functions/pread.texi (pread): Update.
58511         * MODULES.html.sh: Add pread.
58513 2009-11-25  Jim Meyering  <meyering@redhat.com>
58515         tests/init.sh: new file to be used via most *.sh tests
58516         * tests/init.sh: New file.
58518 2009-11-25  Eric Blake  <ebb9@byu.net>
58520         utimens: work around older Linux failure with symlinks
58521         * lib/utimens.c (lutimensat_works_really): New variable.
58522         (fdutimens, lutimens): Use it to manage kernels that support
58523         nanosecond times on files, but not on symlinks.
58524         Reported by Ondřej Vašík.
58526         utimes: fix configure grammar
58527         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
58529 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
58531         regex: Fix fastmap for multibyte character ranges.
58532         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
58533         characters when a multibyte character range is included.
58535 2009-11-22  Andy Wingo  <wingo@pobox.com>
58537         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
58538         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
58540 2009-11-24  Bruno Haible  <bruno@clisp.org>
58542         doc: Most *_l functions exist in MacOS X 10.5.
58543         * doc/posix-functions/duplocale.texi: Update platforms list.
58544         * doc/posix-functions/freelocale.texi: Likewise.
58545         * doc/posix-functions/newlocale.texi: Likewise.
58546         * doc/posix-functions/uselocale.texi: Likewise.
58547         * doc/posix-functions/isalnum_l.texi: Likewise.
58548         * doc/posix-functions/isalpha_l.texi: Likewise.
58549         * doc/posix-functions/isblank_l.texi: Likewise.
58550         * doc/posix-functions/iscntrl_l.texi: Likewise.
58551         * doc/posix-functions/isdigit_l.texi: Likewise.
58552         * doc/posix-functions/isgraph_l.texi: Likewise.
58553         * doc/posix-functions/islower_l.texi: Likewise.
58554         * doc/posix-functions/isprint_l.texi: Likewise.
58555         * doc/posix-functions/ispunct_l.texi: Likewise.
58556         * doc/posix-functions/isspace_l.texi: Likewise.
58557         * doc/posix-functions/isupper_l.texi: Likewise.
58558         * doc/posix-functions/iswalnum_l.texi: Likewise.
58559         * doc/posix-functions/iswalpha_l.texi: Likewise.
58560         * doc/posix-functions/iswblank_l.texi: Likewise.
58561         * doc/posix-functions/iswcntrl_l.texi: Likewise.
58562         * doc/posix-functions/iswctype_l.texi: Likewise.
58563         * doc/posix-functions/iswdigit_l.texi: Likewise.
58564         * doc/posix-functions/iswgraph_l.texi: Likewise.
58565         * doc/posix-functions/iswlower_l.texi: Likewise.
58566         * doc/posix-functions/iswprint_l.texi: Likewise.
58567         * doc/posix-functions/iswpunct_l.texi: Likewise.
58568         * doc/posix-functions/iswspace_l.texi: Likewise.
58569         * doc/posix-functions/iswupper_l.texi: Likewise.
58570         * doc/posix-functions/iswxdigit_l.texi: Likewise.
58571         * doc/posix-functions/isxdigit_l.texi: Likewise.
58572         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
58573         * doc/posix-functions/strcasecmp_l.texi: Likewise.
58574         * doc/posix-functions/strcoll_l.texi: Likewise.
58575         * doc/posix-functions/strfmon_l.texi: Likewise.
58576         * doc/posix-functions/strftime_l.texi: Likewise.
58577         * doc/posix-functions/strncasecmp_l.texi: Likewise.
58578         * doc/posix-functions/strxfrm_l.texi: Likewise.
58579         * doc/posix-functions/tolower_l.texi: Likewise.
58580         * doc/posix-functions/toupper_l.texi: Likewise.
58581         * doc/posix-functions/towctrans_l.texi: Likewise.
58582         * doc/posix-functions/towlower_l.texi: Likewise.
58583         * doc/posix-functions/towupper_l.texi: Likewise.
58584         * doc/posix-functions/wcscoll_l.texi: Likewise.
58585         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
58586         * doc/posix-functions/wctrans_l.texi: Likewise.
58587         * doc/posix-functions/wctype_l.texi: Likewise.
58588         * doc/glibc-functions/strptime_l.texi: Likewise.
58589         * doc/glibc-functions/strtod_l.texi: Likewise.
58590         * doc/glibc-functions/strtof_l.texi: Likewise.
58591         * doc/glibc-functions/strtol_l.texi: Likewise.
58592         * doc/glibc-functions/strtold_l.texi: Likewise.
58593         * doc/glibc-functions/strtoll_l.texi: Likewise.
58594         * doc/glibc-functions/strtoul_l.texi: Likewise.
58595         * doc/glibc-functions/strtoull_l.texi: Likewise.
58596         * doc/glibc-functions/wcsftime_l.texi: Likewise.
58597         * doc/glibc-functions/wcstod_l.texi: Likewise.
58598         * doc/glibc-functions/wcstof_l.texi: Likewise.
58599         * doc/glibc-functions/wcstol_l.texi: Likewise.
58600         * doc/glibc-functions/wcstold_l.texi: Likewise.
58601         * doc/glibc-functions/wcstoll_l.texi: Likewise.
58602         * doc/glibc-functions/wcstoul_l.texi: Likewise.
58603         * doc/glibc-functions/wcstoull_l.texi: Likewise.
58605 2009-11-24  Bruno Haible  <bruno@clisp.org>
58607         duplocale: Fix logic bug.
58608         * lib/duplocale.c: Don't include <langinfo.h>.
58609         (_NL_LOCALE_NAME): Remove macro.
58610         (rpl_duplocale): Use setlocale instead of nl_langinfo.
58611         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
58613 2009-11-23  Jim Meyering  <meyering@redhat.com>
58615         test-update-copyright: don't hard-code /usr/bin/perl
58616         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
58617         perl to print the current year.  Gilles Espinasse reported that
58618         the replaced use of perl was hard-coded as /usr/bin/perl.
58620 2009-11-23  Bruno Haible  <bruno@clisp.org>
58622         duplocale: Add support for glibc 2.3.x.
58623         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
58625 2009-11-22  Bruno Haible  <bruno@clisp.org>
58627         vasnprintf: Tiny optimization.
58628         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
58629         MacOS X.
58631 2009-11-22  Bruno Haible  <bruno@clisp.org>
58633         Tests for module 'duplocale'.
58634         * modules/duplocale-tests: New file.
58635         * tests/test-duplocale.c: New file.
58637         New module 'duplocale'.
58638         * m4/duplocale.m4: New file.
58639         * lib/locale.in.h (duplocale): New declaration.
58640         * lib/duplocale.c: New file.
58641         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
58642         gl_LOCALE_H_DEFAULTS): New macros.
58643         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
58644         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
58645         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
58646         REPLACE_DUPLOCALE.
58647         * modules/duplocale: New file.
58648         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
58650 2009-11-22  Bruno Haible  <bruno@clisp.org>
58652         * modules/locale-tests (configure.ac): Test for newlocale function.
58653         * tests/test-locale.c: When the system has extended locale functions,
58654         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
58656         locale: Make locale_t available when possible.
58657         * lib/locale.in.h: Include <xlocale.h> when it exists.
58658         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
58659         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
58660         * modules/locale (Depends-on): Add extensions.
58661         (Makefile.am): Also substitute HAVE_XLOCALE_H.
58662         * doc/posix-headers/locale.texi: Document the problem with locale_t.
58664 2009-11-22  Bruno Haible  <bruno@clisp.org>
58666         Add comments.
58667         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
58668         invocation.
58669         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58670         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
58671         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58673 2009-11-22  Bruno Haible  <bruno@clisp.org>
58675         error: account for the possibility of freopen (stdout).
58676         * lib/error.c: Include <unistd.h>.
58677         (flush_stdout): New function, extracted from error and error_at_line.
58678         Determine stdout's fd dynamically.
58679         (error, error_at_line): Invoke flush_stdout.
58680         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
58681         * modules/error (Depends-on): Add unistd.
58683 2009-11-22  Bruno Haible  <bruno@clisp.org>
58685         diffseq: Add comment.
58686         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
58688 2009-11-22  Jim Meyering  <meyering@redhat.com>
58690         c-stack: avoid defining an unused static function
58691         * lib/c-stack.c (find_stack_direction): Do not define this function
58692         when it will not be used.
58694         diffseq: avoid spurious gcc warnings
58695         * lib/diffseq.h (IF_LINT2): Define.
58696         (compareseq): Use it to initialize two members of "part".
58697         This avoids two used-uninitialized warnings.
58699 2009-11-21  Jim Meyering  <meyering@redhat.com>
58701         c-stack: avoid "ignoring return value of `write'" warning
58702         * lib/c-stack.c: Include "ignore-value.h".
58703         (die): Explicitly ignore each write return value.
58704         * modules/c-stack (Depends-on): Add ignore-value.
58706 2009-11-21  Bruno Haible  <bruno@clisp.org>
58708         diffseq: reduce scope of variable 'best'.
58709         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
58710         variable, earlier used for two different purposes.
58712 2009-11-21  Jim Meyering  <meyering@redhat.com>
58714         diffseq: remove useless assignment to "best"
58715         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
58716         assignment.  At that point "best" is already guaranteed to be zero.
58718 2009-11-20  Eric Blake  <ebb9@byu.net>
58720         build: mention ftp redirector in release announcements
58721         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
58722         values that used to come from cfg.mk; mention FTP redirect URL.
58723         * build-aux/announce-gen: Mention the mirror list.
58724         Suggested by Karl Berry.
58726         nanosleep: improve port to mingw
58727         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
58728         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
58729         LIB_NANOSLEEP, but only when needed.
58730         * modules/select (Link): Document LIBSOCKET.
58731         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
58732         enough.
58734         nanosleep: work around cygwin bug
58735         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
58736         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
58737         bug.
58738         (getnow): Delete, not needed.
58739         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
58740         LIB_CLOCK_GETTIME.
58741         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
58742         clock-time, gettime.
58743         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
58744         bug.
58745         * modules/nanosleep-tests: New test.
58746         * tests/test-nanosleep.c: New file.
58748         sleep: work around cygwin bug
58749         * lib/sleep.c (rpl_sleep): Work around the bug.
58750         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
58751         (gl_PREREQ_SLEEP): Delete unused macro.
58752         * modules/sleep (Depends-on): Add verify.
58753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
58754         * modules/unistd (Makefile.am): Substitute witness.
58755         * lib/unistd.in.h (sleep): Update prototype.
58756         * doc/posix-functions/sleep.texi (sleep): Document the bug.
58757         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
58758         * modules/sleep-tests (Depends-on): Check for alarm.
58760 2009-11-20  Jim Meyering  <meyering@redhat.com>
58762         maint.mk: improve sc_prohibit_magic_number_exit
58763         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
58764         so it does not match uses like System.exit(1).
58765         Add comments showing how to correct all offenders.
58767 2009-11-19  Eric Blake  <ebb9@byu.net>
58769         xalloc-die-tests: add missing library
58770         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
58772         test-xvasprintf: silence compiler warnings
58773         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
58774         empty string from gcc.
58776 2009-11-19  Jim Meyering  <meyering@redhat.com>
58778         xfreopen: new module, from coreutils
58779         * modules/xfreopen: New module.
58780         * lib/xfreopen.c: New file.
58781         * lib/xfreopen.h: New file.
58782         * MODULES.html.sh (File stream based Input/Output"): Add it.
58784 2009-11-19  Eric Blake  <ebb9@byu.net>
58786         manywarnings: depend on warnings
58787         * modules/manywarnings (Depends-on): Add warnings.
58789         build: avoid compiler warnings
58790         * lib/select.c (rpl_select): Delete unused variable.
58791         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
58793 2009-11-18  Eric Blake  <ebb9@byu.net>
58795         tests: avoid false negative with --with-packager
58796         * tests/test-version-etc.sh: Discard packager information.
58797         * tests/test-argp-version-etc-1.sh: Likewise.
58798         Reported by Mike Frysinger.
58800         utimens: fix regression on Solaris
58801         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
58802         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
58803         can only change fd timestamps via futimesat.  Instead, use an
58804         additional witness macro to avoid BSD bug.
58805         Reported by Jim Meyering.
58807 2009-11-17  Eric Blake  <ebb9@byu.net>
58809         usleep: use it to simplify tests
58810         * modules/stat-time-tests (Depends-on): Add usleep.
58811         (configure.ac): Drop usleep check.
58812         * modules/chown-tests (Depends-on, configure.ac): Likewise.
58813         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
58814         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
58815         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
58816         * modules/openat-tests (Depends-on, configure.ac): Likewise.
58817         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
58818         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
58819         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
58820         Likewise.
58821         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
58822         * tests/test-lchown.h (nap): Likewise.
58823         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
58824         * tests/test-stat-time.c (nap): Likewise.
58825         * tests/test-utimens-common.h (nap): Update comments.
58827         usleep: new module
58828         * modules/usleep: New file.
58829         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
58830         * lib/usleep.c (usleep): Likewise.
58831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
58832         * modules/unistd (Makefile.am): Substitute witnesses.
58833         * lib/unistd.in.h (usleep): Add declaration.
58834         * doc/pastposix-functions/usleep.texi (usleep): Document this.
58835         * MODULES.html.sh (Date and time): Likewise.
58836         * modules/usleep-tests (Depends-on): New test.
58837         * tests/test-usleep.c: New file.
58839         chown: work around OpenBSD bug
58840         * lib/chown.c (rpl_chown): Work around the bug.
58841         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
58842         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
58843         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
58844         * modules/chown (Depends-on): Add stdbool.
58845         * modules/lchown (Depends-on): Likewise.
58846         * doc/posix-functions/chown.texi (chown): Document the bug.
58847         * doc/posix-functions/lchown.texi (lchown): Likewise.
58848         * tests/test-lchown.h (test_chown): Relax test.
58850         mkstemp: avoid conflict with C++ keyword template
58851         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
58852         * lib/mkostemp.c (mkostemp): Likewise.
58853         * lib/mkostemps.c (mkostemps): Likewise.
58854         * lib/mkstemp.c (mkstemp): Likewise.
58855         * lib/mkstemps.c (mkstemps): Likewise.
58857         xalloc-die-tests: optimize
58858         * tests/test-xalloc-die.sh: Reduce number of processes.
58860 2009-11-17  Simon Josefsson  <simon@josefsson.org>
58862         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
58863         patch from ludo@gnu.org (Ludovic Courtès).
58865 2009-11-17  Jim Meyering  <meyering@redhat.com>
58867         version-etc: use proper license string
58868         * modules/version-etc (License): Use LGPL, not LGPLv3+.
58869         * modules/version-etc-fsf: Likewise.
58871 2009-11-17  Simon Josefsson  <simon@josefsson.org>
58873         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
58874         printed to stdout.  Deal with EOL differences.
58876 2009-11-17  Eric Blake  <ebb9@byu.net>
58878         unsetenv: work around Solaris bug
58879         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
58880         * lib/unsetenv.c (rpl_unsetenv): Work around it.
58881         Reported by Jim Meyering.
58883         vasnprintf: avoid compiler warnings
58884         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
58885         variables.
58886         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
58888 2009-11-17  Simon Josefsson  <simon@josefsson.org>
58890         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
58891         settings since xalloc-die is no longer the self test,
58892         xalloc-die.sh is.
58894 2009-11-17  Jim Meyering  <meyering@redhat.com>
58896         test-xalloc-die.sh: make the code agree with the commit log
58897         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
58898         at the end, just in case you happen to have a test-xalloc-die
58899         program in some other PATH directory.
58901         test-xalloc-die.sh: fix a portability bug
58902         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
58903         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
58904         Otherwise, argv[0] (as often seen in diagnostics) would be too
58905         system-dependent, sometimes with, and sometimes without the leading "./".
58907         version-etc-fsf: relax license to LGPLv3+
58908         * modules/version-etc-fsf (License): Relax license.
58910 2009-11-16  Eric Blake  <ebb9@byu.net>
58912         xalloc-die-tests: avoid printing null pointer
58913         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
58914         shell script.
58915         * tests/test-xalloc-die.c (program_name): Declare.
58916         * tests/test-xalloc-die.sh (tmpfiles): New file.
58918         setenv, unsetenv: work around various bugs
58919         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
58920         (setenv) [HAVE_SETENV]: Work around bugs.
58921         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
58922         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
58923         for bugs.
58924         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
58925         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
58926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
58927         * modules/stdlib (Makefile.am): Update substitutions.
58928         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
58929         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
58930         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
58931         * modules/setenv-tests: New test.
58932         * modules/unsetenv-tests: Likewise.
58933         * tests/test-setenv.c: New file.
58934         * tests/test-unsetenv.c: Likewise.
58936 2009-11-16  Jim Meyering  <meyering@redhat.com>
58938         version-etc: relax license to LGPLv3+
58939         * modules/version-etc (License): Relax license.
58941         better AC_REQUIRE expanded-before-required-warning avoidance
58942         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
58943         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
58944         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
58945         which is no longer needed.
58947 2009-11-16  Eric Blake  <ebb9@byu.net>
58949         test-freading: clean up temporary file
58950         * tests/test-freading.c (main): Remove file on success, and use
58951         ASSERT more liberally.
58952         Reported by Jim Meyering.
58954 2009-11-16  Jim Meyering  <meyering@redhat.com>
58956         avoid new AC_REQUIRE expanded-before-required warnings
58957         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
58958         merely using it.
58959         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
58960         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
58962 2009-11-15  Simon Josefsson  <simon@josefsson.org>
58964         * tests/test-xalloc-die.c: New file.
58965         * modules/xalloc-die-tests: New file.
58966         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
58967         XFAIL_TESTS so it can be appended by modules.
58969 2009-11-15  Simon Josefsson  <simon@josefsson.org>
58971         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
58972         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
58974 2009-11-14  Eric Blake  <ebb9@byu.net>
58976         fnmatch: avoid compiler warning
58977         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
58978         to silence compiler warning about mismatch signedness in ?:.
58979         Reported by Robert Millan.
58981         intprops: add double-inclusion guard
58982         * lib/intprops.h: Allow idempotent includes.
58983         Suggested by Bruce Korb.
58985         openat: detect Solaris fchownat bug
58986         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
58987         penalizing glibc chownat when only lchownat is broken.
58988         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
58989         trailing slash bugs.
58990         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
58991         * modules/openat-tests (Files): Include more files.
58992         (Depends-on): Add mgetgroups, sleep, stat-time.
58993         (configure.ac): Add additional checks.
58994         (Makefile.am): Build new test.
58995         * tests/test-fchownat.c: New file.
58997         lchown: detect Solaris and FreeBSD bug
58998         * lib/lchown.c (rpl_lchown): Work around bug.
58999         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
59000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59001         * modules/unistd (Makefile.am): Populate it.
59002         * lib/unistd.in.h (lchown): Update declaration.
59003         * doc/posix-functions/lchown.texi (lchown): Document the bug.
59004         * modules/lchown-tests: New file.
59005         * tests/test-lchown.h (test_lchown): Likewise.
59006         * tests/test-lchown.c (main): Likewise.
59008         chown: detect Solaris and FreeBSD bug
59009         * lib/chown.c (rpl_chown): Work around bug.
59010         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
59011         (gl_PREREQ_CHOWN): Delete.
59012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59013         * modules/unistd (Makefile.am): Populate it.
59014         * lib/unistd.in.h (chown): Update declaration.
59015         * lib/lchown.c (chown): Update client.
59016         * modules/lchown (Depends-on): Add lstat.
59017         * doc/posix-functions/chown.texi (chown): Document the bug.
59018         * doc/posix-functions/getgroups.texi (getgroups): Document
59019         getgroups pitfall.
59020         * modules/chown-tests: New file.
59021         * tests/test-chown.h (test_chown): Likewise.
59022         * tests/test-chown.c (main): Likewise.
59024 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
59026         gnulib-tool: correctly detect absence of m4 directories
59027         * gnulib-tool: Avoid extra newline on data passed to wc -l.
59029 2009-11-14  Jim Meyering  <meyering@redhat.com>
59031         maint.mk: Prohibit inclusion of "xalloc.h" without use.
59032         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
59034 2009-11-14  John W. Eaton  <jwe@gnu.org>
59036         strftime.h: wrap function declaration in extern "C" block
59037         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
59039 2009-11-13  Eric Blake  <ebb9@byu.net>
59041         getgroups: avoid compiler warning
59042         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
59044         getgroups: work around FreeBSD bug
59045         * lib/getgroups.c (rpl_getgroups): Work around the bug.
59046         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
59047         * doc/posix-functions/getgroups.texi (getgroups): Document it.
59048         * tests/test-getgroups.c (main): Fix buffer overrun.
59050         getgroups: avoid compilation failure
59051         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
59052         * modules/getgroups (Depends-on): Add stdint.
59054 2009-11-13  Jim Meyering  <meyering@redhat.com>
59056         test-getgroups: avoid compilation failure
59057         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
59059 2009-11-13  Eric Blake  <ebb9@byu.net>
59061         mgetgroups: new module, taken from coreutils
59062         * modules/mgetgroups: New file.
59063         * lib/mgetgroups.h: Likewise.
59064         * lib/mgetgroups.c (mgetgroups): Likewise.
59065         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
59066         * MODULES.html.sh (Users and groups): Mention it.
59068         getgroups: don't expose GETGROUPS_T to user
59069         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
59070         an element at a time if GETGROUPS_T is wrong size.
59071         * lib/getugroups.h (getugroups): Change signature.
59072         * lib/unistd.in.h (getgroups): Likewise.
59073         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
59074         signature needs fixing.
59075         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
59076         AC_TYPE_GETGROUPS.
59077         * modules/group-member (Depends-on): Add getgroups.
59078         * lib/group-member.c (group_info, get_group_info): Use gid_t.
59079         (group_member): Rely on getgroups replacement.
59080         * lib/getugroups.c (getugroups): Use gid_t.
59081         * tests/test-getgroups.c (main): Likewise.
59082         * NEWS: Mention the signature change.
59083         * doc/posix-functions/getgroups.texi (getgroups): Mention the
59084         problem with signature.
59085         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
59086         GETGROUPS_T is still useful for setgroups.
59088         getgroups, getugroups: provide stubs for mingw
59089         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
59090         * lib/getugroups.c (getugroups): Likewise.
59091         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
59092         function.  Modernize replacement scheme.
59093         (gl_PREREQ_GETGROUPS): Delete.
59094         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
59095         * modules/getgroups (configure.ac): Declare witness.
59096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
59097         * modules/unistd (Depends-on): Substitute witness.
59098         * lib/unistd.in.h (getgroups): Declare replacement.
59100         getgroups: avoid calling exit
59101         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
59102         drop xalloc.
59103         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
59104         dependencies.
59105         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
59106         exiting, in the rare case of malloc failure.
59108         getgroups: fix logic error
59109         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
59110         has more than 20 groups.
59111         * modules/getgroups-tests: New test.
59112         * tests/test-getgroups.c: New file.
59114 2009-11-13  Simon Josefsson  <simon@josefsson.org>
59116         * tests/test-base64.c: Improve.
59118 2009-11-13  Simon Josefsson  <simon@josefsson.org>
59120         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
59121         Blake <ebb9@byu.net>.
59123 2009-11-13  Simon Josefsson  <simon@josefsson.org>
59125         * tests/test-xvasprintf.c: Add %s%s related checks.
59127 2009-11-12  Eric Blake  <ebb9@byu.net>
59129         version-etc: match standards.texi style
59130         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
59131         and use <> only for URLs.
59133 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
59135         fts: do not fail on a submount during traversal
59136         * lib/fts.c (fts_build): Read the stat info again after opening
59137         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
59138         Original report at http://bugzilla.redhat.com/501848.
59140 2009-11-12  Jim Meyering  <meyering@redhat.com>
59142         bootstrap: sync from coreutils
59143         * build-aux/bootstrap (bootstrap_epilogue): New function.
59144         Use git_modules_config in one more place.  This make bootstrap's
59145         --gnulib-srcdir option more useful for testing.
59147         bootstrap: generalize autoheader check
59148         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
59149         AC_CONFIG_HEADERS.
59151 2009-11-11  Eric Blake  <ebb9@byu.net>
59153         mkfifoat: use new modules for Solaris and BSD bugs
59154         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
59155         * lib/mkfifoat.c (mknodat): Split...
59156         * lib/mknodat.c (mknodat): ...into new file.
59157         * modules/mkfifoat (Files): Ship new file.
59158         (Depends-on): Add mkfifo, mknod.
59159         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
59160         (Depends-on): Add symlink.
59161         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
59162         redundant with test_mkfifo.h.
59163         (do_mkfifoat, do_mknodat): New helpers.
59165         mknod: new module
59166         * modules/mknod: New file.
59167         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
59168         * lib/mknod.c (mknod): Likewise.
59169         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
59170         defaults.
59171         * modules/sys_stat (Makefile.am): Substitute them.
59172         * lib/sys_stat.in.h (mknod): Declare replacement.
59173         * MODULES.html.sh (Support for systems lacking POSIX:2008):
59174         Document it.
59175         * doc/posix-functions/mknod.texi (mknod): Likewise.
59176         * modules/mknod-tests: New test.
59177         * tests/test-mknod.c: Likewise.
59179         mkfifo: new module
59180         * modules/mkfifo: New file.
59181         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
59182         * lib/mkfifo.c (mkfifo): Likewise.
59183         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
59184         defaults.
59185         * modules/sys_stat (Makefile.am): Substitute them.
59186         * lib/sys_stat.in.h (mkfifo): Declare replacement.
59187         * MODULES.html.sh (Support for systems lacking POSIX:2008):
59188         Document it.
59189         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
59190         * modules/mkfifo-tests: New test.
59191         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
59192         from test-mkfifoat.c.
59193         * tests/test-mkfifo.c: New file.
59195         readlink: detect FreeBSD bug
59196         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
59197         slash on symlink.
59198         * doc/posix-functions/readlink.texi (readlink): Document the bug.
59199         * tests/test-readlink.h (test_readlink): Enhance test.
59201         symlink: detect FreeBSD bug
59202         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
59203         slash on symlink.
59204         * doc/posix-functions/symlink.texi (symlink): Document the bug.
59205         * tests/test-symlink.h (test_symlink): Enhance test.
59207 2009-11-10  Eric Blake  <ebb9@byu.net>
59209         link: detect FreeBSD bug
59210         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
59211         symlink.
59212         * doc/posix-functions/link.texi (link): Document the bug.
59213         * tests/test-link.h (test_link): Enhance test.
59214         * tests/test-linkat.c (main): Update caller.
59216         unlink, remove: detect FreeBSD bug
59217         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
59218         slash on symlink.
59219         * doc/posix-functions/unlink.texi (unlink): Document the bug.
59220         * doc/posix-functions/remove.texi (remove): Likewise.
59221         * tests/test-unlink.h (test_unlink): Enhance test.
59222         * tests/test-remove.c (main): Likewise.
59224 2009-11-09  Eric Blake  <ebb9@byu.net>
59226         rename: detect FreeBSD bug
59227         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
59228         slash on symlink.
59229         * modules/renameat-tests (Depends-on): Add filenamecat.
59230         * tests/test-rename.h (test_rename): Allow one more errno.
59231         * tests/test-renameat.c (main): Likewise.
59232         * doc/posix-functions/rename.texi (rename): Document the bug.
59234         open: detect FreeBSD bug
59235         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
59236         symlink.
59237         * doc/posix-functions/open.texi (open): Document the bug.
59238         * doc/posix-functions/utimes.texi (utimes): Likewise.
59239         * tests/test-open.h (test_open): Add parameters, and test symlink
59240         handling.
59241         * tests/test-open.c (main): Adjust caller.
59242         * tests/test-fcntl-safer.c (main): Likewise.
59243         * modules/open-tests (Depends-on): Add stdbool, symlink.
59244         * modules/fcntl-safer-tests (Depends-on): Likewise.
59245         * tests/test-openat.c (main): Add test-open tests.
59247         stat: detect FreeBSD bug
59248         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
59249         symlink.
59250         * doc/posix-functions/stat.texi (stat): Document the bug.
59251         * tests/test-stat.h (test_stat_func): Add argument.
59252         * tests/test-stat.c (main): Adjust caller.
59253         * tests/test-fstatat.c (main): Likewise.
59254         * modules/stat-tests (Depends-on): Add stdbool, symlink.
59255         Reported by Jim Meyering.
59257 2009-11-09  James Youngman  <jay@gnu.org>
59259         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
59260         * lib/strftime.c: Correct placement of #include "ignore-value.h".
59262 2009-11-08  Jim Meyering  <meyering@redhat.com>
59264         utimens: remove invalid futimesat call
59265         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
59266         It used the file descriptor of the target file as the DIR_FD
59267         parameter and NULL as the file name.  That caused failure with
59268         errno == EFAULT on FreeBSD-8.0-rc2
59270 2009-11-07  Eric Blake  <ebb9@byu.net>
59272         fflush, freadseek: use fseeko, not fseek
59273         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
59274         (clear_ungetc_buffer): Avoid potential problems on large files.
59275         * lib/freadseek.c (freadseek): Likewise.
59276         * modules/freadseek (Depends-on): Add fseeko.
59277         * modules/fseek (configure.ac): Set a witness.
59278         * tests/test-fflush.c (main): Use fseeko.
59279         * tests/test-fpurge.c (fseek): Disable link warning.
59280         * tests/test-freadable.c (fseek): Likewise.
59281         * tests/test-freading.c (fseek): Likewise.
59282         * tests/test-fseeko.c (fseek): Likewise.
59283         * tests/test-ftell.c (fseek): Likewise.
59284         * tests/test-ftello.c (fseek): Likewise.
59285         * tests/test-fwritable.c (fseek): Likewise.
59286         * tests/test-fwriting.c (fseek): Likewise.
59288 2009-11-06  Simon Josefsson  <simon@josefsson.org>
59290         * modules/memchr (Depends-on): Drop getpagesize dependency.
59292 2009-11-06  Simon Josefsson  <simon@josefsson.org>
59294         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
59295         Reported by Ludovic Courtès.
59296         * build-aux/pmccabe2html: Improve example usage.
59297         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
59299 2009-11-06  Jim Meyering  <meyering@redhat.com>
59301         do-release-commit-and-tag: New module.
59302         Automate the release-commit and tag process.
59303         * build-aux/do-release-commit-and-tag: New script, from coreutils.
59304         * modules/do-release-commit-and-tag: New file.
59305         * MODULES.html.sh (Support for maintaining and releasing): Add it.
59307 2009-11-06  Simon Josefsson  <simon@josefsson.org>
59309         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
59310         because test-select.c uses inet_pton.
59312 2009-11-06  Simon Josefsson  <simon@josefsson.org>
59314         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
59315         GETADDRINFO_LIB.  Bump serial number.
59316         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
59317         Suggested by Eric Blake <ebb9@byu.net>.
59319 2009-11-05  Eric Blake  <ebb9@byu.net>
59321         strtod: detect darwin bug
59322         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
59323         Reported by Leo Davis.
59325         freopen-safer: new module
59326         * modules/freopen-safer: New module.
59327         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
59328         * lib/freopen-safer.c (freopen_safer): New file.
59329         * lib/stdio-safer.h (freopen_safer): New declaration.
59330         * lib/stdio--.h (freopen): New override.
59331         * MODULES.html.sh (File stream based Input/Output): Mention it.
59332         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
59333         freopen-safer module.
59334         * doc/posix-functions/stderr.texi (stderr): Likewise.
59335         * doc/posix-functions/stdin.texi (stdin): Likewise.
59336         * doc/posix-functions/stdout.texi (stdout): Likewise.
59337         * modules/freopen-safer-tests: New test.
59338         * tests/test-reopen-safer.c: New file.
59340 2009-11-05  Jim Meyering  <meyering@redhat.com>
59342         maint.mk: Prohibit inclusion of "close-stream.h" without use.
59343         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
59345 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59347         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
59349 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59351         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
59353 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59355         Fix link error.
59356         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
59357         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59359 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59361         * tests/test-func.c: Also test value of __func__.
59363 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59365         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
59366         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
59368 2009-11-05  Bruno Haible  <bruno@clisp.org>
59370         Fix link error.
59371         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
59372         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59373         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
59375 2009-11-05  Bruno Haible  <bruno@clisp.org>
59377         Tests for module 'inet_pton'.
59378         * modules/inet_pton-tests: New file.
59379         * tests/test-inet_pton.c: New file.
59381 2009-11-05  Bruno Haible  <bruno@clisp.org>
59383         Tests for module 'inet_ntop'.
59384         * modules/inet_ntop-tests: New file.
59385         * tests/test-inet_ntop.c: New file.
59387 2009-11-04  Eric Blake  <ebb9@byu.net>
59389         stdlib-safer: wrap all mkstemp variants
59390         * modules/mkostemp (configure.ac): Set witness.
59391         * modules/mkostemps (configure.ac): Likewise.
59392         * modules/mkstemps (configure.ac): Likewise.
59393         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
59394         (mkstemps_safer): Wrap more functions.
59395         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
59396         wrapping.
59397         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
59398         (mkstemps_safer): Implement the wrappers.
59400         mkstemps, mkostemps: new modules
59401         * modules/mkostemps: New module.
59402         * modules/mkstemps: Likewise.
59403         * lib/mkostemps.c (mkostemps): New file.
59404         * lib/mkstemps.c (mkstemps): Likewise.
59405         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
59406         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
59407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
59408         * modules/stdlib (Makefile.am): Substitute them.
59409         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
59410         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
59411         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
59412         * doc/gnulib.texi (Glibc stdlib.h): Include them.
59413         * MODULES.html.sh (File system functions): Mention them.
59415         tempname: resync from glibc
59416         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
59417         same values for __GT_FILE as glibc.  Abort even when assertions
59418         are disabled.
59419         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
59420         match its value otherwise.  Allow idempotent inclusion.
59421         * lib/mkdtemp.c (mkdtemp): Adjust caller.
59422         * lib/mkostemp.c (mkostemp): Likewise.
59423         * lib/mkstemp.c (mkstemp): Likewise.
59424         * lib/tmpfile.c (tmpfile): Likewise.
59425         * NEWS: Document this.
59427         utimens: fix use of futimens on older Linux
59428         * lib/utimens.c (fdutimens): Use updated, rather than original,
59429         timespec to avoid bug in older Linux kernel.
59430         Reported by Simon Josefsson.
59432 2009-11-04  Bruno Haible  <bruno@clisp.org>
59434         Make num_processors more flexible and consistent.
59435         * lib/nproc.h (enum nproc_query): New type.
59436         (num_processors): Add a 'query' argument.
59437         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
59438         (num_processors): Add a 'query' argument. Test the value of the
59439         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
59440         mingw, count the number of CPUs available for the current process.
59441         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
59442         Check for sched_getaffinity and sched_getaffinity_np.
59443         * modules/nproc (Depends-on): Add c-ctype, extensions.
59444         * NEWS: Mention the change.
59446 2009-11-03  Bruno Haible  <bruno@clisp.org>
59448         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
59450 2009-11-03  Jim Meyering  <meyering@redhat.com>
59452         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
59453         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
59454         if it is defined.
59456 2009-11-02  Eric Blake  <ebb9@byu.net>
59458         mktime, timegm: share common declaration
59459         * lib/mktime-internal.h: New file.
59460         * lib/mktime.c: Use it rather than open-coding a declaration.
59461         * lib/timegm.c: Likewise.
59462         * modules/mktime (Files): Ship it.
59463         * modules/timegm (Files): Likewise.
59464         Suggested by Bruno Haible.
59466         test-update-copyright: update test to match script changes
59467         * tests/test-update-copyright.sh: Avoid hard-coding perl
59468         location.  Don't update *.bak created by earlier runs.
59470 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59471             Simon Josefsson  <simon@josefsson.org>
59472             Bruno Haible  <bruno@clisp.org>
59474         Fix link error on Solaris 8.
59475         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
59476         also in libnsl. Define also INET_PTON_LIB.
59477         * modules/inet_pton (Link): New section.
59479 2009-11-02  Simon Josefsson  <simon@josefsson.org>
59480             Bruno Haible  <bruno@clisp.org>
59482         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
59483         * modules/inet_ntop (Link): New section.
59484         Reported by Boyan Kasarov <bkasarov@gmail.com>.
59486 2009-11-02  Eric Blake  <ebb9@byu.net>
59488         maint: avoid compiler warnings in m4 macros
59489         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
59490         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
59492 2009-11-02  Simon Josefsson  <simon@josefsson.org>
59494         * m4/pmccabe2html.m4: Remove file.
59495         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
59496         function.  Change maintainer.
59497         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
59498         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
59499         Courtès).
59501 2009-10-31  Eric Blake  <ebb9@byu.net>
59503         fseeko: fix m4 regression
59504         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
59505         regression from 2009-10-27.
59506         Reported by Ralf Wildenhues.
59508 2009-10-31  Jim Meyering  <meyering@redhat.com>
59510         inttostr: aesthetics and improved (compile-time) safety
59511         Define inttype_is_signed rather than inttype_is_unsigned,
59512         since the sole use is via "#if inttype_is_signed".
59513         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
59514         inttype_is_unsigned.
59515         * lib/offtostr.c (inttype_is_signed): Likewise.
59516         * lib/uinttostr.c (inttype_is_signed): Likewise.
59517         * lib/umaxtostr.c (inttype_is_signed): Likewise.
59518         * lib/inttostr.c (inttostr): Use verify to cross-check the
59519         inttype_is_signed value and the signedness of the actual type.
59520         * modules/inttostr (Depends-on): Add verify.
59522 2009-10-30  Eric Blake  <ebb9@byu.net>
59524         build: avoid compiler warnings
59525         * lib/fchmodat.c (lchmod): Mark unused variables.
59526         * lib/getopt.c (_getopt_initialize): Likewise.
59527         * lib/mktime.c (__mktime_internal): Provide prototype.
59528         * lib/inttostr.c (inttostr): Avoid compiler warning even with
59529         older gcc that do not understand #pragma GCC diagnostic.
59530         * lib/uinttostr.c (inttype_is_unsigned): Define.
59531         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
59533 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
59535         stat: fix compilation on AIX
59536         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
59537         only see struct stat64.
59539 2009-10-30  Eric Blake  <ebb9@byu.net>
59541         exclude: make more robust
59542         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
59543         rather than masking a coding bug.
59544         Suggested by Bruno Haible.
59546 2009-10-30  Jim Meyering  <meyering@redhat.com>
59548         perl scripts: remove #!/usr/bin/perl in favor of more portable...
59549         Rather than putting #!/usr/bin/perl on the first line,
59550         start with a variant of what's recommended by "man perlrun" that
59551         invokes the first "perl" program from your shell's search path.
59552         * build-aux/gitlog-to-changelog: Replace #!... as above.
59553         Add a "Local Variables" perl mode setting.
59554         Prompted by a patch from Ludovic Courtès.
59555         Improved by Eric Blake.
59556         * build-aux/useless-if-before-free: Likewise.
59557         * build-aux/announce-gen: Likewise.
59558         * build-aux/update-copyright: Likewise.
59560 2009-10-29  Eric Blake  <ebb9@byu.net>
59562         filenamecat-lgpl: adjust clients
59563         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
59564         filenamecat.
59565         * modules/renameat (Depends-on): Likewise.
59567         filenamecat: split into filenamecat-lgpl
59568         * modules/filenamecat-lgpl: New module.
59569         * modules/filenamecat (Files): Move library-safe files into
59570         filenamecat-lgpl.
59571         (Depends-on): Add filenamecat-lgpl.
59572         (configure.ac): Declare witness.
59573         * lib/filenamecat.h (file_name_concat): Only declare when using
59574         GPL module.
59575         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
59576         Move...
59577         * lib/filenamecat-lgpl.c: ...into new file.
59578         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
59579         (gl_FILE_NAME_CONCAT): Use it.
59580         * MODULES.html.sh (File system functions): Mention new module.
59582         argp: avoid memory leak
59583         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
59584         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
59585         base_name, since the latter malloc()s and can call exit().
59586         Leak introduced 2006-07-03.
59588         dirname-lgpl: adjust clients that don't need full dirname
59589         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
59590         * modules/filenamecat (Depends-on): Likewise.
59591         * modules/linkat (Depends-on): Likewise.
59592         * modules/mkancesdirs (Depends-on): Likewise.
59593         * modules/mkdir (Depends-on): Likewise.
59594         * modules/openat (Depends-on): Likewise.
59595         * modules/savewd (Depends-on): Likewise.
59596         * modules/rename (Depends-on): Likewise.
59597         (License): Relax license.
59598         * modules/mkdir-tests (Depends-on): Drop progname.
59599         (Makefile.am): Delete unneeded LDADD.
59600         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
59602         dirname: split into dirname-lgpl
59603         * modules/dirname-lgpl: New module.
59604         * modules/dirname (Files): Move library-safe files into
59605         dirname-lgpl.
59606         (Depends-on): Add dirname-lgpl.
59607         (configure.ac): Declare witness.
59608         * modules/double-slash-root (License): Relax license.
59609         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
59610         module.
59611         * lib/dirname.c (dir_len, mdir_name): Move...
59612         * lib/dirname-lgpl.c: ...into new file.
59613         * lib/basename.c (last_component, base_len): Move...
59614         * lib/basename-lgpl.c: ...into new file.
59615         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
59616         (gl_DIRNAME): Use it.
59617         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
59618         Mention new module.
59619         * modules/dirname-tests (Depends-on): Add progname.
59620         * tests/test-dirname.c (program_name): Delete.
59622         mkdir: make safe for libraries
59623         * modules/mkdir (Depends-on): Drop xalloc.
59624         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
59625         exit.
59627         tests: avoid some compiler warnings
59628         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
59629         literals.
59630         * tests/test-memchr.c (main): Avoid type mismatch.
59631         * tests/test-arpa_inet.c (main): Avoid unused parameters.
59632         * tests/test-base64.c (main): Likewise.
59633         * tests/test-getdelim.c (main): Likewise.
59634         * tests/test-gethostname.c (main): Likewise.
59635         * tests/test-getline.c (main): Likewise.
59636         * tests/test-netinet_in.c (main): Likewise.
59637         * tests/test-select.c (open_server_socket, main): Likewise.
59638         * tests/test-select-stdin.c (main): Likewise.
59639         * tests/test-sockets.c (main): Likewise.
59640         * tests/test-strsignal.c (main): Likewise.
59641         * tests/test-sys_select.c (main): Likewise.
59642         * tests/test-sys_socket.c (main): Likewise.
59643         * tests/test-u64.c (main): Likewise.
59644         * tests/test-xfprintf-posix.c (main): Likewise.
59645         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
59647         sockets: avoid compiler warning
59648         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
59650         maint: detect usage(1) and other suspicious exits
59651         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
59653 2009-10-29  Jim Meyering  <meyering@redhat.com>
59655         timespec: long-to-int truncation could make timespec_cmp malfunction
59656         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
59657         a multiple of 2^32 nanoseconds as no difference.
59659 2009-10-28  Jim Meyering  <meyering@redhat.com>
59661         fprintftime: wrap macro code argument in "do {...} while(0)"
59662         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
59663         cpy macro must be a statement that can be followed by a semicolon.
59664         Now that the else clause contains a comment and is hence longer
59665         than one line, I require curly braces.  That in turn requires
59666         that we wrap this code block in the standard do...while(0).
59668         fprintftime: remove stray semicolon from previous change
59669         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
59671         fprintftime: avoid a warning about ignored fwrite return value
59672         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
59673         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
59674         that is unsafe.
59675         * modules/fprintftime (Depends-on): Add ignore-value.
59677         exclude: avoid an unwarranted warning
59678         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
59680 2009-10-27  Eric Blake  <ebb9@byu.net>
59682         fseek: avoid compilation failure when fflush is replaced
59683         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
59684         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
59685         module is in use.
59686         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
59687         module is not in use; since REPLACE_FSEEK worked otherwise.
59688         (GNULIB_FTELLO): Likewise for ftell.
59689         Reported by Ian Beckwith and others.
59691 2009-10-27  Bruno Haible  <bruno@clisp.org>
59693         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
59694         Reported by Jim Meyering.
59696 2009-10-27  Jim Meyering  <jim@meyering.net>
59697             Bruno Haible  <bruno@clisp.org>
59699         Avoid warning despite dropping the return value of fwrite.
59700         * lib/unicodeio.c: Include ignore-value.h.
59701         (fwrite_success_callback): Explicitly ignore fwrite's return value.
59702         * modules/unicodeio (Depends-on): Add ignore-value.
59704 2009-10-26  Eric Blake  <ebb9@byu.net>
59706         areadlinkat: fix fallback path
59707         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
59708         pointer and zero.
59710 2009-10-22  Pádraig Brady  <P@draigBrady.com>
59712         Use a better IO block size for modern systems
59713         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
59714         * lib/md2.c: Likewise.
59715         * lib/md4.c: Likewise.
59716         * lib/md5.c: Likewise.
59717         * lib/sha1.c: Likewise.
59718         * lib/sha256.c: Likewise.
59719         * lib/sha512.c: Likewise.
59721 2009-10-22  Eric Blake  <ebb9@byu.net>
59723         tests: avoid several compiler warnings
59724         * tests/test-getcwd.c (main): Avoid buffer underflow.
59725         * tests/test-getdate.c (main): String literals are not safe with
59726         putenv, so use setenv.  Declare unused argument.
59727         * modules/getdate-tests (Depends-on): Add setenv.
59728         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
59729         problems with string literals in char *.
59730         * tests/test-hash.c (main): Avoid shadowing declaration.
59731         (insert_new): Treat string literals as char const *.
59732         * tests/test-getopt.h (test_getopt): Likewise.
59733         (getopt_loop): Alter types to minimize casting elsewhere.
59734         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
59735         (test_getopt_long_posix): Likewise.
59736         (do_getopt_long): Add wrapper to minimize casting.
59737         * tests/test-atexit.c (clear_temp_file): Use void.
59738         * tests/test-areadlink-with-size.c (main): Declare unused
59739         arguments.
59740         * tests/test-areadlink.c (main): Likewise.
59741         * tests/test-areadlinkat-with-size.c (main): Likewise.
59742         * tests/test-areadlinkat.c (main): Likewise.
59743         * tests/test-canonicalize-lgpl.c (main): Likewise.
59744         * tests/test-canonicalize.c (main): Likewise.
59745         * tests/test-dirent-safer.c (main): Likewise.
59746         * tests/test-dirname.c (main): Likewise.
59747         * tests/test-dup2.c (main): Likewise.
59748         * tests/test-fchdir.c (main): Likewise.
59749         * tests/test-fcntl-h.c (main): Likewise.
59750         * tests/test-fcntl-safer.c (main): Likewise.
59751         * tests/test-fdopendir.c (main): Likewise.
59752         * tests/test-fdutimensat.c (main): Likewise.
59753         * tests/test-fflush.c (main): Likewise.
59754         * tests/test-filenamecat.c (main): Likewise.
59755         * tests/test-filevercmp.c (main): Likewise.
59756         * tests/test-fopen-safer.c (main): Likewise.
59757         * tests/test-fopen.c (main): Likewise.
59758         * tests/test-fpending.c (main): Likewise.
59759         * tests/test-fpurge.c (main): Likewise.
59760         * tests/test-freading.c (main): Likewise.
59761         * tests/test-fstatat.c (main): Likewise.
59762         * tests/test-fsync.c (main): Likewise.
59763         * tests/test-futimens.c (main): Likewise.
59764         * tests/test-getndelim2.c (main): Likewise.
59765         * tests/test-gettimeofday.c (main): Likewise.
59766         * tests/test-getopt.c (main): Likewise.
59767         * tests/test-i-ring.c (main): Likewise.
59768         * tests/test-inttypes.c (main): Likewise.
59769         * tests/test-link.c (main): Likewise.
59770         * tests/test-lstat.c (main): Likewise.
59771         * tests/test-math.c (main): Likewise.
59772         * tests/test-md5.c (main): Likewise.
59773         * tests/test-memchr2.c (main): Likewise.
59774         * tests/test-memrchr.c (main): Likewise.
59775         * tests/test-mkdir.c (main): Likewise.
59776         * tests/test-mkdirat.c (main): Likewise.
59777         * tests/test-mkfifoat.c (main): Likewise.
59778         * tests/test-open.c (main): Likewise.
59779         * tests/test-openat-safer.c (main): Likewise.
59780         * tests/test-openat.c (main): Likewise.
59781         * tests/test-quotearg.c (main): Likewise.
59782         * tests/test-rawmemchr.c (main): Likewise.
59783         * tests/test-readlink.c (main): Likewise.
59784         * tests/test-remove.c (main): Likewise.
59785         * tests/test-rename.c (main): Likewise.
59786         * tests/test-renameat.c (main): Likewise.
59787         * tests/test-rmdir.c (main): Likewise.
59788         * tests/test-sha1.c (main): Likewise.
59789         * tests/test-signal.c (main): Likewise.
59790         * tests/test-sigaction.c (main): Likewise.
59791         * tests/test-stat.c (main): Likewise.
59792         * tests/test-stat-time.c (main): Likewise.
59793         * tests/test-stddef.c (main): Likewise.
59794         * tests/test-stdint.c (main): Likewise.
59795         * tests/test-stdio.c (main): Likewise.
59796         * tests/test-stdlib.c (main): Likewise.
59797         * tests/test-strchrnul.c (main): Likewise.
59798         * tests/test-strerror.c (main): Likewise.
59799         * tests/test-string.c (main): Likewise.
59800         * tests/test-strtod.c (main): Likewise.
59801         * tests/test-strverscmp.c (main): Likewise.
59802         * tests/test-symlink.c (main): Likewise.
59803         * tests/test-symlinkat.c (main): Likewise.
59804         * tests/test-sys_stat.c (main): Likewise.
59805         * tests/test-sys_time.c (main): Likewise.
59806         * tests/test-time.c (main): Likewise.
59807         * tests/test-unistd.c (main): Likewise.
59808         * tests/test-unlink.c (main): Likewise.
59809         * tests/test-unlinkat.c (main): Likewise.
59810         * tests/test-utimens.c (main): Likewise.
59811         * tests/test-utimensat.c (main): Likewise.
59812         * tests/test-version-etc.c (main): Likewise.
59813         * tests/test-wchar.c (main): Likewise.
59814         * tests/test-wctype.c (main): Likewise.
59815         * tests/test-xprintf-posix.c (main): Likewise.
59816         * tests/test-posixtm.c (main): Likewise.
59817         (STREQ): Delete unused macro.
59818         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
59819         shadowed variables.
59820         * tests/test-memchr.c (main): Likewise.
59822 2009-10-21  Eric Blake  <ebb9@byu.net>
59824         areadlinkat: avoid failure on older glibc
59825         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
59826         rather than mis-comparing 0 against FUNC_RESULT of char*.
59828 2009-10-21  Bruno Haible  <bruno@clisp.org>
59830         * modules/stpncpy (License): Relicense under LGPLv2+.
59831         Reported by David Lutterkort <lutter@redhat.com>.
59833 2009-10-20  Eric Blake  <ebb9@byu.net>
59835         utimensat: work around Solaris 9 bug
59836         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
59837         has trailing slash bugs.
59838         * tests/test-lutimens.h (test_lutimens): Enhance test.
59839         * tests/test-utimens.h (test_utimens): Likewise.
59840         * doc/posix-functions/utime.texi (utime): Enhance documentation.
59841         * doc/posix-functions/utimes.texi (utimes): Likewise.
59842         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
59843         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
59844         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
59845         * doc/posix-functions/futimens.texi (futimens): Likewise.
59847         fdutimensat: new module
59848         * modules/fdutimensat: New file.
59849         * lib/fdutimensat.c (fdutimensat): Likewise.
59850         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
59851         * MODULES.html.sh (File system functions): Mention module.
59852         * modules/fdutimensat-tests: New test.
59853         * tests/test-fdutimensat.c: Likewise.
59855         doc: regenerate INSTALL
59856         * doc/INSTALL: Reflect recent autoconf update.
59857         * doc/INSTALL.ISO: Likewise.
59858         * doc/INSTALL.UTF-8: Likewise.
59860 2009-10-20  Pádraig Brady  <P@draigBrady.com>
59862         acl: warn if ACL support is not detected
59863         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
59865 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
59867         * lib/nproc.h: Add extern "C" block for C++.
59869 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
59870             Bruno Haible  <bruno@clisp.org>
59872         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
59873         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
59874         * doc/posix-functions/isalpha.texi: Likewise.
59875         * doc/posix-functions/isblank.texi: Likewise.
59876         * doc/posix-functions/iscntrl.texi: Likewise.
59877         * doc/posix-functions/isdigit.texi: Likewise.
59878         * doc/posix-functions/isgraph.texi: Likewise.
59879         * doc/posix-functions/islower.texi: Likewise.
59880         * doc/posix-functions/isprint.texi: Likewise.
59881         * doc/posix-functions/ispunct.texi: Likewise.
59882         * doc/posix-functions/isspace.texi: Likewise.
59883         * doc/posix-functions/isupper.texi: Likewise.
59884         * doc/posix-functions/isxdigit.texi: Likewise.
59886 2009-10-18  Bruno Haible  <bruno@clisp.org>
59888         Tests for module 'isblank'.
59889         * modules/isblank-tests: New file.
59890         * tests/test-isblank.c: New file.
59892         New module 'isblank'.
59893         * lib/isblank.c: New file.
59894         * m4/isblank.m4: New file.
59895         * modules/isblank: New file.
59896         * doc/posix-functions/isblank.texi: Mention the new module.
59898 2009-10-18  Bruno Haible  <bruno@clisp.org>
59900         New module 'ctype'.
59901         * lib/ctype.in.h: New file.
59902         * m4/ctype.m4: New file.
59903         * modules/ctype: New file.
59904         * doc/posix-headers/ctype.texi: Mention the new module.
59906 2009-10-18  Jim Meyering  <meyering@redhat.com>
59908         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
59909         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
59910         right after its initialization, rather than farther down.
59911         Keeping these in close proximity makes it easier to ensure
59912         that each such variable is initialized.  E.g.,
59914             LIB_CLOCK_GETTIME=
59915             AC_SUBST([LIB_CLOCK_GETTIME])
59917         This change also increments these serial numbers.
59918         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
59919         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
59920         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59922 2009-10-18  Bruno Haible  <bruno@clisp.org>
59924         Don't let environment variables perturb build.
59925         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
59926         (gl_PREREQ_GETHRXTIME): ... not here.
59928 2009-10-18  Bruno Haible  <bruno@clisp.org>
59930         Avoid symlink attack in localcharset module.
59931         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
59932         (O_NOFOLLOW): Define fallback.
59933         (get_charset_aliases): Don't open the file if it is a symbolic link.
59934         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
59935         gl_FCNTL_H.
59936         (gl_FCNTL_H): Require it.
59937         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
59938         * modules/localcharset (Files): Add m4/fcntl_h.m4.
59939         Reported by Fergal Glynn <fglynn@veracode.com>.
59941 2009-10-18  Bruno Haible  <bruno@clisp.org>
59943         Implement nproc for mingw.
59944         * lib/nproc.c: Include <windows.h>
59945         (num_processors): On native Windows platforms, try GetSystemInfo.
59947 2009-10-18  Bruno Haible  <bruno@clisp.org>
59949         Implement nproc for IRIX.
59950         * lib/nproc.c: Include <sys/sysmp.h>.
59951         (num_processors): On IRIX systems, try sysmp.
59952         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
59954 2009-10-18  Bruno Haible  <bruno@clisp.org>
59956         Implement nproc for HP-UX.
59957         * lib/nproc.c: Include <sys/pstat.h>
59958         (num_processors): On HP-UX systems, try pstat_getdynamic.
59959         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
59960         pstat_getdynamic.
59962 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
59963             Bruno Haible  <bruno@clisp.org>
59965         Implement nproc for NetBSD, OpenBSD.
59966         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
59967         (ARRAY_SIZE): New macro.
59968         (num_processors): On BSD systems, try sysctl of HW_NCPU.
59969         * m4/nproc.m4: New file.
59970         * modules/nproc (Files): Add m4/nproc.m4.
59971         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
59972         (Makefile.am): Instead, augment lib_SOURCES.
59974 2009-10-18  Bruno Haible  <bruno@clisp.org>
59976         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
59977         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
59978         sys/param.h.
59980 2009-10-16  Eric Blake  <ebb9@byu.net>
59982         utimensat: new module
59983         * modules/utimensat: New file.
59984         * lib/utimensat.c (utimensat): Likewise.
59985         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
59986         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
59987         so we can work around Linux bugs.
59988         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
59989         * modules/sys_stat (Makefile.am): Substitute them.
59990         * lib/sys_stat.in.h (utimensat): Declare it.
59991         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59992         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
59993         * modules/utimensat-tests: New test.
59994         * tests/test-utimensat.c: Likewise.
59996         utimens: let lutimens work on non-symlinks
59997         * lib/utimens.c (lutimens): Fall back to utimens rather than
59998         failing with ENOSYS, when file is not a symlink.
59999         (utimens): Reduce redirection.
60000         * tests/test-lutimens.h (test_lutimens): Update test to cover
60001         non-symlinks.
60002         * tests/test-utimens.h (test_utimens): Update test to cover
60003         symlinks.
60004         * tests/test-utimens.c (main): Update caller.
60006         utimens: cache whether utimensat syscall works
60007         * lib/utimens.c (utimensat_works_really): New cache variable.
60008         (fdutimens, lutimens): Use it to avoid failing syscall.
60010         test-stat-time, test-utimens: improve portability
60011         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
60012         ext4 on alpha, and for cygwin.
60013         * tests/test-utimens-common.h: New file.
60014         (nap): Factor delays into single function.
60015         * tests/test-lutimens.h (test_lutimens): Use new header.
60016         * tests/test-futimens.h (test_futimens): Likewise.
60017         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
60018         timestamps to occur from same machine, as was done previously for
60019         test_utimens.
60020         * modules/utimens-tests (Files): Ship new file.
60021         * modules/futimens-tests (Files): Likewise.
60022         Reported in part by Jim Meyering.
60024         sys_stat: sort replacement declarations
60025         * lib/sys_stat.in.h: Sort declarations.
60026         * lib/futimens.c (futimens): Fix typo.
60028 2009-10-15  Jim Meyering  <meyering@redhat.com>
60030         don't let environment settings perturb build
60031         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
60032         could cause a configure-time and/or build-time malfunction.
60033         Typically, a configure-time function-in-library test is performed
60034         via code like this:
60036           LIB_VAR=
60037           AC_SUBST([LIB_VAR])
60038           prefix_saved_LIBS=$LIBS
60039             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
60040                        [test "$ac_cv_search_FUNC" = "none required" ||
60041                         LIB_VAR=$ac_cv_search_FUNC])
60042           LIBS=$prefix_saved_LIBS
60044         However, in each of the files affected by this change, the LIB_VAR=
60045         initialization was omitted.  Thus, when set in the environment, its
60046         value would propagate into generated Makefiles when FUNC is not found
60047         in LIB_NAME.
60048         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
60049         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60052 2009-10-14  Eric Blake  <ebb9@byu.net>
60054         fchdir: avoid infinite recursion in mingw
60055         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
60056         recursing.
60058         test-stat-time: port to mingw
60059         * tests/test-stat-time.c (force_unlink): Return a value.
60060         (test_ctime) [W32]: Fix compilation error.
60061         (nap): Don't call usleep with too large an argument.  Use
60062         force_unlink.
60063         * doc/pastposix-functions/usleep.texi (usleep): Document the
60064         portability issue.
60066 2009-10-13  Jim Meyering  <meyering@redhat.com>
60068         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
60069         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
60070         * modules/pipe-filter-ii: Likewise.
60071         * modules/sys_socket-tests: Likewise.
60072         * modules/tsearch-tests: Likewise.
60073         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
60074         (check): Depend on it.
60076 2009-10-12  Eric Blake  <ebb9@byu.net>
60078         utimens-tests: port to NFS file systems
60079         * tests/test-utimens.h (test_utimens): Refactor utimecmp
60080         comparisons to avoid spurious failures from timestamp drift
60081         between NFS machines.
60083 2009-10-12  Eric Blake  <ebb9@byu.net>
60085         stat-time-tests: minor cleanups
60086         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
60087         * tests/test-stat-time.c (nap): Separate assignment from call.
60088         Suggested by Paolo Bonzini and Bruno Haible.
60090         sys_stat: guarantee struct timespec
60091         * lib/sys_stat.in.h (includes): Always include <time.h>
60092         * modules/sys_stat (Depends-on): Add time.
60093         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
60094         mode_t permission values.
60095         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
60096         get at subsecond timestamps.
60098 2009-10-10  Eric Blake  <ebb9@byu.net>
60100         futimens: new module
60101         * modules/futimens: New file.
60102         * lib/futimens.c (futimens): Likewise.
60103         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
60104         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
60105         we can work around Linux bugs.
60106         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
60107         * modules/sys_stat (Makefile.am): Substitute them.
60108         * lib/sys_stat.in.h (futimens): Declare it.
60109         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60110         * doc/posix-functions/futimens.texi (futimens): Likewise.
60111         * modules/futimens-tests: New test.
60112         * tests/test-futimens.c: Likewise.
60114         utimens: introduce fdutimens
60115         * lib/utimens.h (fdutimens): New prototype.
60116         * lib/utimens.c (gl_futimens): Move guts...
60117         (fdutimens): ...to new interface.
60118         * tests/test-utimens.c (do_fdutimens): Use it.
60120         utimens: add UTIME_NOW and UTIME_OMIT support
60121         * lib/utimens.c (validate_timespec, update_timespec): New helper
60122         functions.
60123         (gl_futimens, lutimens): Use them.
60124         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
60125         stdbool, sys_stat.
60126         (Link): Mention resulting library dependency.
60127         * modules/utimecmp (Link): Likewise.
60128         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
60129         (Makefile.am): Pick up library dependency.
60130         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
60131         definition.
60132         * tests/test-sys_stat.c: Test the definitions.
60133         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
60134         * NEWS: Document library dependency.
60136         utimecmp: support symlink timestamps
60137         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
60138         hashing when possible.  Use pathconf when available.
60139         (SYSCALL_RESOLUTION): Recognize tighter resolution.
60140         * modules/utimecmp (Depends-on): Add lstat.
60142         utimens: add lutimens interface
60143         * lib/utimens.c (lutimens): New function.
60144         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
60145         * lib/utimens.h (lutimens): Declare new interface.
60146         * tests/test-utimens.c (main): Enhance test.
60147         * tests/test-lutimens.h (test_lutimens): New file.
60148         * modules/utimens-tests (Files): Distribute it.
60149         (Depends-on): Add symlink.
60150         (configure.ac): Check for usleep.
60152         utimens: validate futimens usage
60153         * lib/utimens.c (gl_futimens): Require valid fd up front, using
60154         fewer syscalls on failure later on.  Avoid compiler warning on
60155         mingw.
60156         * modules/utimens (Depends-on): Add dup2.
60158         utimens: add test
60159         * modules/utimens-tests: New test.
60160         * tests/test-utimens.h: New file.
60161         * tests/test-futimens.h: Likewise.
60162         * tests/test-utimens.c: Likewise.
60164         doc: mention timestamp portability issues
60165         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
60166         instead.
60167         * doc/posix-functions/utime.texi (utime): Likewise.
60168         * doc/posix-functions/utimes.texi (utimes): Likewise.
60169         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
60170         instead.
60171         * doc/posix-functions/futimens.texi (futimens): Mention utimens
60172         module.
60173         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60174         Mention weakness with symlink timestamps.
60175         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
60176         to utimensat/futimens instead.
60177         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
60179         test-dup2: enhance test
60180         * tests/test-dup2.c (main): Also check AT_FDCWD.
60182         test-stat-time: avoid more spurious failures
60183         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
60184         xfs; and avoid race if the two timestamps cross quantization edge.
60186         relocatable: prefer 'file system' over 'filesystem'
60187         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
60188         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
60189         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
60190         * doc/relocatable.texi (Enabling Relocatability): Likewise.
60191         * lib/relocatable.c (compute_curr_prefix): Likewise.
60193 2009-10-10  Jim Meyering  <meyering@redhat.com>
60195         stat-time-tests: check for the usleep function
60196         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
60198 2009-10-10  Bruno Haible  <bruno@clisp.org>
60200         * modules/xnanosleep: Put the Link section after the Include section.
60202 2009-10-09  Eric Blake  <ebb9@byu.net>
60204         dup2: work around FreeBSD 6.1 bug
60205         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
60206         * doc/posix-functions/dup2.texi (dup2): Document it.
60207         Reported by Nelson H. F. Beebe and Jim Meyering.
60209         test-stat-time: port to buggy NFS clients
60210         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
60211         (test_ctime): Also skip test if mtime and ctime are skewed.
60213         maint: prefer 'file system' over 'filesystem'
60214         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
60215         * doc/posix-functions/lstat.texi (lstat): Likewise.
60216         * lib/file-has-acl.c (file_has_acl): Likewise.
60217         * lib/fwriteerror.c [TEST]: Likewise.
60218         * tests/test-areadlink.h (test_areadlink): Likewise.
60219         * tests/test-areadlinkat-with-size.c (main): Likewise.
60220         * tests/test-areadlinkat.c (main): Likewise.
60221         * tests/test-canonicalize-lgpl.c (main): Likewise.
60222         * tests/test-canonicalize.c (main): Likewise.
60223         * tests/test-fstatat.c (main): Likewise.
60224         * tests/test-linkat.c (main): Likewise.
60225         * tests/test-lstat.h (test_lstat_func): Likewise.
60226         * tests/test-mkdir.h (test_mkdir): Likewise.
60227         * tests/test-readlink.h (test_readlink): Likewise.
60228         * tests/test-remove.c (main): Likewise.
60229         * tests/test-rename.h (test_rename): Likewise.
60230         * tests/test-renameat.c (main): Likewise.
60231         * tests/test-rmdir.h (test_rmdir_func): Likewise.
60232         * tests/test-symlink.h (test_symlink): Likewise.
60233         * tests/test-symlinkat.c (main): Likewise.
60234         * tests/test-unlink.h (test_unlink_func): Likewise.
60235         * tests/test-unlinkat.c (main): Likewise.
60237         maint: make realtime library usage explicit
60238         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
60239         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
60240         * modules/settime (Link): Likewise.
60241         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
60243         test-stat-time: speed up execution
60244         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
60245         warning on mingw.
60246         (nap): New helper function.
60247         (prepare_test): Use it to reduce sleep time.
60248         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
60249         execution.
60250         * modules/stat-time-tests (configure.ac): Check for usleep.
60252 2009-10-09  Jim Meyering  <meyering@redhat.com>
60254         selinux-h: always use getfilecon wrappers
60255         * lib/getfilecon.c: New file.
60256         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
60257         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
60258         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
60259         (fgetfilecon): Provide a stub.
60260         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
60261         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
60262         file unconditionally.
60263         When <selinux/selinux.h> is found, arrange to use wrappers.
60264         * modules/selinux-h (Files): Add getfilecon.c.
60265         (Makefile.am): Substitute include-next-related bits
60266         into the now-always-generated selinux/selinux.h file.
60267         * doc/glibc-functions/lgetfilecon.texi: New file.
60268         * doc/glibc-functions/fgetfilecon.texi: New file.
60269         * doc/glibc-functions/getfilecon.texi: New file.
60270         * doc/glibc-functions/getfilecon-desc.texi: New file.
60271         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
60272         which to pull in the new files.
60273         * MODULES.html.sh (Misc): Add selinux-h.
60275 2009-10-08  Jim Meyering  <meyering@redhat.com>
60277         unistd: fix comment typo
60278         * lib/unistd.in.h (euidaccess): Fix a comment typo.
60280 2009-10-08  Eric Blake  <ebb9@byu.net>
60282         areadlink: use SIZE_MAX consistently
60283         * modules/areadlink (Depends-on): Add stdint.
60284         * modules/areadlink-with-size (Depends-on): Likewise.
60285         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
60286         gives NULL; drop sys/types, since unistd gives size_t; and add
60287         stdint for SIZE_MAX.
60288         (SIZE_MAX): Rely on headers.
60289         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
60290         and add stdint.
60291         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
60292         (SIZE_MAX): Likewise.
60293         (INITIAL_BUF_SIZE): Turn into enum.
60294         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
60296 2009-10-08  Jim Meyering  <meyering@redhat.com>
60298         areadlinkat: avoid compilation failure
60299         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
60300         Fix typo in comment.
60302 2009-10-07  Eric Blake  <ebb9@byu.net>
60304         areadlinkat-with-size: new module
60305         * modules/areadlinkat-with-size: New module.
60306         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
60307         * lib/areadlink.h (areadlinkat): Declare it.
60308         * MODULES.html.sh (File system functions): Mention it.
60309         * modules/areadlinkat-with-size-tests: New test.
60310         * tests/test-areadlinkat-with-size.c: New file.
60312         xreadlinkat: new module
60313         * modules/xreadlinkat: New module.
60314         * lib/xreadlinkat.c (xreadlinkat): New file.
60315         * lib/xreadlink.h (xreadlinkat): Declare it.
60316         * MODULES.html.sh (File system functions): Mention it.
60318         areadlinkat: new module
60319         * lib/at-func.c (FUNC_FAIL): New define.
60320         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
60321         * modules/areadlinkat: New module.
60322         * lib/linkat.c (areadlinkat): Move...
60323         * lib/areadlinkat.c (areadlinkat): ...to new file.
60324         * lib/areadlink.h (areadlinkat): Declare it.
60325         * modules/linkat (Depends-on): Add areadlinkat.
60326         * MODULES.html.sh (File system functions): Mention it.
60327         * modules/areadlinkat-tests: New test.
60328         * tests/test-areadlinkat.c: New file.
60330         areadlink, areadlink-with-size: add tests
60331         * modules/areadlink-tests: New test.
60332         * modules/areadlink-with-size-tests: Likewise.
60333         * tests/test-areadlink.h: New file.
60334         * tests/test-areadlink.c: Likewise.
60335         * tests/test-areadlink-with-size.c: Likewise.
60337         maint: minor cleanups
60338         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
60339         _UNUSED_PARAMETER_ instead.
60340         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
60341         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
60342         * modules/linkat-tests (Files): Distribute test-link.h.
60344         openat, utimens: whitespace cleanup
60345         * lib/openat.c: Prefer space throughout, rather than mix of 8
60346         spaces vs. tabs.
60347         * lib/at-func.c: Likewise.
60348         * lib/utimens.c: Likewise.
60350         openat: avoid using wrong fd
60351         * lib/openat.c (openat_permissive): Reject user's fd if saving the
60352         working directory chooses same fd.
60353         * lib/at-func.c (AT_FUNC_NAME): Likewise.
60355         mkdir, mkdirat: fix cygwin 1.5.x bug
60356         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
60357         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
60358         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
60359         bug.
60360         (gl_PREREQ_MKDIR): Delete unused macro.
60361         * modules/mkdir (Files): Track file rename.
60362         (configure.ac): Update macro name.
60363         * modules/openat (Depends-on): Add mkdir.
60364         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
60366         mkdir, mkdirat: add tests
60367         * modules/mkdir-tests: New test.
60368         * tests/test-mkdir.h: New file.
60369         * tests/test-mkdir.c: Likewise.
60370         * tests/test-mkdirat.c: Likewise.
60371         * modules/openat-tests (Files): Add new files.
60372         (Makefile.am): Run new test.
60374 2009-10-06  Eric Blake  <ebb9@byu.net>
60376         doc: tweak *at function documentation
60377         * doc/posix-functions/faccessat.texi (faccessat): Mention
60378         known issue with replacement.
60379         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
60380         * doc/posix-functions/linkat.texi (linkat): Likewise.
60381         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
60382         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
60383         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
60384         * doc/posix-functions/renameat.texi (renameat): Likewise.
60385         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
60387         openat: fix GNU/Hurd bug in unlinkat
60388         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
60389         broken.
60390         * doc/posix-functions/unlink.texi (unlink): Document this.
60391         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
60393         fdopendir: fix GNU/Hurd bug
60394         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
60395         allowing non-directory fds.
60396         * lib/fdopendir.c (rpl_fdopendir): Work around it.
60397         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
60398         * modules/dirent (Makefile.am): Substitute it.
60399         * lib/dirent.in.h (fdopendir): Declare replacement.
60400         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
60401         * tests/test-fdopendir.c (main): Test something other than
60402         /dev/null, since on Hurd that behaves like a directory.
60404         test-symlink: port to GNU/Hurd
60405         * tests/test-symlink.h (test_symlink): Relax expected errno.
60407         doc: tweak more cygwin information
60408         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
60409         now compatible with glibc.
60410         * doc/posix-functions/getopt.texi (getopt): Likewise.
60412         getopt-gnu: add another test
60413         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
60414         guarantee behavior relied on by m4.
60415         * tests/test-getopt.c (main): Use it.
60416         * modules/getopt-posix-tests (Depends-on): Add setenv.
60417         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
60419         getopt: fix compilation on darwin
60420         * lib/getopt.in.h (includes): Leave breadcrumbs during system
60421         include.
60422         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
60423         Reported by Ludovic Courtès.
60425 2009-10-06  Bruno Haible  <bruno@clisp.org>
60427         * modules/size_max (Description): Discourage its use.
60428         Reported by Simon Josefsson.
60430 2009-10-06  Jim Meyering  <meyering@redhat.com>
60432         linkat: avoid compilation failure
60433         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
60435 2009-10-05  Eric Blake  <ebb9@byu.net>
60437         linkat: support Linux 2.6.17
60438         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
60439         linkat on Linux, but allow cache variable override.
60440         * lib/linkat.c (rpl_linkat): Define override.
60441         * modules/linkat (Depends-on): Add symlinkat.
60442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
60443         * modules/unistd (Makefile.am): Substitute it.
60444         * lib/unistd.in.h (linkat): Declare replacement.
60445         Reported by Pádraig Brady.
60447         quotearg: port test to systems with C.UTF-8 locale
60448         * tests/test-quotearg.c (struct result_strings): Add another
60449         member, differentiating between C.ASCII and C.UTF-8 handling.
60450         (compare_strings): Add parameter.
60451         (main): Adjust all callers.
60453         getopt: avoid clash with FreeBSD _getopt_internal
60454         * lib/getopt.in.h (_getopt_internal): Override the name.
60455         * lib/getopt_int.h (includes): Pick up any overrides.
60456         Reported by Reuben Thomas.
60458         hash: allow C89 compilation
60459         * lib/hash.c (check_tuning): Move declaration before statement.
60460         Reported by Reuben Thomas.
60462 2009-10-05  Karl Berry  <karl@gnu.org>
60464         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
60466 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
60467             Bruno Haible  <bruno@clisp.org>
60469         * lib/uname.c (uname): Use a table-driven algorithm to compute
60470         Windows NT versions.
60472 2009-10-04  Bruno Haible  <bruno@clisp.org>
60474         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
60475         program_invocation_short_name.
60476         * modules/progname (configure.ac): Test for presence of
60477         program_invocation_short_name.
60478         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
60480 2009-10-04  Bruno Haible  <bruno@clisp.org>
60482         * lib/progname.c (set_program_name): Fix comment.
60483         Reported by Jim Meyering.
60485 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
60486             Bruno Haible  <bruno@clisp.org>
60488         * lib/uname.c: Include <string.h>.
60489         (uname): Do only one call to GetVersionEx in the common case.
60491 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
60492             Bruno Haible  <bruno@clisp.org>
60494         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
60495         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
60496         (uname): Add support for Windows CE and various non-x86 CPU types.
60498 2009-10-03  Bruno Haible  <bruno@clisp.org>
60500         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
60501         invocation to tests/configure.ac.
60502         Reported by Ian Beckwith <ianb@erislabs.net>.
60504 2009-10-02  Eric Blake  <ebb9@byu.net>
60506         fchdir: avoid compiler warning
60507         * lib/fchdir.c (canonicalize_file_name)
60508         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
60510         test-open: support mingw errno values
60511         * tests/test-open.h (test_open): Relax test.
60512         * tests/test-fopen.h (test_fopen): Likewise.
60513         * tests/test-openat-safer.c (main): Likewise.
60515         open: fix opening directory on mingw
60516         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
60518         test-open: on GNU/Hurd, /dev/null is a directory
60519         * tests/test-fopen.h (main): Rename...
60520         (test_fopen): ...to this.  Use a guaranteed non-directory when
60521         confirming open behavior on trailing slash.
60522         * tests/test-openat-safer.c (main): Likewise.
60523         * tests/test-open.h (main): Likewise....
60524         (test_open): ...to this.
60525         * tests/test-fopen.c (main): Adjust caller.
60526         * tests/test-fopen-safer.c (main): Likewise.
60527         * tests/test-open.c (main): Likewise.
60528         * tests/test-fcntl-safer.c (main): Likewise.
60529         Reported by Samuel Thibault.
60531         rename, fchdir: don't ignore chdir failure
60532         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
60533         * lib/rename.c (rpl_rename) [W32]: Likewise.
60534         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
60535         an empty destination directory if source cannot be renamed,
60536         although there is still possibility for failure.
60537         * doc/posix-functions/rename.texi (rename): Document the race.
60538         Reported by Jim Meyering.
60540         maint: cleanup whitespace in recent commits
60541         * lib/rename.c (rpl_rename): Remove tabs.
60542         * tests/test-link.h (test_link): Likewise.
60543         * lib/fchdir.c (get_name): Likewise.
60544         Reported by Jim Meyering.
60546 2009-10-02  Ben Pfaff  <blp@gnu.org>
60548         relocatable-prog-wrapper: Add missing dependency on
60549         double-slash-root.
60550         * modules/relocatable-prog-wrapper: Add dependency.
60551         Reported by Ian Beckwith <ianb@erislabs.net>.
60553 2009-10-02  Eric Blake  <ebb9@byu.net>
60555         renameat: fix Solaris bugs
60556         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
60557         needed fixing.
60558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
60559         * modules/stdio (Makefile.am): Substitute it.
60560         * lib/stdio.in.h (renameat): Declare replacement.
60561         * lib/renameat.c (rpl_renameat): Implement fix.
60563         renameat: new module
60564         * modules/renameat: New file.
60565         * lib/renameat.c (renameat): Likewise.
60566         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
60567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
60568         * modules/stdio (Makefile.am): Substitute them.
60569         * lib/stdio.in.h (renameat): Declare it.
60570         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60571         * doc/posix-functions/renameat.texi (renameat): Likewise.
60572         * modules/renameat-tests: New test.
60573         * tests/test-renameat.c: Likewise.
60575         rename: fix mingw bugs
60576         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
60577         directory overwrite bugs.
60579         rename: fix another cygwin 1.5 bug
60580         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
60581         checks.
60582         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
60583         unnecessary cygwin workarounds.  Also work around bug with moving
60584         full directory onto an empty one.
60585         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
60587         rename-dest-slash: merge into rename module
60588         * modules/rename-dest-slash (Status): Mark obsolete.
60589         (Depends-on): Add rename.
60590         (Files): Let rename do it all.
60591         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
60592         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
60593         * m4/rename-dest-slash.m4: ...so this file can be deleted.
60594         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
60595         * lib/rename.c (rpl_rename): Update comments.
60597         rename: fix cygwin 1.5.x bugs
60598         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
60599         * lib/rename.c (rpl_rename): Work around them.
60600         * modules/rename (Depends-on): Add same-inode.
60602         rename: fix Solaris 10 bug
60603         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
60604         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
60605         was the only bug.
60607         rename: fix Solaris 9 bug
60608         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
60609         on non-directory.  Avoid calling exit.
60610         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
60611         strdup.
60612         * modules/rename-tests (Depends-on): Drop lstat.
60613         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
60614         (gl_PREREQ_RENAME): Delete unused macro.
60616         rename-dest-slash: fix NetBSD bug
60617         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
60618         links.
60619         * modules/rename-dest-slash (Depends-on): Add same-inode.
60621         rename-tests: new test, exposes several platform bugs
60622         * modules/rename-tests: New file.
60623         * tests/test-rename.h: Likewise.
60624         * tests/test-rename.c: Likewise.
60625         * doc/posix-functions/rename.texi (rename): Improve documentation,
60626         including bugs that will eventually be fixed in gnulib.
60628 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
60630         * lib/uname.c: Include <stdlib.h>
60631         (uname): Assume version info is available.
60633 2009-10-02  Jim Meyering  <meyering@redhat.com>
60635         gnu-web-doc-update: correct --help output
60636         * build-aux/gnu-web-doc-update: Make --help output relevant.
60638         gnu-web-doc-update: add standard options
60639         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
60641         gnu-web-doc-update: New module.
60642         Use this script to automatically update the on-line web documentation
60643         for your GNU project at http://www.gnu.org/software/$pkg/manual/
60644         * modules/gnu-web-doc-update: New file, from coreutils.
60645         * build-aux/gnu-web-doc-update: New script.
60647 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
60649         link: LoadLibrary is not needed.
60650         * lib/link.c: Use GetModuleHandle.
60652 2009-10-01  Eric Blake  <ebb9@byu.net>
60654         getopt: bump serial number
60655         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
60656         change.
60658         tests: tighten link, rmdir, and remove tests
60659         * tests/test-link.h (includes): No need to use <config.h> here.
60660         Clean up if directory hard link was created, otherwise test for
60661         trailing '.'.
60662         * tests/test-linkat.c (main): Simplify.
60663         * tests/test-remove.c (main): Enhance test for trailing '.'.
60664         * tests/test-rmdir.h (test_rmdir_func): Likewise.
60666 2009-10-01  Jim Meyering  <meyering@redhat.com>
60668         maint.mk: requiring "make major" was annoying, for a "minor" release.
60669         What is intended is "stable", to contrast with alpha and beta,
60670         so require "make stable", not "make major".
60671         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
60672         (get_tool_versions): Likewise.
60673         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
60675 2009-09-30  Ben Pfaff  <blp@gnu.org>
60677         Fix broken build of replacement for Windows tmpfile().
60678         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
60679         flags argument added along with the 'mkostemp' module.
60681 2009-09-28  Bruno Haible  <bruno@clisp.org>
60683         Avoid identifier clash with POSIX function 'remove' defined as a macro.
60684         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
60685         to 'remove_elt'.
60686         (gl_list_remove): Update.
60687         * lib/gl_list.c (gl_list_remove): Update.
60688         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
60689         to 'remove_elt'.
60690         (gl_oset_remove): Update.
60691         * lib/gl_list.c (gl_oset_remove): Update.
60692         Reported by Eric Blake.
60694 2009-09-28  Eric Blake  <ebb9@byu.net>
60696         doc: mention yet more cygwin 1.7 status
60697         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
60698         cygwin.
60699         * doc/glibc-functions/execvpe.texi (execvpe): New file.
60700         * doc/gnulib.texi (Glibc unistd.h): Mention it.
60702         argp: fix test failure
60703         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
60704         that are not upper-case.  Pass correct range to tolower.
60706 2009-09-27  Jim Meyering  <meyering@redhat.com>
60708         test-yesno: work around sparc-dash here-document infelicity
60709         Without this change, the literal \177 byte in a here document
60710         would make dash 0.5.5.1-3 access uninitialized memory.
60711         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
60712         Instead, use a marker, "@", and filter through tr to create the desired
60713         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
60715 2009-09-27  Bruno Haible  <bruno@clisp.org>
60717         Disable untested support for new flavours of ACLs on AIX.
60718         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
60719         progress.
60720         * lib/set-mode-acl.c (qset_acl): Likewise.
60722 2008-12-07  Bruno Haible  <bruno@clisp.org>
60724         Add support for new flavours of ACLs on AIX. (Untested.)
60725         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
60726         (file_has_acl): Add support for newer AIX.
60727         * lib/set-mode-acl.c (qset_acl): Likewise.
60728         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
60729         Rainer Tammer <tammer@tammer.net>.
60731 2009-09-26  Eric Blake  <ebb9@byu.net>
60733         argp: fix compilation of getopt
60734         * lib/getopt.in.h (includes): Use different guard than glibc.
60735         Reported by Sergey Poznyakoff.
60737         doc: mention more cygwin 1.7 status
60738         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
60739         bug.
60740         * doc/posix-functions/execl.texi (execl): Likewise.
60741         * doc/posix-functions/execle.texi (execle): Likewise.
60742         * doc/posix-functions/execlp.texi (execlp): Likewise.
60743         * doc/posix-functions/execv.texi (execv): Likewise.
60744         * doc/posix-functions/execve.texi (execve): Likewise.
60745         * doc/posix-functions/execvp.texi (execvp): Likewise.
60746         * doc/glibc-functions/canonicalize_file_name.texi
60747         (canonicalize_file_name): Cygwin 1.7 now provides this.
60748         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
60749         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
60750         on AT_SYMLINK_NOFOLLOW.
60752 2009-09-24  Eric Blake  <ebb9@byu.net>
60754         test-linkat: make test more robust
60755         * tests/test-linkat.c (main): Avoid collision with EEXIST.
60757         getopt: fix inclusion guards for cygwin
60758         * modules/getopt-posix (Depends-on): Add include-next.
60759         (Makefile.am): Substitute more items in replacement header.
60760         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
60761         <getopt.h>.
60762         * lib/getopt.in.h (includes): Use split inclusion guard, and
60763         prefer <getopt.h> over include <unistd.h> when one is present.
60764         (option): Also override name of 'struct option'.
60766         same-inode: revert prior change; it is not yet ready
60767         * NEWS: Undo mention of this change.
60768         * lib/same-inode.h (same-inode.h): Undo tri-state change.
60769         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
60770         * lib/cycle-check.c (cycle_check): Likewise.
60771         * lib/same.c (same_name): Likewise.
60772         * lib/at-func2.c (at_func2): Likewise.
60774 2009-09-23  Eric Blake  <ebb9@byu.net>
60776         linkat: new module
60777         * modules/linkat: New file.
60778         * lib/at-func2.c (at_func2): Likewise.
60779         * lib/linkat.c (linkat): Likewise.
60780         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
60781         * lib/openat-priv.h (at_func2): Add declaration.
60782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
60783         * modules/unistd (Makefile.am): Substitute them.
60784         * lib/unistd.in.h (linkat): Declare it.
60785         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60786         * doc/posix-functions/linkat.texi (linkat): Likewise.
60787         * doc/posix-functions/link.texi (link): Tweak wording.
60788         * tests/test-link.c (main): Move guts...
60789         * tests/test-link.h (test_link): ...into new file.
60790         * modules/linkat-tests: New test.
60791         * tests/test-linkat.c: Likewise.
60792         * modules/link-tests (Files): Ship new file.
60793         (Depends-on): Add stdbool.
60795         dirname: add library-safe mdir_name
60796         * lib/dirname.h (mdir_name): New prototype.
60797         * lib/dirname.c (dir_name): Move guts...
60798         (mdir_name): ...to new function that avoids xalloc_die.
60800         fchdir: another mingw fix
60801         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
60802         * lib/fchdir.c (get_name): New helper method; skips canonicalize
60803         on mingw (where it has not yet been ported), and make it optional
60804         elsewhere.
60805         (_gl_register_fd): Use it.
60807         same-inode: make SAME_INODE tri-state, to port to mingw
60808         * NEWS: Mention this change.
60809         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
60810         st_ino always being 0.
60811         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
60812         * lib/cycle-check.c (cycle_check): Likewise.
60813         * lib/same.c (same_name): Likewise.
60815         lstat: avoid mingw compilation error
60816         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
60817         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
60818         lstat ourselves.
60819         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
60820         was adequate.
60821         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
60822         the checks for lstat.
60823         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
60825         link: fix test failure on Solaris 9
60826         * lib/link.c (rpl_link): Don't assume link will catch bogus
60827         trailing slash on source.
60829         test-symlinkat: enhance test
60830         * tests/test-readlink.c (main): Move guts...
60831         * tests/test-readlink.h (test_readlink): ...into new file.
60832         * tests/test-symlink.c (main): Move guts...
60833         * tests/test-symlink.h (test_symlink): ...into new file.
60834         * tests/test-symlinkat.c (main): Use new files for further
60835         coverage.
60836         (do_symlink, do_readlink): New helper functions.
60837         * modules/symlink-tests (Files): Ship new file.
60838         (Depends-on): Add stdbool.
60839         * modules/readlink-tests (Files): Ship new file.
60840         (Depends-on): Add stdbool.
60841         * modules/symlinkat-tests (Files): Use new files.
60843 2009-09-23  Eric Blake  <ebb9@byu.net>
60845         readlink: document portability issue with symlink length
60846         * doc/posix-functions/lstat.texi (lstat): Mention that some file
60847         systems have bogus st_size on symlinks, and mention the
60848         areadlink-with-size module.
60849         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
60850         * doc/posix-functions/readlink.texi (readlink): Mention the
60851         areadlink module, and ERANGE failure.
60852         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
60853         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
60855         readlink: fix Solaris 9 bug with trailing slash
60856         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
60857         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
60858         * doc/posix-functions/readlink.texi (readlink): Document this.
60859         * modules/readlink-tests: New test.
60860         * tests/test-readlink.c: Likewise.
60862         readlink: fix cygwin 1.5.x bug with return type
60863         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
60864         * lib/unistd.in.h (readlink): Use ssize_t.
60865         * lib/readlink.c (readlink): Likewise.
60866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60867         * modules/unistd (Makefile.am): Substitute it.
60868         * lib/unistd.in.h (readlink): Declare replacement.
60869         * doc/posix-functions/readlink.texi (readlink): Document this.
60871         symlink: use throughout gnulib
60872         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
60873         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
60874         symlink is not used.
60875         * modules/symlinkat (Depends-on): Add symlink.
60876         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
60877         * modules/canonicalize-tests (Depends-on): Likewise.
60878         * modules/lstat-tests (Depends-on): Likewise.
60879         * modules/openat-tests (Depends-on): Likewise.
60880         * modules/remove-tests (Depends-on): Likewise.
60881         * modules/rmdir-tests (Depends-on): Likewise.
60882         * modules/unlink-tests (Depends-on): Likewise.
60883         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
60884         * tests/test-canonicalize.c (symlink): Likewise.
60885         * tests/test-fstatat.c (symlink): Likewise.
60886         * tests/test-lstat.c (symlink): Likewise.
60887         * tests/test-remove.c (symlink): Likewise.
60888         * tests/test-rmdir.c (symlink): Likewise.
60889         * tests/test-unlink.c (symlink): Likewise.
60890         * tests/test-unlinkat.c (symlink): Likewise.
60892         symlink: new module, for Solaris 9 bug
60893         * modules/symlink: New file.
60894         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
60895         * lib/symlink.c: Likewise.
60896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
60897         * modules/unistd (Makefile.am): Substitute them.
60898         * lib/unistd.in.h (symlink): Declare replacement.
60899         * MODULES.html.sh (File system functions): Mention it.
60900         * doc/posix-functions/symlink.texi (symlink): Likewise.
60901         * modules/symlink-tests: New test.
60902         * tests/test-symlink.c: Likewise.
60904 2009-09-23  Bruno Haible  <bruno@clisp.org>
60906         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
60907         when needed.
60908         Test case: gnulib-tool --import --with-tests atexit inttypes.
60909         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
60911 2009-09-23  Bruno Haible  <bruno@clisp.org>
60913         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
60914         subcommand, not in a subshell.
60916 2009-09-22  Eric Blake  <ebb9@byu.net>
60918         unistd: sort replacement declarations
60919         * lib/unistd.in.h: Sort declarations.
60921         open, openat: minor optimization
60922         * lib/open.c (open): If open succeeded, len is non-zero.
60923         * lib/openat.c (rpl_openat): Likewise.
60925         link-follow: ensure correct result
60926         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
60927         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
60928         distinguish between possible failures.
60930 2009-09-21  Eric Blake  <ebb9@byu.net>
60932         fts: avoid compiler warning
60933         * lib/fts.c (dirent_inode_sort_may_be_useful)
60934         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
60936 2009-09-19  Bruno Haible  <bruno@clisp.org>
60938         * lib/progreloc.c (canonicalize_file_name): New declaration.
60940 2009-09-19  Eric Blake  <ebb9@byu.net>
60942         link: fix quoting
60943         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
60945         openat: fix openat bugs on Solaris 9
60946         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
60947         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
60948         * modules/openat (Depends-on): Add open.
60949         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
60950         * modules/fcntl-h (Makefile.am): Substitute it.
60951         * lib/fcntl.in.h (openat): Declare replacement.
60952         * doc/posix-functions/openat.texi (openat): Document this.
60954         openat: move fstatat and unlinkat into correct files
60955         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
60956         compiled.
60957         * lib/openat.c (fstatat, unlinkat): Move...
60958         * lib/fstatat.c (fstatat): ...into correct files.
60959         * lib/unlinkat.c (unlinkat): Likewise.
60961         openat: fix unlinkat bugs on Solaris 9
60962         * lib/unlinkat.c (unlinkat): New file.
60963         * modules/openat (Depends-on): Add unlink.
60964         (Files): Distribute it.
60965         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
60966         trailing slash behavior is broken.
60967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60968         * modules/unistd (Makefile.am): Substitute it.
60969         * lib/unistd.in.h (unlinkat): Declare replacement.
60970         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
60972         openat: fix fstatat bugs on Solaris 9
60973         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
60974         stat.
60975         * doc/posix-functions/fstatat.texi (fstatat): Document this.
60977         test-unlinkat: enhance test, to expose Solaris 9 bug
60978         * tests/test-unlink.c (main): Factor guts...
60979         * tests/test-unlink.h (test_rmdir_func): ...into new file.
60980         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
60981         * tests/test-rmdir.c (main): Adjust caller.
60982         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
60983         (unlinker): New helper function.
60984         (rmdirat): Enhance check.
60985         * modules/rmdir-tests (Depends-on): Add stdbool.
60986         * modules/unlink-tests (Depends-on): Likewise.
60987         (Files): Add test-unlink.h.
60988         * modules/openat-tests (Files): Likewise.
60989         (Depends-on): Add unlinkdir.
60991         test-fstatat: new test, to expose Solaris 9 bugs
60992         * tests/test-stat.c (main): Factor guts...
60993         * tests/test-stat.h (test_stat_func): ...into new file.
60994         * tests/test-lstat.c (main): Factor guts...
60995         * tests/test-lstat.h (test_lstat_func): ...into new file.
60996         * tests/test-fstatat.c: New file.
60997         * modules/stat-tests (Files): Add test-stat.h.
60998         * modules/lstat-tests (Files): Add test-lstat.h.
60999         (Depends-on): Add stdbool.
61000         * modules/openat-tests (Depends-on): Add pathmax.
61001         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
61002         (Makefile.am): Run new test.
61004         remove: new module, for mingw and Solaris 9 bugs
61005         * modules/remove: New file.
61006         * lib/remove.c: Likewise.
61007         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
61008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
61009         * modules/stdio (Makefile.am): Use them.
61010         * lib/stdio.in.h (remove): Declare replacement.
61011         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61012         * doc/posix-functions/remove.texi (remove): Likewise.
61013         * modules/remove-tests: New test.
61014         * tests/test-remove.c: Likewise.
61016         unlink: new module, for Solaris 9 bug
61017         * modules/unlink: New file.
61018         * lib/unlink.c: Likewise.
61019         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
61020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
61021         * modules/unistd (Makefile.am): Use them.
61022         * lib/unistd.in.h (stat): Declare replacement.
61023         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61024         * doc/posix-functions/unlink.texi (unlink): Likewise.
61025         * modules/unlink-tests: New test.
61026         * tests/test-unlink.c: Likewise.
61028         lstat: fix Solaris 9 bug
61029         * lib/lstat.c (lstat): Also check for trailing slash on
61030         non-symlink, non-directories.  Use stat module to simplify logic.
61031         * doc/posix-functions/lstat.texi (lstat): Document it.
61032         * modules/lstat-tests (Depends-on): Add errno, same-inode.
61033         (configure.ac): Check for symlink.
61034         * tests/test-lstat.c (main): Add more tests.
61036         stat: add as dependency to other modules
61037         * modules/chown (Depends-on): Add stat.
61038         * modules/euidaccess (Depends-on): Likewise.
61039         * modules/fchdir (Depends-on): Likewise.
61040         * modules/isdir (Depends-on): Likewise.
61041         * modules/link (Depends-on): Likewise.
61042         * modules/lstat (Depends-on): Likewise.
61043         * modules/mkdir-p (Depends-on): Likewise.
61044         * modules/modechange (Depends-on): Likewise.
61045         * modules/open (Depends-on): Likewise.
61046         * modules/readlink (Depends-on): Likewise.
61047         * modules/same (Depends-on): Likewise.
61049         stat: fix Solaris 9 bug
61050         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
61051         slash.
61052         * lib/stat.c (rpl_stat): Work around it.
61053         * doc/posix-functions/stat.texi (stat): Update documentation.
61055         stat: new module, for mingw bug
61056         * modules/stat: New file.
61057         * lib/stat.c: Likewise.
61058         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
61059         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
61060         * modules/sys_stat (Makefile.am): Use them.
61061         * lib/sys_stat.in.h (stat): Declare replacement.
61062         * lib/openat.c (fstatat): Deal with lstat and stat being function
61063         macros.
61064         * modules/openat (Depends-on): Add inline.
61065         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61066         * doc/posix-functions/stat.texi (stat): Likewise.
61067         * modules/stat-tests: New test.
61068         * tests/test-stat.c: Likewise.
61070 2009-09-19  Jim Meyering  <meyering@redhat.com>
61072         syntax-check: detect unnecessary inclusion of canonicalize.h
61073         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
61075 2009-09-19  Eric Blake  <ebb9@byu.net>
61077         canonicalize-lgpl: adjust clients to use correct header
61078         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
61079         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
61080         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
61081         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
61082         * lib/progreloc.c (includes): Likewise.
61084 2009-09-19  Jim Meyering  <meyering@redhat.com>
61086         test-posixtm.c: correct a comment
61087         * tests/test-posixtm.c: Correct first-line comment.
61088         Spotted by Eric Blake.
61090 2009-09-16  Jim Meyering  <meyering@redhat.com>
61092         posixtm-tests: make T const-correct; add a test case
61093         * tests/test-posixtm.c (T): Declare const.
61094         Add a test for -(2^31+1).
61095         Remove useless can-succeed-only-in-2002 test.
61097         posixtm-tests: adjust the sole failing test
61098         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
61099         expected output matches what mktime now produces.  Cross-checked via
61100         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
61102         posixtm: move #ifdef'd tests into a new module
61103         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
61104         * tests/test-posixtm.c: ... this new file.
61105         * modules/posixtm-tests: New module.
61107 2009-09-19  Eric Blake  <ebb9@byu.net>
61109         openat: simplify use of at-func.c
61110         * lib/at-func.c (includes): Include prerequisites here, to
61111         simplify requirements on client files.
61112         * lib/openat-priv.h: Add double-inclusion guard.
61113         * lib/faccessat.c (includes): Simplify.
61114         * lib/fchmodat.c (includes): Likewise.
61115         * lib/fchownat.c (includes): Likewise.
61116         * lib/mkdirat.c (includes): Likewise.
61117         * lib/mkfifoat.c (includes): Likewise.
61118         * lib/symlinkat.c (includes): Likewise.
61120         openat: allow return of fd 0
61121         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
61122         * modules/save-cwd (Depends-on): Replace fcntl-safer with
61123         unistd-safer.
61124         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
61125         <fcntl.h>; this module does not leak fds.
61126         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
61127         must be allowed to return 0, leaving openat_safer to add the
61128         safety.
61129         (openat_permissive): Avoid writing to just-opened fd 2 if
61130         restoring the current directory fails.
61131         * lib/openat-die.c (openat_restore_fail): Add comment.
61132         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
61133         (save_cwd): Guarantee safe fd, but without use of open_safer.
61134         * tests/test-openat.c: New test.
61135         * modules/openat-tests (Files, Makefile.am): Distribute and build
61136         new file.
61138         relocatable-prog-wrapper: fix build
61139         * modules/relocatable-prog-wrapper (Files): Update name of
61140         canonicalize m4 file, broken on 2009-09-17.
61141         Reported by emad hajjar <aleppos@hotmail.com>.
61143 2009-09-19  Bruno Haible  <bruno@clisp.org>
61145         * lib/safe-alloc.h: Use the standard header with GPL copyright.
61146         * lib/safe-alloc.c: Likewise.
61147         Reported by Ian Beckwith <ianb@erislabs.net>.
61149 2009-09-18  Bruno Haible  <bruno@clisp.org>
61151         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
61152         Reported by <erobles@sensacd.com.mx>.
61154 2009-09-17  Eric Blake  <ebb9@byu.net>
61156         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
61157         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
61158         slashes when checking if last component is missing.
61159         * tests/test-canonicalize.c (main): Test this.
61161         canonicalize, canonicalize-lgpl: honor // if distinct from /
61162         * modules/canonicalize (Files): Add double-slash-root.m4.
61163         * modules/canonicalize-lgpl (Files): Likewise.
61164         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
61165         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
61166         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
61167         fallback definition.
61168         (canonicalize_filename_mode): Use it to protect //.
61169         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
61170         (__realpath): Likewise.
61171         * tests/test-canonicalize.c (main): Test this.
61172         * tests/test-canonicalize-lgpl.c (main): Likewise.
61173         * modules/canonicalize-tests (Depends-on): Add same-inode.
61174         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
61176         canonicalize-lgpl: fix glibc bug with trailing slash
61177         * m4/canonicalize-lgpl.m4: Move contents...
61178         * m4/canonicalize.m4: ...here.
61179         (gl_CANONICALIZE_LGPL): Factor realpath check...
61180         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
61181         glibc 2.3.5 bug, fixed 2005-04-27.
61182         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
61183         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
61184         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
61185         * modules/canonicalize-lgpl (Files): Manage file rename.
61186         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
61187         * modules/stdlib (Makefile.am): Substitute witness.
61188         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
61189         is needed.
61190         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
61191         replacement is required.
61192         * lib/canonicalize.c (canonicalize_file_name): Likewise.
61193         * doc/glibc-functions/canonicalize_file_name.texi
61194         (canonicalize_file_name): Document this.
61195         * doc/posix-functions/realpath.texi (realpath): Likewise.
61197         canonicalize-lgpl: reject non-directory with trailing slash
61198         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
61199         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
61200         catches failures in glibc 2.3.5.
61201         * tests/test-canonicalize.c (main): Likewise.
61203         canonicalize-lgpl: use native realpath if it works
61204         * lib/canonicalize-lgpl.c (realpath): Guard with
61205         FUNC_REALPATH_WORKS.
61206         * lib/stdlib.in.h (realpath): Make declaration optional based on
61207         HAVE_REALPATH.
61208         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
61209         native realpath works.
61210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
61211         * modules/stdlib (Makefile.am): Substitute witness.
61213         canonicalize, canonicalize-lgpl: use <stdlib.h>
61214         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
61215         (Include): Mention <stdlib.h>.
61216         (configure.ac): Mention functions we provide.
61217         * modules/canonicalize (configure.ac): Likewise.
61218         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
61219         realpath if canonicalize_file_name is missing.
61220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
61221         * modules/stdlib (Makefile.am): Substitute witnesses.
61222         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
61223         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
61224         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
61225         * NEWS: Document this.
61226         * doc/glibc-functions/canonicalize_file_name.texi
61227         (canonicalize_file_name): Likewise.
61228         * doc/posix-functions/realpath.texi (realpath): Likewise.
61229         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
61231         test-canonicalize: consolidate into single C program
61232         * tests/test-canonicalize.sh: Delete; move setup into...
61233         * tests/test-canonicalize.c (main): ...the program, making it
61234         easier to run in debugger.  Add some tests.
61235         * modules/canonicalize-tests (Files): Remove unused file.
61236         (Depends-on): Add progname.
61237         (configure.ac, Makefile.am): Simplify.
61239         test-canonicalize-lgpl: consolidate into single C program
61240         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
61241         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
61242         easier to run in debugger.  Add some tests.
61243         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
61244         (configure.ac, Makefile.am): Simplify.
61246         canonicalize: avoid resolvepath
61247         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
61248         unnecessary checks.
61249         * lib/canonicalize.c (includes): Simplify.
61250         (canonicalize_file_name): Drop resolvepath implementation.
61251         * modules/canonicalize (Depends-on): Drop filenamecat.
61253         canonicalize: don't lose errno
61254         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
61255         over calls to free.
61257         canonicalize: simplify errno handling
61258         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
61259         assignment.
61261         canonicalize, canonicalize-lgpl: update module dependencies
61262         * modules/canonicalize (Depends-on): Add extensions, lstat,
61263         pathmax, stdlib.
61264         (Files): Drop pathmax.h.
61265         (configure.ac): Adjust macro name.
61266         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
61267         lstat, stdlib, sys_stat.
61268         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
61269         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
61270         extensions.
61271         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
61272         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
61273         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
61274         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
61275         declaration, if available.
61276         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
61277         we can rely on the readlink module.
61278         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
61279         (includes): Use <unistd.h> unconditionally.
61281 2009-09-17  Eric Blake  <ebb9@byu.net>
61283         maint: make Include sections of modules consistent
61284         * modules/alloca: Use only header name; no need to list #include.
61285         * modules/alloca-opt: Likewise.
61286         * modules/arpa_inet: Likewise.
61287         * modules/canon-host: Likewise.
61288         * modules/configmake: Likewise.
61289         * modules/dirent: Likewise.
61290         * modules/eealloc: Likewise.
61291         * modules/environ: Likewise.
61292         * modules/fchdir: Likewise.
61293         * modules/fcntl: Likewise.
61294         * modules/fcntl-h: Likewise.
61295         * modules/gethrxtime: Likewise.
61296         * modules/gettime: Likewise.
61297         * modules/ignore-value: Likewise.
61298         * modules/inet_ntop: Likewise.
61299         * modules/inet_pton: Likewise.
61300         * modules/inttypes: Likewise.
61301         * modules/isnand-nolibm: Likewise.
61302         * modules/isnanf-nolibm: Likewise.
61303         * modules/mbchar: Likewise.
61304         * modules/mbfile: Likewise.
61305         * modules/mbiter: Likewise.
61306         * modules/mbuiter: Likewise.
61307         * modules/netdb: Likewise.
61308         * modules/netinet_in: Likewise.
61309         * modules/nproc: Likewise.
61310         * modules/pagealign_alloc: Likewise.
61311         * modules/poll: Likewise.
61312         * modules/printf-frexp: Likewise.
61313         * modules/pthread: Likewise.
61314         * modules/putenv: Likewise.
61315         * modules/random_r: Likewise.
61316         * modules/relocatable-prog: Likewise.
61317         * modules/search: Likewise.
61318         * modules/select: Likewise.
61319         * modules/selinux-h: Likewise.
61320         * modules/settime: Likewise.
61321         * modules/signal: Likewise.
61322         * modules/size_max: Likewise.
61323         * modules/socklen: Likewise.
61324         * modules/ssize_t: Likewise.
61325         * modules/stdarg: Likewise.
61326         * modules/stdbool: Likewise.
61327         * modules/stddef: Likewise.
61328         * modules/stdint: Likewise.
61329         * modules/stdio: Likewise.
61330         * modules/stdlib: Likewise.
61331         * modules/string: Likewise.
61332         * modules/strings: Likewise.
61333         * modules/sys_file: Likewise.
61334         * modules/sys_ioctl: Likewise.
61335         * modules/sys_select: Likewise.
61336         * modules/sys_socket: Likewise.
61337         * modules/sys_stat: Likewise.
61338         * modules/sys_time: Likewise.
61339         * modules/sys_times: Likewise.
61340         * modules/sys_utsname: Likewise.
61341         * modules/sys_wait: Likewise.
61342         * modules/sysexits: Likewise.
61343         * modules/time: Likewise.
61344         * modules/times: Likewise.
61345         * modules/tmpfile: Likewise.
61346         * modules/trim: Likewise.
61347         * modules/unistd: Likewise.
61348         * modules/wchar: Likewise.
61349         * modules/wctype: Likewise.
61351 2009-09-17  Bruno Haible  <bruno@clisp.org>
61353         Make getdate.y compile on QNX and NetBSD 5 / i386.
61354         * m4/getdate.m4 (gl_GETDATE): Conditionally define
61355         TIME_T_FITS_IN_LONG_INT.
61356         * lib/getdate.y (long_time_t): New type.
61357         (relative_time): Change type of 'seconds' field to long_time_t.
61358         (get_date): Update types of local variables. Check against overflow
61359         during conversion from long_time_t to time_t.
61360         Reported by Matt Kraai <kraai@ftbfs.org>
61361         and Hasso Tepper <hasso@netbsd.org>.
61363 2009-09-17  Bruno Haible  <bruno@clisp.org>
61365         * modules/COPYING: Update copyright years.
61366         * modules/README: Likeiwse.
61367         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
61368         Reported by Ian Beckwith <ianb@erislabs.net>.
61370 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
61372         * users.txt: Update references for gnuit package.
61374 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
61376         * m4/getdelim.m4: Fix typo in copyright line.
61378 2009-09-17  Bruno Haible  <bruno@clisp.org>
61380         * lib/atoll.c: Use the standard header with GPL copyright.
61381         * lib/argz.in.h: Likewise.
61382         * lib/glob.c: Likewise.
61383         * lib/glob-libc.h: Likewise.
61384         * lib/random_r.c: Likewise.
61385         * lib/siglist.h: Likewise.
61386         * lib/strsignal.c: Likewise.
61387         Reported by Ian Beckwith <ianb@erislabs.net>.
61389 2009-09-17  Eric Blake  <ebb9@byu.net>
61391         rmdir: ensure correct dependency order
61392         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
61394 2009-09-17  Bruno Haible  <bruno@clisp.org>
61396         Disable assertion that fails on NetBSD 5 / i386.
61397         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
61398         Reported by Sam Steingold <sds@gnu.org>
61399         and Hasso Tepper <hasso@netbsd.org>.
61401 2009-09-16  Eric Blake  <ebb9@byu.net>
61403         unlinkdir: port to mingw
61404         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
61405         on which no one can unlink a directory.
61407         stdlib: sort witness names
61408         * modules/stdlib (Makefile.am): Sort replacements.
61409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61410         * lib/stdlib.in.h: Likewise.
61412         parse-duration-tests: avoid link failure
61413         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
61414         LIBINTL.
61415         Reported by Tom G. Christensen.
61417         openat-tests: ensure unlinkat behaves like rmdir
61418         * tests/test-rmdir.c (main): Factor guts...
61419         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
61420         * modules/rmdir-tests (Files): Ship new file.
61421         * modules/openat-tests: New test.
61422         * tests/test-unlinkat.c: Likewise.
61424         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
61425         * modules/rmdir-errno (Status, Notice): Now obsolete.
61427         rmdir: work around cygwin 1.5.x and mingw bugs
61428         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
61429         * lib/rmdir.c (rmdir): Work around it.
61430         * modules/rmdir (Status, Notice): No longer obsolete.
61431         (Files): Add dos.m4.
61432         (Depends-on): Add unistd.
61433         (configure.ac): Set witnesses.
61434         (License): Relax to LGPLv2+.
61435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
61436         * modules/unistd (Makefile.am): Substitute witnesses.
61437         * lib/unistd.in.h (rmdir): Declare replacement.
61438         * doc/posix-functions/rmdir.texi (rmdir): Document this.
61439         * modules/rmdir-tests: New tests.
61440         * tests/test-rmdir.c: Likewise.
61442 2009-09-15  Eric Blake  <ebb9@byu.net>
61444         fchdir: improve use of replacement functions
61445         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
61446         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
61447         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
61448         REPLACE_CLOSEDIR.
61449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
61450         * modules/sys_stat (Makefile.am): Substitute correct witness.
61451         * modules/dirent (Makefile.am): Likewise.
61452         * modules/unistd (Makefile.am): Likewise.
61453         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
61454         * lib/unistd.in.h (dup): Likewise.
61455         * lib/sys_stat.in.h (fstat): Likewise.
61457         maint: ignore gnulib-tool temp files
61458         * .gitignore: Ignore files created during gnulib-tool --test.
61460 2009-09-13  Jim Meyering  <meyering@redhat.com>
61462         posixtm: don't reject a time that specify "60" as the number of seconds
61463         * lib/posixtm.c (posixtime): The code to reject invalid dates
61464         would also reject a time specified with the .60 suffix.
61465         But POSIX allows that, in order to accommodate leap seconds.
61466         So don't reject it.
61467         (main): Adjust tests accordingly.
61468         * modules/posixtm (Depends-on): Add stpcpy.
61470 2009-09-11  Jim Meyering  <meyering@redhat.com>
61472         announce-gen: include [$release_type] in emitted Subject:
61473         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
61474         e.g., [stable] in the emitted Subject: line.
61476 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61478         Remove obsolete macros from several modules.
61479         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
61480         obsolete Autoconf macros with their modern counterparts.
61481         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
61482         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
61483         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
61484         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
61485         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
61486         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61487         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61488         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
61489         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
61490         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
61491         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
61492         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
61493         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
61494         * m4/sockets.m4 (gl_SOCKETS): Likewise.
61495         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
61496         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
61497         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
61498         * m4/time_r.m4 (gl_TIME_R): Likewise.
61499         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
61500         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
61501         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61503         Fix copyright header in build-aux scripts.
61504         * build-aux/git-version-gen: Fix copyright header to match GPLv3
61505         recommendation.
61506         * build-aux/ncftpput-ftp: Likewise.
61507         * build-aux/update-copyright: Likewise.
61509 2009-09-09  Eric Blake  <ebb9@byu.net>
61511         test-link: allow Linux choice of errno
61512         * tests/test-link.c (main): Relax test for alternate error.
61514         strndup: fix improper m4 caching
61515         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
61516         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
61517         (gl_PREREQ_STRNDUP): Delete.
61518         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
61519         * modules/string (Makefile.am): Substitute it.
61520         * lib/string.in.h (strndup): Modernize prototype.
61522         getcwd: port to mingw
61523         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
61524         different from the POSIX assumptions made throughout the getcwd
61525         module; fortunately, the mingw getcwd does not need replacement.
61526         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
61527         * modules/getcwd-tests: New test.
61528         * tests/test-getcwd.c: Likewise.
61530         link: fix platform bugs
61531         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
61532         * lib/link.c (link): Work around them.  Fix related mingw bug.
61533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
61534         * modules/unistd (Makefile.am): Substitute it.
61535         * lib/unistd.in.h (link): Declare replacement.
61536         * doc/posix-functions/link.texi (link): Document this.
61537         * modules/link (Depends-on): Add strdup-posix, sys_stat.
61539         test-link: consolidate into single C program, test more cases
61540         * tests/test-link.sh: Delete.
61541         * tests/test-link.c: Test more error conditions.  Exposes bugs on
61542         at least Cygwin and Solaris.
61543         * modules/link-tests (Files): Remove unused file.
61544         (Depends-on): Add errno, sys_stat.
61545         (Makefile.am): Simplify.
61547 2009-09-08  Bruno Haible  <bruno@clisp.org>
61549         Work around towlower, towupper bug on mingw.
61550         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
61551         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
61552         * doc/posix-functions/towlower.texi: Mention the mingw bug.
61553         * doc/posix-functions/towupper.texi: Likewise.
61554         Reported by Eric Blake.
61556 2009-09-08  Jim Meyering  <meyering@redhat.com>
61558         build: don't try to run autoheader if we don't use it
61559         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
61560         is not used in configure.ac.
61562 2009-09-08  Eric Blake  <ebb9@byu.net>
61564         euidaccess: fix compilation error
61565         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
61567         rawmemchr: relax license
61568         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
61569         okay.
61570         Reported by Jim Meyering.
61572         mkfifoat: new module
61573         * modules/mkfifoat: New file.
61574         * lib/mkfifoat.c: Likewise.
61575         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
61576         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
61577         * modules/sys_stat (Makefile.am): Use them.
61578         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
61579         * MODULES.html.sh (File system functions): Mention module.
61580         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
61581         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
61582         * modules/mkfifoat-tests: New test.
61583         * tests/test-mkfifoat.c: Likewise.
61585         strchrnul: relax license
61586         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
61587         okay.
61588         Reported by Jim Meyering.
61590 2009-09-08  Eric Blake  <ebb9@byu.net>
61592         fstatat: fix compilation on Solaris
61593         * lib/fstatat.c (includes): Add fcntl.h.
61594         Reported by Pádraig Brady.
61596 2009-09-07  Eric Blake  <ebb9@byu.net>
61598         rename: modernize replacement
61599         * modules/rename (Depends-on): Add stdio.
61600         (configure.ac): Declare witness.
61601         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
61602         stdio take care of replacement.
61603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
61604         * modules/stdio (Makefile.am): Substitute them.
61605         * lib/stdio.in.h (rename): Declare replacement.
61606         * lib/rename.c (includes): Allow cross-compilation to non-windows
61607         machines.
61608         * doc/posix-functions/rename.texi (rename): Improve
61609         documentation.
61611         stdio: sort witness names
61612         * modules/stdio (Makefile.am): Sort replacements.
61613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61614         * lib/stdio.in.h: Likewise.
61616         getcwd: minor cleanups
61617         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
61618         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
61620         openat: provide more convenience names
61621         * modules/faccessat (configure.ac): Add C witness.
61622         * lib/unistd.in.h (readlinkat): Fix typo.
61623         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
61624         convenience wrappers.
61625         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
61626         wrappers in syntax checks.
61628 2009-09-06  Eric Blake  <ebb9@byu.net>
61630         doc: fix comments in recent patches
61631         * lib/faccessat.c: Mention correct function.
61632         * lib/fchmodat.c: Likewise.
61633         * lib/fchownat.c: Likewise.
61634         * lib/symlinkat.c: Likewise.
61635         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
61636         constants.
61638         faccessat, symlinkat: continue cleanup of previous patch
61639         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
61640         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
61641         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
61642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
61643         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
61644         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
61645         set.
61647 2009-09-06  Bruno Haible  <bruno@clisp.org>
61649         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
61650         (fstatat): Declare if GNULIB_FSTATAT is set.
61651         (mkdirat): Declare if GNULIB_MKDIRAT is set.
61652         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
61653         (unlinkat): Declare if GNULIB_UNLINKAT is set.
61654         * modules/fcntl-h (Files): Remove m4/openat.m4.
61655         * modules/sys_stat (Files): Remove m4/openat.m4.
61656         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
61657         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
61658         * modules/unistd (Files): Remove m4/openat.m4.
61659         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
61660         GNULIB_OPENAT.
61661         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
61662         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
61663         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
61664         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
61665         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
61666         gl_OPENAT_DEFAULTS.
61667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
61668         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
61669         Don't require gl_OPENAT_DEFAULTS.
61670         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
61671         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
61672         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
61673         (gl_OPENAT_DEFAULTS): Remove macro.
61675 2009-09-06  Bruno Haible  <bruno@clisp.org>
61677         * modules/openat (configure.ac): Remove unneeded witness.
61679 2009-09-06  Bruno Haible  <bruno@clisp.org>
61681         Set errno to ENOSYS when a function is entirely unsupported.
61682         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
61683         EOPNOTSUPP.
61684         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
61685         * modules/chown (Depends-on): Remove errno.
61687 2009-09-06  Bruno Haible  <bruno@clisp.org>
61689         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
61691 2009-09-06  Bruno Haible  <bruno@clisp.org>
61693         * lib/sys_stat.in.h: Fix preprocessor command indentation.
61695 2009-09-06  Ben Pfaff  <blp@gnu.org>
61696             Bruno Haible  <bruno@clisp.org>
61698         Work around a glibc bug in strtok_r.
61699         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
61700         Undefine if UNDEFINE_STRTOK_R is set.
61701         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
61702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61703         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
61704         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
61705         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
61706         UNDEFINE_STRTOK_R.
61707         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
61709 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
61711         exclude: minor fix
61712         * lib/exclude.c: Include wctype.h
61714 2009-09-06  Akim Demaille  <demaille@gostai.com>
61716         bootstrap: improve error message
61717         * build-aux/bootstrap (find_tool): Upon failure, report the list
61718         of candidates.
61719         Honor the initial value of the envvar.
61721 2009-09-05  Eric Blake  <ebb9@byu.net>
61723         symlinkat: new module
61724         * modules/symlinkat: New file.
61725         * lib/symlinkat.c: Likewise.
61726         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
61727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
61728         * modules/unistd (Makefile.am): Use them.
61729         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
61730         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
61731         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
61732         * MODULES.html.sh (File system functions): Mention module.
61733         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
61734         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61735         * modules/symlinkat-tests: New test.
61736         * tests/test-symlinkat.c: Likewise.
61738         test-openat-safer: add more checks
61739         * tests/test-openat-safer.c (main): Check more code paths.
61741 2009-09-05  Jim Meyering  <meyering@redhat.com>
61743         syntax-check: detect unnecessary inclusion of openat.h
61744         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
61746 2009-09-05  Bruno Haible  <bruno@clisp.org>
61748         Support towlower, towupper.
61749         * doc/posix-functions/towlower.texi: Mention module wctype.
61750         * doc/posix-functions/towupper.texi: Likewise.
61751         * lib/wctype.in.h (towlower, towupper): New functions.
61752         * tests/test-wctype.c: Include stdio.h, stdlib.h.
61753         (ASSERT): New macro.
61754         (e): New variable.
61755         (main): Test also towlower, towupper. Test WEOF argument.
61756         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
61758 2009-09-05  Bruno Haible  <bruno@clisp.org>
61760         Fix conversion behaviour when the input is invalid.
61761         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
61762         mark occurring in first pass of indirect conversion.
61763         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
61764         input.
61765         Found by clang's static analyzer.
61767 2009-09-05  Bruno Haible  <bruno@clisp.org>
61769         * tests/test-striconveh.c (main): Test indirect conversion on platforms
61770         where direct conversion is possible.
61772 2009-09-04  Eric Blake  <ebb9@byu.net>
61774         openat: fail with ENOENT on empty name
61775         * lib/openat-proc.c (openat_proc_name): Special-case the empty
61776         buffer.
61778         link-follow: fix logic bug in prior patch
61779         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
61780         reversed sense of yes and no in prior patch.  Avoid confusing
61781         compilation failure with desired semantics.
61783         link-follow: accommodate mingw and cross-compilation
61784         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
61785         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
61786         cross-compilation results to -1, to make linkat easier to
61787         implement when cross-compiling.  Trivially support mingw.
61788         * modules/link-follow (configure.ac): Call new name.
61789         * NEWS: Mention this.
61791 2009-09-03  Eric Blake  <ebb9@byu.net>
61793         faccessat: compile replacement
61794         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
61795         needed.
61797         fts: fix compilation error
61798         * lib/fts.c (includes): Re-add "openat.h", for
61799         openat_needs_fchdir.
61801         faccessat: new module
61802         * modules/faccessat: New file.
61803         * lib/faccessat.c: Likewise.
61804         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
61805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61806         * modules/unistd (Makefile.am): Use it.
61807         * lib/unistd.in.h (faccessat): Declare it.
61808         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
61809         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
61810         * MODULES.html.sh (File system functions): Mention it.
61811         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
61812         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
61814         euidaccess: prefer POSIX over non-standard implementation
61815         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
61816         * lib/euidaccess.c (euidaccess): Use it if available.
61818         openat: make template easier to use
61819         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
61820         AT_FUNC_F2 to be undefined.
61821         (VALIDATE_FLAG): New macro; use it to reject bad flags.
61822         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
61823         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
61824         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
61825         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
61826         Likewise.
61827         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
61828         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
61829         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
61830         Likewise.
61832         openat: declare in POSIX headers
61833         * NEWS: Mention this.
61834         * modules/openat (configure.ac): Declare witnesses.
61835         (Depends-on): Add fcntl-h, sys_stat, unistd.
61836         (Include): Mention correct headers.
61837         * modules/fcntl-h (Depends-on): Add link-warning.
61838         (Files): Add openat.m4.
61839         (Makefile.am): Substitute witnesses.
61840         * modules/sys_stat (Files, Makefile.am): Likewise.
61841         * modules/unistd (Files, Makefile.am): Likewise.
61842         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
61843         (gl_OPENAT_DEFAULTS): New macro.
61844         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
61845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
61846         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
61847         (SYS_STAT_H): Remove unused variable.
61848         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
61849         * lib/fcntl--.h (includes): Remove unneeded header.
61850         * lib/openat-safer.c (includes): Likewise.
61851         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
61852         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
61853         appropriate headers.
61854         (__OPENAT_PREFIX): Delete.
61855         * lib/fcntl.in.h (openat): Provide declaration.
61856         (AT_FDCWD): Fix Solaris bug.
61857         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
61858         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
61859         * lib/fchmodat.c (includes):  Adjust to find declaration.
61860         * lib/fchownat.c (includes): Likewise.
61861         * lib/mkdirat.c (includes): Likewise.
61862         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
61863         still visible.
61865 2009-09-02  Eric Blake  <ebb9@byu.net>
61867         errno: use consistently
61868         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
61869         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
61870         * lib/canonicalize.c (ELOOP): Likewise.
61871         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
61872         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
61873         * lib/lchown.c (EOPNOTSUPP): Likewise.
61874         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
61875         * lib/savewd.c (ESTALE): Likewise.
61876         * lib/settime.c (ENOSYS): Likewise.
61877         * lib/utimens.c (ENOSYS): Likewise.
61878         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
61879         * lib/chdir-safer.c (ELOOP): Likewise.
61880         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
61881         * modules/c-stack (Depends-on): Add errno.
61882         * modules/canonicalize (Depends-on): Likewise.
61883         * modules/chdir-safer (Depends-on): Likewise.
61884         * modules/fdopendir (Depends-on): Likewise.
61885         * modules/inet_ntop (Depends-on): Likewise.
61886         * modules/inet_pton (Depends-on): Likewise.
61887         * modules/lchown (Depends-on): Likewise.
61888         * modules/openat (Depends-on): Likewise.
61889         * modules/savewd (Depends-on): Likewise.
61890         * modules/settime (Depends-on): Likewise.
61891         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
61893         fts: avoid leaking fds
61894         * modules/fts (Depends-on): Add cloexec.
61895         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
61896         flag.
61898         fts: make directory fds more robust
61899         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
61900         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
61902         backupfile, chdir-long, fts, savedir: make safer
61903         * lib/backupfile.c (includes): Use "dirent--.h", since
61904         numbered_backup can write to stderr during readdir.
61905         * lib/savedir.c (includes): Likewise.
61906         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
61907         emulation can write to stderr on failure.
61908         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
61909         * lib/getcwd.c: Document why opendir_safer is unused.
61910         * lib/glob.c: Likewise.
61911         * lib/scandir.c: Likewise.
61912         * lib/openat-proc.c: Likewise, for open_safer.
61913         * modules/backupfile (Depends-on): Add dirent-safer.
61914         * modules/savedir (Depends-on): Likewise.
61915         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
61916         * modules/chdir-long (Depends-on): Add openat-safer.
61918         openat-safer: new module
61919         * modules/openat-safer: New file.
61920         * lib/openat-safer.c: Likewise.
61921         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
61922         * lib/fcntl-safer.h (openat_safer): Declare.
61923         * lib/fcntl--.h (openat): Override.
61924         * MODULES.html.sh (File descriptor based I/O): Mention it.
61925         * lib/openat.h: Add double-inclusion guards.
61926         * lib/openat.c (includes): Only include "fcntl-safer.h", not
61927         "fcntl--.h", so we can implement openat.
61928         * modules/openat-safer-tests: New test.
61929         * tests/test-openat-safer.c: New file.
61931         dirent-safer: new module
61932         * modules/dirent-safer: New file.
61933         * lib/dirent--.h: Likewise.
61934         * lib/dirent-safer.h: Likewise.
61935         * lib/opendir-safer.c: Likewise.
61936         * m4/dirent-safer.m4: Likewise.
61937         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
61938         * modules/dirent-safer-tests: New test.
61939         * tests/test-dirent-safer.c: New file.
61940         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
61942         fdopendir: optimize on mingw
61943         * lib/unistd.in.h (_gl_directory_name): New prototype.
61944         * lib/fchdir.c (_gl_directory_name): Implement it.
61945         (fchdir): Use it to simplify implementation.
61946         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
61947         fchdir, when available, to avoid calling [f]chdir().
61949         fdopendir: split into its own module
61950         * lib/openat.c (fdopendir): Move...
61951         * lib/fdopendir.c: ...into new file.
61952         * modules/fdopendir: New module.
61953         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
61954         * modules/openat (Depends-on): Add fdopendir.
61955         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
61956         fdopendir here.
61957         * modules/savedir (Depends-on): Only need fdopendir, not full
61958         openat.
61959         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
61960         * lib/openat.h (fdopendir): Drop prototype.
61961         * lib/dirent.in.h (fdopendir): Provide prototype.
61962         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
61963         * modules/dirent (Makefile.am): Substitute them.
61964         * MODULES.html.sh (File system functions): Mention it.
61965         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
61966         * modules/fdopendir-tests: New file.
61967         * tests/test-fdopendir.c: Likewise.
61969         fchdir: use more consistent macro convention
61970         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
61971         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
61972         REPLACE_FCHDIR, rather than relying on config.h macros.
61973         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
61974         inside a single make-time REPLACE_FCHDIR block, rather than using
61975         the config.h FCHDIR_REPLACEMENT.
61976         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
61977         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
61978         Manage fstat replacement.
61979         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
61980         REPLACE_FCHDIR.
61981         * modules/sys_stat (Files): Add m4/unistd_h.m4.
61982         (Makefile.am): Substitute REPLACE_FCHDIR.
61983         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
61984         FCHDIR_REPLACEMENT.
61985         * lib/dup-safer.c (dup_safer): Likewise.
61986         * lib/dup2.c (rpl_dup2): Likewise.
61987         * lib/dup3.c (rpl_dup3): Likewise.
61988         * lib/open.c (rpl_open): Likewise.
61990         fchdir: simplify error handling, and support dup3
61991         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
61992         stdbool, malloc-posix, realloc-posix.
61993         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
61994         (ensure_dirs_slot): Return false on allocation failure.
61995         (rpl_dup2): Delete.
61996         (_gl_register_dup): New function.
61997         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
61998         (_gl_register_fd): Close fd on allocation failure.
61999         * lib/fcntl.in.h (_gl_register_fd): Update signature.
62000         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
62001         prototype.
62002         (rpl_dup2_fchdir): Delete prototype.
62003         * lib/open.c (open): Update caller.
62004         * lib/dup2.c (dup2): Track fchdir metadata.
62005         * lib/dup3.c (dup3): Likewise.
62006         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
62007         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
62009 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62011         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
62012         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
62013         don't pass arguments to AC_OUTPUT.
62015 2009-09-02  Bruno Haible  <bruno@clisp.org>
62017         * modules/mkdtemp (License): Relicense under LGPLv2+.
62018         Reported by Paolo Bonzini.
62020 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62022         Replace uses of obsolete autoconf macros in Jim's modules.
62023         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
62024         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
62025         can evoke a warning from autoconf when run with -Wobsolete
62026         enabled.  They were declared obsolete for good reasons (see
62027         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
62028         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
62029         should not continue using the deprecated macros.
62030         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
62031         obsolete Autoconf macros with modern counterparts.
62032         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62033         * m4/dos.m4 (gl_AC_DOS): Likewise.
62034         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
62035         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
62036         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
62037         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
62038         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
62039         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
62040         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
62041         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
62042         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
62043         Likewise.
62044         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
62045         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62046         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
62047         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
62048         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
62049         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62051 2009-09-01  Eric Blake  <ebb9@byu.net>
62053         fchdir: fix off-by-one bug in previous patch
62054         * lib/fchdir.c (rpl_fstat): Use correct bounds.
62055         (_gl_unregister_fd): Delete useless if.
62057 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
62059         maint.mk: sort the list of syntax-check rules
62060         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
62061         easier to get a sense of progress when the rules are run sequentially
62062         and take a long time.
62064 2009-09-01  Simon Josefsson  <simon@josefsson.org>
62066         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
62067         * modules/netinet_in: Likewise.
62068         * modules/sys_file: Likewise.
62069         * modules/sys_ioctl: Likewise.
62070         * modules/sys_select: Likewise.
62071         * modules/sys_socket: Likewise.
62072         * modules/sys_stat: Likewise.
62073         * modules/sys_time: Likewise.
62074         * modules/sys_times: Likewise.
62075         * modules/sys_utsname: Likewise.
62076         * modules/sys_wait: Likewise.
62078 2009-09-01  Jim Meyering  <meyering@redhat.com>
62080         fts: help ensure that return values are not ignored
62081         * lib/fts_.h (__GNUC_PREREQ): Define.
62082         (__attribute_warn_unused_result__): Define.
62083         (fts_children, fts_close, fts_open, fts_read): Declare with
62084         __attribute_warn_unused_result__.
62086         fts: fts_close now fails also when closing a dir file descriptor fails
62087         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
62088         and propagate to caller, along with errno.
62090         announce-gen: correct formatting in --help output
62091         * build-aux/announce-gen (usage): Move the one-line description in
62092         --help output "up", to where it belongs, just after Usage:.
62094 2009-08-31  Eric Blake  <ebb9@byu.net>
62096         fchdir: port to mingw
62097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
62098         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
62099         opened, then use a substitute.
62100         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
62101         replacement.
62102         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
62103         (_gl_register_fd): No need to check stat if open already filters
62104         all directories.
62105         (fchdir): Fix error condition to match POSIX.
62106         * modules/fchdir (Depends-on): Add sys_stat.
62107         * doc/posix-functions/open.texi (open): Document the limitation.
62108         * modules/fchdir-tests: New file.
62109         * tests/test-fchdir.c: Likewise.
62111         canonicalize: allow cross-testing from cygwin to mingw
62112         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
62113         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
62114         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
62115         Likewise.
62116         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
62117         target does not support symlinks.
62118         * tests/test-canonicalize-lgpl.sh: Likewise.
62120         chown: avoid compilation warning on mingw
62121         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
62122         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
62123         mingw.
62124         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
62125         * modules/chown (Depends-on): Add errno.
62127 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
62129         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
62130         command.
62132 2009-08-31  Jim Meyering  <meyering@redhat.com>
62134         canonicalize: remove useless initialization
62135         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
62136         initialization of local, "end".
62138 2009-08-30  Bruno Haible  <bruno@clisp.org>
62140         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
62141         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
62142         ENOSYS.
62144 2009-08-30  Bruno Haible  <bruno@clisp.org>
62146         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
62147         /usr/xpg4/bin/tr when it exists.
62148         * tests/test-pipe-filter-gi1.sh: Likewise.
62150 2009-08-30  Bruno Haible  <bruno@clisp.org>
62152         Work around deficient /usr/bin/id program on Solaris.
62153         * tests/test-file-has-acl.sh (ID): New variable.
62154         * tests/test-set-mode-acl.sh (ID): Likewise.
62155         * tests/test-copy-acl.sh (ID): Likewise.
62156         * tests/test-copy-file.sh (ID): Likewise.
62158 2009-08-30  Bruno Haible  <bruno@clisp.org>
62160         New module 'xstriconveh'.
62161         * lib/xstriconveh.h: New file.
62162         * lib/xstriconveh.c: New file.
62163         * modules/xstriconveh: New file.
62165 2009-08-30  Bruno Haible  <bruno@clisp.org>
62167         Make it easier to use mem_cd_iconveh.
62168         * lib/striconveh.h (iconveh_t): New type.
62169         (iconveh_open, iconveh_close): New declarations.
62170         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
62171         with a single 'const iconveh_t *' argument.
62172         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
62173         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
62174         with a single 'const iconveh_t *' argument.
62175         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
62176         * tests/test-striconveh.c (main): Update.
62177         * NEWS: Mention the change.
62179 2009-08-30  Bruno Haible  <bruno@clisp.org>
62181         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
62182         problem.
62184 2009-08-30  Bruno Haible  <bruno@clisp.org>
62186         Work around iconv_open problem on Solaris.
62187         * lib/iconv_open-solaris.gperf: New file.
62188         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
62189         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
62190         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
62191         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
62192         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
62193         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
62195 2009-08-29  Jim Meyering  <meyering@redhat.com>
62197         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
62198         * top/maint.mk (cvs-check): Remove target; it was just an alias
62199         to the better-named vc-diff-check.
62200         (maintainer-distcheck): Remove rule.  It was used only from
62201         the (alpha/beta/major) target, and all of its commands but one
62202         were coreutils-specific.
62203         (vc-dist): Remove rule.
62204         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
62205         Run vc-diff-check, not vc-dist.
62206         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
62208 2009-08-27  Bruno Haible  <bruno@clisp.org>
62210         * tests/test-bitrotate.c (main): Remove test that uses a shift count
62211         of 0.
62213 2009-08-27  Bruno Haible  <bruno@clisp.org>
62215         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
62216         compilers.
62217         * doc/func.texi: Document the SunPRO C bug.
62219 2009-08-27  Bruno Haible  <bruno@clisp.org>
62221         Fix link error on Solaris.
62222         * tests/test-parse-duration.c (xstrdup): Remove function.
62224 2009-08-26  Pádraig Brady  <P@draigbrady.com>
62226         ignore-value: handle pointer types, too
62227         * lib/ignore-value.h (__attribute__): Remove definition.
62228         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
62229         of a more concise and more-often effective "(void) i" statement.
62230         (ignore_ptr): New function to suppress warnings from functions that
62231         return pointers, and to make it explicit that one function doesn't
62232         handle all cases.
62234 2009-08-25  Bruno Haible  <bruno@clisp.org>
62236         dup2: work around a Linux bug.
62237         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
62238         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
62239         * doc/posix-functions/dup2.texi: Mention the Linux bug.
62240         Reported by Simon Josefsson.
62242 2009-08-25  Jim Meyering  <meyering@redhat.com>
62244         libguestfs uses gnulib
62245         * users.txt: Add libguestfs.
62247 2009-08-24  Eric Blake  <ebb9@byu.net>
62249         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
62250         * lib/pipe2.c (includes): Add binary-io.h.
62251         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
62253 2009-08-24  Bruno Haible  <bruno@clisp.org>
62255         Tolerate declared but missing accept4 syscall.
62256         * lib/accept4.c (accept4): Invoke original accept4 function first, if
62257         available.
62258         * lib/sys_socket.in.h (accept4): If the function is already present,
62259         override it.
62260         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
62261         * modules/accept4 (Makefile.am): Compile accept4.c always.
62262         Reported by Paolo Bonzini and Eric Blake.
62264 2009-08-23  Bruno Haible  <bruno@clisp.org>
62266         New module 'accept4'.
62267         * lib/sys_socket.in.h (accept4): New declaration.
62268         * lib/accept4.c: New file.
62269         * m4/accept4.m4: New file.
62270         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
62271         GNULIB_ACCEPT4, HAVE_ACCEPT4.
62272         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
62273         HAVE_ACCEPT4.
62274         * modules/accept4: New file.
62275         * doc/glibc-functions/accept4.texi: Mention the new module.
62277 2009-08-24  Jim Meyering  <meyering@redhat.com>
62279         progname: also set global program_invocation_name, when possible
62280         Before this change, a libtool-enabled program that calls glibc's
62281         error function would report the program name as
62282         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
62283         * modules/progname (configure.ac): Check for a declaration of
62284         program_invocation_name.
62285         * lib/progname.c:  Include <errno.h>.
62286         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
62287         Set program_invocation_name.
62289 2009-08-23  Bruno Haible  <bruno@clisp.org>
62291         * lib/dup3.c: Include <string.h>.
62293 2009-08-23  Bruno Haible  <bruno@clisp.org>
62295         * lib/dup3.c (dup3): Test only once whether the system actually exists.
62296         * lib/pipe2.c (pipe2): Likewise.
62297         Suggested by Eric Blake.
62299 2009-08-23  Bruno Haible  <bruno@clisp.org>
62301         Tolerate declared but missing dup3 syscall.
62302         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
62303         * lib/unistd.in.h (dup3): If the function is already present,
62304         override it.
62305         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
62306         * modules/dup3 (Makefile.am): Compile dup3.c always.
62307         Reported by Paolo Bonzini.
62309 2009-08-23  Bruno Haible  <bruno@clisp.org>
62311         Tolerate declared but missing pipe2 syscall.
62312         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
62313         available.
62314         * lib/unistd.in.h (pipe2): If the function is already present,
62315         override it.
62316         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
62317         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
62318         Reported by Paolo Bonzini.
62320 2009-08-23  Bruno Haible  <bruno@clisp.org>
62322         * lib/pipe2.c (pipe2): Move #ifs inside function.
62324 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
62326         quotearg: document limitations of quote_these_too
62327         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
62328         those limitations are created.
62329         * lib/quotearg.h (set_char_quoting): Document that digits and
62330         letters that are special after backslash are not permitted.
62331         (quotearg_char): Cross-reference set_char_quoting documentation.
62333 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
62335         quotearg: implement custom_quoting_style
62336         * lib/quotearg.c: (struct quoting_options): Add left_quote and
62337         right_quote fields.
62338         (set_custom_quoting): New public function.
62339         (quotearg_buffer_restyled): Add left_quote and right_quote
62340         arguments, handle them very much like locale quoting, and update
62341         all uses.
62342         (quotearg_n_custom): New public function.
62343         (quotearg_n_custom_mem): New public function.
62344         (quotearg_custom): New public function.
62345         (quotearg_custom_mem): New public function.
62346         * lib/quotearg.h: Prototype and document new public functions.
62347         (enum quoting_style): For escape_quoting_style and
62348         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
62349         ignored even though they're otherwise like c_quoting_style.
62350         Add custom_quoting_style member and document with comparison to
62351         clocale_quoting_style.
62352         * tests/test-quotearg.c (custom_quotes): New array.
62353         (custom_results): New array.
62354         (main): Extend to test custom quoting.
62356 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
62358         quotearg: fix right quote escaping when it's in quote_these_too
62359         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
62360         quote, be sure to prepend only one backslash.
62361         * tests/test-quotearg.c (use_quote_double_quotes): New function.
62362         (main): Test it.
62364 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
62366         quotearg-tests: test escaping of embedded locale quotes
62367         * tests/test-quotearg.c (struct result_strings): Add member for
62368         new input.
62369         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
62370         (inputs): Add new input.
62371         (results_g): Add expected results.
62372         (flag_results): Likewise.
62373         (locale_results): Likewise.
62374         (compare_strings): Check those.
62376 2009-08-23  Bruno Haible  <bruno@clisp.org>
62378         Tests for module 'dup3'.
62379         * modules/dup3-tests: New file.
62380         * tests/test-dup3.c: New file.
62382         New module 'dup3'.
62383         * lib/unistd.in.h (dup3): New declaration.
62384         * lib/dup3.c: New file.
62385         * m4/dup3.m4: New file.
62386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
62387         HAVE_DUP3.
62388         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
62389         * modules/dup3: New file.
62390         * doc/glibc-functions/dup3.texi: Mention the new module.
62392 2009-08-23  Bruno Haible  <bruno@clisp.org>
62394         Tweak the dup2 test.
62395         * tests/test-dup2.c (main): Create the test file empty. Verify that an
62396         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
62397         the test file is still empty. Fix argument order of lseek.
62399 2009-08-23  Bruno Haible  <bruno@clisp.org>
62401         Avoid test link errors when the modules getopt-gnu, gettext are used.
62402         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
62403         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62405 2009-08-23  Bruno Haible  <bruno@clisp.org>
62407         Fix getdtablesize() on mingw.
62408         * lib/getdtablesize.c (getdtablesize): Implement differently.
62409         * lib/unistd.in.h (getdtablesize): Improve comment.
62411 2009-08-23  Bruno Haible  <bruno@clisp.org>
62413         New module 'mkostemp'.
62414         Based on Ulrich Drepper's 2007-08-10 change in glibc.
62415         * lib/stdlib.in.h (mksotemp): New declaration.
62416         * lib/mkostemp.c: New file, from glibc with modifications.
62417         * lib/tempname.h (GT_FILE): Remove outdated comment.
62418         (gen_tempname): Add flags argument.
62419         * lib/tempname.c (__GT_BIGFILE): Remove macro.
62420         (__GT_FILE): Map to 1.
62421         (small_open, large_open): Remove macros.
62422         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
62423         * lib/mkstemp.c (mkstemp): Update.
62424         * lib/mkdtemp.c (mkdtemp): Likewise.
62425         * m4/mkostemp.m4: New file.
62426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
62427         HAVE_MKOSTEMP.
62428         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
62429         HAVE_MKOSTEMP.
62430         * modules/mkostemp: New file, based on modules/mkstemp.
62431         * doc/glibc-functions/mkostemp.texi: Mention the new module.
62432         * NEWS: Mention the change.
62434 2009-08-23  Bruno Haible  <bruno@clisp.org>
62436         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
62437         Reported by Eric Blake.
62439 2009-08-23  Bruno Haible  <bruno@clisp.org>
62441         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
62442         Reported by Eric Blake.
62444 2009-08-23  Bruno Haible  <bruno@clisp.org>
62446         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
62447         * modules/pipe2 (Depends-on): Likewise.
62449 2009-08-23  Eric Blake  <ebb9@byu.net>
62451         fcntl-h: add O_TTY_INIT support
62452         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
62453         * tests/test-fcntl-h.c (o): Test it.
62454         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
62456         fcntl-h: rename from fcntl, in preparation for fcntl(2)
62457         * modules/fcntl: Move <fcntl.h> header replacement...
62458         * modules/fcntl-h: ...to new name, so as not to collide with
62459         like-named function.
62460         * tests/test-fcntl.c: Rename...
62461         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
62462         * modules/fcntl-tests: Rename...
62463         * modules/fcntl-h-tests: ...to this.  Update test file name.
62464         * modules/chdir-long (Depends-on): Update clients.
62465         * modules/chdir-safer (Depends-on): Likewise.
62466         * modules/fcntl-safer (Depends-on): Likewise.
62467         * modules/fts (Depends-on): Likewise.
62468         * modules/mkancesdirs (Depends-on): Likewise.
62469         * modules/mkdir-p (Depends-on): Likewise.
62470         * modules/open (Depends-on): Likewise.
62471         * modules/savewd (Depends-on): Likewise.
62472         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
62473         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
62475 2009-08-22  Bruno Haible  <bruno@clisp.org>
62477         * modules/binary-io (License): Relicense under LGPL.
62478         * modules/pipe2 (License): Likewise.
62480 2009-08-22  Bruno Haible  <bruno@clisp.org>
62482         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
62483         return value.
62484         * lib/pipe-filter-gi.c (filter_init): Likewise.
62485         Reported by Eric Blake.
62487 2009-08-22  Bruno Haible  <bruno@clisp.org>
62489         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
62490         * modules/pipe (Depends-on): Add pipe2.
62492 2009-08-22  Bruno Haible  <bruno@clisp.org>
62494         Tests for module 'pipe2'.
62495         * modules/pipe2-tests: New file.
62496         * tests/test-pipe2.c: New file.
62498         New module 'pipe2'.
62499         * lib/unistd.in.h (pipe2): New declaration.
62500         * lib/pipe2.c: New file.
62501         * m4/pipe2.m4: New file.
62502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
62503         HAVE_PIPE2.
62504         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
62505         * modules/pipe2: New file.
62506         * doc/glibc-functions/pipe2.texi: Mention the new module.
62508 2009-08-22  Bruno Haible  <bruno@clisp.org>
62510         Reference some new glibc functions.
62511         * doc/glibc-functions/accept4.texi: New file.
62512         * doc/glibc-functions/dup3.texi: New file.
62513         * doc/glibc-functions/mkostemp.texi: New file.
62514         * doc/glibc-functions/pipe2.texi: New file.
62515         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
62516         (Glibc sys/socket.h): Refer to accept4.
62517         (Glibc unistd.h): Refer to dup3, pipe2.
62518         Reported by Eric Blake.
62520 2009-08-22  Jim Meyering  <meyering@redhat.com>
62521             Bruno Haible  <bruno@clisp.org>
62523         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
62524         This makes it so packages using automake-1.11's silent-rules option
62525         can print e.g., a single "GEN    configmake.h" line, rather than
62526         the 30+ statements that perform the job.  If you want to see the
62527         actual commands, you can still run "make V=1".
62528         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
62529         so that make output is abbreviated when those variables are defined
62530         appropriately.
62531         * modules/argz: Likewise.
62532         * modules/arpa_inet: Likewise.
62533         * modules/byteswap: Likewise.
62534         * modules/configmake: Likewise.
62535         * modules/dirent: Likewise.
62536         * modules/errno: Likewise.
62537         * modules/fcntl: Likewise.
62538         * modules/float: Likewise.
62539         * modules/fnmatch: Likewise.
62540         * modules/getopt-posix: Likewise.
62541         * modules/glob: Likewise.
62542         * modules/iconv_open: Likewise.
62543         * modules/inttypes: Likewise.
62544         * modules/localcharset: Likewise.
62545         * modules/locale: Likewise.
62546         * modules/math: Likewise.
62547         * modules/netdb: Likewise.
62548         * modules/netinet_in: Likewise.
62549         * modules/poll: Likewise.
62550         * modules/posix_spawnp-tests: Likewise.
62551         * modules/sched: Likewise.
62552         * modules/search: Likewise.
62553         * modules/selinux-h: Likewise.
62554         * modules/signal: Likewise.
62555         * modules/spawn: Likewise.
62556         * modules/stdarg: Likewise.
62557         * modules/stdbool: Likewise.
62558         * modules/stddef: Likewise.
62559         * modules/stdint: Likewise.
62560         * modules/stdio: Likewise.
62561         * modules/stdlib: Likewise.
62562         * modules/string: Likewise.
62563         * modules/strings: Likewise.
62564         * modules/sys_file: Likewise.
62565         * modules/sys_ioctl: Likewise.
62566         * modules/sys_select: Likewise.
62567         * modules/sys_socket: Likewise.
62568         * modules/sys_stat: Likewise.
62569         * modules/sys_time: Likewise.
62570         * modules/sys_times: Likewise.
62571         * modules/sys_utsname: Likewise.
62572         * modules/sys_wait: Likewise.
62573         * modules/sysexits: Likewise.
62574         * modules/time: Likewise.
62575         * modules/unistd: Likewise.
62576         * modules/wchar: Likewise.
62577         * modules/wctype: Likewise.
62579 2009-08-22  Jim Meyering  <meyering@redhat.com>
62581         announce-gen: detect write failure
62582         * build-aux/announce-gen: Add Coda at end.
62583         Remove equivalent-but-more-verbose block at top.
62585 2009-08-19  Akim Demaille  <demaille@gostai.com>
62587         bootstrap: --help to stdout.
62588         * bootstrap (usage): Don't send --help to stderr.
62589         Use a here doc instead of a long string.
62591 2009-08-21  Eric Blake  <ebb9@byu.net>
62593         test-popen-safer: split from test-popen
62594         * tests/test-popen.c (main): Move...
62595         * tests/test-popen.h: ...into new file.
62596         * tests/test-popen-safer2.c: New file.
62597         * modules/popen-tests (Files): Add test-popen.h.
62598         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
62599         Suggested by Bruno Haible.
62601         test-fcntl-safer: split from test-open
62602         * tests/test-open.c (main): Move...
62603         * tests/test-open.h: ...into new file.
62604         * tests/test-fcntl-safer.c: New file.
62605         * modules/open-tests (Files): Add test-open.h.
62606         * modules/fcntl-safer-tests: New file.
62607         Suggested by Bruno Haible.
62609         test-fopen-safer: split from test-fopen
62610         * tests/test-fopen.c (main): Move...
62611         * tests/test-fopen.h: ...into new file.
62612         * tests/test-fopen-safer.c: New file.
62613         * modules/fopen-tests (Files): Add test-fopen.h.
62614         * modules/fopen-safer-tests: New file.
62615         Suggested by Bruno Haible.
62617 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
62619         popen-safer: test O_CLOEXEC at run-time.
62620         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
62622 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
62624         fcntl: move more flags to the header
62625         * lib/cloexec.c: Do not define FD_CLOEXEC here.
62626         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
62627         * lib/fcntl.in.h: Do both things here.
62629 2009-08-21  Jim Meyering  <meyering@redhat.com>
62631         consistently remove $@-t before redirecting to it
62632         * modules/argz: Remove $@-t and $@ before redirecting to the former.
62633         * modules/alloca-opt: Likewise.
62634         * modules/byteswap: Likewise.
62635         * modules/fnmatch: Likewise.
62636         * modules/getopt-posix: Likewise.
62637         * modules/glob: Likewise.
62638         * modules/poll: Likewise.
62639         * modules/posix_spawnp-tests: Likewise.
62640         * modules/sys_socket: Likewise.
62641         * modules/sysexits: Likewise.
62643 2009-08-21  Eric Blake  <ebb9@byu.net>
62645         popen: simplify access to original popen
62646         * lib/popen.c (rpl_popen): No need to worry about popen being a
62647         macro.
62648         Reported by Bruno Haible.
62650 2009-08-20  Eric Blake  <ebb9@byu.net>
62652         build: avoid some compiler warnings
62653         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
62654         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
62655         type.
62656         (new_exclude_segment, excluded_file_pattern_p)
62657         (excluded_file_name_p): Reduce scope.
62658         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
62659         old-style declaration.
62661 2009-08-20  Simon Josefsson  <simon@josefsson.org>
62663         * tests/test-exclude1.sh: Handle Windows EOL.
62664         * tests/test-exclude2.sh: Likewise.
62665         * tests/test-exclude3.sh: Likewise.
62666         * tests/test-exclude4.sh: Likewise.
62667         * tests/test-exclude5.sh: Likewise.
62668         * tests/test-exclude6.sh: Likewise.
62669         * tests/test-exclude7.sh: Likewise.
62671 2009-08-19  Akim Demaille  <demaille@gostai.com>
62673         bootstrap: find sha1sum when named gsha1sum.
62674         * bootstrap (find_tool): New.
62675         ($SHA1SUM): New.
62676         Use it.
62678 2009-08-20  Jim Meyering  <meyering@redhat.com>
62680         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
62681         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
62682         expression that converts "." in a file name to "\." in the resulting
62683         regexp.  Start with a dummy statement, so that prior shell variable
62684         definitions are expanded portably.  Reported by Simon Josefsson.
62686 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
62688         Fix polling for writeability of a screen buffer.
62689         * lib/poll.c: Distinguish input and screen buffers for the
62690         Win32 implementation.
62691         * lib/select.c: Likewise.
62693 2009-08-19  Eric Blake  <ebb9@byu.net>
62695         popen-safer: prevent popen from clobbering std descriptors
62696         * modules/popen-safer: New file.
62697         * lib/popen-safer.c: Likewise.
62698         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
62699         * lib/stdio--.h (popen): Provide override.
62700         * lib/stdio-safer.h (popen_safer): Provide declaration.
62701         * tests/test-popen.c (includes): Partially test this.
62702         * modules/popen-safer-tests: New file, for more tests.
62703         * tests/test-popen-safer.c: Likewise.
62704         * MODULES.html.sh (file stream based Input/Output): Mention it.
62706         tests: test some of the *-safer modules
62707         * modules/fopen-safer (Depends-on): Add fopen.
62708         * modules/fcntl-safer (Depends-on): Add fcntl.
62709         * modules/stdlib-safer (Depends-on): Add stdlib.
62710         (configure.ac): Set indicator.
62711         * modules/unistd-safer (configure.ac): Likewise.
62712         * modules/tmpfile-safer (configure.ac): Likewise.
62713         (Depends-on): Add tmpfile.
62714         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
62715         active.
62716         * tests/test-fopen.c (includes): Test safer versions when they are
62717         in use.
62718         * tests/test-open.c (includes): Likewise.
62720         popen: fix cygwin 1.5 bug when stdin closed
62721         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
62722         * modules/popen: New file.
62723         * modules/popen-tests: Likewise.
62724         * tests/test-popen.c: Likewise.
62725         * m4/popen.m4: Likewise.
62726         * lib/popen.c: Likewise.
62727         * lib/stdio.in.h (popen): New declaration.
62728         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
62729         * modules/stdio (Makefile.am): Likewise.
62730         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
62732 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
62734         maint.mk: give full control over update-copyright exclusions
62735         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
62736         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
62737         (update-copyright): Don't force inclusion of top-level
62738         ChangeLog.  Don't force exclusion of all COPYING files, but make
62739         them the default exclusion instead.
62741 2009-08-16  Bruno Haible  <bruno@clisp.org>
62743         Fix test failures on Solaris 10.
62744         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
62745         tests when Solaris iconv() is used.
62746         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
62747         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62748         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62749         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62750         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62752 2009-08-16  Bruno Haible  <bruno@clisp.org>
62754         Fix test failures on Solaris 10.
62755         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
62756         'tr' program and pass it as first argument.
62757         * tests/test-pipe-filter-gi1.sh: Likewise.
62758         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
62759         program as first argument.
62760         * tests/test-pipe-filter-gi1.c (main): Likewise.
62762 2009-08-16  Eric Blake  <ebb9@byu.net>
62764         fpurge: fix previous commits
62765         * modules/fpurge (Makefile.am): Make replacement conditional,
62766         partially reverting 2007-04-29 change; missed in previous
62767         attempt.
62768         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
62769         is missing.
62771 2009-08-16  Bruno Haible  <bruno@clisp.org>
62773         Clarify fpurge's effect on the file position.
62774         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
62775         * tests/test-fpurge.c (main): Make a second pass for checking the file
62776         position.
62778 2009-08-16  Bruno Haible  <bruno@clisp.org>
62780         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
62781         declaration of fpurge is missing.
62782         * tests/test-fpurge.c (main): Check that the file has not more contents
62783         than expected. Close the file before removing it.
62785 2009-08-15  Eric Blake  <ebb9@byu.net>
62787         fpurge: don't wrap working cygwin implementation
62788         * lib/fpurge.c (fpurge): Fix comment typo.
62789         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
62790         1.7 to avoid replacement.
62791         * tests/test-fpurge.c (main): Enhance test.
62793 2009-08-15  Eric Blake  <ebb9@byu.net>
62794         and Jim Meyering  <meyering@redhat.com>
62796         test-update-copyright: skip if perl is insufficient
62797         * tests/test-update-copyright.sh: Failure to run maintainer tool
62798         should not cause testsuite failure on cygwin 1.5.
62800 2009-08-14  Eric Blake  <ebb9@byu.net>
62802         doc: mention more functions added in cygwin 1.7.0
62803         * doc/posix-headers/limits.texi (limits.h): Update for recent
62804         cygwin additions.
62805         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
62806         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
62807         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
62808         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
62809         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
62811 2009-08-14  Eric Blake  <ebb9@byu.net>
62813         maint.mk: simplify update-copyright rule
62814         * top/maint.mk (update-copyright-local): Delete, and document how
62815         to do it in cfg.mk instead.
62816         (update-copyright-exclude-regexp): Delete, and document how to do
62817         it in .x-update-copyright instead.
62818         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
62819         exclude ChangeLog.
62821 2009-08-14  Bruno Haible  <bruno@clisp.org>
62823         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
62825 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
62827         maint.mk: support update-copyright-env
62828         * top/maint.mk (update-copyright-env): Define place-holder.
62829         (update-copyright): Expand $(update-copyright-env) before
62830         invoking update-copyright.
62832 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
62834         update-copyright: implement forced reformatting
62835         * build-aux/update-copyright: Implement and document
62836         UPDATE_COPYRIGHT_FORCE.
62837         * tests/test-update-copyright.sh: Test it.
62839 2009-08-14  Eric Blake  <ebb9@byu.net>
62840         and Bruno Haible  <bruno@clisp.org>
62842         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
62843         * tests/test-locale.c: Revert previous patch related to NULL.
62844         * tests/test-stdio.c: Likewise.
62845         * tests/test-stdlib.c: Likewise.
62846         * tests/test-string.c: Likewise.
62847         * tests/test-unistd.c: Likewise.
62848         * modules/time-tests (Depends-on): Add verify.
62849         * modules/wchar-tests (Depends-on): Likewise.
62850         * tests/test-time.c: Test for NULL compliance.
62851         * tests/test-wchar.c: Likewise.
62852         * modules/locale (Depends-on): Add stddef.
62853         * modules/stdio (Depends-on): Likewise.
62854         * modules/stdlib (Depends-on): Likewise.
62855         * modules/string (Depends-on): Likewise.
62856         * modules/time (Depends-on): Likewise.
62857         * modules/unistd (Depends-on): Likewise.
62858         * modules/wchar (Depends-on): Likewise.
62859         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
62860         * lib/stdlib.in.h (includes): Likewise.
62861         * lib/string.in.h (includes): Likewise.
62862         * lib/time.in.h (includes): Likewise.
62863         * lib/unistd.in.h (includes): Likewise.
62864         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
62865         replaced.
62866         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
62867         * m4/stddef_h.m4: New file.
62868         * modules/stddef: Likewise.
62869         * lib/stddef.in.h: Likewise.
62870         * modules/stddef-tests: Likewise.
62871         * tests/test-stddef.c: Likewise.
62872         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
62873         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
62874         * doc/posix-headers/locale.texi (locale.h): Likewise.
62875         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
62876         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
62877         * doc/posix-headers/string.texi (string.h): Likewise.
62878         * doc/posix-headers/time.texi (time.h): Likewise.
62879         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
62880         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
62882 2009-08-14  Eric Blake  <ebb9@byu.net>
62884         doc: improve git diff of texinfo files
62885         * .gitattributes: Add rule for *.texi files, with hint on how to
62886         use it.
62887         Copied from m4, and based on a report by Bruno Haible.
62889 2009-08-14  Bruno Haible  <bruno@clisp.org>
62891         Disable multithread support by default on Cygwin 1.5.x for real.
62892         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
62894 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
62896         update-copyright: much ado about intervals
62897         * build-aux/update-copyright: Implement and document
62898         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
62899         of copyright year intervals.
62900         Also, document UPDATE_COPYRIGHT_YEAR.
62901         * tests/test-update-copyright.sh: Test it.
62903         update-copyright: convert 2-digit to 4-digit years
62904         * build-aux/update-copyright: Implement and document.
62905         * tests/test-update-copyright.sh: Update.
62907 2009-08-14  Jim Meyering  <meyering@redhat.com>
62909         test-exclude: avoid coreutils "make check" failure
62910         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
62911         just as in test-argmatch.c.
62913 2009-08-13  Eric Blake  <ebb9@byu.net>
62915         test-dup2: fix bad assumption
62916         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
62917         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
62919         test-version-etc: fix CRLF portability issue
62920         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
62921         recognize \r.
62922         * tests/test-argp-version-etc-1.sh: Likewise.
62924         getopt: update client modules
62925         * modules/argp (Depends-on): Use getopt-gnu.
62926         * modules/git-merge-changelog (Depends-on): Likewise.
62927         * modules/long-options (Depends-on): Likewise.
62928         * modules/xstrtol (Depends-on): Likewise.
62930 2009-08-13  Simon Josefsson  <simon@josefsson.org>
62932         * tests/test-version-etc.sh: Don't fail on different
62933         project/version.  Don't fail on CRLF differences.  Rewrite to use
62934         multiple -e instead of multiple sed forks, suggested by Eric Blake
62935         <ebb9@byu.net>.
62936         * tests/test-argp-version-etc-1.sh: Likewise.
62938 2009-08-13  Simon Josefsson  <simon@josefsson.org>
62940         * tests/test-version-etc.sh: Don't fail on different
62941         project/version.
62943 2009-08-12  Bruno Haible  <bruno@clisp.org>
62945         Tests for modules 'getopt-posix', 'getopt-gnu'.
62946         * modules/getopt-posix-tests: New file.
62947         * tests/test-getopt.c: New file.
62948         * tests/test-getopt.h: New file.
62949         * tests/test-getopt_long.h: New file.
62951         New modules 'getopt-posix', 'getopt-gnu'.
62952         * modules/getopt-gnu: New file, renamed from modules/getopt.
62953         * modules/getopt-posix: New file.
62954         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
62955         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
62956         (gl_GETOPT): Remove macro.
62957         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
62958         Disable the test against BSD systems that declare optreset. Test
62959         against mingw bug. Test against lack of support of optional arguments
62960         on many platforms.
62961         * doc/glibc-headers/getopt.texi: Update module name and list of
62962         relevant platforms.
62963         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
62964         'getopt-gnu' and more portability problems.
62965         * NEWS: Mention the changes.
62967 2009-08-12  Bruno Haible  <bruno@clisp.org>
62969         Ensure that optarg etc. get declared by <unistd.h>.
62970         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
62971         AC_USE_SYSTEM_EXTENSIONS.
62972         * modules/getopt (Depends-on): Add 'extensions'.
62974 2009-08-12  Bruno Haible  <bruno@clisp.org>
62976         Avoid test link errors.
62977         * modules/pipe-filter-ii-tests (Makefile.am): Define
62978         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
62979         * modules/pipe-filter-gi-tests (Makefile.am): Define
62980         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
62981         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62983 2009-08-12  Bruno Haible  <bruno@clisp.org>
62985         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
62986         gl_GETOPT_SUBSTITUTE before.
62987         (gl_GETOPT): Use it.
62988         * m4/argp.m4 (gl_ARGP): Update.
62989         Reported by Sergey Poznyakoff.
62991         * m4/getopt.m4: Reorder macros.
62992         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
62993         (gl_GETOPT_SUBSTITUTE): Remove macro.
62995 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62997         Minor improvement in gitlog-to-changelog
62999         * build-aux/gitlog-to-changelog: New option `--format' makes
63000         output format string configurable.
63002 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63004         Optimize exclude: use hash tables for non-wildcard patterns.
63006         * lib/exclude.c: Include hash.h and mbuiter.h
63007         (struct exclude_pattern, exclude_segment): New data types.
63008         (struct exclude): Rewrite.
63009         (fnmatch_pattern_has_wildcards): New function.
63010         (new_exclude_segment, free_exclude_segment): New functions.
63011         (excluded_file_pattern_p, excluded_file_name_p): New functions.
63012         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
63013         * lib/exclude.h (is_fnmatch_pattern): New prototype.
63014         * modules/exclude: Depend on hash and mbuiter.
63016         * modules/exclude-tests: New file.
63017         * tests/test-exclude.c: New file.
63018         * tests/test-exclude1.sh: New file.
63019         * tests/test-exclude2.sh: New file.
63020         * tests/test-exclude3.sh: New file.
63021         * tests/test-exclude4.sh: New file.
63022         * tests/test-exclude5.sh: New file.
63023         * tests/test-exclude6.sh: New file.
63024         * tests/test-exclude7.sh: New file.
63026 2009-08-12  Bruno Haible  <bruno@clisp.org>
63028         Ensure that getopt() gets declared by <unistd.h>.
63029         * lib/unistd.in.h: Conditionally include getopt.h.
63030         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
63031         Set GNULIB_UNISTD_H_GETOPT.
63032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63033         GNULIB_UNISTD_H_GETOPT.
63034         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
63036 2009-08-12  Bruno Haible  <bruno@clisp.org>
63038         Clarify logic.
63039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
63040         gl_replace_getopt instead of GETOPT_H.
63042 2009-08-12  Bruno Haible  <bruno@clisp.org>
63044         * m4/getopt.m4: Add comments.
63046 2009-08-12  Bruno Haible  <bruno@clisp.org>
63048         Disable multithread support by default on Cygwin 1.5.x.
63049         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
63050         set gl_use_threads=no if not specified otherwise.
63052 2009-08-11  Bruno Haible  <bruno@clisp.org>
63054         Avoid compilation error on NetBSD 5.0.
63055         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
63056         * tests/test-stdio.c: Likewise.
63057         * tests/test-stdlib.c: Likewise.
63058         * tests/test-string.c: Likewise.
63059         * tests/test-unistd.c: Likewise.
63060         Reported by Greg Troxel <gdt@ir.bbn.com>
63061         at <https://savannah.gnu.org/support/?106973>.
63063 2009-08-11  Bruno Haible  <bruno@clisp.org>
63065         * modules/dup2-tests (Depends-on): Remove close.
63067         Undo 2009-07-19 commit.
63068         * modules/acl-tests (Depends-on): Remove close.
63069         * modules/binary-io-tests (Depends-on): Likewise.
63070         * modules/closein-tests (Depends-on): Likewise.
63071         * modules/flock-tests (Depends-on): Likewise.
63072         * modules/fsync-tests (Depends-on): Likewise.
63073         * modules/lseek-tests (Depends-on): Likewise.
63074         * modules/pipe-tests (Depends-on): Likewise.
63075         * modules/posix_spawn-tests (Depends-on): Likewise.
63076         * modules/posix_spawnp-tests (Depends-on): Likewise.
63077         * modules/stat-time-tests (Depends-on): Likewise.
63078         * modules/yesno-tests (Depends-on): Likewise.
63080 2009-08-10  Bruno Haible  <bruno@clisp.org>
63082         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
63084 2009-08-10  Bruno Haible  <bruno@clisp.org>
63086         Fix a gcc warning.
63087         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
63089 2009-08-10  Bruno Haible  <bruno@clisp.org>
63091         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
63092         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
63093         not only the first time.
63094         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
63095         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
63096         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
63097         is 1, not only the first time.
63099 2009-08-10  Bruno Haible  <bruno@clisp.org>
63101         Make it possible to use module 'gethostname' without module 'close'.
63102         * lib/unistd.in.h (close): Evoke a link error only if
63103         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
63104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63105         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63106         * modules/unistd (Makefile.am): Substitute
63107         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63108         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
63109         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
63110         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
63111         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63112         * modules/sys_ioctl (Makefile.am): Substitute
63113         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63114         * modules/socket (configure.ac): On native Windows, set
63115         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
63116         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63117         Reported by Sam Steingold <sds@gnu.org>.
63119 2009-08-10  Bruno Haible  <bruno@clisp.org>
63121         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
63122         * modules/ioctl (configure.ac): Likewise.
63124 2009-08-10  Bruno Haible  <bruno@clisp.org>
63126         Avoid collision between gnulib wrapper and libintl wrapper.
63127         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
63128         already defined in intl/printf.c.
63129         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
63130         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
63132 2009-08-09  Bruno Haible  <bruno@clisp.org>
63134         Make <sys/select.h> really self-contained, also on Solaris 10.
63135         * lib/sys_select.in.h: Include <string.h>.
63136         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
63137         Solaris 10 problem.
63138         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
63139         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
63140         Reported by Jim Meyering.
63142 2009-08-09  Bruno Haible  <bruno@clisp.org>
63144         Avoid warnings from 'aclocal' that are due to a use of macro name
63145         AM_XGETTEXT_OPTION that is not defined in automake.
63146         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
63147         automake.
63148         * modules/error (configure.ac): Likewise.
63149         * modules/propername (configure.ac): Likewise.
63150         * modules/vasprintf (configure.ac): Likewise.
63151         * modules/verror (configure.ac): Likewise.
63152         * modules/xprintf (configure.ac): Likewise.
63153         * modules/xvasprintf (configure.ac): Likewise.
63155 2009-08-08  Bruno Haible  <bruno@clisp.org>
63157         Avoid compilation error in C++ mode.
63158         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
63159         Reported by Sam Steingold <sds@gnu.org>.
63161 2009-08-08  Bruno Haible  <bruno@clisp.org>
63163         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
63164         for the various Unix platforms.
63165         * doc/posix-headers/limits.texi: Update platforms list regarding
63166         HOST_NAME_MAX.
63167         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63169 2009-08-07  Jim Meyering  <meyering@redhat.com>
63171         selinux-at: fix typo in a comment
63172         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
63173         Spotted by Paolo Bonzini.
63175         selinux-at: remove redundant m4 code, add documentation
63176         * modules/selinux-at (configure.ac): Remove redundant code.
63177         LIB_SELINUX is already set via the dependent module, selinux-h.
63178         (Include): Add quotes around selinux-at.h.
63179         * lib/selinux-at.h: Add documentation.
63180         Reported by Bruno Haible in
63181         http://marc.info/?l=gnulib-bug&m=124958988300749
63183 2009-08-07  Bruno Haible  <bruno@clisp.org>
63185         Avoid link error on MacOS X 10.3 and 10.4.
63186         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
63187         on non-ELF systems.
63188         * lib/argp-pv.c (argp_program_version): Likewise.
63189         Reported by Simon Josefsson.
63191 2009-08-07  Simon Josefsson  <simon@josefsson.org>
63193         * tests/test-version-etc.sh: Use $EXEEXT.
63195 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
63197         update-copyright: update documentation to point to maint.mk
63198         * build-aux/update-copyright: Here.
63200 2009-08-06  Jim Meyering  <meyering@redhat.com>
63202         maint.mk: support update-copyright-local
63203         * top/maint.mk (update-copyright-local): Define place-holder.
63204         (update-copyright): Depend on $(update-copyright-local).
63206 2009-08-06  Jim Meyering  <meyering@redhat.com>
63208         selinux-at: new module
63209         Initially written for coreutils, this module will soon be
63210         used by findutils, too.
63211         * MODULES.html.sh [Misc]: Add selinux-at.
63212         * lib/selinux-at.h: New file, from coreutils.
63213         * lib/selinux-at.c: Likewise.
63214         * modules/selinux-at: Likewise.
63215         (License): Change from LGPL to GPL, since it depends
63216         on the GPL'd openat module.
63218         doc: update README
63219         * README: Remove references to cogito.
63220         Remove cvs-repo-updating instructions from 2007.
63221         Don't imply that CVS is better if you have limited disk space.
63223 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63225         update-copyright: support C-style comments
63226         * build-aux/update-copyright: Implement and document.
63227         * tests/test-update-copyright.sh: Test.
63229 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63231         update-copyright: support omitted "(C)"
63232         * build-aux/update-copyright: Implement and document.  Also,
63233         allow variable whitespace before "(C)".
63234         * tests/test-update-copyright.sh: Test.
63236 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63238         update-copyright: don't trip on non-FSF copyright statements
63239         * build-aux/update-copyright: Fix so that the first correctly
63240         formatted FSF copyright statement is recognized no matter what
63241         appears before it.  Update documentation.
63242         * tests/test-update-copyright.sh: Test that.
63244 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63246         update-copyright: clean up code a little
63247         * build-aux/update-copyright: Append "_re" to the name of any
63248         variable holding a regular expression.
63249         Replace "old" and "new" with "stmt" in variable names.
63250         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
63251         handled correctly.
63252         Format code more consistently.
63254 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63256         update-copyright-tests: improve portability
63257         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
63258         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
63260 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
63262         update-copyright: support @copyright{} and &copy;
63263         * build-aux/update-copyright: Implement and document.
63264         * tests/test-update-copyright.sh: Test.
63266 2009-08-04  Jim Meyering  <meyering@redhat.com>
63268         update-copyright-tests: correctly test EOL=\r\n handling
63269         * tests/test-update-copyright.sh: Put \r at the end of some lines
63270         for the dos-eol tests.  Based on a patch by Joel E. Denny.
63272         maint.mk: make update-copyright exclusion list more configurable
63273         * top/maint.mk (update-copyright): Default to excluding COPYING,
63274         but allow an override, in case someone does want to update that file.
63276         maint.mk: don't update copyright date in COPYING
63277         * top/maint.mk (update-copyright): Exclude COPYING.
63279         maint.mk: add a copyright-updating rule
63280         * top/maint.mk (update-copyright): New rule.
63281         Derived from coreutils/Makefile.am.
63283         update-copyright: rename some variables
63284         * build-aux/update-copyright: Rename a few variables for clarity.
63285         Tweak syntax.  List Joel E. Denny as coauthor.
63287 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
63289         update-copyright: fix bug for 2-digit last year and add tests
63290         * build-aux/update-copyright: Fix bug.
63291         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
63292         specified.
63293         * modules/update-copyright-tests: New
63294         * tests/test-update-copyright.sh: New.
63296 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
63298         update-copyright: handle leading tabs in line prefix
63299         * build-aux/update-copyright: Count leading tabs as 8 spaces
63300         when computing margin.  This helps with the formatting of
63301         ChangeLogs, for example.
63302         Fix documentation a little.
63304 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
63306         update-copyright: support EOL=\r\n
63307         * build-aux/update-copyright: Implement that.
63309 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
63311         update-copyright: automatically format copyright statements
63312         * build-aux/update-copyright: Implement that.
63313         Also, be a little more predictable and safer by always failing
63314         when the full copyright format is not perfectly recognized as an
63315         unbroken whole.  Discussed at
63316         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
63317         Rewrite documentation.
63319 2009-08-03  Bruno Haible  <bruno@clisp.org>
63321         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
63323 2009-08-02  Bruno Haible  <bruno@clisp.org>
63325         Tests for module 'uname'.
63326         * modules/uname-tests: New file.
63327         * tests/test-uname.c: New file.
63329         New module 'uname'.
63330         * lib/uname.c: New file.
63331         * m4/uname.m4: New file.
63332         * modules/uname: New file.
63333         * doc/posix-functions/uname.texi: Mention the new module.
63335 2009-08-02  Bruno Haible  <bruno@clisp.org>
63337         Tests for module 'sys_utsname'.
63338         * modules/sys_utsname-tests: New file.
63339         * tests/test-sys_utsname.c: New file.
63341         New module 'sys_utsname'.
63342         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
63343         * m4/sys_utsname_h.m4: New file.
63344         * modules/sys_utsname: New file.
63345         * doc/posix-headers/sys_utsname.texi: Mention the new module.
63347 2009-08-02  Bruno Haible  <bruno@clisp.org>
63349         Implicitly initialize the sockets library.
63350         * lib/gethostname.c: Include sockets.h.
63351         (rpl_gethostname): Invoke gl_sockets_startup.
63352         * lib/socket.c: Include sockets.h.
63353         (rpl_socket): Invoke gl_sockets_startup.
63354         * modules/gethostname (Depends-on): Add sockets.
63355         * modules/socket (Depends-on): Likewise.
63356         * tests/test-poll.c: Don't include sockets.h.
63357         (main): Don't invoke gl_sockets_startup.
63358         * tests/test-select.c: Don't include sockets.h.
63359         (main): Don't invoke gl_sockets_startup.
63361 2009-08-02  Bruno Haible  <bruno@clisp.org>
63363         Allow multiple calls to gl_sockets_startup.
63364         * lib/sockets.c (initialized_sockets_version): New variable.
63365         (gl_sockets_startup): Do nothing if already called for this or a higher
63366         version.
63367         (gl_sockets_cleanup): Reset initialized_sockets_version.
63369 2009-08-03  Simon Josefsson  <simon@josefsson.org>
63371         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
63372         different project/version.
63374 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
63375             Bruno Haible  <bruno@clisp.org>
63377         Tests for module 'pipe-filter-gi'.
63378         * modules/pipe-filter-gi-tests: New file.
63379         * tests/test-pipe-filter-gi1.sh: New file.
63380         * tests/test-pipe-filter-gi1.c: New file.
63381         * tests/test-pipe-filter-gi2.sh: New file.
63382         * tests/test-pipe-filter-gi2-main.c: New file.
63383         * tests/test-pipe-filter-gi2-child.c: New file.
63385         New module 'pipe-filter-gi'.
63386         * lib/pipe-filter-gi.c: New file.
63387         * modules/pipe-filter-gi: New file.
63389 2009-08-02  Bruno Haible  <bruno@clisp.org>
63390             Paolo Bonzini  <bonzini@gnu.org>
63392         Tests for module 'pipe-filter-ii'.
63393         * modules/pipe-filter-ii-tests: New file.
63394         * tests/test-pipe-filter-ii1.sh: New file.
63395         * tests/test-pipe-filter-ii1.c: New file.
63396         * tests/test-pipe-filter-ii2.sh: New file.
63397         * tests/test-pipe-filter-ii2-main.c: New file.
63398         * tests/test-pipe-filter-ii2-child.c: New file.
63400         New module 'pipe-filter-ii'.
63401         * lib/pipe-filter.h: New file.
63402         * lib/pipe-filter-ii.c: New file.
63403         * lib/pipe-filter-aux.h: New file.
63404         * modules/pipe-filter-ii: New file.
63406 2009-08-02  Simon Josefsson  <simon@josefsson.org>
63408         * lib/gc-libgcrypt.c: Change copyright to FSF.
63409         * lib/gc-gnulib.c: Likewise.
63411 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
63413         * lib/gethostname.c: Include limits.h.
63415 2009-08-02  Simon Josefsson  <simon@josefsson.org>
63416             Bruno Haible  <bruno@clisp.org>
63418         Ensure HOST_NAME_MAX as part of the gethostname module.
63419         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
63420         define also HOST_NAME_MAX.
63421         * tests/test-gethostname.c: Include <limits.h>.
63422         (main): Check also HOST_NAME_MAX.
63423         * doc/posix-headers/limits.texi: Document the mingw problem.
63425 2009-08-02  Bruno Haible  <bruno@clisp.org>
63427         * lib/gethostname.c (gethostname): Fix handling of large len argument.
63428         Add comments.
63430 2009-03-31  Simon Josefsson  <simon@josefsson.org>
63432         * lib/gethostname.c: Add Windows wrapper.
63433         * m4/gethostname.m4: Look for gethostname in -lws2_32.
63434         * modules/gethostname: Depend on sys_socket & errno, for also
63435         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
63436         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
63438 2009-07-31  Jim Meyering  <meyering@redhat.com>
63440         getloadavg: fix symbol name in comment
63441         * lib/getloadavg.c: Correct a typo I introduced when adding
63442         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
63443         Matt Kraai spotted the problem.
63445 2009-07-29  Matt Kraai  <mkraai@beckman.com>
63447         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
63448         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
63449         code also if ! defined N_NAME_POINTER.
63450         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
63451         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
63452         but the n_name member is a 12-byte array.
63454 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
63456         update-copyright: generalize comment handling
63457         * build-aux/update-copyright: Handle copyright statements
63458         within more comment styles.
63459         Document usage.
63460         Report any file with an external copyright holder or parse failure.
63462 2009-07-29  Jim Meyering  <meyering@redhat.com>
63464         mktime: correct setting of REPLACE_MKTIME
63465         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
63467         update-copyright: new module
63468         * modules/update-copyright: New file.
63469         * build-aux/update-copyright: New file.
63470         * MODULES.html.sh (maint+release support): Add update-copyright.
63472 2009-07-27  Bruno Haible  <bruno@clisp.org>
63474         Fix compilation error when <ctime> is used and mktime is replaced.
63475         * lib/time.in.h (mktime): New declaration.
63476         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
63477         REPLACE_MKTIME instead of defining mktime in config.h.
63478         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
63479         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
63480         Reported by Ross McFarland <rwmcfa1@neces.com>.
63482 2009-07-27  Bruno Haible  <bruno@clisp.org>
63484         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
63485         Reported by Matt Kraai <mkraai@beckman.com>.
63487 2009-07-25  Jim Meyering  <meyering@redhat.com>
63489         maint.mk: avoid warnings about missing files
63490         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
63491         diagnostic when .prev-version does not exist.
63492         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
63493         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
63494         nonexistent cfg.mk.
63495         Suggestions from Simon Josefsson.
63497 2009-07-25  Bruno Haible  <bruno@clisp.org>
63499         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
63500         defined as macros. Needed on QNX 6.4.1.
63501         Reported by Matt Kraai <mkraai@beckman.com>.
63503 2009-07-23  Jim Meyering  <meyering@redhat.com>
63505         maint.mk: invoke "make dist" with a working value of XZ_OPT
63506         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
63508 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
63510         Make fseeko.c compile on QNX.
63511         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
63513 2009-07-22  Peter Simons  <simons@cryp.to>
63515         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
63516         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
63517         * lib/md4.h: Likewise.
63518         * lib/md5.h: Likewise.
63519         * lib/sha1.h: Likewise.
63520         * lib/sha256.h: Likewise.
63521         * lib/sha512.h: Likewise.
63523         tests-sha1: don't assign literal string to 'char *' variable
63524         * tests/test-sha1.c (main): Declare locals with "const" to match
63525         attributes of the right hand side.
63527 2009-07-21  Eric Blake  <ebb9@byu.net>
63529         dup2: fix more mingw problems
63530         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
63531         fd to itself.
63532         * doc/posix-functions/dup2.texi (dup2): Document the bug.
63533         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
63534         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
63535         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
63536         care of mingw bugs.
63538 2009-07-21  Jim Meyering  <meyering@redhat.com>
63540         vc-list-files: avoid failure when /bin/sh is dash
63541         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
63542         On some Debian based systems, /bin/sh is a symlink to dash, and running
63543         this command would omit the "/" following each 'tests' prefix:
63544           dash -x build-aux/vc-list-files -C . tests
63545         That is because bash and dash work differently:
63546           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
63547           bash ok
63548           dash odd
63550 2009-07-21  Eric Blake  <ebb9@byu.net>
63552         dup2-tests: test previous patch
63553         * modules/dup2-tests: New file.
63554         * tests/test-dup2.c: Likewise.
63555         * tests/test-open.c (main): Avoid unspecified behavior.
63556         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
63557         test.
63559         dup2: work around mingw and cygwin 1.5 bug
63560         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
63561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63562         * modules/unistd (Makefile.am): Substitute it.
63563         * lib/unistd.in.h (dup2): Declare the replacement.
63564         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
63565         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
63566         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
63567         * modules/execute (Depends-on): Add dup2.
63568         * modules/fseterr (Depends-on): Likewise.
63569         * modules/pipe (Depends-on): Likewise.
63570         * modules/posix_spawn-internal (Depends-on): Likewise.
63572 2009-07-21  Bruno Haible  <bruno@clisp.org>
63574         * modules/.gitattributes: New file.
63576 2009-07-20  Bruno Haible  <bruno@clisp.org>
63578         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
63579         (main): Use it.
63581 2009-07-20  Eric Blake  <ebb9@byu.net>
63583         test-pipe: make a bit more robust.
63584         * tests/test-pipe.c (myerr): Allow error messages regardless of
63585         what we do to stderr.
63586         (test_pipe): Rearrange to avoid deadlock.
63587         (child_main): Try a larger read, to ensure we avoided deadlock.
63588         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
63589         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
63590         if misused.
63592 2009-07-19  Jim Meyering  <meyering@redhat.com>
63594         fts: avoid false-positive cycle-detection
63595         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
63596         for each new command line argument.
63598 2009-07-19  Bruno Haible  <bruno@clisp.org>
63600         Fix build error on mingw with the modules sys_select and unistd.
63601         * modules/acl-tests (Depends-on): Add close.
63602         * modules/binary-io-tests (Depends-on): Likewise.
63603         * modules/closein-tests (Depends-on): Likewise.
63604         * modules/flock-tests (Depends-on): Likewise.
63605         * modules/fsync-tests (Depends-on): Likewise.
63606         * modules/lseek-tests (Depends-on): Likewise.
63607         * modules/pipe-tests (Depends-on): Likewise.
63608         * modules/posix_spawn-tests (Depends-on): Likewise.
63609         * modules/posix_spawnp-tests (Depends-on): Likewise.
63610         * modules/stat-time-tests (Depends-on): Likewise.
63611         * modules/yesno-tests (Depends-on): Likewise.
63613 2009-07-19  Bruno Haible  <bruno@clisp.org>
63615         Unify conditionals.
63616         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
63617         macros, not at the compiler macros.
63618         * lib/pipe.c: Likewise.
63619         * lib/execute.c: Likewise.
63620         * lib/spawni.c: Likewise.
63622 2009-07-19  Bruno Haible  <bruno@clisp.org>
63624         Fix handling of closed stdin/stdout/stderr on mingw.
63625         * lib/w32spawn.h: Include unistd.h.
63626         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
63627         file descriptor with O_NOINHERIT flag.
63628         (fd_safer_noinherit): New function, based on fd-safer.c.
63629         (dup_safer_noinherit): New function, based on dup-safer.c.
63630         (undup_safer_noinherit): New function.
63631         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
63632         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
63633         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
63634         instead of fd_safer.
63635         * tests/test-pipe.c: Include <windows.h>.
63636         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
63637         result.
63639         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
63640         from main.
63641         (test_pipe): Pass an extra argument for disambiguation.
63642         (main): Invoke parent_main or child_main.
63644         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
63645         consistently.
63647 2009-07-18  Eric Blake  <ebb9@byu.net>
63649         test-pipe: fix mingw build
63650         * tests/test-pipe.c (main): Avoid fcntl on mingw.
63652 2009-07-18  Bruno Haible  <bruno@clisp.org>
63654         * modules/pipe-tests (Makefile.am): Fix typo.
63656 2009-07-18  Eric Blake  <ebb9@byu.net>
63658         error: fix mingw build
63659         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
63660         Reported by Bruno Haible.
63662         error: avoid undefined use of stdout
63663         * lib/error.c (error, error_at_line): Check that fd 1 is open
63664         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
63665         is handling faults and the close_stdout module wants to report the
63666         detection of closed stdout as an error.
63668 2009-07-17  Eric Blake  <ebb9@byu.net>
63670         pipe: be robust in face of closed fds
63671         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
63672         should cause child to misbehave.
63673         * modules/pipe-tests: New module.
63674         * tests/test-pipe.c: New file.
63675         * tests/test-pipe.sh: New file.
63676         Reported by Akim Demaille.
63678 2009-07-14  Bruno Haible  <bruno@clisp.org>
63680         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
63681         Reported by anonymous kc.
63683 2009-07-07  Jim Meyering  <meyering@redhat.com>
63685         maint.mk: don't look for translatable strings in *.m4 or *.mk
63686         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
63687         when searching for translatable strings.
63689 2009-07-05  Jim Meyering  <meyering@redhat.com>
63691         remove superfluous parentheses in STREQ definition
63692         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
63693         * lib/getugroups.c (STREQ): Likewise.
63694         * lib/fnmatch.c (STREQ): Likewise.
63695         Spotted by Bruno Haible.
63697 2009-07-04  Jim Meyering  <meyering@redhat.com>
63699         argv-iter: new module
63700         * MODULES.html.sh: Add argv-iter.
63701         * lib/argv-iter.c, lib/argv-iter.h: New files.
63702         * modules/argv-iter: New file.
63703         * modules/argv-iter-tests: New file.
63704         * tests/test-argv-iter.c: Test it.
63706 2009-07-04  Bruno Haible  <bruno@clisp.org>
63708         Fix assertion.
63709         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
63710         contains more exact copies of a given entry than file2, leave the extra
63711         copies unpaired rather than aborting.
63712         Reported by Eric Blake.
63714 2009-07-02  Bruno Haible  <bruno@clisp.org>
63716         Speedup git-merge-changelog for git cherry-pick.
63717         * lib/git-merge-changelog.c (struct entries_mapping): New type.
63718         (entries_mapping_get): New function, extracted from compute_mapping.
63719         (entries_mapping_reverse_get): New function.
63720         (compute_mapping): Add a 'full' argument. Return the result in a
63721         'struct entries_mapping'.
63722         (main): Update. Access the mappings through entries_mapping_get.
63723         Reported by Eric Blake.
63725 2009-07-02  Bruno Haible  <bruno@clisp.org>
63727         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
63728         best_i.
63730 2009-07-02  Bruno Haible  <bruno@clisp.org>
63732         Speed up approximate search for matching ChangeLog entries.
63733         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
63734         argument. Call fstrcmp_bounded instead of fstrcmp.
63735         (compute_mapping, try_split_merged_entry, main): Update callers.
63737 2009-07-02  Bruno Haible  <bruno@clisp.org>
63739         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
63741 2009-06-30  Bruno Haible  <bruno@clisp.org>
63743         Reduce the number of uc_is_cased calls.
63744         * lib/unicase.h (casing_suffix_context_t): Add
63745         'first_char_except_ignorable' field.
63746         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
63747         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
63748         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
63749         Update initializer.
63750         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
63751         case-ignorable characters.
63752         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
63753         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
63754         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
63755         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
63756         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
63758 2009-06-30  Bruno Haible  <bruno@clisp.org>
63760         Tests for module 'unicase/ignorable'.
63761         * modules/unicase/ignorable-tests: New file.
63762         * tests/unicase/test-ignorable.c: New file, generated by
63763         gen-uni-tables.
63765         Tests for module 'unicase/cased'.
63766         * modules/unicase/cased-tests: New file.
63767         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
63768         * tests/unicase/test-predicate-part1.h: New file, derived from
63769         tests/unictype/test-predicate-part1.h.
63770         * tests/unicase/test-predicate-part2.h: New file, same as
63771         tests/unictype/test-predicate-part2.h.
63773         Fix evaluation of "Before C" condition of FINAL_SIGMA.
63774         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
63775         (output_casing_properties): New function.
63776         (main): Call it.
63777         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
63778         * lib/unicase/cased.c: Include unictype/bitmap.h.
63779         (uc_is_cased): Define through a bitmap lookup.
63780         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
63781         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
63782         (uc_is_case_ignorable): Define through a bitmap lookup.
63783         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
63784         lib/unictype/bitmap.h.
63785         (Depends-on): Add inline. Clean up.
63786         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
63787         lib/unictype/bitmap.h.
63788         (Depends-on): Add inline. Clean up.
63789         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
63790         recognition.
63791         * tests/unicase/test-u16-tolower.c (main): Likewise.
63792         * tests/unicase/test-u32-tolower.c (main): Likewise.
63794 2009-06-30  Bruno Haible  <bruno@clisp.org>
63796         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
63797         * lib/unicase/u16-casemap.c: Likewise.
63798         * lib/unicase/u32-casemap.c: Likewise.
63800 2009-06-29  Bruno Haible  <bruno@clisp.org>
63802         Define u32_casefold as a wrapper around u32_ct_casefold.
63803         * lib/unicase/u32-casefold.c: Update.
63804         * modules/unicase/u32-casefold (Depends-on): Add
63805         unicase/u32-ct-casefold, unicase/empty-prefix-context,
63806         unicase/empty-suffix-context. Clean up.
63808         Define u16_casefold as a wrapper around u16_ct_casefold.
63809         * lib/unicase/u16-casefold.c: Update.
63810         * modules/unicase/u16-casefold (Depends-on): Add
63811         unicase/u16-ct-casefold, unicase/empty-prefix-context,
63812         unicase/empty-suffix-context. Clean up.
63814         Define u8_casefold as a wrapper around u8_ct_casefold.
63815         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
63816         * lib/unicase/u8-casefold.c: Update.
63817         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
63818         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
63820         Define u32_totitle as a wrapper around u32_ct_totitle.
63821         * lib/unicase/u32-totitle.c: Update.
63822         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
63823         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
63825         Define u16_totitle as a wrapper around u16_ct_totitle.
63826         * lib/unicase/u16-totitle.c: Update.
63827         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
63828         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
63830         Define u8_totitle as a wrapper around u8_ct_totitle.
63831         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
63832         functions.
63833         (FUNC): Delegate to U_CT_TOTITLE.
63834         * lib/unicase/u8-totitle.c: Update.
63835         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
63836         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
63838         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
63839         invocation.
63840         * modules/unicase/u32-tolower (Depends-on): Add
63841         unicase/empty-prefix-context, unicase/empty-suffix-context.
63843         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
63844         invocation.
63845         * modules/unicase/u16-tolower (Depends-on): Add
63846         unicase/empty-prefix-context, unicase/empty-suffix-context.
63848         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
63849         * modules/unicase/u8-tolower (Depends-on): Add
63850         unicase/empty-prefix-context, unicase/empty-suffix-context.
63852         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
63853         invocation.
63854         * modules/unicase/u32-toupper (Depends-on): Add
63855         unicase/empty-prefix-context, unicase/empty-suffix-context.
63857         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
63858         invocation.
63859         * modules/unicase/u16-toupper (Depends-on): Add
63860         unicase/empty-prefix-context, unicase/empty-suffix-context.
63862         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
63863         * modules/unicase/u8-toupper (Depends-on): Add
63864         unicase/empty-prefix-context, unicase/empty-suffix-context.
63866         New module 'unicase/u32-ct-casefold'.
63867         * lib/unicase/u32-ct-casefold.c: New file.
63868         * modules/unicase/u32-ct-casefold: New file.
63870         New module 'unicase/u16-ct-casefold'.
63871         * lib/unicase/u16-ct-casefold.c: New file.
63872         * modules/unicase/u16-ct-casefold: New file.
63874         New module 'unicase/u8-ct-casefold'.
63875         * lib/unicase/u8-ct-casefold.c: New file.
63876         * lib/unicase/u-ct-casefold.h: New file, derived from
63877         lib/unicase/u-casefold.h.
63878         * modules/unicase/u8-ct-casefold: New file.
63880         New module 'unicase/u32-ct-totitle'.
63881         * lib/unicase/u32-ct-totitle.c: New file.
63882         * modules/unicase/u32-ct-totitle: New file.
63884         New module 'unicase/u16-ct-totitle'.
63885         * lib/unicase/u16-ct-totitle.c: New file.
63886         * modules/unicase/u16-ct-totitle: New file.
63888         New module 'unicase/u8-ct-totitle'.
63889         * lib/unicase/u8-ct-totitle.c: New file.
63890         * lib/unicase/u-ct-totitle.h: New file, derived from
63891         lib/unicase/u-totitle.h.
63892         * modules/unicase/u8-ct-totitle: New file.
63894         New module 'unicase/u32-ct-tolower'.
63895         * lib/unicase/u32-ct-tolower.c: New file.
63896         * modules/unicase/u32-ct-tolower: New file.
63898         New module 'unicase/u16-ct-tolower'.
63899         * lib/unicase/u16-ct-tolower.c: New file.
63900         * modules/unicase/u16-ct-tolower: New file.
63902         New module 'unicase/u8-ct-tolower'.
63903         * lib/unicase/u8-ct-tolower.c: New file.
63904         * modules/unicase/u8-ct-tolower: New file.
63906         New module 'unicase/u32-ct-toupper'.
63907         * lib/unicase/u32-ct-toupper.c: New file.
63908         * modules/unicase/u32-ct-toupper: New file.
63910         New module 'unicase/u16-ct-toupper'.
63911         * lib/unicase/u16-ct-toupper.c: New file.
63912         * modules/unicase/u16-ct-toupper: New file.
63914         New module 'unicase/u8-ct-toupper'.
63915         * lib/unicase/u8-ct-toupper.c: New file.
63916         * modules/unicase/u8-ct-toupper: New file.
63918         Add context arguments to u*_casemap functions.
63919         * lib/unicase/unicasemap.h: Include unicase.h.
63920         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
63921         suffix_context arguments.
63922         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
63923         functions.
63924         (FUNC): Add prefix_context and suffix_context arguments. Use
63925         uc_is_cased and uc_is_case_ignorable.
63926         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
63927         * lib/unicase/u16-casemap.c: Likewise.
63928         * lib/unicase/u32-casemap.c: Likewise.
63929         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
63930         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
63931         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
63932         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
63933         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
63934         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
63936         New module 'unicase/u32-suffix-context'.
63937         * lib/unicase/u32-suffix-context.c: New file.
63938         * modules/unicase/u32-suffix-context: New file.
63940         New module 'unicase/u16-suffix-context'.
63941         * lib/unicase/u16-suffix-context.c: New file.
63942         * modules/unicase/u16-suffix-context: New file.
63944         New module 'unicase/u8-suffix-context'.
63945         * lib/unicase/u8-suffix-context.c: New file.
63946         * lib/unicase/u-suffix-context.h: New file.
63947         * modules/unicase/u8-suffix-context: New file.
63949         New module 'unicase/empty-suffix-context'.
63950         * lib/unicase/empty-suffix-context.c: New file.
63951         * modules/unicase/empty-suffix-context: New file.
63953         New module 'unicase/u32-prefix-context'.
63954         * lib/unicase/u32-prefix-context.c: New file.
63955         * modules/unicase/u32-prefix-context: New file.
63957         New module 'unicase/u16-prefix-context'.
63958         * lib/unicase/u16-prefix-context.c: New file.
63959         * modules/unicase/u16-prefix-context: New file.
63961         New module 'unicase/u8-prefix-context'.
63962         * lib/unicase/u8-prefix-context.c: New file.
63963         * lib/unicase/u-prefix-context.h: New file.
63964         * lib/unicase/context.h: New file.
63965         * modules/unicase/u8-prefix-context: New file.
63967         New module 'unicase/empty-prefix-context'.
63968         * lib/unicase/empty-prefix-context.c: New file.
63969         * modules/unicase/empty-prefix-context: New file.
63971         New module 'unicase/ignorable'.
63972         * lib/unicase/ignorable.c: New file.
63973         * modules/unicase/ignorable: New file.
63975         New module 'unicase/cased'.
63976         * lib/unicase/caseprop.h: New file.
63977         * lib/unicase/cased.c: New file.
63978         * modules/unicase/cased: New file.
63980         New functions for case mapping of substrings.
63981         * lib/unicase.h (casing_prefix_context_t): New type.
63982         (unicase_empty_prefix_context): New variable.
63983         (u8_casing_prefix_context, u16_casing_prefix_context,
63984         u32_casing_prefix_context, u8_casing_prefixes_context,
63985         u16_casing_prefixes_context, u32_casing_prefixes_context): New
63986         declarations.
63987         (casing_suffix_context_t): New type.
63988         (unicase_empty_suffix_context): New variable.
63989         (u8_casing_suffix_context, u16_casing_suffix_context,
63990         u32_casing_suffix_context, u8_casing_suffixes_context,
63991         u16_casing_suffixes_context, u32_casing_suffixes_context,
63992         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
63993         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
63994         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
63995         declarations.
63997 2009-06-28  Jim Meyering  <meyering@redhat.com>
63999         boostrap: indent only with spaces
64000         * build-aux/bootstrap: Indent only with spaces, never TABs.
64002         bootstrap: split long lines
64003         * build-aux/bootstrap: Keep line length < 80.
64005         bootstrap: sync from coreutils
64006         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
64007         just as autoreconf does.  Verify a list of prerequisite
64008         package-name,version-number pairs if defined in bootstrap.conf.
64009         Refer to README-prereq, if prerequisites are not satisfied.
64011 2009-06-27  Eric Blake  <ebb9@byu.net>
64013         tests: add test for bogus NULL definition
64014         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
64015         * tests/test-stdlib.c: Likewise.
64016         * tests/test-string.c: Likewise.
64017         * tests/test-locale.c: Likewise.
64018         * tests/test-unistd.c: Likewise.
64019         * modules/stdio-tests (Depends-on): Add verify.
64020         * modules/stdlib-tests (Depends-on): Likewise.
64021         * modules/string-tests (Depends-on): Likewise.
64022         * modules/locale-tests (Depends-on): Likewise.
64023         * modules/unistd-tests (Depends-on): Likewise.
64025 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
64027         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
64028         self-explaining comment.
64029         * m4/selinux-selinux-h: Update serial.
64030         (gl_LIBSELINUX): New macro, adding a warning for missing development
64031         packages to code extracted from...
64032         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
64033         Add warning for missing development packages here, too.
64035 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
64037         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
64039 2009-06-25  Eric Blake  <ebb9@byu.net>
64041         version-etc: fix regression
64042         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
64043         gcc.
64044         (version_etc): Use it, to catch bugs with trailing NULL.
64045         * lib/version-etc.c (version_etc_arn): Delete unused argument.
64046         (version_etc_va): Fix logic bug.
64047         * modules/version-etc-tests: Add test.
64048         * tests/test-version-etc.c: New file.
64049         * tests/test-version-etc.sh: Likewise.
64051 2009-06-25  Sam Steingold  <sds@gnu.org>
64053         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
64054         mbtowc declaration.
64056 2009-06-25  Eric Blake  <ebb9@byu.net>
64058         fpurge: migrate into <stdio.h>
64059         * lib/fpurge.h: Delete...
64060         * lib/stdio.in.h (fpurge): ...and declare here, instead.
64061         * lib/fpurge.c (fpurge): Change declaring header.
64062         * modules/fpurge (Files): Drop deleted file.
64063         (Depends-on): Add stdio.
64064         (configure.ac): Set witness.
64065         * modules/stdio (Makefile.am): Support fpurge macros.
64066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64067         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
64068         * lib/fflush.c: Update client.
64069         * tests/test-fpurge.c: Likewise.
64070         * NEWS: Mention the change.
64072 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64074         * lib/argp-version-etc.c (program_authors): Add const
64075         qualifier.
64076         * lib/version-etc.c: Fix typos in the comments.
64077         * modules/argp-version-etc: Depends on version-etc.
64079 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64081         argp-version-etc: new module.
64083         * lib/argp-version-etc.c: New file.
64084         * lib/argp-version-etc.h: New file.
64085         * modules/argp-version-etc: New file.
64086         * modules/argp-version-etc-tests: New file.
64087         * tests/test-argp-version-etc.c: New test.
64088         * tests/test-argp-version-etc-1.sh: New test.
64090 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64092         Provide additional interfaces and documentation for version-etc
64093         module.
64095         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
64096         interfaces.
64097         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
64098         prototypes.
64100 2009-06-24  Bruno Haible  <bruno@clisp.org>
64102         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
64103         HAVE_LIB${NAME} macro.
64104         Reported by Sam Steingold <sds@gnu.org>.
64106 2009-06-23  Simon Josefsson  <simon@josefsson.org>
64108         * modules/hash-tests (test_hash_LDADD): Link to libintl when
64109         needed.
64111 2009-06-21  Bruno Haible  <bruno@clisp.org>
64113         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
64114         work.
64115         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
64116         together with LIB${NAME}, LTLIB${NAME}.
64117         Reported by Sam Steingold <sds@gnu.org>.
64119 2009-06-20  Jim Meyering  <meyering@redhat.com>
64121         tests: make sc_require_test_exit_idiom more generic
64122         * top/maint.mk (Exit_witness_file): New overridable variable.
64123         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
64124         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
64126 2009-06-19  Jim Meyering  <meyering@redhat.com>
64128         hash: reverse order of src/dst parameters in an internal interface
64129         * lib/hash.c (transfer_entries): Reverse order of parameters to
64130         put DST before SRC.  Adjust callers.
64132         tests: test-hash: avoid wholesale duplication
64133         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
64134         Instead, use a loop and add a single conditional.
64136         tests: test-hash: allow seed selection via a command line argument
64137         * tests/test-hash.c (get_seed): New function.
64138         (main): Use it.
64140 2009-06-19  Eric Blake  <ebb9@byu.net>
64142         hash: avoid memory leak on allocation failure
64143         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
64144         failure.  Factor repeated algorithm...
64145         (transfer_entries): ...into new helper routine.
64146         (hash_delete): React to hash_rehash return value.
64148         hash: reduce memory pressure in hash_rehash no-op case
64149         * lib/hash.c (next_prime): Avoid overflow.
64150         (hash_initialize): Factor bucket size computation...
64151         (compute_bucket_size): ...into new helper function.
64152         (hash_rehash): Use new function and open coding to reduce memory
64153         pressure, and avoid a memory leak in USE_OBSTACK code.
64154         Reported by Jim Meyering.
64156 2009-06-18  Eric Blake  <ebb9@byu.net>
64158         hash: make rotation more obvious
64159         * modules/hash (Depends-on): Add bitrotate and stdint.
64160         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
64161         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
64162         (SIZE_MAX): Rely on headers for definition.
64163         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
64164         (raw_hasher): Use rotr_sz.
64165         Suggested by Jim Meyering.
64167         hash: fix memory leak in last patch
64168         * lib/hash.c (hash_rehash): Avoid memory leak.
64170         hash: avoid no-op rehashing
64171         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
64173         hash: provide default callback functions
64174         * lib/hash.c (raw_hasher, raw_comparator): New functions.
64175         (hash_initialize): Use them as defaults.
64176         * tests/test-hash.c (main): Test this.
64178         hash: minor optimization
64179         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
64180         when possible.
64181         (hash_initialize): Document this promise.
64182         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
64183         * tests/test-hash.c (hash_compare_strings): Test this.
64185 2009-06-18  Bruno Haible  <bruno@clisp.org>
64187         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
64188         going to be replaced anyway.
64190 2009-06-18  Bruno Haible  <bruno@clisp.org>
64192         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
64193         in one place.
64194         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
64195         be replaced anyway.
64197 2009-06-18  Eric Blake  <ebb9@byu.net>
64199         hash: check for resize before insertion
64200         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
64201         threshold before insertion, so that a pathological hash_rehash
64202         that fills every bucket can still trigger another rehash.
64204 2009-06-18  Jim Meyering  <meyering@redhat.com>
64206         hash-tests: add a loop around the small tests
64207         * tests/test-hash.c (main): Repeat small tests with selected
64208         small initial table sizes.
64210 2009-06-17  Eric Blake  <ebb9@byu.net>
64212         hash: minor cleanups
64213         * lib/hash.h (hash_entry): Make opaque, by moving...
64214         * lib/hash.c (hash_entry): ...here.
64215         (hash_insert): Clarify restrictions on what can be inserted.
64216         (hash_get_next): Clarify when it is safe to remove an element
64217         during traversal.
64218         (check_tuning): Skip verification when tuning is known safe.
64219         (hash_initialize): Clarify restrictions on tuning.
64221 2009-06-17  Jim Meyering  <jim@meyering.net>
64222         and Eric Blake  <ebb9@byu.net>
64224         hash-tests: new module
64225         * modules/hash-tests: New file.
64226         * tests/test-hash.c: New file.
64228 2009-06-17  Eric Blake  <ebb9@byu.net>
64230         strstr-simple: document new module
64231         * MODULES.html.sh: Document new module.
64233         strstr, strcasestr: replace on platforms with broken memchr
64234         * modules/strstr: Split into...
64235         * modules/strstr-simple: ...new module that does not care about
64236         performance, but does care about glibc bug.
64237         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
64238         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
64239         if platform memchr is broken, per Debian bug 521737.
64240         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
64241         memchr.
64242         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
64243         * doc/posix-functions/strstr.texi (strstr): Document the fix.
64244         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
64245         * modules/mountlist (Depends-on): Add strstr-simple.
64246         * modules/gen-uni-tables (Depends-on): Likewise.
64247         * modules/argz (Depends-on): Add strstr.
64249 2009-06-17  Bruno Haible  <bruno@clisp.org>
64251         * modules/posix_spawn-internal (Depends-on): Add errno.
64253 2009-06-17  Bruno Haible  <bruno@clisp.org>
64255         Define missing ESTALE on Interix 3.5.
64256         * lib/errno.in.h (ESTALE): Assign a value if missing.
64257         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
64258         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
64259         missing.
64260         * doc/posix-headers/errno.texi: Mention the Interix bug.
64261         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
64263 2009-06-15  Eric Blake  <ebb9@byu.net>
64265         memchr, memchr2: add valgrind exception
64266         * lib/memchr.valgrind: New file.
64267         * lib/memchr2.valgrind: New file.
64268         * modules/memchr (Files): Distribute valgrind file.
64269         * modules/memchr2 (Files): Likewise.
64271         docs: memchr is no longer obsolete
64272         * MODULES.html.sh: Move memchr from obsolete to string.h section.
64273         * lib/string.in.h (memchr): Simplify logic.
64275 2009-06-14  Jim Meyering  <meyering@redhat.com>
64277         link-follow: fix the "checking..." message to not mention trailing slash
64278         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
64279         never considered trailing slashes.
64281 2009-06-14  Bruno Haible  <bruno@clisp.org>
64283         * m4/memchr.m4: Mention also the bug on IA-64.
64284         * doc/posix-functions/memchr.texi: Likewise.
64286 2009-06-12  Eric Blake  <ebb9@byu.net>
64288         memchr: detect broken x86_64 and alpha implementations
64289         * modules/memchr-tests (Depends-on): Move mmap detection...
64290         * modules/memchr (Depends-on): ...here.
64291         (configure.ac): Set indicator.
64292         * lib/string.in.h (memchr): Declare replacement.
64293         * modules/string (Makefile.am): Trigger replacement.
64294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
64295         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
64296         bugs.
64297         * doc/posix-functions/memchr.texi (memchr): Document the bug.
64298         * modules/getpagesize (License): Relax license.
64300 2009-06-11  Bruno Haible  <bruno@clisp.org>
64302         * lib/idpriv.h: Add more references.
64304 2009-06-08  Bruno Haible  <bruno@clisp.org>
64306         Tests for module 'idpriv-droptemp'.
64307         * modules/idpriv-droptemp-tests: New file.
64308         * tests/test-idpriv-droptemp.sh: New file.
64309         * tests/test-idpriv-droptemp.su.sh: New file.
64310         * tests/test-idpriv-droptemp.c: New file.
64312         New module 'idpriv-droptemp'.
64313         * lib/idpriv-droptemp.c: New file.
64314         * modules/idpriv-droptemp: New file.
64316 2009-06-08  Bruno Haible  <bruno@clisp.org>
64318         Tests for module 'idpriv-drop'.
64319         * modules/idpriv-drop-tests: New file.
64320         * tests/test-idpriv-drop.sh: New file.
64321         * tests/test-idpriv-drop.su.sh: New file.
64322         * tests/test-idpriv-drop.c: New file.
64324         New module 'idpriv-drop'.
64325         * lib/idpriv.h: New file.
64326         * lib-idpriv-drop.c: New file.
64327         * m4/idpriv.m4: New file.
64328         * modules/idpriv-drop: New file.
64330 2009-06-08  Bruno Haible  <bruno@clisp.org>
64332         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
64333         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64334         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64335         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64336         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64337         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64338         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64340 2009-06-08  Eric Blake  <ebb9@byu.net>
64342         test-strstr: use memory fence, when possible
64343         * tests/test-strstr.c (main): Use memory fence, in order to be
64344         more likely to trigger Debian bug 521737.
64345         * modules/strstr-tests (Files): Pull in additional files.
64347         memchr: no longer obsolete, for wider field testing
64348         * modules/memchr (Status, Notice): Delete, this module is no
64349         longer obsolete.
64350         * modules/vasnprintf (Depends-on): Add memchr.
64352 2009-06-07  Jim Meyering  <meyering@redhat.com>
64354         hash: declare some functions with the warn_unused_result attribute
64355         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
64357 2009-06-07  Bruno Haible  <bruno@clisp.org>
64359         * tests/test-alignof.c: Don't test int64_t if it does not exist.
64360         Reported by Eric Blake.
64362 2009-06-06  Eric Blake  <ebb9@byu.net>
64364         test-alignof: fix typo with long double
64365         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
64366         compiler error.
64368 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
64370         Escape non-texinfo { and }s.
64371         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
64372         markup error.
64374 2009-06-04  Jim Meyering  <meyering@redhat.com>
64376         gitlog-to-changelog: don't infloop on an empty commit log
64377         * build-aux/gitlog-to-changelog: Warn about an empty log message.
64378         Reported by Boris Petersen <transacid@centerim.org>.
64380 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
64382         version-etc: extend for packagers
64383         Add three new configure options, intended for packagers:
64384           --with-packager="packager name"
64385           --with-packager-version="packager-specific version"
64386           --with-packager-bug-reports="packager bug reporting"
64387         An example with coreutils:
64388           $ ./configure \
64389             --with-packager=Gentoo \
64390             --with-packager-bug-report=http://bugs.gentoo.org/ \
64391             --with-packager-version="patchset 1.6"
64392           $ ./src/ls --version | head -n2
64393           ls (GNU coreutils) 7.1-dirty
64394           Packaged by Gentoo (patchset 1.6)
64395         Note that the bug reporting info via --help doesn't show up because
64396         coreutils uses its own custom emit_bug_reporting_address() implementation
64397         in src/system.h.  If it didn't, it'd look like:
64398           $ ./src/ls --help | tail -n4
64399           Report bugs to <bug-coreutils@gnu.org>.
64400           Report Gentoo bugs to <http://bugs.gentoo.org/>.
64401           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
64402           General help using GNU software: <http://www.gnu.org/gethelp/>.
64403         * lib/version-etc.c: Print new information, if provided.
64404         * m4/version-etc.m4: New file.
64405         * modules/version-etc (Files): Add m4/version-etc.m4.
64406         (configure.ac): Add gl_VERSION_ETC.
64408 2009-05-31  Bruno Haible  <bruno@clisp.org>
64410         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
64411         and 'int64_t'.
64412         * modules/alignof-tests (Dependencies): Add stdint.
64413         Reported by Eric Blake.
64415 2009-05-31  Bruno Haible  <bruno@clisp.org>
64417         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
64418         restriction due to compiler bugs.
64419         Reported by Eric Blake.
64421 2009-05-31  Simon Josefsson  <simon@josefsson.org>
64422             Bruno Haible  <bruno@clisp.org>
64424         Fix test-alignof failure.
64425         * lib/alignof.h (alignof_slot): New macro.
64426         (alignof_type): New macro, with the same semantics as the previous
64427         'alignof'.
64428         (alignof): Alias to alignof_slot.
64429         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
64430         check that the results are usable as constant expressions.
64432 2009-05-31  Bruno Haible  <bruno@clisp.org>
64434         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
64435         * tests/test-memchr.c (main): Check that memchr does not read past the
64436         first occurrence of the byte.
64437         * tests/test-strstr.c (main): Update comment.
64438         Suggested by Eric Blake.
64440 2009-05-30  Bruno Haible  <bruno@clisp.org>
64442         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
64443         detail how to use dumpbin.
64444         Reported by David Byron <dbyron@dbyron.com>.
64446 2009-06-02  Simon Josefsson  <simon@josefsson.org>
64448         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
64450 2009-06-02  Simon Josefsson  <simon@josefsson.org>
64452         * m4/manywarnings.m4: Add GCC 4.4 warnings.
64454 2009-05-28  Bruno Haible  <bruno@clisp.org>
64456         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
64457         build-aux/ files.
64459 2009-05-28  Simon Josefsson  <simon@josefsson.org>
64461         * gnulib-tool (func_import): Transform license on build-aux/ files too.
64463 2009-05-27  Simon Josefsson  <simon@josefsson.org>
64465         * gnulib-tool (sed_transform_main_lib_file)
64466         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
64467         regexps.
64469 2009-05-26  Simon Josefsson  <simon@josefsson.org>
64471         * tests/test-strstr.c: Add another self-test.
64472         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
64473         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
64475 2009-05-23  Bruno Haible  <bruno@clisp.org>
64477         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
64478         change.
64480 2009-05-21  Bruno Haible  <bruno@clisp.org>
64482         Simplify use of mode_t varargs.
64483         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
64484         uses 'mode_t' or 'int'.
64485         * lib/openat.c (openat): Likewise.
64486         * lib/open-safer.c (open_safer): Likewise.
64487         * m4/mode_t.m4: New file.
64488         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
64489         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
64490         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
64491         * modules/open (Files): Add m4/mode_t.m4.
64492         * modules/openat (Files): Likewise.
64493         * modules/fcntl-safer (Files): Likewise.
64494         Suggested by Eric Blake.
64496 2009-05-21  Pádraig Brady  <P@draigbrady.com>
64498         * doc/glibc-functions/fallocate.texi: New file.
64499         * doc/gnulib.texi: Include it.
64501 2009-05-21  Eric Blake  <ebb9@byu.net>
64502             Bruno Haible  <bruno@clisp.org>
64504         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
64505         invocations.
64506         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
64508 2009-05-21  Eric Blake  <ebb9@byu.net>
64509             Bruno Haible  <bruno@clisp.org>
64511         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
64512         include_next. Fix of 2008-11-20 commit.
64513         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
64514         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
64515         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
64516         NEXT_MATH_H.
64517         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
64518         instead of NEXT_MATH_H.
64520 2009-05-21  Bruno Haible  <bruno@clisp.org>
64522         Avoid redefinition warnings for SIZE_MAX.
64523         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
64524         Reported by Simon Josefsson.
64526 2009-05-21  Bruno Haible  <bruno@clisp.org>
64528         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
64529         AC_CACHE_VAL.
64531 2009-05-20  Bruno Haible  <bruno@clisp.org>
64533         Make zeroptr.h work on mingw.
64534         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
64535         mprotect.
64536         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
64537         * modules/memchr2-tests (configure.ac): Likewise.
64538         * modules/memcmp-tests (configure.ac): Likewise.
64539         * modules/memmem-tests (configure.ac): Likewise.
64540         * modules/memrchr-tests (configure.ac): Likewise.
64541         Reported by Simon Josefsson.
64543 2009-05-20  Simon Josefsson  <simon@josefsson.org>
64545         * tests/test-glob.c: Include string.h for strcmp prototype.
64547 2009-05-20  Simon Josefsson  <simon@josefsson.org>
64549         * modules/getdelim (Depends-on): Add explicit stdint, although it
64550         was implicitly already pulled in via realloc-posix.
64551         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
64553 2009-05-20  Simon Josefsson  <simon@josefsson.org>
64555         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
64556         G. Christensen" <tgc@jupiterrise.com>.
64557         * m4/sys_socket_h.m4: Check for sa_family_t.
64558         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
64559         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
64560         * tests/test-sys_socket.c: Check that sa_family_t works.
64562 2009-05-18  Eric Blake  <ebb9@byu.net>
64564         maint.mk: allow gnulib_dir in VPATH build
64565         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
64567 2009-05-15  Jim Meyering  <meyering@redhat.com>
64569         maint.mk: Give gnulib_dir a default definition.
64570         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
64571         Thus, most packages no longer need to specify this variable in cfg.mk
64573 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
64575         rename.m4: fix typos that would make non-mingw cross-configure fail
64576         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
64578 2009-05-13  Eric Blake  <ebb9@byu.net>
64580         mmap-anon: avoid out-of-order autoconf expansion
64581         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
64582         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
64583         * modules/memchr-tests (Depends-on): Add extensions.
64584         * modules/memchr2-tests (Depends-on): Add extensions.
64585         * modules/memcmp-tests (Depends-on): Add extensions.
64586         * modules/memmem-tests (Depends-on): Add extensions.
64587         * modules/memrchr-tests (Depends-on): Add extensions.
64589 2009-05-13  Bruno Haible  <bruno@clisp.org>
64591         Make some tests ISO C 99 compliant.
64592         * tests/zerosize-ptr.h: New file.
64593         * tests/test-memchr.c: Include zerosize-ptr.h.
64594         (main): Use a zero-size object pointer instead of NULL.
64595         * tests/test-memchr2.c: Include zerosize-ptr.h.
64596         (main): Use a zero-size object pointer instead of NULL.
64597         * tests/test-memcmp.c: Include zerosize-ptr.h.
64598         (main): Use a zero-size object pointer instead of NULL.
64599         * tests/test-memmem.c: Include zerosize-ptr.h.
64600         (main): Use a zero-size object pointer instead of NULL.
64601         * tests/test-memrchr.c: Include zerosize-ptr.h.
64602         (main): Use a zero-size object pointer instead of NULL.
64603         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
64604         m4/mmap-anon.m4.
64605         (Depends-on): Add getpagesize.
64606         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64607         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
64608         m4/mmap-anon.m4.
64609         (Depends-on): Add getpagesize.
64610         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64611         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
64612         m4/mmap-anon.m4.
64613         (Depends-on): Add getpagesize.
64614         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64615         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
64616         m4/mmap-anon.m4.
64617         (Depends-on): Add getpagesize.
64618         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64619         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
64620         m4/mmap-anon.m4.
64621         (Depends-on): Add getpagesize.
64622         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64624 2009-05-12  Bruno Haible  <bruno@clisp.org>
64626         Tests for module 'alignof'.
64627         * modules/alignof-tests: New file.
64628         * tests/test-alignof.c: New file.
64630 2009-05-12  Bruno Haible  <bruno@clisp.org>
64632         Fix alignof macro.
64633         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
64634         vendor compilers that are always correct.
64636 2009-05-12  Bruno Haible  <bruno@clisp.org>
64638         Make the MAP_ANONYMOUS detection work on HP-UX 11.
64639         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
64640         not whether its fully works.
64642 2009-05-12  Bruno Haible  <bruno@clisp.org>
64644         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
64646 2009-05-12  Jim Meyering  <meyering@redhat.com>
64648         * top/maint.mk: Adjust backslash alignment.
64650 2009-05-11  Simon Josefsson  <simon@josefsson.org>
64652         * top/maint.mk: Make $(srcdir)/build-aux configurable.
64654 2009-05-11  Eric Blake  <ebb9@byu.net>
64656         argp: avoid undefined behavior
64657         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
64658         macros.
64660 2009-05-08  Simon Josefsson  <simon@josefsson.org>
64662         * tests/test-vc-list-files-git.sh: Do git config of user.email and
64663         user.name to prevent git commit from complaining.
64665 2009-05-10  Bruno Haible  <bruno@clisp.org>
64667         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
64668         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
64669         it rewrites every file name only once.
64670         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
64672 2009-05-08  Bruno Haible  <bruno@clisp.org>
64674         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
64675         instead of 'max'.
64677 2009-05-08  Simon Josefsson  <simon@josefsson.org>
64679         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
64680         sockaddr_storage test.
64682 2009-05-07  Simon Josefsson  <simon@josefsson.org>
64684         * modules/sys_socket (Makefile.am): Substitute
64685         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
64686         * m4/sys_socket_h.m4: Check for sockaddr_storage.
64687         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
64688         * tests/test-sys_socket.c: Check sockaddr_storage.
64690 2009-05-08  Bruno Haible  <bruno@clisp.org>
64692         New module 'alignof'.
64693         * lib/alignof.h: New file.
64694         * modules/alignof: New file.
64696 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
64697             Bruno Haible  <bruno@clisp.org>
64699         Fix test-file-has-acl on FreeBSD.
64700         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
64701         mask is implicitly added.
64702         * tests/test-file-has-acl.c: Include <signal.h>.
64703         (main): Terminate the test after 5 seconds.
64704         * modules/acl-tests (configure.ac): Check for alarm function.
64706 2009-05-04  Bruno Haible  <bruno@clisp.org>
64708         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
64709         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
64710         * modules/errno (configure.ac): Drop AC_REQUIRE.
64711         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
64712         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
64714 2009-05-04  Simon Josefsson  <simon@josefsson.org>
64716         * modules/glob-tests: New module.
64717         * tests/test-glob.c: Add.
64719 2009-05-04  Simon Josefsson  <simon@josefsson.org>
64721         * modules/fnmatch-tests: New module.
64722         * tests/test-fnmatch.c: Add.
64724 2009-05-04  Eric Blake  <ebb9@byu.net>
64726         maint: make the new no-submodule-changes rule VPATH-safe
64727         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
64729 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
64730             Bruno Haible  <bruno@clisp.org>
64732         acl: Fix infinite loop on FreeBSD.
64733         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
64734         of return value from acl_get_entry.
64735         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
64736         Likewise.
64738 2009-05-03  Bruno Haible  <bruno@clisp.org>
64740         * lib/acl-internal.h (acl_entries): Clarify return value.
64741         * lib/acl_entries.c (acl_entries): Likewise.
64743 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
64745         Bug fix in acl module.
64746         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
64748 2009-05-03  Bruno Haible  <bruno@clisp.org>
64750         Create gperf-generated file in the source dir, not in the build dir.
64751         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
64752         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
64753         * modules/unicase/locale-language (unicase/locale-languages.h):
64754         Likewise.
64755         * modules/unicase/special-casing (unicase/special-casing-table.h):
64756         Likewise.
64757         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
64758         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
64759         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
64760         Reported by Ralf Wildenhues.
64762 2009-05-03  Bruno Haible  <bruno@clisp.org>
64764         * modules/fnmatch (Description, configure.ac): Taken from
64765         fnmatch-posix.
64766         * modules/fnmatch-posix: Turn into a symbolic reference to the
64767         'fnmatch' module, and deprecate.
64768         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
64770 2009-05-03  Bruno Haible  <bruno@clisp.org>
64772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
64773         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
64774         Reported by Ralf Wildenhues.
64776 2009-05-04  Simon Josefsson  <simon@josefsson.org>
64778         * m4/fnmatch.m4: Fix fnmatch re-define.
64780 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
64782         priv-set: new module and tests; adapt write-any-file
64783         * lib/priv-set.c: New file.
64784         * lib/priv-set.h: New file.
64785         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
64786         * lib/write-any-file.c: Simplify by using priv-set module.
64787         * m4/priv-set.m4: New file.
64788         * modules/priv-set: New file.
64789         * modules/unlinkdir: Add dependency on priv-set module.
64790         * modules/write-any-file: Likewise.
64792         Tests for module 'priv-set'.
64793         * modules/priv-set-tests: New file.
64794         * tests/test-priv-set.c: New file.
64796 2009-05-03  Jim Meyering  <meyering@redhat.com>
64797             Bruno Haible  <bruno@clisp.org>
64799         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
64800         use the converted UTF-8 variant of the name instead.
64802 2009-05-03  Jim Meyering  <meyering@redhat.com>
64804         tests: tighten some getdate tests
64805         * tests/test-getdate.c (main): Tighten tests: require equality,
64806         not just greater than.  Set TZ envvar to UTC0.
64808 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
64810         getdate: correctly interpret "next monday" when run on a Monday
64811         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
64812         that e.g., "next tues" (when run on a tuesday) results in a date
64813         that is one week in the future, and not today's date.
64814         I.e., add a week when the wday is the same as the current one.
64815         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
64816         and earlier by Martin Bernreuther and Jan Minář.
64817         * tests/test-getdate.c (main): Check that "next DAY" is always in
64818         the future and that "last DAY" is always in the past.
64820 2009-05-02  Jim Meyering  <meyering@redhat.com>
64822         build: ensure that a release build fails when a submodule is unclean
64823         * top/maint.mk (no-submodule-changes): New rule.
64824         (alpha beta major): Depend on it.
64826 2009-05-02  Bruno Haible  <bruno@clisp.org>
64828         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
64829         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
64830         shell variable gl_fnmatch_required to detect which variant is
64831         requested.
64832         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
64833         gl_FUNC_FNMATCH_POSIX.
64834         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
64835         exclude fnmatch-posix.
64837 2009-05-02  Bruno Haible  <bruno@clisp.org>
64839         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
64840         * modules/mbsrtowcs (License): Change to LGPLv2+.
64841         * modules/strnlen1 (License): Likewise.
64842         Reported by Simon Josefsson.
64844 2009-05-02  Bruno Haible  <bruno@clisp.org>
64846         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
64847         "cross".
64848         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
64849         gnulib-tool was called with option --source-base=lib.
64851 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64853         Use automake *-local hooks without commands, for extensibility.
64854         * modules/localcharset (Makefile.am): Rename install-exec-local
64855         rule to install-exec-localcharset, and make it a prerequisite of
64856         install-exec-local.  Likewise, rename the uninstall-local rule to
64857         uninstall-localcharset, and make it a prerequisite of the former.
64859 2009-05-01  Bruno Haible  <bruno@clisp.org>
64861         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
64862         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
64863         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
64864         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
64865         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
64866         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
64867         m4/locale-zh.m4, m4/codeset.m4.
64869         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
64870         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
64871         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
64872         m4/locale-zh.m4.
64874         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
64875         REPLACE_WCRTOMB if mbstate_t must be replaced.
64876         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
64877         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
64879 2009-05-01  Bruno Haible  <bruno@clisp.org>
64881         Avoid compiler warnings when redefining macros defined by <libintl.h>.
64882         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
64883         dngettext, dcngettext, textdomain, bindtextdomain,
64884         bind_textdomain_codeset): Undefine before redefining.
64886 2009-04-30  Bruno Haible  <bruno@clisp.org>
64888         Fix bug introduced on 2009-04-25.
64889         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
64890         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
64891         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
64892         is defined.
64893         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
64894         is defined.
64895         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
64896         is defined.
64897         Reported by Elbert_Pol <elbert.pol@gmail.com>.
64899 2009-04-28  Bruno Haible  <bruno@clisp.org>
64901         Comment tweaks.
64902         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
64903         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
64904         * lib/unicase.h (u*_casexfrm): Likewise.
64905         Reported by Paolo Bonzini.
64907 2009-04-28  Bruno Haible  <bruno@clisp.org>
64909         Fix a compilation error.
64910         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
64911         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
64912         Reported by Jim Meyering.
64914 2009-04-27  Bruno Haible  <bruno@clisp.org>
64916         New module 'libunistring'.
64917         * modules/libunistring: New file.
64918         * m4/libunistring.m4: New file.
64919         * MODULES.html.sh (Unicode string functions): Add it.
64921 2009-04-27  Eric Blake  <ebb9@byu.net>
64923         maint.mk: allow package-specific header to provide <config.h>
64924         * top/maint.mk (sc_require_config_h): New variable.
64925         (sc_require_config_h, sc_require_config_h_first): Use it.
64927 2009-04-27  Simon Josefsson  <simon@josefsson.org>
64929         * top/maint.mk (sc_avoid_if_before_free): Except
64930         useless-if-before-free script.
64932 2009-04-27  Eric Blake  <ebb9@byu.net>
64934         maintainer-makefile: depend on all required helper scripts
64935         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
64936         useless-if-before-free.
64937         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
64938         version, rather than assuming gnulib checkout is available.
64939         Reported by Simen Josefsson.
64941 2009-04-26  Bruno Haible  <bruno@clisp.org>
64943         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
64944         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
64945         "../" or "..".
64947 2009-04-26  Bruno Haible  <bruno@clisp.org>
64949         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
64950         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
64951         AC_LIB_HAVE_LINKFLAGS.
64953 2009-04-26  Bruno Haible  <bruno@clisp.org>
64955         Simplify calling convention of u*_conv_from_encoding.
64956         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
64957         u32_conv_from_encoding): Expect a resultbuf argument and return the
64958         result directly as a pointer.
64959         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
64960         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
64961         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
64962         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
64963         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
64964         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
64965         Update.
64966         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
64967         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
64968         * lib/vasnprintf.c (VASNPRINTF): Update.
64969         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
64970         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
64971         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
64972         * NEWS: Mention the change.
64974 2009-04-26  Bruno Haible  <bruno@clisp.org>
64976         Simplify calling convention of u*_conv_to_encoding.
64977         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64978         u32_conv_to_encoding): Expect a resultbuf argument and return the
64979         result directly as a pointer.
64980         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
64981         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
64982         freeing scaled_offsets if mem_iconveha failed.
64983         * lib/unicase/u-casexfrm.h (FUNC): Update.
64984         * lib/uninorm/u-normxfrm.h (FUNC): Update.
64985         * lib/vasnprintf.c (VASNPRINTF): Update.
64986         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
64987         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
64988         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
64989         * NEWS: Mention the change.
64991 2009-04-26  Bruno Haible  <bruno@clisp.org>
64993         Avoid test failures on AIX and OSF/1.
64994         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
64995         malloc(0).
64996         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
64997         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
64998         Likewise.
64999         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
65000         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
65001         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
65002         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
65003         * doc/posix-functions/malloc.texi: Document the portability problem
65004         related to malloc(0).
65006 2009-04-26  Bruno Haible  <bruno@clisp.org>
65008         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
65009         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
65010         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
65012 2009-04-25  Bruno Haible  <bruno@clisp.org>
65014         Avoid link error when creating a namespace clean library.
65015         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
65016         as macro with arguments if already defined as an alias.
65017         * lib/signbitf.c (gl_signbitf): Don't undefine.
65018         * lib/signbitd.c (gl_signbitd): Don't undefine.
65019         * lib/signbitl.c (gl_signbitl): Don't undefine.
65021 2009-04-25  Jim Meyering  <meyering@redhat.com>
65023         vc-list-files: fix another quoting bug
65024         * build-aux/vc-list-files: Avoid sed backslash expansion
65025         of pathological directory names.
65027 2009-04-25  Eric Blake  <ebb9@byu.net>
65029         vc-list-files: fix shell quoting error
65030         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
65031         timestamp.
65033 2009-04-25  Jim Meyering  <meyering@redhat.com>
65035         vc-list-files: restore lost functionality with subdir argument
65036         * build-aux/vc-list-files: When given a non-"." sub-directory
65037         argument, substitute the $dir/ prefix back onto each resulting name.
65038         Otherwise, coreutils' root_tests check would fail.
65040 2009-04-24  Eric Blake  <ebb9@byu.net>
65042         vc-list-files: ignore git symlinks
65043         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
65044         than ls-files, to ignore git symlinks.
65046         maint.mk: import improvements from m4
65047         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
65048         (move_if_change): Delete unused macro.
65049         (news-date-check, vc-diff-check): Support VPATH builds.
65050         (announcement): Likewise.  Split --bootstrap-tools list...
65051         (boostrap-tools): ...into separate list, which can be overridden
65052         in cfg.mk.
65053         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
65054         requiring dependency on useless-if-before-free module.
65055         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
65056         Support VPATH builds.
65058 2009-04-24  Jim Meyering  <meyering@redhat.com>
65060         maint.mk: remove coreutils-specific rules and variables
65061         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
65062         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
65063         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
65065         maint.mk: remove obsolete rule
65066         * top/maint.mk (rel-check): Remove rule.
65067         (WGET, WGETFLAGS): Remove now-unused variables.
65069 2009-04-24  Simon Josefsson  <simon@josefsson.org>
65071         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
65072         consistency.
65074         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
65075         '$(PATH_SEPARATOR)' instead of ':'.
65077 2009-04-24  Simon Josefsson  <simon@josefsson.org>
65079         * lib/getopt1.c (main): Use 'const' for static array.
65081 2009-04-24  Simon Josefsson  <simon@josefsson.org>
65083         * top/maint.mk: Sync with coreutils.
65084         * NEWS: Explain incompatibilities.
65086 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65087             Bruno Haible  <bruno@clisp.org>
65089         Fix cross-compilation results.
65090         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
65091         statement, as third argument of AC_TRY_RUN.
65092         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
65093         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
65094         Likewise.
65095         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
65096         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
65097         Likewise.
65098         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
65099         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
65100         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
65102 2009-04-20  Bruno Haible  <bruno@clisp.org>
65104         Avoid test failure on mingw.
65105         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
65107 2009-04-20  Bruno Haible  <bruno@clisp.org>
65109         Avoid compilation error on mingw.
65110         * modules/localename-tests (Depends-on): Add locale.
65112 2009-04-19  Bruno Haible  <bruno@clisp.org>
65114         Support for building a shared library on Windows platforms.
65115         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
65116         (main): Test the presence of UNINORM_NFC here.
65117         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
65118         (main): Test the presence of UNINORM_NFD here.
65119         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
65120         (main): Test the presence of UNINORM_NFKC here.
65121         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
65122         (main): Test the presence of UNINORM_NFKD here.
65124 2009-04-19  Bruno Haible  <bruno@clisp.org>
65126         Avoid a compiler warning.
65127         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
65128         Change type of variable 'sequence'.
65130 2009-04-19  Bruno Haible  <bruno@clisp.org>
65132         * modules/configmake (Makefile.am): When the contents of configmake.h
65133         does not change, arrange to preserve its modification time.
65135 2009-04-17  Simon Josefsson  <simon@josefsson.org>
65137         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
65138         gettext domain.
65140 2009-04-16  Jim Meyering  <meyering@redhat.com>
65142         useless-if-before-free: improve conversion code
65143         * build-aux/useless-if-before-free: Adjust code-in-comment to match
65144         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
65146 2009-04-14  Bruno Haible  <bruno@clisp.org>
65148         * modules/fcntl (Depends-on): Add extensions.
65149         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
65151 2009-04-12  Ben Pfaff  <blp@gnu.org>
65153         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
65154         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
65156 2009-03-20  Ben Pfaff  <blp@gnu.org>
65158         Make rename replace existing destinations on Windows.
65159         * m4/rename.m4: Add test for Mingw.
65160         * lib/rename.c: Add rename replacement that uses MoveFileEx with
65161         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
65162         * doc/posix-functions/rename.texi: Document.
65164 2009-04-10  Bruno Haible  <bruno@clisp.org>
65166         New include file "iconveh.h".
65167         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
65168         * lib/striconveh.h: Include it.
65169         (enum iconv_ilseq_handler): Remove definition.
65170         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
65171         striconveh.h.
65172         * lib/striconveha.c: Include striconveh.h.
65173         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
65174         * modules/striconveh (Files): Add lib/iconveh.h.
65175         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
65176         lib/striconveh.h.
65178 2009-04-10  Bruno Haible  <bruno@clisp.org>
65180         * lib/uniconv.h: Update comment.
65182 2009-04-10  Bruno Haible  <bruno@clisp.org>
65184         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
65185         always.
65186         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65187         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65188         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65189         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
65190         "unistring-notinline.h", so that the function gets defined always.
65191         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65192         * lib/unistr/u8-uctomb.c: Likewise.
65193         * lib/unistr/u16-mbtouc.c: Likewise.
65194         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65195         * lib/unistr/u16-uctomb.c: Likewise.
65196         * lib/unistr/u32-mbtouc.c: Likewise.
65197         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65198         * lib/unistr/u32-uctomb.c: Likewise.
65200 2009-04-10  Bruno Haible  <bruno@clisp.org>
65202         Mark 'utime' obsolete.
65203         * modules/utime (Status, Notice): New sections.
65204         Suggested by Jim Meyering.
65206         Fix cross-compile guess for utime test.
65207         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
65208         autoconf.
65209         * doc/posix-functions/utime.texi: Give more precisions.
65210         Reported by Jan <ipif@ymail.com>.
65212 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
65214         filevercmp: correct today's change
65215         * lib/filevercmp.c: Also handle coreutils' test inputs.
65216         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
65218         Fix regression in 'filevercmp' module. Thanks Sven Joachim
65219         for reporting it.
65220         * lib/filevercmp.c: Special handle for "", "." and "..".
65221         * tests/test-filevercmp.c: Enlarge the set suite.
65223 2009-04-07  Jim Meyering  <meyering@redhat.com>
65225         useless-if-before-free: show how to remove braced useless free, too
65226         * build-aux/useless-if-before-free: still only in a comment, though.
65228 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
65230         maint.mk: import changes to syntax-check macros from coreutils
65231         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
65232         Use them in the relevant macros.
65234 2009-04-06  Bruno Haible  <bruno@clisp.org>
65236         Fix unportable use of bit-fields.
65237         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
65238         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
65239         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
65241 2009-04-06  Bruno Haible  <bruno@clisp.org>
65243         Avoid test failures on AIX and OSF/1.
65244         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
65245         that malloc(0) = NULL.
65246         * tests/unicase/test-u8-tolower.c (check): Likewise.
65247         * tests/unicase/test-u8-totitle.c (check): Likewise.
65248         * tests/unicase/test-u8-toupper.c (check): Likewise.
65249         * tests/unicase/test-u16-casefold.c (check): Likewise.
65250         * tests/unicase/test-u16-tolower.c (check): Likewise.
65251         * tests/unicase/test-u16-totitle.c (check): Likewise.
65252         * tests/unicase/test-u16-toupper.c (check): Likewise.
65253         * tests/unicase/test-u32-casefold.c (check): Likewise.
65254         * tests/unicase/test-u32-tolower.c (check): Likewise.
65255         * tests/unicase/test-u32-totitle.c (check): Likewise.
65256         * tests/unicase/test-u32-toupper.c (check): Likewise.
65257         * tests/uninorm/test-u8-nfc.c (check): Likewise.
65258         * tests/uninorm/test-u8-nfd.c (check): Likewise.
65259         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
65260         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
65261         * tests/uninorm/test-u16-nfc.c (check): Likewise.
65262         * tests/uninorm/test-u16-nfd.c (check): Likewise.
65263         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
65264         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
65265         * tests/uninorm/test-u32-nfc.c (check): Likewise.
65266         * tests/uninorm/test-u32-nfd.c (check): Likewise.
65267         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
65268         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
65270 2009-04-05  Bruno Haible  <bruno@clisp.org>
65272         Work around an autoconf limitation.
65273         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
65274         comment line if it would be longer than 3 KB.
65276 2009-04-05  Bruno Haible  <bruno@clisp.org>
65278         Avoid test failure with libiconv-1.13.
65279         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
65280         of the expected test results.
65282 2009-04-05  Bruno Haible  <bruno@clisp.org>
65284         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
65285         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
65286         that it should be installed.
65288 2009-04-05  Bruno Haible  <bruno@clisp.org>
65290         * gnulib-tool: New option --copy-file.
65291         (func_usage): Document it.
65292         (func_dest_tmpfilename): Moved out of func_import.
65293         (func_add_file, func_update_file): New functions, extracted from
65294         func_import.
65295         (func_import): Update.
65297 2009-04-05  Karl Berry  <karl@gnu.org>
65299         * README: prominently mention gnulib-tool.
65300         Rearrange sections so getting the code is near the top.
65302 2009-04-05  Bruno Haible  <bruno@clisp.org>
65304         * lib/unicase.h: Mention u*_cmp2.
65305         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
65306         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
65307         * lib/unicase/ulc-casecmp.c: Likewise.
65308         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
65309         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
65310         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
65311         unistr/u8-cmp.
65312         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
65313         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
65314         unistr/u16-cmp.
65315         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
65316         unistr/u32-cmp.
65318         * lib/uninorm.h: Mention u*_cmp2.
65319         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
65320         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
65321         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
65322         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
65323         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
65324         unistr/u8-cmp.
65325         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
65326         unistr/u16-cmp.
65327         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
65328         unistr/u32-cmp.
65330         New module 'unistr/u32-cmp2'.
65331         * lib/unistr/u32-cmp2.c: New file.
65332         * modules/unistr/u32-cmp2: New file.
65334         New module 'unistr/u16-cmp2'.
65335         * lib/unistr/u16-cmp2.c: New file.
65336         * modules/unistr/u16-cmp2: New file.
65338         New module 'unistr/u8-cmp2'.
65339         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
65340         * lib/unistr/u8-cmp2.c: New file.
65341         * lib/unistr/u-cmp2.h: New file.
65342         * modules/unistr/u8-cmp2: New file.
65344 2009-04-05  Bruno Haible  <bruno@clisp.org>
65346         * lib/unictype.h (uc_property_is_valid): New macro.
65347         * tests/unictype/test-pr_byname.c (main): Use it.
65349         * lib/unistr.h: Doc fixes.
65350         * lib/uniconv.h: Doc fixes.
65351         * lib/unictype.h: Doc fixes.
65353 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
65355         Port coreutils 7.2 to Solaris 8.
65357         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
65358         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
65359         for Solaris 8.  This is a bit of a hack, as it means it's the
65360         caller's responsibility to add -lnsl if needed, but most likely it
65361         won't be needed since only getaddrinfo uses this and getaddrinfo
65362         isn't needed on Solaris 8.
65364         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
65365         problem to Solaris 8 encountered with coreutils 7.2, which
65366         resulted in a message "fnmatch.c:292: warning: passing argument 4
65367         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
65368         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
65370 2009-04-03  Simon Josefsson  <simon@josefsson.org>
65372         * m4/ld-version-script.m4: Add FIXME comment.
65374 2009-04-02  Simon Josefsson  <simon@josefsson.org>
65376         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
65377         SOVERSION variable.
65379 2009-04-02  Bruno Haible  <bruno@clisp.org>
65381         * Makefile (info, html, dvi, pdf): Combine the rules.
65382         Suggested by Jim Meyering.
65384 2009-04-01  Bruno Haible  <bruno@clisp.org>
65386         * Makefile (info, html, dvi, pdf): New targets.
65387         Reported by Reuben Thomas <rrt@sc3d.org>.
65389 2009-04-01  Bruno Haible  <bruno@clisp.org>
65391         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
65392         can be put into PATH.
65393         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
65395 2009-04-01  Bruno Haible  <bruno@clisp.org>
65397         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
65399 2009-04-01  Bruno Haible  <bruno@clisp.org>
65401         Rename module 'visibility'.
65402         * modules/lib-symbol-visibility: Renamed from modules/visibility.
65403         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
65404         * doc/gnulib.texi: Update.
65405         * MODULES.html.sh (Misc): Update.
65406         * NEWS: Mention the change.
65408 2009-04-01  Simon Josefsson  <simon@josefsson.org>
65410         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
65411         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
65412         Eric Blake <ebb9@byu.net> for review.
65413         * MODULES.html.sh: Add lib-msvc-compat.
65414         * doc/gnulib.texi: Link to new section.
65415         * m4/ld-output-def.m4: New file.
65416         * doc/ld-output-def.texi: New file.
65418 2009-04-01  Simon Josefsson  <simon@josefsson.org>
65420         Rename ld-version-script to lib-symbol-versions.  Suggested by
65421         Bruno Haible <bruno@clisp.org>.
65422         * modules/ld-version-script: Renamed to lib-symbol-versions.
65423         * doc/ld-version-script.texi: Fix module name.
65424         * MODULES.html.sh: Add lib-symbol-versions.
65426 2009-03-31  Simon Josefsson  <simon@josefsson.org>
65428         * modules/u64-tests: New file.
65429         * tests/test-u64.c: New file.
65431 2009-03-04  Simon Josefsson  <simon@josefsson.org>
65433         * MODULES.html.sh: Mention u64.
65434         * modules/u64: New module.
65435         * modules/crypto/sha512: Depend on u64 module instead of providing
65436         u64.h.
65438 2009-03-27  Eric Blake  <ebb9@byu.net>
65440         test-strerror: make debugging EAI_SYSTEM easier
65441         * modules/getaddrinfo-tests (Depends-on): Add strerror.
65442         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
65443         failure was EAI_SYSTEM.
65445 2009-03-25  Bruno Haible  <bruno@clisp.org>
65447         Fix a problem with --enable-relocatable on Solaris 7.
65448         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
65449         since 2008-02-24.
65451 2009-03-25  Eric Blake  <ebb9@byu.net>
65453         test-sockets: avoid gcc warning
65454         * tests/test-sockets.c (main): Silence compiler warning.
65456 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
65458         New modules nproc, pthread, contributed by Glen Lenker.
65460         * MODULES.html.sh: Add pthread, nproc.
65461         * lib/nproc.c: New file.
65462         * lib/nproc.h: New file.
65463         * lib/pthread.in.h: New file.
65464         * m4/pthread.m4: New file.
65465         * modules/nproc: New file.
65466         * modules/pthread: New file.
65468 2009-03-24  Simon Josefsson  <simon@josefsson.org>
65470         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
65471         New variable.
65473 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
65475         filevercmp: handle simple~ and numbered.~3~ backup suffixes
65476         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
65477         * tests/test-filevercmp.c: Add tests for backup suffixes.
65479 2009-03-24  Simon Josefsson  <simon@josefsson.org>
65481         * modules/stdlib (Depends-on): Add stdint, needed when defining
65482         struct random_data on, for example, HP-UX 10.20.  Reported by
65483         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65485 2009-03-24  Simon Josefsson  <simon@josefsson.org>
65487         * lib/readline.c (readline): Call fflush on stdout after printing
65488         prompt.
65490 2009-03-20  Bruno Haible  <bruno@clisp.org>
65492         Remove dependency from 'close' module to -lws2_32 on native Windows.
65493         * lib/close-hook.h: New file.
65494         * lib/close-hook.c: New file.
65495         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
65496         w32sock.h.
65497         (_gl_close_fd_maybe_socket): Remove function.
65498         (rpl_close): Invoke execute_all_close_hooks instead of
65499         _gl_close_fd_maybe_socket.
65500         * lib/sockets.c: Include close-hook.h, w32sock.h.
65501         (close_fd_maybe_socket): New function, essentially from lib/close.c.
65502         (close_sockets_hook): New variable.
65503         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
65504         (gl_sockets_cleanup): Unregister it.
65505         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
65506         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
65507         * modules/close-hook: New file.
65508         * modules/close (Files): Remove lib/w32sock.h.
65509         (Depends-on): Add close-hook.
65510         (Link): Remove section.
65511         * modules/sockets (Files): Add lib/w32sock.h.
65512         (Depends-on): Add close-hook.
65513         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
65514         invocation.
65515         * NEWS: Mention that LIB_CLOSE is gone.
65517 2009-03-23  Eric Blake  <ebb9@byu.net>
65519         signal-tests: test previous patch
65520         * tests/test-signal.c: New file.
65521         * modules/signal-tests: Likewise.
65523         signal.h: always support 'volatile sig_atomic_t'
65524         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
65525         (gl_SIGNAL_H_DEFAULTS): Add a default.
65526         * modules/signal (Makefile.am): Substitute if needed.
65527         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
65528         users can blindly add volatile.
65529         * doc/posix-headers/signal.texi (signal.h): Document it.
65530         Reported by Matthew Woehlke.
65532 2009-03-23  Jim Meyering  <meyering@redhat.com>
65534         pathmax: PATH_MAX: use pathconf only when available
65535         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
65536         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
65537         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
65538         This avoids a link failure in a PSP cross-compilation environment
65539         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
65541         * lib/vasnprintf.c (divide): Fix typo in comment.
65543 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65545         * gnulib-tool (func_filter_filelist): Fix comment.
65547 2009-03-20  Bruno Haible  <bruno@clisp.org>
65549         Make sockets.h self-contained.
65550         * lib/sockets.c: Include sockets.h first.
65551         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
65553 2009-03-19  Eric Blake  <ebb9@byu.net>
65555         doc: mention more functions added in cygwin 1.7.0
65556         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
65557         addition.
65558         * doc/posix-functions/log2f.texi: Likewise.
65560 2009-03-19  Jim Meyering  <meyering@redhat.com>
65562         fsusage: avoid syntax error due to statement-before-declaration
65563         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
65564         after all declarations.  Reported by Matthew Woehlke in
65565         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
65567 2009-03-18  Eric Blake  <ebb9@byu.net>
65569         build-aux/compile: sync from automake
65570         * build-aux/compile: New file, from automake.
65571         * config/srclist.txt: Mention build-aux/compile.
65573 2009-03-17  Bruno Haible  <bruno@clisp.org>
65575         * lib/git-merge-changelog.c: Fix typo in comment.
65576         Reported by Reuben Thomas <rrt@sc3d.org>.
65578 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
65580         * m4/regex.m4: update and improve help for
65581         --without-included-regex.
65583 2009-03-17  Simon Josefsson  <simon@josefsson.org>
65585         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
65586         failure on missing include files.
65588 2009-03-17  Eric Blake  <ebb9@byu.net>
65590         doc: mention more functions added in cygwin 1.7.0
65591         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
65592         addition.
65593         * doc/posix-functions/fwscanf.texi: Likewise.
65594         * doc/posix-functions/swprintf.texi: Likewise.
65595         * doc/posix-functions/swscanf.texi: Likewise.
65596         * doc/posix-functions/vfwprintf.texi: Likewise.
65597         * doc/posix-functions/vfwscanf.texi: Likewise.
65598         * doc/posix-functions/vswprintf.texi: Likewise.
65599         * doc/posix-functions/vswscanf.texi: Likewise.
65600         * doc/posix-functions/vwprintf.texi: Likewise.
65601         * doc/posix-functions/vwscanf.texi: Likewise.
65602         * doc/posix-functions/wcscasecmp.texi: Likewise.
65603         * doc/posix-functions/wcsdup.texi: Likewise.
65604         * doc/posix-functions/wcsftime.texi: Likewise.
65605         * doc/posix-functions/wcsncasecmp.texi: Likewise.
65606         * doc/posix-functions/wprintf.texi: Likewise.
65607         * doc/posix-functions/wscanf.texi: Likewise.
65608         * doc/glibc-functions/gethostbyname2.texi: Likewise.
65610 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65612         maint.mk: really add $(AM_MAKEFLAGS)
65613         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
65614         was inadvertently omitted in the last commit.
65615         Spotted by Bruno Haible.
65617         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
65618         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
65619         $(AM_MAKEFLAGS)' rather than plain `make'.
65621         gnulib-tool: execute $MAKE not make
65622         * gnulib-tool: Default $MAKE to 'make'.
65623         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
65624         than make.  Initialize $MAKE in the do-autobuild script.
65626         gnulib-tool: use $MAKE not make in generated files
65627         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
65628         make, in generated files.  Initialize $MAKE in the do-autobuild
65629         script.
65631         * top/GNUmakefile (_have-git-version-gen): Fix typo.
65633         GNUmakefile: disable parallelism only for multiple, recursive targets
65634         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
65635         additions in the Makefile.
65636         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
65637         by Automake.
65638         (.NOTPARALLEL): Only disable parallel builds if multiple targets
65639         are listed on the command line and at least one of them is
65640         listed in $(ALL_RECURSIVE_TARGETS).
65642 2009-03-14  Bruno Haible  <bruno@clisp.org>
65644         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
65645         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
65646         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
65647         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
65648         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
65649         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
65650         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
65651         unistr/u8-uctomb.
65652         * modules/unistr/u8-strchr (Depends-on): Likewise.
65653         * modules/unistr/u8-strrchr (Depends-on): Likewise.
65654         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
65655         unistr/u16-uctomb.
65656         * modules/unistr/u16-strchr (Depends-on): Likewise.
65657         * modules/unistr/u16-strrchr (Depends-on): Likewise.
65659 2009-03-12  Bruno Haible  <bruno@clisp.org>
65661         Work around select() bug on Interix 3.5.
65662         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
65663         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
65664         * m4/select.m4: New file.
65665         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
65666         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
65667         * modules/select (Files): Add m4/select.m4.
65668         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
65669         * modules/nanosleep (Depends-on): Add select.
65670         * modules/poll (Depends-on): Likewise.
65671         * doc/posix-functions/select.texi: Mention the Interix bug.
65672         Reported by Markus Duft <mduft@gentoo.org>.
65674         * lib/select.c: Renamed from lib/winsock-select.c.
65675         * modules/select (Files): Add lib/select.c, remove
65676         lib/winsock-select.c.
65677         (configure.ac): Update.
65679 2009-03-12  Jim Meyering  <meyering@redhat.com>
65681         avoid gcc warnings about unused macro definitions
65682         * lib/readtokens.c (STREQ): Remove unused definition.
65683         * lib/xmalloc.c (SIZE_MAX): Likewise.
65684         * lib/openat-die.c (N_): Likewise.
65685         * lib/mountlist.c (SIZE_MAX): Remove definition.
65686         Instead, include <stdint.h>.
65687         * lib/readutmp.c: Likewise.
65688         * modules/readutmp (Depends-on): Add stdint.
65689         * modules/mountlist (Depends-on): Add stdint.
65690         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
65692 2009-03-10  Bruno Haible  <bruno@clisp.org>
65694         Tests for module 'mbmemcasecoll'.
65695         * modules/mbmemcasecoll-tests: New file.
65696         * tests/test-mbmemcasecoll1.sh: New file.
65697         * tests/test-mbmemcasecoll2.sh: New file.
65698         * tests/test-mbmemcasecoll3.sh: New file.
65699         * tests/test-mbmemcasecoll.c: New file.
65701         New module 'mbmemcasecoll'.
65702         * lib/mbmemcasecoll.h: New file.
65703         * lib/mbmemcasecoll.c: New file.
65704         * modules/mbmemcasecoll: New file.
65706         * tests/test-mbmemcasecmp.h: New file, extracted from
65707         tests/test-mbmemcasecmp.c.
65708         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
65709         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
65710         (main): Update.
65711         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
65713 2009-03-09  Bruno Haible  <bruno@clisp.org>
65715         Tests for module 'mbmemcasecmp'.
65716         * modules/mbmemcasecmp-tests: New file.
65717         * tests/test-mbmemcasecmp1.sh: New file.
65718         * tests/test-mbmemcasecmp2.sh: New file.
65719         * tests/test-mbmemcasecmp3.sh: New file.
65720         * tests/test-mbmemcasecmp.c: New file.
65722         New module 'mbmemcasecmp'.
65723         * lib/mbmemcasecmp.h: New file.
65724         * lib/mbmemcasecmp.c: New file.
65725         * modules/mbmemcasecmp: New file.
65727 2009-03-09  Bruno Haible  <bruno@clisp.org>
65729         Tests for module 'unicase/ulc-casecoll'.
65730         * modules/unicase/ulc-casecoll-tests: New file.
65731         * tests/unicase/test-ulc-casecoll1.sh: New file.
65732         * tests/unicase/test-ulc-casecoll2.sh: New file.
65733         * tests/unicase/test-ulc-casecoll.c: New file.
65735         New module 'unicase/ulc-casecoll'.
65736         * lib/unicase.h (ulc_casecoll): New declaration.
65737         * lib/unicase/ulc-casecoll.c: New file.
65738         * modules/unicase/ulc-casecoll: New file.
65740         New module 'unicase/ulc-casexfrm'.
65741         * lib/unicase.h (ulc_casexfrm): New declaration.
65742         * lib/unicase/ulc-casexfrm.c: New file.
65743         * modules/unicase/ulc-casexfrm: New file.
65745 2009-03-09  Bruno Haible  <bruno@clisp.org>
65747         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
65748         invocations.
65750         * m4/mbscasecmp.m4: Remove file.
65751         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
65752         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
65754         * m4/mbscasestr.m4: Remove file.
65755         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
65756         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
65758         * m4/mbschr.m4: Remove file.
65759         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
65760         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
65762         * m4/mbscspn.m4: Remove file.
65763         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
65764         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
65766         * m4/mbslen.m4: Remove file.
65767         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
65768         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
65770         * m4/mbsncasecmp.m4: Remove file.
65771         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
65772         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
65774         * m4/mbsnlen.m4: Remove file.
65775         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
65776         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
65778         * m4/mbspbrk.m4: Remove file.
65779         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
65780         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
65782         * m4/mbspcasecmp.m4: Remove file.
65783         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
65784         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
65786         * m4/mbsrchr.m4: Remove file.
65787         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
65788         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
65790         * m4/mbssep.m4: Remove file.
65791         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
65792         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
65794         * m4/mbsspn.m4: Remove file.
65795         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
65796         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
65798         * m4/mbsstr.m4: Remove file.
65799         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
65800         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
65802         * m4/mbstok_r.m4: Remove file.
65803         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
65804         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
65806         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
65808         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
65809         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
65811         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
65813 2009-03-08  Bruno Haible  <bruno@clisp.org>
65815         Tests for module 'unicase/ulc-casecmp'.
65816         * modules/unicase/ulc-casecmp-tests: New file.
65817         * tests/unicase/test-ulc-casecmp1.sh: New file.
65818         * tests/unicase/test-ulc-casecmp2.sh: New file.
65819         * tests/unicase/test-ulc-casecmp.c: New file.
65821         New module 'unicase/ulc-casecmp'.
65822         * lib/unicase.h (ulc_casecmp): New declaration.
65823         * lib/unicase/ulc-casecmp.c: New file.
65824         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
65825         'const SRC_UNIT *'.
65826         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
65827         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
65828         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
65829         * modules/unicase/ulc-casecmp: New file.
65831         Tests for module 'unicase/u32-is-cased'.
65832         * modules/unicase/u32-is-cased-tests: New file.
65833         * tests/unicase/test-u32-is-cased.c: New file.
65835         Tests for module 'unicase/u16-is-cased'.
65836         * modules/unicase/u16-is-cased-tests: New file.
65837         * tests/unicase/test-u16-is-cased.c: New file.
65839         Tests for module 'unicase/u8-is-cased'.
65840         * modules/unicase/u8-is-cased-tests: New file.
65841         * tests/unicase/test-u8-is-cased.c: New file.
65842         * tests/unicase/test-is-cased.h: New file.
65844         New module 'unicase/u32-is-cased'.
65845         * lib/unicase/u32-is-cased.c: New file.
65846         * modules/unicase/u32-is-cased: New file.
65848         New module 'unicase/u16-is-cased'.
65849         * lib/unicase/u16-is-cased.c: New file.
65850         * modules/unicase/u16-is-cased: New file.
65852         New module 'unicase/u8-is-cased'.
65853         * lib/unicase/u8-is-cased.c: New file.
65854         * lib/unicase/u-is-cased.h: New file.
65855         * modules/unicase/u8-is-cased: New file.
65857         Tests for module 'unicase/u32-is-casefolded'.
65858         * modules/unicase/u32-is-casefolded-tests: New file.
65859         * tests/unicase/test-u32-is-casefolded.c: New file.
65861         Tests for module 'unicase/u16-is-casefolded'.
65862         * modules/unicase/u16-is-casefolded-tests: New file.
65863         * tests/unicase/test-u16-is-casefolded.c: New file.
65865         Tests for module 'unicase/u8-is-casefolded'.
65866         * modules/unicase/u8-is-casefolded-tests: New file.
65867         * tests/unicase/test-u8-is-casefolded.c: New file.
65868         * tests/unicase/test-is-casefolded.h: New file.
65870         New module 'unicase/u32-is-casefolded'.
65871         * lib/unicase/u32-is-casefolded.c: New file.
65872         * modules/unicase/u32-is-casefolded: New file.
65874         New module 'unicase/u16-is-casefolded'.
65875         * lib/unicase/u16-is-casefolded.c: New file.
65876         * modules/unicase/u16-is-casefolded: New file.
65878         New module 'unicase/u8-is-casefolded'.
65879         * lib/unicase/u8-is-casefolded.c: New file.
65880         * modules/unicase/u8-is-casefolded: New file.
65882         Tests for module 'unicase/u32-is-titlecase'.
65883         * modules/unicase/u32-is-titlecase-tests: New file.
65884         * tests/unicase/test-u32-is-titlecase.c: New file.
65886         Tests for module 'unicase/u16-is-titlecase'.
65887         * modules/unicase/u16-is-titlecase-tests: New file.
65888         * tests/unicase/test-u16-is-titlecase.c: New file.
65890         Tests for module 'unicase/u8-is-titlecase'.
65891         * modules/unicase/u8-is-titlecase-tests: New file.
65892         * tests/unicase/test-u8-is-titlecase.c: New file.
65893         * tests/unicase/test-is-titlecase.h: New file.
65895         New module 'unicase/u32-is-titlecase'.
65896         * lib/unicase/u32-is-titlecase.c: New file.
65897         * modules/unicase/u32-is-titlecase: New file.
65899         New module 'unicase/u16-is-titlecase'.
65900         * lib/unicase/u16-is-titlecase.c: New file.
65901         * modules/unicase/u16-is-titlecase: New file.
65903         New module 'unicase/u8-is-titlecase'.
65904         * lib/unicase/u8-is-titlecase.c: New file.
65905         * modules/unicase/u8-is-titlecase: New file.
65907         Tests for module 'unicase/u32-is-lowercase'.
65908         * modules/unicase/u32-is-lowercase-tests: New file.
65909         * tests/unicase/test-u32-is-lowercase.c: New file.
65911         Tests for module 'unicase/u16-is-lowercase'.
65912         * modules/unicase/u16-is-lowercase-tests: New file.
65913         * tests/unicase/test-u16-is-lowercase.c: New file.
65915         Tests for module 'unicase/u8-is-lowercase'.
65916         * modules/unicase/u8-is-lowercase-tests: New file.
65917         * tests/unicase/test-u8-is-lowercase.c: New file.
65918         * tests/unicase/test-is-lowercase.h: New file.
65920         New module 'unicase/u32-is-lowercase'.
65921         * lib/unicase/u32-is-lowercase.c: New file.
65922         * modules/unicase/u32-is-lowercase: New file.
65924         New module 'unicase/u16-is-lowercase'.
65925         * lib/unicase/u16-is-lowercase.c: New file.
65926         * modules/unicase/u16-is-lowercase: New file.
65928         New module 'unicase/u8-is-lowercase'.
65929         * lib/unicase/u8-is-lowercase.c: New file.
65930         * modules/unicase/u8-is-lowercase: New file.
65932         Tests for module 'unicase/u32-is-uppercase'.
65933         * modules/unicase/u32-is-uppercase-tests: New file.
65934         * tests/unicase/test-u32-is-uppercase.c: New file.
65936         Tests for module 'unicase/u16-is-uppercase'.
65937         * modules/unicase/u16-is-uppercase-tests: New file.
65938         * tests/unicase/test-u16-is-uppercase.c: New file.
65940         Tests for module 'unicase/u8-is-uppercase'.
65941         * modules/unicase/u8-is-uppercase-tests: New file.
65942         * tests/unicase/test-u8-is-uppercase.c: New file.
65943         * tests/unicase/test-is-uppercase.h: New file.
65945         New module 'unicase/u32-is-uppercase'.
65946         * lib/unicase/u32-is-uppercase.c: New file.
65947         * modules/unicase/u32-is-uppercase: New file.
65949         New module 'unicase/u16-is-uppercase'.
65950         * lib/unicase/u16-is-uppercase.c: New file.
65951         * modules/unicase/u16-is-uppercase: New file.
65953         New module 'unicase/u8-is-uppercase'.
65954         * lib/unicase/u8-is-uppercase.c: New file.
65955         * modules/unicase/u8-is-uppercase: New file.
65957         New module 'unicase/u32-is-invariant'.
65958         * lib/unicase/u32-is-invariant.c: New file.
65959         * modules/unicase/u32-is-invariant: New file.
65961         New module 'unicase/u16-is-invariant'.
65962         * lib/unicase/u16-is-invariant.c: New file.
65963         * modules/unicase/u16-is-invariant: New file.
65965         New module 'unicase/u8-is-invariant'.
65966         * lib/unicase/u8-is-invariant.c: New file.
65967         * lib/unicase/invariant.h: New file.
65968         * lib/unicase/u-is-invariant.h: New file.
65969         * modules/unicase/u8-is-invariant: New file.
65971         Tests for module 'unicase/u32-casecoll'.
65972         * modules/unicase/u32-casecoll-tests: New file.
65973         * tests/unicase/test-u32-casecoll.c: New file.
65975         Tests for module 'unicase/u16-casecoll'.
65976         * modules/unicase/u16-casecoll-tests: New file.
65977         * tests/unicase/test-u16-casecoll.c: New file.
65979         Tests for module 'unicase/u8-casecoll'.
65980         * modules/unicase/u8-casecoll-tests: New file.
65981         * tests/unicase/test-u8-casecoll.c: New file.
65983         New module 'unicase/u32-casecoll'.
65984         * lib/unicase/u32-casecoll.c: New file.
65985         * modules/unicase/u32-casecoll: New file.
65987         New module 'unicase/u16-casecoll'.
65988         * lib/unicase/u16-casecoll.c: New file.
65989         * modules/unicase/u16-casecoll: New file.
65991         New module 'unicase/u8-casecoll'.
65992         * lib/unicase/u8-casecoll.c: New file.
65993         * lib/unicase/u-casecoll.h: New file.
65994         * modules/unicase/u8-casecoll: New file.
65996         New module 'unicase/u32-casexfrm'.
65997         * lib/unicase/u32-casexfrm.c: New file.
65998         * modules/unicase/u32-casexfrm: New file.
66000         New module 'unicase/u16-casexfrm'.
66001         * lib/unicase/u16-casexfrm.c: New file.
66002         * modules/unicase/u16-casexfrm: New file.
66004         New module 'unicase/u8-casexfrm'.
66005         * lib/unicase/u8-casexfrm.c: New file.
66006         * lib/unicase/u-casexfrm.h: New file.
66007         * modules/unicase/u8-casexfrm: New file.
66009         Tests for module 'unicase/u32-casecmp'.
66010         * modules/unicase/u32-casecmp-tests: New file.
66011         * tests/unicase/test-u32-casecmp.c: New file.
66013         Tests for module 'unicase/u16-casecmp'.
66014         * modules/unicase/u16-casecmp-tests: New file.
66015         * tests/unicase/test-u16-casecmp.c: New file.
66017         Tests for module 'unicase/u8-casecmp'.
66018         * modules/unicase/u8-casecmp-tests: New file.
66019         * tests/unicase/test-u8-casecmp.c: New file.
66020         * tests/unicase/test-casecmp.h: New file.
66022         New module 'unicase/u32-casecmp'.
66023         * lib/unicase/u32-casecmp.c: New file.
66024         * modules/unicase/u32-casecmp: New file.
66026         New module 'unicase/u16-casecmp'.
66027         * lib/unicase/u16-casecmp.c: New file.
66028         * modules/unicase/u16-casecmp: New file.
66030         New module 'unicase/u8-casecmp'.
66031         * lib/unicase/u8-casecmp.c: New file.
66032         * lib/unicase/u-casecmp.h: New file.
66033         * modules/unicase/u8-casecmp: New file.
66035         Tests for module 'unicase/u32-casefold'.
66036         * modules/unicase/u32-casefold-tests: New file.
66037         * tests/unicase/test-u32-casefold.c: New file.
66039         Tests for module 'unicase/u16-casefold'.
66040         * modules/unicase/u16-casefold-tests: New file.
66041         * tests/unicase/test-u16-casefold.c: New file.
66043         Tests for module 'unicase/u8-casefold'.
66044         * modules/unicase/u8-casefold-tests: New file.
66045         * tests/unicase/test-u8-casefold.c: New file.
66047         New module 'unicase/u32-casefold'.
66048         * lib/unicase/u32-casefold.c: New file.
66049         * modules/unicase/u32-casefold: New file.
66051         New module 'unicase/u16-casefold'.
66052         * lib/unicase/u16-casefold.c: New file.
66053         * modules/unicase/u16-casefold: New file.
66055         New module 'unicase/u8-casefold'.
66056         * lib/unicase/u8-casefold.c: New file.
66057         * lib/unicase/u-casefold.h: New file.
66058         * modules/unicase/u8-casefold: New file.
66060         New module 'unicase/tocasefold'.
66061         * lib/unicase/casefold.h: New file.
66062         * lib/unicase/tocasefold.c: New file.
66063         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
66064         * modules/unicase/tocasefold: New file.
66066         Tests for module 'unicase/u32-totitle'.
66067         * modules/unicase/u32-totitle-tests: New file.
66068         * tests/unicase/test-u32-totitle.c: New file.
66070         Tests for module 'unicase/u16-totitle'.
66071         * modules/unicase/u16-totitle-tests: New file.
66072         * tests/unicase/test-u16-totitle.c: New file.
66074         Tests for module 'unicase/u8-totitle'.
66075         * modules/unicase/u8-totitle-tests: New file.
66076         * tests/unicase/test-u8-totitle.c: New file.
66078         New module 'unicase/u32-totitle'.
66079         * lib/unicase/u32-totitle.c: New file.
66080         * modules/unicase/u32-totitle: New file.
66082         New module 'unicase/u16-totitle'.
66083         * lib/unicase/u16-totitle.c: New file.
66084         * modules/unicase/u16-totitle: New file.
66086         New module 'unicase/u8-totitle'.
66087         * lib/unicase/u8-totitle.c: New file.
66088         * lib/unicase/u-totitle.h: New file.
66089         * modules/unicase/u8-totitle: New file.
66091         Tests for module 'unicase/u32-tolower'.
66092         * modules/unicase/u32-tolower-tests: New file.
66093         * tests/unicase/test-u32-tolower.c: New file.
66095         Tests for module 'unicase/u16-tolower'.
66096         * modules/unicase/u16-tolower-tests: New file.
66097         * tests/unicase/test-u16-tolower.c: New file.
66099         Tests for module 'unicase/u8-tolower'.
66100         * modules/unicase/u8-tolower-tests: New file.
66101         * tests/unicase/test-u8-tolower.c: New file.
66103         New module 'unicase/u32-tolower'.
66104         * lib/unicase/u32-tolower.c: New file.
66105         * modules/unicase/u32-tolower: New file.
66107         New module 'unicase/u16-tolower'.
66108         * lib/unicase/u16-tolower.c: New file.
66109         * modules/unicase/u16-tolower: New file.
66111         New module 'unicase/u8-tolower'.
66112         * lib/unicase/u8-tolower.c: New file.
66113         * modules/unicase/u8-tolower: New file.
66115         Tests for module 'unicase/u32-toupper'.
66116         * modules/unicase/u32-toupper-tests: New file.
66117         * tests/unicase/test-u32-toupper.c: New file.
66119         Tests for module 'unicase/u16-toupper'.
66120         * modules/unicase/u16-toupper-tests: New file.
66121         * tests/unicase/test-u16-toupper.c: New file.
66123         Tests for module 'unicase/u8-toupper'.
66124         * modules/unicase/u8-toupper-tests: New file.
66125         * tests/unicase/test-u8-toupper.c: New file.
66127         New module 'unicase/u32-toupper'.
66128         * lib/unicase/u32-toupper.c: New file.
66129         * modules/unicase/u32-toupper: New file.
66131         New module 'unicase/u16-toupper'.
66132         * lib/unicase/u16-toupper.c: New file.
66133         * modules/unicase/u16-toupper: New file.
66135         New module 'unicase/u8-toupper'.
66136         * lib/unicase/u8-toupper.c: New file.
66137         * modules/unicase/u8-toupper: New file.
66139         New module 'unicase/u32-casemap'.
66140         * lib/unicase/u32-casemap.c: New file.
66141         * modules/unicase/u32-casemap: New file.
66143         New module 'unicase/u16-casemap'.
66144         * lib/unicase/u16-casemap.c: New file.
66145         * modules/unicase/u16-casemap: New file.
66147         New module 'unicase/u8-casemap'.
66148         * lib/unicase/unicasemap.h: New file.
66149         * lib/unicase/u8-casemap.c: New file.
66150         * lib/unicase/u-casemap.h: New file.
66151         * modules/unicase/u8-casemap: New file.
66153         New module 'unicase/special-casing'.
66154         * lib/unicase/special-casing.h: New file.
66155         * lib/unicase/special-casing.c: New file.
66156         * lib/unicase/special-casing-table.gperf: New file, generated by
66157         gen-uni-tables.c.
66158         * modules/unicase/special-casing: New file.
66160         Tests for module 'unicase/locale-language'.
66161         * modules/unicase/locale-language-tests: New file.
66162         * tests/unicase/test-locale-language.sh: New file.
66163         * tests/unicase/test-locale-language.c: New file.
66165         New module 'unicase/locale-language'.
66166         * lib/unicase/locale-language.c: New file.
66167         * lib/unicase/locale-languages.gperf: New file.
66168         * modules/unicase/locale-language: New file.
66170         Generate more tables for case conversion and case folding.
66171         * lib/gen-uni-tables.c (SCC_*): New enum items.
66172         (struct special_casing_rule): New type.
66173         (casing_rules, num_casing_rules, allocated_casing_rules): New
66174         variables.
66175         (add_casing_rule, fill_casing_rules): New functions.
66176         (struct casefold_rule): New type.
66177         (casefolding_rules, num_casefolding_rules,
66178         allocated_casefolding_rules): New variables.
66179         (fill_casefolding_rules): New function.
66180         (unicode_casefold): New variable.
66181         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
66182         sort_casing_rules, output_casing_rules): New functions.
66183         (main): Accept to more arguments: SpecialCasing.txt and
66184         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
66185         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
66186         Output mapping for casefolding.
66188         * lib/unicase.h: Include stdbool.h, uninorm.h.
66189         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
66190         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
66191         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
66192         arguments.
66193         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
66194         resultp arguments.
66195         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
66196         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
66197         resultp arguments.
66198         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
66199         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
66200         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
66201         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
66202         declarations.
66203         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
66205 2009-03-08  Bruno Haible  <bruno@clisp.org>
66207         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
66208         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
66209         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
66210         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
66212 2009-03-07  Bruno Haible  <bruno@clisp.org>
66214         Adjust u*_normcmp, u*_normcoll API.
66215         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
66216         u16_normcoll, u32_normcoll): Change failure conventions.
66217         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
66218         errno and return -1.
66219         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
66221 2009-03-07  Bruno Haible  <bruno@clisp.org>
66223         Tests for module 'uninorm/u32-normcoll'.
66224         * modules/uninorm/u32-normcoll-tests: New file.
66225         * tests/uninorm/test-u32-normcoll.c: New file.
66227         Tests for module 'uninorm/u16-normcoll'.
66228         * modules/uninorm/u16-normcoll-tests: New file.
66229         * tests/uninorm/test-u16-normcoll.c: New file.
66231         Tests for module 'uninorm/u8-normcoll'.
66232         * modules/uninorm/u8-normcoll-tests: New file.
66233         * tests/uninorm/test-u8-normcoll.c: New file.
66235 2009-03-07  Bruno Haible  <bruno@clisp.org>
66237         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
66238         tests/uninorm/test-u32-normcmp.c.
66239         * tests/uninorm/test-u32-normcmp.c: Include it.
66240         (test_nonascii): New function, extracted from main. Add some more
66241         tests.
66242         (main): Invoke test_ascii and test_nonascii.
66243         * modules/uninorm/u32-normcmp-tests (Files): Add
66244         tests/uninorm/test-u32-normcmp.h.
66245         (Depends-on): Remove uninorm/u32-normcmp.
66247         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
66248         tests/uninorm/test-u16-normcmp.c.
66249         * tests/uninorm/test-u16-normcmp.c: Include it.
66250         (test_nonascii): New function, extracted from main. Add some more
66251         tests.
66252         (main): Invoke test_ascii and test_nonascii.
66253         * modules/uninorm/u16-normcmp-tests (Files): Add
66254         tests/uninorm/test-u16-normcmp.h.
66255         (Depends-on): Remove uninorm/u16-normcmp.
66257         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
66258         tests/uninorm/test-u8-normcmp.c.
66259         * tests/uninorm/test-u8-normcmp.c: Include it.
66260         (test_nonascii): New function, extracted from main. Add some more
66261         tests.
66262         (main): Invoke test_ascii and test_nonascii.
66263         * modules/uninorm/u8-normcmp-tests (Files): Add
66264         tests/uninorm/test-u8-normcmp.h.
66265         (Depends-on): Remove uninorm/u8-normcmp.
66267 2009-03-07  Bruno Haible  <bruno@clisp.org>
66269         New module 'uninorm/u32-normcoll'.
66270         * lib/uninorm/u32-normcoll.c: New file.
66271         * modules/uninorm/u32-normcoll: New file.
66273         New module 'uninorm/u16-normcoll'.
66274         * lib/uninorm/u16-normcoll.c: New file.
66275         * modules/uninorm/u16-normcoll: New file.
66277         New module 'uninorm/u8-normcoll'.
66278         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
66279         declarations.
66280         * lib/uninorm/u8-normcoll.c: New file.
66281         * lib/uninorm/u-normcoll.h: New file.
66282         * modules/uninorm/u8-normcoll: New file.
66284         New module 'uninorm/u32-normxfrm'.
66285         * lib/uninorm/u32-normxfrm.c: New file.
66286         * modules/uninorm/u32-normxfrm: New file.
66288         New module 'uninorm/u16-normxfrm'.
66289         * lib/uninorm/u16-normxfrm.c: New file.
66290         * modules/uninorm/u16-normxfrm: New file.
66292         New module 'uninorm/u8-normxfrm'.
66293         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
66294         declarations.
66295         * lib/uninorm/u8-normxfrm.c: New file.
66296         * lib/uninorm/u-normxfrm.h: New file.
66297         * modules/uninorm/u8-normxfrm: New file.
66299 2009-03-07  Bruno Haible  <bruno@clisp.org>
66301         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
66302         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
66303         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
66305 2009-03-07  Bruno Haible  <bruno@clisp.org>
66307         New module 'memxfrm'.
66308         * lib/memxfrm.h: New file.
66309         * lib/memxfrm.c: New file.
66310         * modules/memxfrm: New file.
66312 2009-03-07  Bruno Haible  <bruno@clisp.org>
66314         New module 'memcmp2'.
66315         * lib/memcmp2.h: New file.
66316         * lib/memcmp2.c: New file.
66317         * modules/memcmp2: New file.
66319 2009-03-07  Bruno Haible  <bruno@clisp.org>
66321         Tests for module 'uninorm/decomposing-form'.
66322         * modules/uninorm/decomposing-form-tests: New file.
66323         * tests/uninorm/test-decomposing-form.c: New file.
66325         New module 'uninorm/decomposing-form'.
66326         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
66327         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
66328         Add 'decomposing_variant' field.
66329         * lib/uninorm/decomposing-form.c: New file.
66330         * lib/uninorm/nfc.c (uninorm_nfc): Update.
66331         * lib/uninorm/nfd.c (uninorm_nfd): Update.
66332         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
66333         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
66334         * modules/uninorm/decomposing-form: New file.
66335         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
66336         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
66338 2009-03-07  Bruno Haible  <bruno@clisp.org>
66340         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
66341         strings.
66343 2009-03-06  Bruno Haible  <bruno@clisp.org>
66345         Tests for module 'uninorm/u32-normcmp'.
66346         * tests/uninorm/test-u32-normcmp.c: New file.
66347         * modules/uninorm/u32-normcmp-tests: New file.
66349         Tests for module 'uninorm/u16-normcmp'.
66350         * tests/uninorm/test-u16-normcmp.c: New file.
66351         * modules/uninorm/u16-normcmp-tests: New file.
66353         Tests for module 'uninorm/u8-normcmp'.
66354         * tests/uninorm/test-u8-normcmp.c: New file.
66355         * modules/uninorm/u8-normcmp-tests: New file.
66357         New module 'uninorm/u32-normcmp'.
66358         * lib/uninorm/u32-normcmp.c: New file.
66359         * modules/uninorm/u32-normcmp: New file.
66361         New module 'uninorm/u16-normcmp'.
66362         * lib/uninorm/u16-normcmp.c: New file.
66363         * modules/uninorm/u16-normcmp: New file.
66365         New module 'uninorm/u8-normcmp'.
66366         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
66367         declarations.
66368         * lib/uninorm/u8-normcmp.c: New file.
66369         * lib/uninorm/u-normcmp.h: New file.
66370         * modules/uninorm/u8-normcmp: New file.
66372 2009-03-06  Bruno Haible  <bruno@clisp.org>
66374         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
66375         Reported by Eric Blake.
66377 2009-03-06  Eric Blake  <ebb9@byu.net>
66378             Bruno Haible  <bruno@clisp.org>
66380         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
66381         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
66382         condition.
66383         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
66384         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
66385         condition.
66386         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
66388 2009-03-06  Eric Blake  <ebb9@byu.net>
66390         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
66391         to avoid compiler warnings.
66392         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
66394 2009-03-05  Bruno Haible  <bruno@clisp.org>
66396         * tests/test-ftell.c (main): Disable test beyond end of file on
66397         FreeMiNT.
66398         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
66400 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
66402         * lib/filevercmp.c: Move hidden files up in ordering.
66403         * tests/test-filevercmp.c: Add tests for hidden files.
66405 2009-03-04  Bruno Haible  <bruno@clisp.org>
66407         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
66408         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
66409         AM_CFLAGS.
66410         Reported by Simon Josefsson.
66412 2009-03-03  Bruno Haible  <bruno@clisp.org>
66414         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
66415         Reported by Simon Josefsson.
66417         * doc/ld-version-script.texi: Update node reference.
66419 2009-03-03  Bruno Haible  <bruno@clisp.org>
66421         * modules/visibility (License): Change to 'unlimited'.
66422         Suggested by Simon Josefsson.
66424 2009-03-03  Jim Meyering  <meyering@redhat.com>
66426         unlinkdir: cannot_unlink_dir may modify process state
66427         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
66428         it's neither thread-safe nor appropriate for use in a library.
66430 2009-03-03  Eric Blake  <ebb9@byu.net>
66432         test-closein: silence test under Darwin
66433         * tests/test-closein.sh: Ignore stderr from cat, since we don't
66434         care if it dies from EPIPE or EBADF.
66436 2009-03-03  Bruno Haible  <bruno@clisp.org>
66438         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
66439         earlier.
66440         * doc/visibility.texi: Fix @node and @section.
66442 2009-03-03  Simon Josefsson  <simon@josefsson.org>
66444         * doc/gnulib.texi: Link to sections for ld version script and
66445         visibility.
66446         * doc/visibility.texi: Add @node and @section.
66447         * modules/ld-version-script: New module.
66448         * m4/ld-version-script.m4: New file.
66449         * doc/ld-version-script.texi: New file.
66451 2009-03-02  David Lutterkort  <lutter@redhat.com>
66453         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
66454         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66456 2009-03-02  Bruno Haible  <bruno@clisp.org>
66458         * doc/visibility.texi: Mention libtool's -export-symbols option.
66460 2009-03-02  Jim Meyering  <meyering@redhat.com>
66462         announce-gen: new option: --no-print-checksums
66463         * build-aux/announce-gen (usage): Describe it.
66464         (print_checksums): Print a newline here, not in the [*] footnote.
66465         (main): Honor it.
66467 2009-03-01  Bruno Haible  <bruno@clisp.org>
66469         Use socklen_t in the native Windows replacements prototypes.
66470         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
66471         instead of 'int'.
66472         * lib/getsockopt.c (rpl_getsockopt): Likewise.
66473         * lib/setsockopt.c (rpl_setsockopt): Likewise.
66474         * modules/getsockopt (Depends-on): Add socklen.
66475         * modules/setsockopt (Depends-on): Add socklen.
66477 2009-03-01  Bruno Haible  <bruno@clisp.org>
66479         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
66480         least 4.2.
66482 2009-03-01  Eric Blake  <ebb9@byu.net>
66483             Bruno Haible  <bruno@clisp.org>
66485         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
66486         error messages.
66487         * lib/wait-process.c (wait_subprocess): Omit error message about
66488         deadly signal sent to the child of termsigp != NULL.
66490 2009-03-01  Eric Blake  <ebb9@byu.net>
66492         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
66494 2009-03-01  Bruno Haible  <bruno@clisp.org>
66496         Avoid a gcc warning.
66497         * tests/test-sched.c (b): Make global.
66498         Reported by Eric Blake.
66500 2009-01-19  Martin Lambers  <marlam@marlam.de>
66502         Provide POSIX semantics for socket timeout options on W32.
66503         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
66504         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
66505         * modules/setsockopt: Depend on sys_time module for struct timeval.
66506         * modules/getsockopt: Depend on sys_time module for struct timeval.
66508 2009-03-01  Simon Josefsson  <simon@josefsson.org>
66510         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
66511         __USE_GNU, for consistency with netdb.in.h.
66512         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66514 2009-03-01  Bruno Haible  <bruno@clisp.org>
66516         More support for FreeMiNT.
66517         * lib/fseeko.c (rpl_fseeko): Complete last commit.
66518         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66520 2009-03-01  Bruno Haible  <bruno@clisp.org>
66522         More support for FreeMiNT.
66523         * lib/fpurge.c (fpurge): Correct last commit.
66524         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66526 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66528         Fix unportable awk script in vc-list-files.
66529         * build-aux/vc-list-files: In the replacement awk script, use
66530         substr with a second argument of 1, not zero.
66531         Report by Simon Josefsson.
66533 2009-02-28  Bruno Haible  <bruno@clisp.org>
66535         More support for FreeMiNT.
66536         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
66537         to FreeMiNT today.
66538         * lib/fwriting.c (fwriting): Likewise.
66539         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
66541 2009-02-28  Bruno Haible  <bruno@clisp.org>
66543         * tests/test-freadseek.c (main): Disable test beyond end of file on
66544         FreeMiNT.
66545         * tests/test-ftello.c (main): Likewise.
66546         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
66548 2009-02-28  Bruno Haible  <bruno@clisp.org>
66550         Add tentative support for FreeMiNT.
66551         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
66552         * lib/fpurge.c (fpurge): Likewise.
66553         * lib/freadable.c (freadable): Likewise.
66554         * lib/freading.c (freading): Likewise.
66555         * lib/freadptr.c (freadptr): Likewise.
66556         * lib/freadseek.c (freadptrinc): Likewise.
66557         * lib/fseeko.c (rpl_fseeko): Likewise.
66558         * lib/fseterr.c (fseterr): Likewise.
66559         * lib/fwritable.c (fwritable): Likewise.
66560         * lib/fwriting.c (fwriting): Likewise.
66561         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
66562         Hourihane.
66563         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66565 2009-02-28  Bruno Haible  <bruno@clisp.org>
66567         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
66568         SIGCHLD.
66569         Reported by Jim Meyering.
66571 2009-02-28  Bruno Haible  <bruno@clisp.org>
66573         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
66574         Mention the results of these tests on various platforms.
66575         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
66576         order.
66577         * doc/posix-functions/printf.texi: Likewise.
66578         * doc/posix-functions/snprintf.texi: Likewise.
66579         * doc/posix-functions/sprintf.texi: Likewise.
66580         * doc/posix-functions/vfprintf.texi: Likewise.
66581         * doc/posix-functions/vprintf.texi: Likewise.
66582         * doc/posix-functions/vsnprintf.texi: Likewise.
66583         * doc/posix-functions/vsprintf.texi: Likewise.
66584         * doc/glibc-functions/obstack_printf.texi: Likewise.
66585         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
66587 2009-02-28  Bruno Haible  <bruno@clisp.org>
66589         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
66590         Reported by Loïc Minier <lool@dooz.org>.
66592 2009-02-27  Bruno Haible  <bruno@clisp.org>
66594         * gnulib-tool (func_import): Make the sed expression used to create the
66595         sed script for updating the .gitignore file POSIX compliant.
66596         Reported by Eric Blake.
66598 2009-02-27  Bruno Haible  <bruno@clisp.org>
66600         * gnulib-tool (sed): Don't alias as "sed --posix".
66601         Reported by Eric Blake.
66603 2009-02-27  Bruno Haible  <bruno@clisp.org>
66605         Avoid test link errors.
66606         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
66607         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
66608         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
66609         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
66610         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66612 2009-02-27  Bruno Haible  <bruno@clisp.org>
66614         Avoid spurious "(cached)" in configure output.
66615         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
66616         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
66617         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
66618         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
66619         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
66620         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
66621         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
66622         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
66623         Reported by Eric Blake.
66625 2009-02-27  Eric Blake  <ebb9@byu.net>
66627         printf: fix regression in previous patch
66628         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
66630 2009-02-27  Bruno Haible  <bruno@clisp.org>
66632         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
66633         value.
66634         * lib/stdint.in.h: Likewise.
66635         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
66637 2009-02-27  Eric Blake  <ebb9@byu.net>
66639         doc: mention more functions added in cygwin 1.7.0
66640         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
66641         addition.
66642         * doc/posix-functions/open_wmemstream.texi: Likewise.
66643         * doc/posix-functions/wcsnlen.texi: Likewise.
66644         * doc/posix-functions/wcsnrtombs.texi: Likewise.
66645         * doc/posix-functions/wcstod.texi: Likewise.
66646         * doc/posix-functions/wcstof.texi: Likewise.
66647         * doc/posix-functions/wcstoimax.texi: Likewise.
66648         * doc/posix-functions/wcstok.texi: Likewise.
66649         * doc/posix-functions/wcstoumax.texi: Likewise.
66651         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
66652         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
66653         * doc/posix-functions/fprintf.texi: Update.
66654         * doc/posix-functions/printf.texi: Update.
66655         * doc/posix-functions/snprintf.texi: Update.
66656         * doc/posix-functions/sprintf.texi: Update.
66657         * doc/posix-functions/vfprintf.texi: Update.
66658         * doc/posix-functions/vprintf.texi: Update.
66659         * doc/posix-functions/vsnprintf.texi: Update.
66660         * doc/posix-functions/vsprintf.texi: Update.
66661         * doc/glibc-functions/obstack_printf.texi: Update.
66662         * doc/glibc-functions/obstack_vprintf.texi: Update.
66664 2009-02-26  Eric Blake  <ebb9@byu.net>
66666         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
66667         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
66668         compilation bug by using runtime conversion.
66669         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
66670         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
66671         * modules/ceill-tests (Files): Use nan.h.
66672         * modules/floorl-tests (Files): Likewise.
66673         * modules/frexpl-tests (Files): Likewise.
66674         * modules/isnanl-tests (Files): Likewise.
66675         * modules/ldexpl-tests (Files): Likewise.
66676         * modules/roundl-tests (Files): Likewise.
66677         * modules/truncl-tests (Files): Likewise.
66678         * tests/test-ceill.c (main): Use a working NaN.
66679         * tests/test-floorl.c (main): Likewise.
66680         * tests/test-frexpl.c (main): Likewise.
66681         * tests/test-isnan.c (test_long_double): Likewise.
66682         * tests/test-isnanl.h (main): Likewise.
66683         * tests/test-ldexpl.h (main): Likewise.
66684         * tests/test-roundl.h (main): Likewise.
66685         * tests/test-truncl.h (main): Likewise.
66686         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
66688 2009-02-26  Eric Blake  <ebb9@byu.net>
66689             Bruno Haible  <bruno@clisp.org>
66691         Work around a *printf bug with %ls on Solaris.
66692         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
66693         precision is specified, sprintf stops converting the wide string
66694         argument when the number of bytes that have been produced by this
66695         conversion equals or exceeds the precision.
66696         * doc/posix-functions/fprintf.texi: Update.
66697         * doc/posix-functions/printf.texi: Update.
66698         * doc/posix-functions/snprintf.texi: Update.
66699         * doc/posix-functions/sprintf.texi: Update.
66700         * doc/posix-functions/vfprintf.texi: Update.
66701         * doc/posix-functions/vprintf.texi: Update.
66702         * doc/posix-functions/vsnprintf.texi: Update.
66703         * doc/posix-functions/vsprintf.texi: Update.
66704         * doc/glibc-functions/obstack_printf.texi: Update.
66705         * doc/glibc-functions/obstack_vprintf.texi: Update.
66707 2009-02-26  Eric Blake  <ebb9@byu.net>
66709         stdlib: favor compiler check of random.h
66710         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
66711         to avoid an ObjC random.h installed by Swarm.
66713 2009-02-26  Bruno Haible  <bruno@clisp.org>
66715         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
66716         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
66717         Reported by Gary V. Vaughan <gary@gnu.org>.
66719 2009-02-26  Bruno Haible  <bruno@clisp.org>
66721         Fix *printf behaviour regarding the %ls directive.
66722         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
66723         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
66724         NEED_PRINTF_DIRECTIVE_LS.
66725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
66726         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
66727         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66728         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
66729         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
66730         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
66731         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
66732         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66733         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66734         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66735         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66736         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
66737         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66738         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66739         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66740         * doc/posix-functions/fprintf.texi: Update.
66741         * doc/posix-functions/printf.texi: Update.
66742         * doc/posix-functions/snprintf.texi: Update.
66743         * doc/posix-functions/sprintf.texi: Update.
66744         * doc/posix-functions/vfprintf.texi: Update.
66745         * doc/posix-functions/vprintf.texi: Update.
66746         * doc/posix-functions/vsnprintf.texi: Update.
66747         * doc/posix-functions/vsprintf.texi: Update.
66748         * doc/glibc-functions/obstack_printf.texi: Update.
66749         * doc/glibc-functions/obstack_vprintf.texi: Update.
66750         Reported by Eric Blake.
66752 2009-02-25  Bruno Haible  <bruno@clisp.org>
66754         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
66755         with known value.
66756         Reported by Gary V. Vaughan <gary@gnu.org>.
66758 2009-02-25  Bruno Haible  <bruno@clisp.org>
66760         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
66761         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
66762         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
66763         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
66764         Reported by Gary V. Vaughan <gary@gnu.org>.
66766 2009-02-25  Bruno Haible  <bruno@clisp.org>
66768         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
66769         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
66770         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
66771         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
66772         Reported by Gary V. Vaughan <gary@gnu.org>.
66774 2009-02-25  Eric Blake  <ebb9@byu.net>
66776         tests: skip fseek/ftell tests if ungetc is broken
66777         * m4/ungetc.m4: New file.
66778         * modules/fseek-tests: Split test, so ungetc dependency is
66779         separate from rest of test.
66780         * modules/fseeko-tests: Likewise.
66781         * modules/ftell-tests: Likewise.
66782         * modules/ftello-tests: Likewise.
66783         * tests/test-fseek.c (main): Isolate ungetc dependency.
66784         * tests/test-fseeko.c (main): Likewise.
66785         * tests/test-ftell.c (main): Likewise.
66786         * tests/test-ftello.c (main): Likewise.
66787         * tests/test-fseek2.sh: New file.
66788         * tests/test-fseeko2.sh: Likewise.
66789         * tests/test-ftell2.sh: Likewise.
66790         * tests/test-ftello2.sh: Likewise.
66792 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
66794         test-getaddrinfo: fix usage of skip return code 77
66795         * tests/test-gettaddrinfo.c: Return skip code 77 only
66796         for first occurrence of skip (4x77 is not 77)
66798 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
66800         strtod: avoid C99 decl-after-statement
66801         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
66803 2009-02-24  Eric Blake  <ebb9@byu.net>
66805         strtod: detect HP-UX 11.31 bug
66806         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
66807         Reported by Gary V. Vaughan.
66809 2009-02-23  Bruno Haible  <bruno@clisp.org>
66811         Fix invalid read past end of memory block.
66812         * lib/vasnprintf.c (DCHAR_SET): Define.
66813         (local_wcslen): Define only when needed.
66814         (local_strnlen, local_wcsnlen): New functions.
66815         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
66816         directives that involve a conversion ourselves.
66817         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
66818         wcsnlen, mbrtowc, wcrtomb.
66819         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
66820         * tests/test-vasprintf-posix.c (test_function): Likewise.
66821         * tests/test-snprintf-posix.h (test_function): Likewise.
66822         * tests/test-sprintf-posix.h (test_function): Likewise.
66823         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66825 2009-02-22  Bruno Haible  <bruno@clisp.org>
66827         Implement new clarified decomposition of Hangul syllables.
66828         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
66829         of type LTV, return only a pairwise decomposition.
66830         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
66831         Likewise.
66832         * tests/uninorm/test-decomposition.c (main): Updated expected result.
66833         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
66834         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
66836 2009-02-22  Bruno Haible  <bruno@clisp.org>
66838         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
66839         zero-length results and shrink excess allocated memory.
66840         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
66841         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
66842         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
66843         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
66844         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
66845         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
66846         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
66847         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
66848         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
66849         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
66850         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
66851         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
66853 2009-02-21  Bruno Haible  <bruno@clisp.org>
66855         * doc/gnulib.texi: Include safe-alloc.texi earlier.
66856         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
66857         spaces after a period. Put a space between a macro name and its
66858         argument list. Trivial rewordings.
66859         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
66860         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
66861         (main): Return 0 explicitly.
66863 2009-02-21  Bruno Haible  <bruno@clisp.org>
66865         Tests for module 'uninorm/filter'.
66866         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
66867         * modules/uninorm/filter-tests: New file.
66869         New module 'uninorm/filter'.
66870         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
66871         uninorm_filter_flush, uninorm_filter_free): New declarations.
66872         * lib/uninorm/uninorm-filter.c: New file.
66873         * modules/uninorm/filter: New file.
66875 2009-02-21  Bruno Haible  <bruno@clisp.org>
66877         Tests for module 'uninorm/nfkc'.
66878         * tests/uninorm/test-nfkc.c: New file.
66879         * tests/uninorm/test-u8-nfkc.c: New file.
66880         * tests/uninorm/test-u16-nfkc.c: New file.
66881         * tests/uninorm/test-u32-nfkc.c: New file.
66882         * tests/uninorm/test-u32-nfkc-big.sh: New file.
66883         * tests/uninorm/test-u32-nfkc-big.c: New file.
66884         * modules/uninorm/nfkc-tests: New file.
66886         New module 'uninorm/nfkc'.
66887         * lib/uninorm/nfkc.c: New file.
66888         * modules/uninorm/nfkc: New file.
66890         Tests for module 'uninorm/nfkd'.
66891         * tests/uninorm/test-nfkd.c: New file.
66892         * tests/uninorm/test-u8-nfkd.c: New file.
66893         * tests/uninorm/test-u16-nfkd.c: New file.
66894         * tests/uninorm/test-u32-nfkd.c: New file.
66895         * tests/uninorm/test-u32-nfkd-big.sh: New file.
66896         * tests/uninorm/test-u32-nfkd-big.c: New file.
66897         * modules/uninorm/nfkd-tests: New file.
66899         New module 'uninorm/nfkd'.
66900         * lib/uninorm/nfkd.c: New file.
66901         * modules/uninorm/nfkd: New file.
66903         Tests for module 'uninorm/nfc'.
66904         * tests/uninorm/test-nfc.c: New file.
66905         * tests/uninorm/test-u8-nfc.c: New file.
66906         * tests/uninorm/test-u16-nfc.c: New file.
66907         * tests/uninorm/test-u32-nfc.c: New file.
66908         * tests/uninorm/test-u32-nfc-big.sh: New file.
66909         * tests/uninorm/test-u32-nfc-big.c: New file.
66910         * modules/uninorm/nfc-tests: New file.
66912         New module 'uninorm/nfc'.
66913         * lib/uninorm/nfc.c: New file.
66914         * modules/uninorm/nfc: New file.
66916         Tests for module 'uninorm/nfd'.
66917         * tests/uninorm/test-nfd.c: New file.
66918         * tests/uninorm/test-u8-nfd.c: New file.
66919         * tests/uninorm/test-u16-nfd.c: New file.
66920         * tests/uninorm/test-u32-nfd.c: New file.
66921         * tests/uninorm/test-u32-nfd-big.sh: New file.
66922         * tests/uninorm/test-u32-nfd-big.c: New file.
66923         * tests/uninorm/test-u32-normalize-big.h: New file.
66924         * tests/uninorm/test-u32-normalize-big.c: New file.
66925         * tests/uninorm/NormalizationTest.txt: New file, created from
66926         Unicode 5.1.0 NormalizationTest.txt.
66927         * modules/uninorm/nfd-tests: New file.
66929         New module 'uninorm/nfd'.
66930         * lib/uninorm/nfd.c: New file.
66931         * modules/uninorm/nfd: New file.
66933         New module 'uninorm/u32-normalize'.
66934         * lib/uninorm/u32-normalize.c: New file.
66935         * modules/uninorm/u32-normalize: New file.
66937         New module 'uninorm/u16-normalize'.
66938         * lib/uninorm/u16-normalize.c: New file.
66939         * modules/uninorm/u16-normalize: New file.
66941         New module 'uninorm/u8-normalize'.
66942         * lib/uninorm/u8-normalize.c: New file.
66943         * lib/uninorm/normalize-internal.h: New file.
66944         * lib/uninorm/u-normalize-internal.h: New file.
66945         * modules/uninorm/u8-normalize: New file.
66947         New module 'uninorm/decompose-internal'.
66948         * lib/uninorm/decompose-internal.c: New file.
66949         * modules/uninorm/decompose-internal: New file.
66951         Tests for module 'uninorm/composition'.
66952         * tests/uninorm/test-composition.c: New file.
66953         * modules/uninorm/composition-tests: New file.
66955         New module 'uninorm/composition'.
66956         * lib/uninorm/composition.c: New file.
66957         * lib/uninorm/composition-table.gperf: New file, generated by
66958         gen-uni-tables.
66959         * modules/uninorm/composition: New file.
66961         Tests for module 'uninorm/compat-decomposition'.
66962         * tests/uninorm/test-compat-decomposition.c: New file.
66963         * modules/uninorm/compat-decomposition-tests: New file.
66965         New module 'uninorm/compat-decomposition'.
66966         * lib/uninorm/decompose-internal.h: New file.
66967         * lib/uninorm/compat-decomposition.c: New file.
66968         * modules/uninorm/compat-decomposition: New file.
66970         Tests for module 'uninorm/canonical-decomposition'.
66971         * tests/uninorm/test-canonical-decomposition.c: New file.
66972         * modules/uninorm/canonical-decomposition-tests: New file.
66974         New module 'uninorm/canonical-decomposition'.
66975         * lib/uninorm/canonical-decomposition.c: New file.
66976         * modules/uninorm/canonical-decomposition: New file.
66978         Tests for module 'uninorm/decomposition'.
66979         * tests/uninorm/test-decomposition.c: New file.
66980         * modules/uninorm/decomposition-tests: New file.
66982         New module 'uninorm/decomposition'.
66983         * lib/uninorm/decomposition.c: New file.
66984         * modules/uninorm/decomposition: New file.
66986         New module 'uninorm/decomposition-table'.
66987         * lib/uninorm/decomposition-table.h: New file.
66988         * lib/uninorm/decomposition-table.c: New file.
66989         * lib/uninorm/decomposition-table1.h: New file, generated by
66990         gen-uni-tables.
66991         * lib/uninorm/decomposition-table2.h: New file, generated by
66992         gen-uni-tables.
66993         * modules/uninorm/decomposition-table: New file.
66995         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
66996         (UC_DECOMP_*): New enumeration items.
66997         (get_decomposition): New function.
66998         (struct decomp_table): New type.
66999         (output_decomposition, output_decomposition_tables): New functions.
67000         (unicode_composition_exclusions): New variable.
67001         (fill_composition_exclusions, debug_output_composition_tables): New
67002         functions.
67003         (main): Accept one more argument. Invoke fill_composition_exclusions.
67004         Output decomposition and composition tables.
67006         New module 'uninorm/base'.
67007         * lib/uninorm.h: New file.
67008         * lib/unictype.h: Update comment.
67009         * modules/uninorm/base: New file.
67011 2009-02-21  David Lutterkort  <lutter@redhat.com>
67013         Tests for module 'safe-alloc'.
67014         * tests/test-safe-alloc.c: New file.
67015         * modules/safe-alloc-tests: New file.
67017         New module 'safe-alloc'.
67018         * lib/safe-alloc.h: New file.
67019         * lib/safe-alloc.c: New file.
67020         * m4/safe-alloc.m4: New file.
67021         * modules/safe-alloc: New file.
67022         * doc/safe-alloc.texi: New file.
67023         * doc/gnulib.texi: Include it.
67024         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
67025         safe-alloc.
67027 2009-02-18  Bruno Haible  <bruno@clisp.org>
67029         Fix link error on non-glibc systems.
67030         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
67031         variable.
67032         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67034 2009-02-18  Jim Meyering  <meyering@redhat.com>
67036         fts: avoid used-uninitialized error due to recent change
67037         * lib/fts.c (fts_read): Guard uses of the new member,
67038         parent->fts_n_dirs_remaining, since it's not relevant for
67039         the parent of a directory specified on the command-line.
67041 2009-02-17  James Youngman  <jay@gnu.org>
67042             Bruno Haible  <bruno@clisp.org>
67044         * m4/include_next.m4: Reformulate comment.
67046 2009-02-16  Jim Meyering  <meyering@redhat.com>
67048         fts: add #if guards so that the fts_lgpl module still builds
67049         * lib/fts.c: Guard just-added hash-table-using parts with
67050         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
67051         Reported by Simon Josefsson.
67053 2009-02-15  Bruno Haible  <bruno@clisp.org>
67055         * modules/array-mergesort-tests: New file.
67056         * tests/test-array-mergesort.c: New file.
67058         New module 'array-mergesort'.
67059         * modules/array-mergesort: New file.
67060         * lib/array-mergesort.h: New file.
67062 2009-02-15  Bruno Haible  <bruno@clisp.org>
67064         Fix 2009-02-07 commit.
67065         * lib/gen-uni-tables.c (output_predicate, output_category,
67066         output_combclass, output_bidi_category, output_decimal_digit,
67067         output_digit, output_numeric, output_mirror, output_scripts,
67068         output_ident_category, output_simple_mapping): Fix format directives.
67069         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
67071 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
67073         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
67074         fixes are available from IBM.
67076 2009-02-13  Jim Meyering  <meyering@redhat.com>
67078         fts: arrange not to stat non-directories in more cases
67079         This makes GNU find (when it doesn't need to stat each file)
67080         *much* more efficient at traversing reiserfs file systems.
67081         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
67082         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
67083         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
67084         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
67085         (leaf_optimization_applies): New function.
67086         (LCO_hash, LCO_compare): New helper functions.
67087         (link_count_optimize_ok): New function.
67088         (fts_stat): Initialize new member (if dir).
67089         (fts_read): Decrement parent's fts_n_dirs_remaining count if
67090         we've just stat'ed a directory.  Skip the stat call when possible.
67091         ---
67092         Note this AFS-related exchange:
67093         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
67094         and note find's pioctl call in find/fstype.c.
67095         But that is necessary only if you want to enable the
67096         optimization for AFS, and for now, I don't.
67098         fts: move a function definition "up" (no semantic change)
67099         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
67100         "up" to precede upcoming use of a related function.
67102 2009-02-11  Jim Meyering  <meyering@redhat.com>
67104         fts: correct internal computation of nlinks (optimization-related)
67105         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
67106         whether the current entry is a directory, so don't test it.
67108 2009-02-10  Bruno Haible  <bruno@clisp.org>
67110         Tests for module 'uniwbrk/ulc-wordbreaks'.
67111         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
67112         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
67113         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
67115         Tests for module 'uniwbrk/u32-wordbreaks'.
67116         * modules/uniwbrk/u32-wordbreaks-tests: New file.
67117         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
67119         Tests for module 'uniwbrk/u16-wordbreaks'.
67120         * modules/uniwbrk/u16-wordbreaks-tests: New file.
67121         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
67123         Tests for module 'uniwbrk/u8-wordbreaks'.
67124         * modules/uniwbrk/u8-wordbreaks-tests: New file.
67125         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
67127 2009-02-10  Bruno Haible  <bruno@clisp.org>
67129         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
67130         property.
67131         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
67132         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
67133         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
67135 2009-02-10  Simon Josefsson  <simon@josefsson.org>
67137         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
67138         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
67140 2009-02-10  Bruno Haible  <bruno@clisp.org>
67142         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
67143         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
67144         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
67145         * lib/unilbrk/u8-possible-linebreaks.c: Update.
67146         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
67147         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
67149 2009-02-09  Simon Josefsson  <simon@josefsson.org>
67151         * lib/sockets.h (gl_fd_to_handle): New function.
67153         * tests/test-sockets.c: Call gl_fd_to_handle.
67155 2009-02-09  Bruno Haible  <bruno@clisp.org>
67157         * doc/havelib.texi: Document the conventions on bi-arch systems.
67159 2009-02-08  Bruno Haible  <bruno@clisp.org>
67161         Document the AC_LIB_LINKFLAGS macro.
67162         * doc/havelib.texi: New file, mostly written on 2005-05-24.
67163         * doc/gnulib.texi: Include it.
67165 2009-02-08  Bruno Haible  <bruno@clisp.org>
67167         Fix wrong order of sections, compared to TOC.
67168         * doc/gnulib.texi: Include relocatable-maint.texi after the
67169         "Regular expressions" node, not before.
67171 2009-02-08  Bruno Haible  <bruno@clisp.org>
67173         Tests for module 'unicase/totitle'.
67174         * modules/unicase/totitle-tests: New file.
67176         Tests for module 'unicase/tolower'.
67177         * modules/unicase/tolower-tests: New file.
67179         Tests for module 'unicase/toupper'.
67180         * modules/unicase/toupper-tests: New file.
67181         * tests/unicase/test-mapping-part1.h: New file.
67182         * tests/unicase/test-mapping-part2.h: New file.
67184         New module 'unicase/totitle'.
67185         * modules/unicase/totitle: New file.
67186         * lib/unicase/totitle.c: New file.
67188         New module 'unicase/tolower'.
67189         * modules/unicase/tolower: New file.
67190         * lib/unicase/tolower.c: New file.
67192         New module 'unicase/toupper'.
67193         * modules/unicase/toupper: New file.
67194         * lib/unicase/toupper.c: New file.
67195         * lib/unicase/simple-mapping.h: New file.
67197         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
67198         (mapping_table): New structure.
67199         (output_simple_mapping): New function.
67200         (main): Invoke output_simple_mapping_test and output_simple_mapping.
67201         * modules/gen-uni-tables (Description): Update.
67202         * lib/unicase/toupper.h: New file, automatically generated by
67203         gen-uni-tables.
67204         * lib/unicase/tolower.h: New file, automatically generated by
67205         gen-uni-tables.
67206         * lib/unicase/totitle.h: New file, automatically generated by
67207         gen-uni-tables.
67208         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
67209         gen-uni-tables.
67210         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
67211         gen-uni-tables.
67212         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
67213         gen-uni-tables.
67215         New module 'unicase/base'.
67216         * modules/unicase/base: New file.
67217         * lib/unicase.h: New file.
67219 2009-02-08  Bruno Haible  <bruno@clisp.org>
67221         New module 'uniwbrk/ulc-wordbreaks'.
67222         * modules/uniwbrk/ulc-wordbreaks: New file.
67223         * lib/uniwbrk/ulc-wordbreaks.c: New file.
67225         New module 'uniwbrk/u32-wordbreaks'.
67226         * modules/uniwbrk/u32-wordbreaks: New file.
67227         * lib/uniwbrk/u32-wordbreaks.c: New file.
67229         New module 'uniwbrk/u16-wordbreaks'.
67230         * modules/uniwbrk/u16-wordbreaks: New file.
67231         * lib/uniwbrk/u16-wordbreaks.c: New file.
67233         New module 'uniwbrk/u8-wordbreaks'.
67234         * modules/uniwbrk/u8-wordbreaks: New file.
67235         * lib/uniwbrk/u8-wordbreaks.c: New file.
67236         * lib/uniwbrk/u-wordbreaks.h: New file.
67238         New module 'uniwbrk/table'.
67239         * modules/uniwbrk/table: New file.
67240         * lib/uniwbrk/wbrktable.h: New file.
67241         * lib/uniwbrk/wbrktable.c: New file.
67243         New module 'uniwbrk/wordbreak-property'.
67244         * modules/uniwbrk/wordbreak-property: New file.
67245         * lib/uniwbrk/wordbreak-property.c: New file.
67247         * lib/gen-uni-tables.c (WBP_*): New enum items.
67248         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
67249         (unicode_org_wbp): New variable.
67250         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
67251         New functions.
67252         (wbp_table): New structure.
67253         (output_wbp, output_wbrk_tables): New functions.
67254         (main): Accept additional argument. Invoke fill_org_wbp,
67255         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
67256         output_wbrk_tables.
67257         * modules/gen-uni-tables (Description): Update.
67258         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
67259         gen-uni-tables.
67261         New module 'uniwbrk/base'.
67262         * modules/uniwbrk/base: New file.
67263         * lib/uniwbrk.h: New file.
67265 2009-02-08  Bruno Haible  <bruno@clisp.org>
67267         Update to Unicode 5.1.0.
67268         * lib/gen-uni-tables.c (is_property_alphabetic): Include
67269         U+2185..U+2188.
67270         (is_property_default_ignorable_code_point): Don't include characters
67271         of category Cc or Cs and not-a-characters.
67272         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
67273         U+0D79, U+109E, U+109F, U+A60C.
67274         * lib/unictype/bidi_of.h: Regenerated.
67275         * lib/unictype/blocks.h: Regenerated.
67276         * lib/unictype/categ_C.h: Regenerated.
67277         * lib/unictype/categ_Cf.h: Regenerated.
67278         * lib/unictype/categ_Cn.h: Regenerated.
67279         * lib/unictype/categ_L.h: Regenerated.
67280         * lib/unictype/categ_Ll.h: Regenerated.
67281         * lib/unictype/categ_Lm.h: Regenerated.
67282         * lib/unictype/categ_Lo.h: Regenerated.
67283         * lib/unictype/categ_Lu.h: Regenerated.
67284         * lib/unictype/categ_M.h: Regenerated.
67285         * lib/unictype/categ_Mc.h: Regenerated.
67286         * lib/unictype/categ_Me.h: Regenerated.
67287         * lib/unictype/categ_Mn.h: Regenerated.
67288         * lib/unictype/categ_N.h: Regenerated.
67289         * lib/unictype/categ_Nd.h: Regenerated.
67290         * lib/unictype/categ_Nl.h: Regenerated.
67291         * lib/unictype/categ_No.h: Regenerated.
67292         * lib/unictype/categ_P.h: Regenerated.
67293         * lib/unictype/categ_Pd.h: Regenerated.
67294         * lib/unictype/categ_Pe.h: Regenerated.
67295         * lib/unictype/categ_Pf.h: Regenerated.
67296         * lib/unictype/categ_Pi.h: Regenerated.
67297         * lib/unictype/categ_Po.h: Regenerated.
67298         * lib/unictype/categ_Ps.h: Regenerated.
67299         * lib/unictype/categ_S.h: Regenerated.
67300         * lib/unictype/categ_Sk.h: Regenerated.
67301         * lib/unictype/categ_Sm.h: Regenerated.
67302         * lib/unictype/categ_So.h: Regenerated.
67303         * lib/unictype/categ_of.h: Regenerated.
67304         * lib/unictype/combining.h: Regenerated.
67305         * lib/unictype/ctype_alnum.h: Regenerated.
67306         * lib/unictype/ctype_alpha.h: Regenerated.
67307         * lib/unictype/ctype_graph.h: Regenerated.
67308         * lib/unictype/ctype_lower.h: Regenerated.
67309         * lib/unictype/ctype_print.h: Regenerated.
67310         * lib/unictype/ctype_punct.h: Regenerated.
67311         * lib/unictype/ctype_upper.h: Regenerated.
67312         * lib/unictype/decdigit.h: Regenerated.
67313         * lib/unictype/digit.h: Regenerated.
67314         * lib/unictype/mirror.h: Regenerated.
67315         * lib/unictype/numeric.h: Regenerated.
67316         * lib/unictype/pr_alphabetic.h: Regenerated.
67317         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
67318         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
67319         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
67320         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
67321         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
67322         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
67323         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
67324         * lib/unictype/pr_combining.h: Regenerated.
67325         * lib/unictype/pr_dash.h: Regenerated.
67326         * lib/unictype/pr_decimal_digit.h: Regenerated.
67327         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
67328         * lib/unictype/pr_deprecated.h: Regenerated.
67329         * lib/unictype/pr_diacritic.h: Regenerated.
67330         * lib/unictype/pr_extender.h: Regenerated.
67331         * lib/unictype/pr_format_control.h: Regenerated.
67332         * lib/unictype/pr_grapheme_base.h: Regenerated.
67333         * lib/unictype/pr_grapheme_extend.h: Regenerated.
67334         * lib/unictype/pr_grapheme_link.h: Regenerated.
67335         * lib/unictype/pr_id_continue.h: Regenerated.
67336         * lib/unictype/pr_id_start.h: Regenerated.
67337         * lib/unictype/pr_ideographic.h: Regenerated.
67338         * lib/unictype/pr_ignorable_control.h: Regenerated.
67339         * lib/unictype/pr_lowercase.h: Regenerated.
67340         * lib/unictype/pr_math.h: Regenerated.
67341         * lib/unictype/pr_numeric.h: Regenerated.
67342         * lib/unictype/pr_other_alphabetic.h: Regenerated.
67343         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
67344         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
67345         * lib/unictype/pr_other_id_continue.h: Regenerated.
67346         * lib/unictype/pr_other_lowercase.h: Regenerated.
67347         * lib/unictype/pr_other_math.h: Regenerated.
67348         * lib/unictype/pr_punctuation.h: Regenerated.
67349         * lib/unictype/pr_sentence_terminal.h: Regenerated.
67350         * lib/unictype/pr_soft_dotted.h: Regenerated.
67351         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
67352         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
67353         * lib/unictype/pr_unified_ideograph.h: Regenerated.
67354         * lib/unictype/pr_uppercase.h: Regenerated.
67355         * lib/unictype/pr_xid_continue.h: Regenerated.
67356         * lib/unictype/pr_xid_start.h: Regenerated.
67357         * lib/unictype/pr_zero_width.h: Regenerated.
67358         * lib/unictype/scripts.h: Regenerated.
67359         * lib/unictype/scripts_byname.gperf: Regenerated.
67360         * lib/unictype/sy_java_ident.h: Regenerated.
67361         * lib/unilbrk/lbrkprop1.h: Regenerated.
67362         * lib/unilbrk/lbrkprop2.h: Regenerated.
67363         * tests/unictype/test-categ_C.c: Regenerated.
67364         * tests/unictype/test-categ_Cf.c: Regenerated.
67365         * tests/unictype/test-categ_Cn.c: Regenerated.
67366         * tests/unictype/test-categ_L.c: Regenerated.
67367         * tests/unictype/test-categ_Ll.c: Regenerated.
67368         * tests/unictype/test-categ_Lm.c: Regenerated.
67369         * tests/unictype/test-categ_Lo.c: Regenerated.
67370         * tests/unictype/test-categ_Lu.c: Regenerated.
67371         * tests/unictype/test-categ_M.c: Regenerated.
67372         * tests/unictype/test-categ_Mc.c: Regenerated.
67373         * tests/unictype/test-categ_Me.c: Regenerated.
67374         * tests/unictype/test-categ_Mn.c: Regenerated.
67375         * tests/unictype/test-categ_N.c: Regenerated.
67376         * tests/unictype/test-categ_Nd.c: Regenerated.
67377         * tests/unictype/test-categ_Nl.c: Regenerated.
67378         * tests/unictype/test-categ_No.c: Regenerated.
67379         * tests/unictype/test-categ_P.c: Regenerated.
67380         * tests/unictype/test-categ_Pd.c: Regenerated.
67381         * tests/unictype/test-categ_Pe.c: Regenerated.
67382         * tests/unictype/test-categ_Pf.c: Regenerated.
67383         * tests/unictype/test-categ_Pi.c: Regenerated.
67384         * tests/unictype/test-categ_Po.c: Regenerated.
67385         * tests/unictype/test-categ_Ps.c: Regenerated.
67386         * tests/unictype/test-categ_S.c: Regenerated.
67387         * tests/unictype/test-categ_Sk.c: Regenerated.
67388         * tests/unictype/test-categ_Sm.c: Regenerated.
67389         * tests/unictype/test-categ_So.c: Regenerated.
67390         * tests/unictype/test-ctype_alnum.c: Regenerated.
67391         * tests/unictype/test-ctype_alpha.c: Regenerated.
67392         * tests/unictype/test-ctype_graph.c: Regenerated.
67393         * tests/unictype/test-ctype_lower.c: Regenerated.
67394         * tests/unictype/test-ctype_print.c: Regenerated.
67395         * tests/unictype/test-ctype_punct.c: Regenerated.
67396         * tests/unictype/test-ctype_upper.c: Regenerated.
67397         * tests/unictype/test-decdigit.h: Regenerated.
67398         * tests/unictype/test-digit.h: Regenerated.
67399         * tests/unictype/test-numeric.h: Regenerated.
67400         * tests/unictype/test-pr_alphabetic.c: Regenerated.
67401         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
67402         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
67403         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
67404         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
67405         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
67406         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
67407         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
67408         * tests/unictype/test-pr_combining.c: Regenerated.
67409         * tests/unictype/test-pr_dash.c: Regenerated.
67410         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
67411         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
67412         * tests/unictype/test-pr_deprecated.c: Regenerated.
67413         * tests/unictype/test-pr_diacritic.c: Regenerated.
67414         * tests/unictype/test-pr_extender.c: Regenerated.
67415         * tests/unictype/test-pr_format_control.c: Regenerated.
67416         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
67417         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
67418         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
67419         * tests/unictype/test-pr_id_continue.c: Regenerated.
67420         * tests/unictype/test-pr_id_start.c: Regenerated.
67421         * tests/unictype/test-pr_ideographic.c: Regenerated.
67422         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
67423         * tests/unictype/test-pr_lowercase.c: Regenerated.
67424         * tests/unictype/test-pr_math.c: Regenerated.
67425         * tests/unictype/test-pr_numeric.c: Regenerated.
67426         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
67427         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
67428         Regenerated.
67429         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
67430         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
67431         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
67432         * tests/unictype/test-pr_other_math.c: Regenerated.
67433         * tests/unictype/test-pr_punctuation.c: Regenerated.
67434         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
67435         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
67436         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
67437         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
67438         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
67439         * tests/unictype/test-pr_uppercase.c: Regenerated.
67440         * tests/unictype/test-pr_xid_continue.c: Regenerated.
67441         * tests/unictype/test-pr_xid_start.c: Regenerated.
67442         * tests/unictype/test-pr_zero_width.c: Regenerated.
67444         Update to Unicode 5.1.0.
67445         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
67446         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
67447         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
67448         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
67449         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
67450         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
67451         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
67452         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
67453         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
67454         (nonspacing_table_ind): Update.
67455         * tests/uniwidth/test-uc_width2.sh: Update expected result.
67457         Update to Unicode 5.1.0.
67458         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
67459         code transform.
67460         * lib/uniname/uniname.c (unicode_character_name,
67461         unicode_name_character): Add the range 0x1Fxxx to the code transform.
67462         * lib/uniname/uninames.h: Regenerated.
67463         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
67465 2009-02-07  Bruno Haible  <bruno@clisp.org>
67467         Merge gen-ctype and gen-lbrk into a single program.
67468         * lib/gen-uni-tables.c: New file, incorporating
67469         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
67470         Add directory prefixes to the names of the generated files.
67471         * lib/unictype/gen-ctype.c: Remove file.
67472         * lib/unilbrk/gen-lbrk.c: Remove file.
67473         * modules/gen-uni-tables: New file.
67474         * modules/unictype/gen-ctype: Remove file.
67475         * modules/unilbrk/gen-lbrk: Remove file.
67477 2009-02-07  Bruno Haible  <bruno@clisp.org>
67479         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
67481         New module 'unistr/u32-strcoll'.
67482         * modules/unistr/u32-strcoll: New file.
67483         * lib/unistr/u32-strcoll.c: New file.
67485         New module 'unistr/u16-strcoll'.
67486         * modules/unistr/u16-strcoll: New file.
67487         * lib/unistr/u16-strcoll.c: New file.
67489         New module 'unistr/u8-strcoll'.
67490         * modules/unistr/u8-strcoll: New file.
67491         * lib/unistr/u8-strcoll.c: New file.
67492         * lib/unistr/u-strcoll.h: New file.
67494 2009-02-07  Bruno Haible  <bruno@clisp.org>
67496         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
67497         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
67498         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
67499         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
67500         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
67501         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
67503 2009-02-07  Bruno Haible  <bruno@clisp.org>
67505         Make 64-bit clean.
67506         * lib/unictype/gen-ctype.c (output_predicate, output_category,
67507         output_combclass, output_bidi_category, output_decimal_digit,
67508         output_digit, output_numeric, output_mirror, output_scripts,
67509         output_ident_category): Use proper width specifier in format strings.
67511 2009-02-07  Bruno Haible  <bruno@clisp.org>
67513         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
67514         failure behaviour.
67516 2009-02-07  Jim Meyering  <meyering@redhat.com>
67518         regex: avoid compilation failure with upcoming gcc-4.4
67519         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
67520         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
67521         "... error: integer overflow in preprocessor expression".
67523 2009-02-05  Ben Pfaff  <blp@gnu.org>
67525         Fix link errors on Windows when close module is used.
67526         * modules/close: Add $(LIB_CLOSE) to Link section.
67527         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
67528         $(LIB_CLOSE) on Windows.
67530 2009-02-05  Jim Meyering  <meyering@redhat.com>
67532         still avoid unused-parameter warnings, but do it cleanly
67533         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
67534         (get_fs_usage): Cast to void instead.
67535         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
67536         (dev_from_mount_options, read_file_system_list): Cast to void.
67537         Prompted by Bruno Haible.
67539 2009-02-04  Jim Meyering  <meyering@redhat.com>
67541         fsusage.c: correct copyright year
67542         * lib/fsusage.c: Reflect year in which the change is pushed into
67544         avoid misc. warnings
67545         * lib/fsusage.c (UNUSED_PARAM): Define.
67546         (get_fs_usage): Mark parameter "disk" as unused.
67547         * lib/getugroups.c (getgrent): Use "void" in prototype.
67548         * lib/mountlist.c: Mark unused parameters.
67549         (read_file_system_list): Declare a local with "const".
67550         * lib/nanosleep.c (getnow): Declare static.
67551         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
67553         dirfd: set errno upon failure
67554         * lib/dirfd.c: Include <errno.h>.
67555         Set errno to ENOTSUP when returning -1.
67556         * modules/dirfd (Depends-on): Add errno.
67557         Suggested by John Kodis <kodis@comcast.net>.
67559 2009-02-01  Bruno Haible  <bruno@clisp.org>
67561         Don't assume sizeof (long) >= sizeof (void *).
67562         * lib/memcmp.c: Include stdint.h.
67563         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
67564         srcp2 to 'const byte *'.
67565         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
67566         types to uintptr_t.
67567         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
67568         * modules/memcmp (Depends-on): Add stdint.
67569         Reported by Ozkan Sezer <sezeroz@gmail.com>.
67571 2009-01-30  Eric Blake  <ebb9@byu.net>
67573         fix more require-before-expand issues
67574         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
67575         expand, AC_PROG_AWK.
67576         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
67578 2009-01-28  Eric Blake  <ebb9@byu.net>
67580         version-etc: use consistent URL formatting
67581         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
67582         Improve formatting.  Use fputs for string without %.
67584 2009-01-28  Jim Meyering  <meyering@redhat.com>
67586         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
67587         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
67588         "underquoted definition of NAME" from autoconf-2.59.
67590 2009-01-28  Bruno Haible  <bruno@clisp.org>
67592         * doc/gnulib.texi: Add "Obsolete modules" to index.
67594 2009-01-28  Jim Meyering  <meyering@redhat.com>
67596         useless-if-before-free: recognize more variants
67597         * build-aux/useless-if-before-free: Also recognize e.g.,
67598         if (NULL != p) free (p);
67600 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
67602         test-getaddrinfo: skip (don't fail) this test when there's no network
67603         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
67604         on the presumption that it means you lack network access.
67606 2009-01-26  Jim Meyering  <meyering@redhat.com>
67608         fflush: avoid warnings on modern systems
67609         * lib/fflush.c (rpl_fflush): Move declarations of locals,
67610         pos and result, into scopes where they're used.
67612 2009-01-26  Eric Blake  <ebb9@byu.net>
67614         Silence warning reintroduced by recent extensions patch.
67615         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
67616         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
67617         autoconf.
67619         Backport improved autoconf semantics of AC_DEFUN_ONCE.
67620         * m4/00gnulib.m4: New file.
67621         * gnulib-tool (func_get_filelist): Always use it.
67622         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
67623         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
67625 2009-01-25  Bruno Haible  <bruno@clisp.org>
67627         Make test-quotearg work on MacOS X and AIX.
67628         * tests/test-quotearg.sh: New file.
67629         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
67630         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
67631         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
67632         include <libintl.h>.
67633         (fake_locale): Remove variable.
67634         (gettext, dgettext, dcgettext): Remove functions.
67635         (main): Instead of setting a fake locale, set a real locale. Call
67636         textdomain and bindtextdomain.
67637         * modules/quotearg-tests (Files): Add the new files.
67638         (Depends-on): Add gettext, setenv, unsetenv.
67639         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67640         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
67641         Augment TESTS_ENVIRONMENT.
67643 2009-01-25  Bruno Haible  <bruno@clisp.org>
67645         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
67646         fr_FR.ISO8859-1 locale on MacOS X.
67647         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
67648         ja_JP.eucJP locale on MacOS X.
67649         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
67650         zh_CN.GB18030 locale on MacOS X.
67652 2009-01-25  Bruno Haible  <bruno@clisp.org>
67654         Avoid link errors on MacOS X 10.3.
67655         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
67656         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
67658 2009-01-25  Bruno Haible  <bruno@clisp.org>
67660         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
67661         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
67662         * modules/pipe (Files): Remove m4/posix_spawn.m4.
67663         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
67664         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
67665         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
67666         posix_spawnattr_init, posix_spawnattr_setsigmask,
67667         posix_spawnattr_setflags, posix_spawnattr_destroy.
67669         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
67670         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
67671         * modules/execute (Files): Remove m4/posix_spawn.m4.
67672         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
67673         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
67674         posix_spawnattr_init, posix_spawnattr_setsigmask,
67675         posix_spawnattr_setflags, posix_spawnattr_destroy.
67677 2009-01-25  Bruno Haible  <bruno@clisp.org>
67679         * lib/glthread/threadlib.c: Include <stdlib.h>.
67681 2009-01-25  Bruno Haible  <bruno@clisp.org>
67683         * lib/glthread/threadlib.c (dummy): New declaration.
67685 2009-01-25  Bruno Haible  <bruno@clisp.org>
67687         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
67688         multibyte characters also for the GB18030 encoding. Don't crash when
67689         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
67691 2009-01-25  Bruno Haible  <bruno@clisp.org>
67693         Avoid redefining 'struct random_data' on OSF/1 5.1.
67694         * lib/stdlib.in.h: Include <random.h> if it exists.
67695         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
67696         HAVE_RANDOM_H. Include <random.h> when testing whether
67697         'struct random_data' exists.
67698         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
67700 2009-01-25  Bruno Haible  <bruno@clisp.org>
67702         Don't install charset.alias on MacOS X >= 10.3.
67703         * lib/localcharset.c (DARWIN7): New macro.
67704         (get_charset_aliases): Hardcode the result for Darwin7.
67705         * modules/localcharset (install-exec-local): Don't install
67706         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
67708 2009-01-25  Bruno Haible  <bruno@clisp.org>
67710         Don't install charset.alias on mingw and Cygwin.
67711         * modules/localcharset (install-exec-local): Don't install
67712         charset.alias on mingw and Cygwin, if the file does not yet exist.
67713         The result for these platforms is hardcoded in localcharset.c.
67715 2009-01-25  Bruno Haible  <bruno@clisp.org>
67717         Make it possible again to use AC_GNU_SOURCE together with gnulib.
67718         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
67719         before requiring AC_USE_SYSTEM_EXTENSIONS.
67721 2009-01-25  Jim Meyering  <meyering@redhat.com>
67723         c-strtod: avoid warnings
67724         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
67725         "assignment discards qualifiers from pointer target type" warnings.
67727 2009-01-24  Bruno Haible  <bruno@clisp.org>
67729         Add support for non-UTF-8 locales on MacOS X.
67730         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
67731         canonical encodings. For Darwin 7 and newer, don't map traditional
67732         encodings to UTF-8.
67733         Reported by Vincent Lefevre <vincent@vinc17.org>
67734         at <http://savannah.gnu.org/bugs/?25235>.
67736 2009-01-24  Bruno Haible  <bruno@clisp.org>
67738         * doc/gnulib.texi (Obsolete modules): New section.
67739         Reported by Mike Frysinger <vapier@gentoo.org>.
67741 2009-01-24  Bruno Haible  <bruno@clisp.org>
67743         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
67744         (%.dvi): New rule.
67746 2009-01-24  Bruno Haible  <bruno@clisp.org>
67748         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
67749         Reported by Eric Blake.
67751 2009-01-24  Bruno Haible  <bruno@clisp.org>
67753         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
67754         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
67755         Reported by Gary V. Vaughan <gary@gnu.org>.
67757 2009-01-24  Bruno Haible  <bruno@clisp.org>
67759         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
67761 2009-01-23  Bruno Haible  <bruno@clisp.org>
67763         Make c-strtod, c-strtold usable in libraries.
67764         * lib/c-strtod.c: Include string.h instead of xalloc.h.
67765         (C_STRTOD): Call strdup instead of xstrdup.
67766         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
67767         * modules/c-strtold (Depends-on): Likewise.
67768         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
67769         * NEWS: Mention the change.
67770         Reported by Michael Gold <mgold@ncf.ca>.
67772 2009-01-23  Jim Meyering  <meyering@redhat.com>
67774         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
67775         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
67776         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
67778 2009-01-23  Simon Josefsson  <simon@josefsson.org>
67780         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
67781         GNU CoreUtils.
67782         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
67783         * modules/version-etc (Description): Update.
67785 2009-01-22  Bruno Haible  <bruno@clisp.org>
67787         Cache the C locale object.
67788         * lib/c-strtod.c (c_locale_cache): New variable.
67789         (c_locale): New function.
67790         (C_STRTOD): Use it, and don't call freelocale.
67791         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
67792         Suggested by Paolo Bonzini.
67794 2009-01-21  Bruno Haible  <bruno@clisp.org>
67796         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
67797         conditions other than overflow.
67799 2009-01-21  Bruno Haible  <bruno@clisp.org>
67801         * lib/c-strtod.c: Include errno.h.
67802         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
67803         value from STRTOD_L and STRTOD.
67805 2009-01-21  Bruno Haible  <bruno@clisp.org>
67806         and Jim Meyering  <meyering@redhat.com>
67808         nanosleep: skip configure test (fail it) for apple universal builds
67809         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
67810         universal builds, assume that nanosleep does not work.
67811         * modules/nanosleep (Depends-on): Add multiarch.
67813         mktime: skip configure test (fail it) for apple universal builds
67814         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
67815         universal builds, assume that mktime does not work.
67816         * modules/mktime (Depends-on): Add multiarch.
67818 2009-01-21  Eric Blake  <ebb9@byu.net>
67820         multiarch: avoid expand-before-require warning
67821         * modules/multiarch (configure.ac): Require, rather than expand,
67822         gl_MULTIARCH.
67823         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
67824         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
67825         enforce that all clients require it.  Partial reversion of
67826         2008-12-29 patch.
67828         error: avoid expand-before-require warning
67829         * modules/errno (configure.ac): Require, rather than expand,
67830         gl_HEADER_ERRNO_H.
67831         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
67832         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
67833         enforce that all clients require it.
67835         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
67836         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
67837         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
67838         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
67840 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
67842         Revert:
67843         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
67845         regex: do not depend on obsolete modules.
67846         * modules/regex: Remove memcmp and memmove.
67848 2009-01-20  Bruno Haible  <bruno@clisp.org>
67850         Make the 'link' module link on Windows NT 4.
67851         * lib/link.c (_WIN32_WINNT): Don't define.
67852         (CreateHardLinkFuncType): New type.
67853         (CreateHardLinkFunc, initialized): New variables.
67854         (initialize): New function.
67855         (link): Invoke CreateHardLink indirectly through the function pointer.
67857 2009-01-20  Bruno Haible  <bruno@clisp.org>
67859         Fix compilation failure on mingw.
67860         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
67862 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
67864         * doc/c-strtod.texi: Mention a couple of restrictions.
67866 2009-01-20  Jim Meyering  <meyering@redhat.com>
67868         gettimeofday: move more declarations out of functions
67869         * lib/gettimeofday.c: Move extern declarations of tzset and
67870         gmtime out of containing functions.  Prompted by Bruno Haible.
67872 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
67874         regex: do not depend on obsolete modules.
67875         * modules/regex: Remove memcmp and memmove.
67877 2009-01-19  Bruno Haible  <bruno@clisp.org>
67879         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
67880         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
67881         gl_BIGENDIAN, not AC_C_BIGENDIAN.
67882         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
67883         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
67885 2009-01-19  Bruno Haible  <bruno@clisp.org>
67887         * tests/test-link.c: Include <errno.h>.
67888         (main): Exit with code 77 when a hard link cannot be created due to
67889         the file system.
67890         * tests/test-link.sh: Skip test when a hard link cannot be created due
67891         to the file system.
67892         Suggested by Eric Blake.
67894 2009-01-19  Martin Lambers  <marlam@marlam.de>
67896         * modules/link-tests: New file.
67897         * tests/test-link.sh: New file.
67898         * tests/test-link.c: New file.
67900 2009-01-19  Eric Blake  <ebb9@byu.net>
67902         doc: mention another function added in cygwin 1.7.0
67903         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
67904         Another new function in cygwin 1.7.
67906 2009-01-19  Bruno Haible  <bruno@clisp.org>
67908         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
67909         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
67910         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
67911         gl_BIGENDIAN, not AC_C_BIGENDIAN.
67912         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
67913         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
67914         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
67915         * m4/md4.m4 (gl_MD4): Likewise.
67916         * m4/md5.m4 (gl_MD5): Likewise.
67917         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
67918         * m4/sha1.m4 (gl_SHA1): Likewise.
67919         * m4/sha256.m4 (gl_SHA256): Likewise.
67920         * m4/sha512.m4 (gl_SHA512): Likewise.
67922 2009-01-19  Bruno Haible  <bruno@clisp.org>
67924         * modules/uniname/uniname-tests (Depends-on): Add progname.
67925         * tests/uniname/test-uninames.c: Include progname.h.
67926         (main): Call set_program_name.
67928         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
67929         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
67930         (main): Call set_program_name.
67932         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
67933         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
67934         (main): Call set_program_name.
67936         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
67937         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
67938         (main): Call set_program_name.
67940         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
67941         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
67942         (main): Call set_program_name.
67944         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
67945         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
67946         (main): Call set_program_name.
67948         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
67949         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
67950         (main): Call set_program_name.
67952         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
67953         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
67954         (main): Call set_program_name.
67956         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
67957         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
67958         (main): Call set_program_name.
67960 2009-01-19  Eric Blake  <ebb9@byu.net>
67962         test-unistd: test previous patch
67963         * tests/test-unistd.c: Test *_FILENO macros.
67965         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
67966         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
67967         Guarantee a definition.
67968         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
67969         * modules/unistd-safer (Depends-on): Add dependency on unistd.
67970         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
67971         * lib/dup-safer.c (STDERR_FILENO): Likewise.
67972         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
67973         Likewise.
67974         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
67975         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
67976         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
67977         Likewise.
67978         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
67979         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
67980         (STDERR_FILENO): Likewise.
67981         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
67982         (STDERR_FILENO): Likewise.
67983         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
67984         (STDERR_FILENO): Likewise.
67985         Reported by Elbert Pol.
67987 2009-01-19  Eric Blake  <ebb9@byu.net>
67989         doc: mention more functions added in cygwin 1.7.0
67990         * doc/posix-functions/abort.texi (abort): Update wording related
67991         to cygwin.
67992         * doc/posix-functions/daylight.texi (daylight): Likewise.
67993         * doc/posix-functions/optarg.texi (optarg): Likewise.
67994         * doc/posix-functions/optarg.texi (opterr): Likewise.
67995         * doc/posix-functions/optarg.texi (optind): Likewise.
67996         * doc/posix-functions/optarg.texi (optopt): Likewise.
67997         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
67998         worked in 1.5.x, and was withdrawn in 1.7.
67999         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
68000         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
68001         cygwin versions.
68002         * doc/posix-functions/perror.texi (perror): Likewise.
68003         * doc/posix-functions/printf.texi (printf): Likewise.
68004         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
68005         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
68006         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
68007         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
68008         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
68009         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
68010         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
68011         Likewise.
68012         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
68013         Likewise.
68014         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
68015         this function.
68016         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
68017         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
68018         Likewise.
68019         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
68020         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
68021         * doc/posix-functions/confstr.texi (confstr): Likewise.
68022         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
68023         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
68024         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
68025         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
68026         * doc/posix-functions/fputws.texi (fputws): Likewise.
68027         * doc/posix-functions/fwide.texi (fwide): Likewise.
68028         * doc/posix-functions/getwc.texi (getwc): Likewise.
68029         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
68030         * doc/posix-functions/putwc.texi (putwc): Likewise.
68031         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
68032         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
68033         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
68034         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
68035         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
68036         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
68037         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
68038         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
68039         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
68040         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
68041         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
68043 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
68045         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
68046         * lib/ioctl.c: Include <sys/ioctl.h>.
68048 2009-01-19  Simon Josefsson  <simon@josefsson.org>
68050         * modules/getdate-tests (Depends-on): Add progname.
68051         * tests/test-getdate.c: Use progname module, to avoid link errors
68052         on non-glibc systems.
68054 2009-01-18  Simon Josefsson  <simon@josefsson.org>
68056         * modules/filenamecat-tests (Depends-on): Add progname.
68057         * modules/fstrcmp-tests (Depends-on): Likewise.
68059         * tests/test-filenamecat.c: Use progname module, to avoid link
68060         errors on non-glibc systems.
68061         * tests/test-fstrcmp.c: Likewise.
68063 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
68065         gettimeofday: avoid warning: nested extern declaration of 'localtime'
68066         * lib/gettimeofday.c: Move extern declaration out of function.
68068 2009-01-18  Bruno Haible  <bruno@clisp.org>
68070         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
68071         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
68072         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
68074 2009-01-18  Bruno Haible  <bruno@clisp.org>
68076         * lib/strftime.c (MEMPCPY): Remove unused macro.
68077         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
68079 2009-01-18  Martin Lambers  <marlam@marlam.de>
68081         New module 'link'.
68082         * lib/unistd.in.h (link): New declaration.
68083         * lib/link.c: New file.
68084         * m4/link.m4: New file.
68085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
68086         HAVE_LINK.
68087         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
68088         * modules/link: New file.
68089         * doc/posix-functions/link.texi: Mention the new module.
68091 2009-01-18  Bruno Haible  <bruno@clisp.org>
68093         * tests/test-avltree_list.c (main): Call set_program_name.
68094         * tests/test-avltree_oset.c (main): Likewise.
68095         * tests/test-obstack-printf.c: Include progname.h.
68096         (main): Call set_program_name.
68097         * tests/test-quotearg.c: Include progname.h.
68098         (main): Call set_program_name.
68099         * tests/test-xmemdup0.c: Include progname.h.
68100         (main): Call set_program_name.
68102 2009-01-18  Bruno Haible  <bruno@clisp.org>
68104         New module 'alphasort'.
68105         * lib/dirent.in.h (alphasort): New declaration.
68106         * lib/alphasort.c: New file, from glibc with modifications.
68107         * m4/alphasort.m4: New file.
68108         * modules/alphasort: New file.
68109         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
68110         HAVE_ALPHASORT.
68111         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
68112         HAVE_ALPHASORT.
68113         * doc/posix-functions/alphasort.texi: Mention the new module and the
68114         portability problems.
68116 2009-01-18  Bruno Haible  <bruno@clisp.org>
68118         New module 'scandir'.
68119         * lib/dirent.in.h (scandir): New declaration.
68120         * lib/scandir.c: New file, from glibc with modifications.
68121         * m4/scandir.m4: New file.
68122         * modules/scandir: New file.
68123         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
68124         HAVE_SCANDIR.
68125         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
68126         HAVE_SCANDIR.
68127         * doc/posix-functions/scandir.texi: Mention the new module and the
68128         portability problems.
68130 2009-01-17  Bruno Haible  <bruno@clisp.org>
68132         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
68133         Update documentation.
68134         (func_remove_suffix): Escape all dots in the suffix. Update
68135         documentation.
68136         (func_filter_filelist): Update documentation.
68137         Reported by Ralf Wildenhues.
68139 2009-01-17  Bruno Haible  <bruno@clisp.org>
68141         * modules/dprintf-posix-tests: New file.
68142         * tests/test-dprintf-posix.sh: New file.
68143         * tests/test-dprintf-posix.c: New file.
68145         New modules 'dprintf', 'dprintf-posix'.
68146         * lib/stdio.in.h (dprintf): New declaration.
68147         * lib/dprintf.c: New file.
68148         * m4/dprintf.m4: New file.
68149         * m4/dprintf-posix.m4: New file.
68150         * modules/dprintf: New file.
68151         * modules/dprintf-posix: New file.
68152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
68153         HAVE_DPRINTF, REPLACE_DPRINTF.
68154         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
68155         HAVE_DPRINTF, REPLACE_DPRINTF.
68156         * doc/posix-functions/dprintf.texi: Mention the new modules.
68158 2009-01-17  Bruno Haible  <bruno@clisp.org>
68160         * modules/vdprintf-posix-tests: New file.
68161         * tests/test-vdprintf-posix.sh: New file.
68162         * tests/test-vdprintf-posix.c: New file.
68164         New modules 'vdprintf', 'vdprintf-posix'.
68165         * lib/stdio.in.h (vdprintf): New declaration.
68166         * lib/vdprintf.c: New file.
68167         * m4/vdprintf.m4: New file.
68168         * m4/vdprintf-posix.m4: New file.
68169         * modules/vdprintf: New file.
68170         * modules/vdprintf-posix: New file.
68171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
68172         HAVE_VDPRINTF, REPLACE_VDPRINTF.
68173         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
68174         HAVE_VDPRINTF, REPLACE_VDPRINTF.
68175         * doc/posix-functions/vdprintf.texi: Mention the new modules.
68177 2009-01-17  Bruno Haible  <bruno@clisp.org>
68179         Fix replacement of fopen on mingw.
68180         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
68181         mingw.
68183 2009-01-17  Bruno Haible  <bruno@clisp.org>
68185         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
68186         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
68188 2009-01-17  Bruno Haible  <bruno@clisp.org>
68190         Avoid test-fflush2.sh failure on mingw.
68191         * tests/test-fflush2.c: Include binary-io.h.
68192         (main): Put standard input into binary mode.
68193         * modules/fflush-tests (Depends-on): Add binary-io.
68195 2009-01-17  Bruno Haible  <bruno@clisp.org>
68197         * lib/wchar.in.h: In another particular situation, include only the
68198         system's <wchar.h> file.
68199         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
68200         Reported by Albert Chin-A-Young <china@thewrittenword.com>
68201         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
68203 2009-01-17  Bruno Haible  <bruno@clisp.org>
68205         Support for stripping executables in --enable-relocatable.
68206         * build-aux/install-reloc: Expect one more argument, or an environment
68207         variable RELOC_STRIP_PROG. If set, strip the destination program and
68208         its wrapper.
68209         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
68210         RELOC_STRIP_PROG.
68211         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
68212         to set RELOCATABLE_STRIP.
68213         * NEWS: Mention the new Makefile requirement.
68215 2009-01-17  Bruno Haible  <bruno@clisp.org>
68217         * build-aux/install-reloc: Remove debugging information left over by
68218         C compiler on MacOS X.
68220 2009-01-17  Bruno Haible  <bruno@clisp.org>
68222         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
68223         * lib/progreloc.c (find_executable): Fix type of pointer passed to
68224         _NSGetExecutablePath.
68226 2009-01-16  Jim Meyering  <meyering@redhat.com>
68228         strerror: avoid warnings about discarding "const"
68229         * lib/strerror.c (rpl_strerror): Instead of returning a const
68230         string from each and every "case", use a variable, and add a single
68231         cast after the switch.
68233 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
68235         * lib/arpa_inet.in.h: Add extern "C" block for C++.
68237 2009-01-16  Bruno Haible  <bruno@clisp.org>
68239         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
68240         array initializer syntax that also works in C++ mode.
68241         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68243 2009-01-16  Jim Meyering  <meyering@redhat.com>
68245         poll: suppress a warning
68246         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
68247         to ignore "...unsigned expression < 0 is always false" warnings.
68249 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
68251         poll: remove declarations of unused variables
68252         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
68253         sockbuf and optlen.
68255 2009-01-15  Bruno Haible  <bruno@clisp.org>
68257         Make fflush-after-ungetc POSIX compliant on BSD systems.
68258         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
68259         (clear_ungetc_buffer): Implement also for other systems.
68260         (rpl_fflush): On glibc systems, invoke
68261         clear_ungetc_buffer_preserving_position. Otherwise, invoke
68262         clear_ungetc_buffer after fetching the stream's position, not before.
68264 2009-01-15  Bruno Haible  <bruno@clisp.org>
68266         Make fflush-after-ungetc POSIX compliant on glibc systems.
68267         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
68268         after ungetc.
68269         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
68270         (rpl_fflush): On glibc systems, simply call the system's fflush
68271         function after clearing the ungetc buffer.
68272         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
68273         Instead, lseek only to the end of file, then use the system's fseeko
68274         for the rest. On glibc systems, reset the EOF indicator bit.
68276 2009-01-15  Jim Meyering  <meyering@redhat.com>
68278         openmp.m4: revert quote-adding change, for portability to older autoconf
68279         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
68280         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
68281         Simon Josefsson noticed the problem when using autoconf-2.61.
68283 2009-01-15  Bruno Haible  <bruno@clisp.org>
68285         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
68286         * tests/test-fflush2.c (ASSERT): Always fail.
68287         (main): Add two tests for fflush() after ungetc(), taking into account
68288         the Austin Group's clarification.
68289         Suggested by Eric Blake.
68291 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
68293         mktime.m4: remove K&R-style function prototypes
68294         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
68295         for the Sun C++ compiler.
68297 2009-01-14  Bruno Haible  <bruno@clisp.org>
68299         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
68300         while including <wchar.h>.
68301         * lib/wchar.in.h: In two particular situations on HP-UX, include only
68302         the system's <wchar.h> file.
68303         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68305 2009-01-14  Bruno Haible  <bruno@clisp.org>
68307         * m4/csharp.m4: Don't mention gettext on the serial number line.
68308         * m4/csharpexec.m4: Likewise.
68309         * m4/eaccess.m4: Likewise.
68310         * m4/javaexec.m4: Likewise.
68311         * m4/sig_atomic_t.m4: Likewise.
68312         * m4/tmpdir.m4: Likewise.
68313         * m4/intldir.m4: Bump gettext version.
68314         * m4/lib-ld.m4: Likewise.
68316 2009-01-14  Bruno Haible  <bruno@clisp.org>
68318         * lib/progname.c (set_program_name): Add more comments.
68319         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
68321 2009-01-14  Simon Josefsson  <simon@josefsson.org>
68323         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
68324         were sys/stat.h does not define it.
68326 2009-01-14  Jim Meyering  <meyering@redhat.com>
68328         many *.m4 files: improve m4 quoting
68329         99% of this change was performed by running the following commands:
68330         git ls-files | grep '\.m4$' | xargs perl -pi \
68331           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
68332           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
68333           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
68334           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
68335         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
68336         The remainder were to add Copyright dates, increment serial numbers,
68337         undo some changes in comments, exclude m4/intl.m4, and add quotes
68338         around the "1" in ",1" where the unusual spacing prohibited the
68339         above regexps from doing the job.  For more details, see
68340         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
68341         * m4/acl.m4: Modified.
68342         * m4/afs.m4: Likewise.
68343         * m4/alloca.m4: Likewise.
68344         * m4/argp.m4: Likewise.
68345         * m4/argz.m4: Likewise.
68346         * m4/atexit.m4: Likewise.
68347         * m4/bison-i18n.m4: Likewise.
68348         * m4/bison.m4: Likewise.
68349         * m4/byteswap.m4: Likewise.
68350         * m4/c-stack.m4: Likewise.
68351         * m4/c-strtod.m4: Likewise.
68352         * m4/calloc.m4: Likewise.
68353         * m4/canonicalize-lgpl.m4: Likewise.
68354         * m4/chown.m4: Likewise.
68355         * m4/clock_time.m4: Likewise.
68356         * m4/codeset.m4: Likewise.
68357         * m4/copy-file.m4: Likewise.
68358         * m4/csharp.m4: Likewise.
68359         * m4/csharpcomp.m4: Likewise.
68360         * m4/csharpexec.m4: Likewise.
68361         * m4/d-ino.m4: Likewise.
68362         * m4/d-type.m4: Likewise.
68363         * m4/dirfd.m4: Likewise.
68364         * m4/double-slash-root.m4: Likewise.
68365         * m4/eaccess.m4: Likewise.
68366         * m4/eealloc.m4: Likewise.
68367         * m4/environ.m4: Likewise.
68368         * m4/errno_h.m4: Likewise.
68369         * m4/euidaccess.m4: Likewise.
68370         * m4/execute.m4: Likewise.
68371         * m4/fatal-signal.m4: Likewise.
68372         * m4/fchdir.m4: Likewise.
68373         * m4/fcntl_h.m4: Likewise.
68374         * m4/fileblocks.m4: Likewise.
68375         * m4/filenamecat.m4: Likewise.
68376         * m4/findprog.m4: Likewise.
68377         * m4/flexmember.m4: Likewise.
68378         * m4/fnmatch.m4: Likewise.
68379         * m4/fopen.m4: Likewise.
68380         * m4/fpending.m4: Likewise.
68381         * m4/fprintf-posix.m4: Likewise.
68382         * m4/free.m4: Likewise.
68383         * m4/frexp.m4: Likewise.
68384         * m4/frexpl.m4: Likewise.
68385         * m4/fsusage.m4: Likewise.
68386         * m4/ftruncate.m4: Likewise.
68387         * m4/gc-camellia.m4: Likewise.
68388         * m4/gc-random.m4: Likewise.
68389         * m4/gc.m4: Likewise.
68390         * m4/getaddrinfo.m4: Likewise.
68391         * m4/getcwd-abort-bug.m4: Likewise.
68392         * m4/getcwd-path-max.m4: Likewise.
68393         * m4/getdate.m4: Likewise.
68394         * m4/getdomainname.m4: Likewise.
68395         * m4/getgroups.m4: Likewise.
68396         * m4/gethostname.m4: Likewise.
68397         * m4/gethrxtime.m4: Likewise.
68398         * m4/getline.m4: Likewise.
68399         * m4/getloadavg.m4: Likewise.
68400         * m4/getndelim2.m4: Likewise.
68401         * m4/getpass.m4: Likewise.
68402         * m4/gettext.m4: Likewise.
68403         * m4/gettime.m4: Likewise.
68404         * m4/gettimeofday.m4: Likewise.
68405         * m4/gnulib-common.m4: Likewise.
68406         * m4/group-member.m4: Likewise.
68407         * m4/host-os.m4: Likewise.
68408         * m4/iconv.m4: Likewise.
68409         * m4/iconv_open.m4: Likewise.
68410         * m4/inet_ntop.m4: Likewise.
68411         * m4/inet_pton.m4: Likewise.
68412         * m4/inline.m4: Likewise.
68413         * m4/intldir.m4: Likewise.
68414         * m4/intlmacosx.m4: Likewise.
68415         * m4/intmax.m4: Likewise.
68416         * m4/intmax_t.m4: Likewise.
68417         * m4/inttypes.m4: Likewise.
68418         * m4/inttypes_h.m4: Likewise.
68419         * m4/inttypes-pri.m4: Likewise.
68420         * m4/isapipe.m4: Likewise.
68421         * m4/isnand.m4: Likewise.
68422         * m4/isnanf.m4: Likewise.
68423         * m4/isnanl.m4: Likewise.
68424         * m4/javacomp.m4: Likewise.
68425         * m4/javaexec.m4: Likewise.
68426         * m4/jm-winsz1.m4: Likewise.
68427         * m4/jm-winsz2.m4: Likewise.
68428         * m4/lchown.m4: Likewise.
68429         * m4/lcmessage.m4: Likewise.
68430         * m4/ldexpl.m4: Likewise.
68431         * m4/lib-ld.m4: Likewise.
68432         * m4/lib-link.m4: Likewise.
68433         * m4/libsigsegv.m4: Likewise.
68434         * m4/link-follow.m4: Likewise.
68435         * m4/localcharset.m4: Likewise.
68436         * m4/locale-fr.m4: Likewise.
68437         * m4/locale-ja.m4: Likewise.
68438         * m4/locale-tr.m4: Likewise.
68439         * m4/locale-zh.m4: Likewise.
68440         * m4/lock.m4: Likewise.
68441         * m4/longlong.m4: Likewise.
68442         * m4/ls-mntd-fs.m4: Likewise.
68443         * m4/lstat.m4: Likewise.
68444         * m4/malloc.m4: Likewise.
68445         * m4/mathl.m4: Likewise.
68446         * m4/mbrtowc.m4: Likewise.
68447         * m4/mbstate_t.m4: Likewise.
68448         * m4/mbswidth.m4: Likewise.
68449         * m4/memchr.m4: Likewise.
68450         * m4/memcmp.m4: Likewise.
68451         * m4/memcpy.m4: Likewise.
68452         * m4/memmem.m4: Likewise.
68453         * m4/memmove.m4: Likewise.
68454         * m4/mempcpy.m4: Likewise.
68455         * m4/memrchr.m4: Likewise.
68456         * m4/memset.m4: Likewise.
68457         * m4/minmax.m4: Likewise.
68458         * m4/mkdir-slash.m4: Likewise.
68459         * m4/mkdtemp.m4: Likewise.
68460         * m4/mktime.m4: Likewise.
68461         * m4/mmap-anon.m4: Likewise.
68462         * m4/mountlist.m4: Likewise.
68463         * m4/nanosleep.m4: Likewise.
68464         * m4/nls.m4: Likewise.
68465         * m4/nocrash.m4: Likewise.
68466         * m4/open.m4: Likewise.
68467         * m4/openat.m4: Likewise.
68468         * m4/openmp.m4: Likewise.
68469         * m4/pathmax.m4: Likewise.
68470         * m4/perl.m4: Likewise.
68471         * m4/physmem.m4: Likewise.
68472         * m4/pipe.m4: Likewise.
68473         * m4/po.m4: Likewise.
68474         * m4/poll.m4: Likewise.
68475         * m4/posixtm.m4: Likewise.
68476         * m4/posixver.m4: Likewise.
68477         * m4/printf-frexp.m4: Likewise.
68478         * m4/printf-frexpl.m4: Likewise.
68479         * m4/printf-posix.m4: Likewise.
68480         * m4/printf-posix-rpl.m4: Likewise.
68481         * m4/printf.m4: Likewise.
68482         * m4/progtest.m4: Likewise.
68483         * m4/putenv.m4: Likewise.
68484         * m4/readline.m4: Likewise.
68485         * m4/readlink.m4: Likewise.
68486         * m4/readutmp.m4: Likewise.
68487         * m4/realloc.m4: Likewise.
68488         * m4/regex.m4: Likewise.
68489         * m4/relocatable.m4: Likewise.
68490         * m4/relocatable-lib.m4: Likewise.
68491         * m4/rename-dest-slash.m4: Likewise.
68492         * m4/rename.m4: Likewise.
68493         * m4/rmdir-errno.m4: Likewise.
68494         * m4/rmdir.m4: Likewise.
68495         * m4/roundf.m4: Likewise.
68496         * m4/roundl.m4: Likewise.
68497         * m4/rpmatch.m4: Likewise.
68498         * m4/save-cwd.m4: Likewise.
68499         * m4/selinux-selinux-h.m4: Likewise.
68500         * m4/setenv.m4: Likewise.
68501         * m4/settime.m4: Likewise.
68502         * m4/sig2str.m4: Likewise.
68503         * m4/sig_atomic_t.m4: Likewise.
68504         * m4/signalblocking.m4: Likewise.
68505         * m4/signbit.m4: Likewise.
68506         * m4/sigpipe.m4: Likewise.
68507         * m4/sockets.m4: Likewise.
68508         * m4/sockpfaf.m4: Likewise.
68509         * m4/st_dm_mode.m4: Likewise.
68510         * m4/stat-time.m4: Likewise.
68511         * m4/stdbool.m4: Likewise.
68512         * m4/stdint.m4: Likewise.
68513         * m4/stdint_h.m4: Likewise.
68514         * m4/stpcpy.m4: Likewise.
68515         * m4/stpncpy.m4: Likewise.
68516         * m4/strcase.m4: Likewise.
68517         * m4/strchrnul.m4: Likewise.
68518         * m4/strcspn.m4: Likewise.
68519         * m4/strdup.m4: Likewise.
68520         * m4/strftime.m4: Likewise.
68521         * m4/strndup.m4: Likewise.
68522         * m4/strnlen.m4: Likewise.
68523         * m4/strpbrk.m4: Likewise.
68524         * m4/strptime.m4: Likewise.
68525         * m4/strsep.m4: Likewise.
68526         * m4/strtod.m4: Likewise.
68527         * m4/strtoimax.m4: Likewise.
68528         * m4/strtok_r.m4: Likewise.
68529         * m4/strtol.m4: Likewise.
68530         * m4/strtoll.m4: Likewise.
68531         * m4/strtoul.m4: Likewise.
68532         * m4/strtoull.m4: Likewise.
68533         * m4/strtoumax.m4: Likewise.
68534         * m4/strverscmp.m4: Likewise.
68535         * m4/threadlib.m4: Likewise.
68536         * m4/timegm.m4: Likewise.
68537         * m4/tm_gmtoff.m4: Likewise.
68538         * m4/tmpdir.m4: Likewise.
68539         * m4/tmpfile.m4: Likewise.
68540         * m4/tzset.m4: Likewise.
68541         * m4/uintmax_t.m4: Likewise.
68542         * m4/unlinkdir.m4: Likewise.
68543         * m4/unlocked-io.m4: Likewise.
68544         * m4/uptime.m4: Likewise.
68545         * m4/userspec.m4: Likewise.
68546         * m4/utimbuf.m4: Likewise.
68547         * m4/utime.m4: Likewise.
68548         * m4/utimes-null.m4: Likewise.
68549         * m4/utimes.m4: Likewise.
68550         * m4/vararrays.m4: Likewise.
68551         * m4/vasnprintf.m4: Likewise.
68552         * m4/vfprintf-posix.m4: Likewise.
68553         * m4/vprintf-posix.m4: Likewise.
68554         * m4/wait-process.m4: Likewise.
68555         * m4/wchar_t.m4: Likewise.
68556         * m4/wint_t.m4: Likewise.
68557         * m4/write-any-file.m4: Likewise.
68558         * m4/yield.m4: Likewise.
68560 2009-01-13  Bruno Haible  <bruno@clisp.org>
68562         Avoid test-copy-file.sh failures when ACL support insufficient.
68563         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
68564         TESTS_ENVIRONMENT.
68565         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
68566         Reported by Jim Meyering.
68568 2009-01-13  Bruno Haible  <bruno@clisp.org>
68570         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
68571         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
68572         * modules/unistdio/u8-printf-parse (Files): Likewise.
68573         * modules/unistdio/u32-printf-parse (Files): Likewise.
68574         * modules/unistdio/ulc-printf-parse (Files): Likewise.
68576 2009-01-13  Simon Josefsson  <simon@josefsson.org>
68578         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
68579         and m4/inttypes_h.m4 too.
68581 2009-01-12  Eric Blake  <ebb9@byu.net>
68583         tests: IRIX 6.2 cc can't compile -0.0 into .data
68584         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
68585         rather than at compile-time.
68586         * tests/test-floorl.c (minus_zero): Likewise.
68587         * tests/test-frexpl.c (minus_zero): Likewise.
68588         * tests/test-isnan.c (minus_zerol): Likewise.
68589         * tests/test-isnanl.h (minus_zero): Likewise.
68590         * tests/test-ldexpl.c (minus_zero): Likewise.
68591         * tests/test-roundl.c (minus_zero): Likewise.
68592         * tests/test-signbit.c (minus_zerol): Likewise.
68593         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
68594         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
68595         * tests/test-truncl.c (minus_zero): Likewise.
68596         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
68597         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
68598         Reported by Tom G. Christensen and Nelson H. F. Beebe.
68600 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
68602         regex: fix glibc bug 9697
68603         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
68604         handling.
68606 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
68608         regex: fix glibc bug 697
68609         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
68610         being NULL also if there are no backreferences.
68612 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
68614         regex: merge glibc changes
68615         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
68616         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
68617         re_string_skip_chars, re_string_reconstruct): Likewise.
68618         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
68620 2009-01-07  Jim Meyering  <meyering@redhat.com>
68622         poll: filter through cppi
68623         * lib/poll.c: Indent cpp directives to reflect nesting.
68625 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
68627         poll: don't return uninitialized
68628         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
68630 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
68632         avoid compile failure on AIX 6.1
68633         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
68634         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
68636 2009-01-04  Jim Meyering  <meyering@redhat.com>
68638         remove duplicate inclusion of <stdio.h>
68639         * tests/test-fprintf-posix.c: Likewise.
68640         * tests/test-printf-posix.c: Likewise.
68641         * tests/test-snprintf-posix.c: Likewise.
68642         * tests/test-sprintf-posix.c: Likewise.
68643         * tests/test-vasprintf-posix.c: Likewise.
68644         * tests/test-vfprintf-posix.c: Likewise.
68645         * tests/test-vprintf-posix.c: Likewise.
68646         * tests/test-vsnprintf-posix.c: Likewise.
68647         * tests/test-vsprintf-posix.c: Likewise.
68649 2009-01-03  Jim Meyering  <meyering@redhat.com>
68651         gnulib-tool: fix sed-based filtering
68652         * gnulib-tool (func_filter_filelist): Remove extra backslash
68653         in sed_fff_filter definition.
68655 2009-01-02  Jim Meyering  <meyering@redhat.com>
68657         strftime: avoid compilation failure on Solaris 2.6
68658         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
68659         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
68660         Don't #define mbrlen or mbsinit, since now they're guaranteed to
68661         be available.  Reported by Tom G. Christensen.  Details in
68662         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
68664 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68665             Bruno Haible  <bruno@clisp.org>
68667         Speed up gnulib-tool by doing more string processing through shell
68668         built-ins.
68669         * gnulib-tool (fast_func_append): New variable.
68670         (func_remove_prefix, func_remove_suffix): New functions.
68671         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
68672         (func_filter_filelist): New function.
68673         (func_get_dependencies): Use func_remove_suffix instead of sed.
68674         (func_get_automake_snippet): Use func_filter_filelist instead of a
68675         subshell and sed invocation.
68677 2009-01-01  Bruno Haible  <bruno@clisp.org>
68679         Fix a security bug.
68680         * gnulib-tool (func_import, import, update): Don't allow the characters
68681         '"', '$', '`', '\' in macro arguments that become part of commands that
68682         are evaluated.
68684 2009-01-01  Bruno Haible  <bruno@clisp.org>
68686         * gnulib-tool (func_reset_sigpipe): Add more comments.
68688 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68690         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
68691         func_emit_tests_Makefile_am, func_import): Abort loops early if we
68692         already know the answer.
68694 2009-01-01  Jim Meyering  <meyering@redhat.com>
68696         * lib/version-etc.c (version_etc_va): Update copyright year.
68698 2008-12-30  Bruno Haible  <bruno@clisp.org>
68700         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
68701         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
68702         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
68704 2008-12-29  Eric Blake  <ebb9@byu.net>
68706         multiarch: avoid autoconf AC_REQUIRE bug
68707         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
68708         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
68709         2.63 and older.
68710         Reported by Bruno Haible, and analyzed in
68711         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
68713 2008-12-29  Bruno Haible  <bruno@clisp.org>
68715         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
68716         files in subdirectories correctly.
68717         Reported by Ralf Wildenhues.
68719 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68721         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
68722         rather than 'join FILE -', for Solaris join.
68724 2008-12-29  Bruno Haible  <bruno@clisp.org>
68726         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
68727         quoting.
68728         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
68729         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
68730         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
68731         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
68732         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
68733         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
68734         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
68735         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
68736         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68737         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
68738         * m4/nls.m4 (AM_NLS): Likewise.
68739         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
68740         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
68741         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
68742         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
68743         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
68744         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
68745         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
68746         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
68747         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
68748         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
68749         * m4/xsize.m4 (gl_XSIZE): Likewise.
68750         Suggested by Jim Meyering.
68752 2008-11-17  Bruce Korb  <bkorb@gnu.org>
68754         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
68755         * lib/parse-duration.c: use a switch instead of cascading if's.
68757 2008-12-29  Eric Blake  <ebb9@byu.net>
68759         wchar.h: supply WEOF on Irix 5.3
68760         * lib/wchar.in.h (wint_t): Also supply WEOF.
68761         * lib/wctype.in.h (wint_t): Likewise.
68762         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
68763         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
68764         Reported by Tom G. Christensen.
68766 2008-12-26  Bruno Haible  <bruno@clisp.org>
68768         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
68769         i486, i586, i686.
68771 2008-12-26  Bruno Haible  <bruno@clisp.org>
68773         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
68775 2008-12-26  Bruno Haible  <bruno@clisp.org>
68777         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
68778         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
68779         not __STDC_CONSTANT_MACROS.
68780         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
68782 2008-12-25  Bruno Haible  <bruno@clisp.org>
68784         Add support for universal builds to vasnprintf.
68785         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
68786         universal builds, guess no.
68787         * modules/vasnprintf-posix (Depends-on): Add multiarch.
68788         * modules/vasprintf-posix (Depends-on): Likewise.
68789         * modules/fprintf-posix (Depends-on): Likewise.
68790         * modules/vfprintf-posix (Depends-on): Likewise.
68791         * modules/snprintf-posix (Depends-on): Likewise.
68792         * modules/vsnprintf-posix (Depends-on): Likewise.
68793         * modules/sprintf-posix (Depends-on): Likewise.
68794         * modules/vsprintf-posix (Depends-on): Likewise.
68795         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
68796         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
68797         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
68798         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
68799         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
68800         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
68801         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
68803         Add support for universal builds to <inttypes.h>.
68804         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
68805         _SCNu64_PREFIX): In Apple
68806         universal builds, define directly, using _LP64.
68807         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
68808         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
68809         * modules/inttypes (Depends-on): Add multiarch.
68810         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
68812         Add support for universal builds to <stdint.h>.
68813         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
68814         universal builds, define directly, using _LP64.
68815         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
68816         Apple universal builds, don't test for the size and suffix of ptrdiff_t
68817         and size_t.
68818         * modules/stdint (Depends-on): Add multiarch.
68819         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
68821         New module 'multiarch'.
68822         * modules/multiarch: New file.
68823         * m4/multiarch.m4: New file.
68825 2008-12-25  Bruno Haible  <bruno@clisp.org>
68827         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
68829 2008-12-25  Bruno Haible  <bruno@clisp.org>
68831         * modules/btowc (License): Relicense under LGPLv2+.
68832         * modules/mbsinit (License): Likewise.
68833         * modules/mbrtowc (License): Likewise.
68834         * modules/wcrtomb (License): Likewise.
68835         * modules/streq (License): Likewise.
68836         Reported by David Lutterkort <lutter@redhat.com>.
68838 2008-12-23  Bruno Haible  <bruno@clisp.org>
68840         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
68842 2008-12-23  Bruno Haible  <bruno@clisp.org>
68844         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
68845         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
68846         GETADDRINFO_LIB, not in LIBS.
68847         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
68848         * modules/canon-host (Link): Likewise.
68849         * NEWS: Mention the change.
68850         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
68851         GETADDRINFO_LIB.
68853 2008-12-22  Bruno Haible  <bruno@clisp.org>
68855         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
68856         * doc/posix-functions/iswalpha_l.texi: Likewise.
68857         * doc/posix-functions/iswblank_l.texi: Likewise.
68858         * doc/posix-functions/iswcntrl_l.texi: Likewise.
68859         * doc/posix-functions/iswctype_l.texi: Likewise.
68860         * doc/posix-functions/iswdigit_l.texi: Likewise.
68861         * doc/posix-functions/iswgraph_l.texi: Likewise.
68862         * doc/posix-functions/iswlower_l.texi: Likewise.
68863         * doc/posix-functions/iswprint_l.texi: Likewise.
68864         * doc/posix-functions/iswpunct_l.texi: Likewise.
68865         * doc/posix-functions/iswspace_l.texi: Likewise.
68866         * doc/posix-functions/iswupper_l.texi: Likewise.
68867         * doc/posix-functions/iswxdigit_l.texi: Likewise.
68868         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
68869         * doc/posix-functions/open_wmemstream.texi: Likewise.
68870         * doc/posix-functions/swscanf.texi: Likewise.
68871         * doc/posix-functions/towctrans_l.texi: Likewise.
68872         * doc/posix-functions/towlower.texi: Likewise.
68873         * doc/posix-functions/towlower_l.texi: Likewise.
68874         * doc/posix-functions/towupper.texi: Likewise.
68875         * doc/posix-functions/towupper_l.texi: Likewise.
68876         * doc/posix-functions/vfwprintf.texi: Likewise.
68877         * doc/posix-functions/vfwscanf.texi: Likewise.
68878         * doc/posix-functions/vswscanf.texi: Likewise.
68879         * doc/posix-functions/vwprintf.texi: Likewise.
68880         * doc/posix-functions/vwscanf.texi: Likewise.
68881         * doc/posix-functions/wcpcpy.texi: Likewise.
68882         * doc/posix-functions/wcpncpy.texi: Likewise.
68883         * doc/posix-functions/wcscasecmp.texi: Likewise.
68884         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
68885         * doc/posix-functions/wcscoll_l.texi: Likewise.
68886         * doc/posix-functions/wcsdup.texi: Likewise.
68887         * doc/posix-functions/wcsncasecmp.texi: Likewise.
68888         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
68889         * doc/posix-functions/wcsnlen.texi: Likewise.
68890         * doc/posix-functions/wcsnrtombs.texi: Likewise.
68891         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
68892         * doc/posix-functions/wctrans_l.texi: Likewise.
68893         * doc/posix-functions/wctype_l.texi: Likewise.
68894         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
68895         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
68896         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
68897         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
68898         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
68899         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
68900         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
68901         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
68902         * doc/glibc-functions/wcschrnul.texi: Likewise.
68903         * doc/glibc-functions/wcsftime_l.texi: Likewise.
68904         * doc/glibc-functions/wcstod_l.texi: Likewise.
68905         * doc/glibc-functions/wcstof_l.texi: Likewise.
68906         * doc/glibc-functions/wcstol_l.texi: Likewise.
68907         * doc/glibc-functions/wcstold_l.texi: Likewise.
68908         * doc/glibc-functions/wcstoll_l.texi: Likewise.
68909         * doc/glibc-functions/wcstoq.texi: Likewise.
68910         * doc/glibc-functions/wcstoul_l.texi: Likewise.
68911         * doc/glibc-functions/wcstoull_l.texi: Likewise.
68912         * doc/glibc-functions/wcstouq.texi: Likewise.
68913         * doc/glibc-functions/wmempcpy.texi: Likewise.
68915 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
68916             Eric Blake  <ebb9@byu.net>
68917             Paolo Bonzini  <bonzini@gnu.org>
68918             Bruno Haible  <bruno@clisp.org>
68920         Make c-stack work on Haiku.
68921         * lib/c-stack.c (SA_ONSTACK): Define fallback.
68922         (c_stack_action): Use SA_ONSTACK flag.
68924 2008-12-22  Bruno Haible  <bruno@clisp.org>
68926         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
68928 2008-12-22  Bruno Haible  <bruno@clisp.org>
68930         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
68931         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
68932         being overridden.
68933         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
68934         New macros.
68935         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
68936         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
68937         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
68938         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
68940 2008-12-22  Bruno Haible  <bruno@clisp.org>
68942         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
68943         from test code.
68945 2008-12-22  Eric Blake  <ebb9@byu.net>
68947         Avoid gcc warnings on cygwin.
68948         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
68949         Avoid unused variable.
68950         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
68951         Likewise.
68953 2008-12-22  Bruno Haible  <bruno@clisp.org>
68955         Remove HAVE_MBRTOWC conditionals.
68956         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
68957         (mbscasecmp): Assume mbrtowc function.
68958         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
68959         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
68960         * lib/mbschr.c: Include mbuiter.h unconditionally.
68961         (mbschr): Assume mbrtowc function.
68962         * lib/mbscspn.c: Include mbuiter.h unconditionally.
68963         (mbscspn): Assume mbrtowc function.
68964         * lib/mbslen.c: Include mbuiter.h unconditionally.
68965         (mbslen): Assume mbrtowc function.
68966         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
68967         (mbsncasecmp): Assume mbrtowc function.
68968         * lib/mbsnlen.c: Include mbiter.h unconditionally.
68969         (mbsnlen): Assume mbrtowc function.
68970         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
68971         (mbspbrk): Assume mbrtowc function.
68972         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
68973         (mbspcasecmp): Assume mbrtowc function.
68974         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
68975         (mbsrchr): Assume mbrtowc function.
68976         * lib/mbssep.c: Include mbuiter.h unconditionally.
68977         (mbssep): Assume mbrtowc function.
68978         * lib/mbsspn.c: Include mbuiter.h unconditionally.
68979         (mbsspn): Assume mbrtowc function.
68980         * lib/mbsstr.c: Include mbuiter.h unconditionally.
68981         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
68982         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
68983         (mbstok_r): Assume mbrtowc function.
68984         * lib/propername.c: Include mbuiter.h unconditionally.
68985         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
68986         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
68987         (trim2): Assume mbrtowc function.
68988         * lib/mbswidth.c (mbsinit): Remove fallback definition.
68989         (mbsnwidth): Assume mbrtowc function.
68990         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
68991         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
68992         fallback definitions.
68993         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
68995 2008-12-22  Bruno Haible  <bruno@clisp.org>
68997         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
68999 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
69001         * modules/regex: Request emulations for the mb*/wc* functions we need.
69002         * m4/regex.m4: Don't look for those functions here.
69003         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
69005 2008-12-22  Bruno Haible  <bruno@clisp.org>
69007         * modules/fnmatch (Depends-on): Remove duplicated dependency.
69009 2008-12-21  Bruno Haible  <bruno@clisp.org>
69011         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
69012         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
69013         (Include): Remove conditionalization.
69014         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
69015         (Include): Remove conditionalization.
69016         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
69017         (Include): Remove conditionalization.
69018         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
69019         * m4/mbfile.m4 (gl_MBFILE): Likewise.
69020         * NEWS: Mention the change.
69021         Reported by Alan Hourihane <alanh@fairlite.co.uk>
69022         via Sergey Poznyakoff <gray@gnu.org.ua>.
69024 2008-12-21  Bruno Haible  <bruno@clisp.org>
69026         * MODULES.html.sh (Extended multibyte and wide character utilities
69027         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
69028         wcrtomb, wcsrtombs.
69029         (Support for systems lacking POSIX:2008): Add accept, bind, close,
69030         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
69031         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
69032         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
69034 2008-12-21  Bruno Haible  <bruno@clisp.org>
69036         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
69038 2008-12-21  Bruno Haible  <bruno@clisp.org>
69040         * modules/wcsnrtombs-tests: New file.
69041         * tests/test-wcsnrtombs1.sh: New file.
69042         * tests/test-wcsnrtombs2.sh: New file.
69043         * tests/test-wcsnrtombs3.sh: New file.
69044         * tests/test-wcsnrtombs4.sh: New file.
69045         * tests/test-wcsnrtombs.c: New file.
69047         New module 'wcsnrtombs'.
69048         * lib/wchar.in.h (wcsnrtombs): New declaration.
69049         * lib/wcsnrtombs.c: New file.
69050         * lib/wcsrtombs-state.c: New file.
69051         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
69052         (internal_state): Remove variable.
69053         * m4/wcsnrtombs.m4: New file.
69054         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
69055         compilation units.
69056         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
69057         HAVE_WCSNRTOMBS.
69058         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
69059         HAVE_WCSNRTOMBS.
69060         * modules/wcsnrtombs: New file.
69061         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
69062         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
69064 2008-12-21  Bruno Haible  <bruno@clisp.org>
69066         * modules/wcsrtombs-tests: New file.
69067         * tests/test-wcsrtombs1.sh: New file.
69068         * tests/test-wcsrtombs2.sh: New file.
69069         * tests/test-wcsrtombs3.sh: New file.
69070         * tests/test-wcsrtombs4.sh: New file.
69071         * tests/test-wcsrtombs.c: New file.
69073         New module 'wcsrtombs'.
69074         * lib/wchar.in.h (wcsrtombs): New declaration.
69075         * lib/wcsrtombs.c: New file.
69076         * m4/wcsrtombs.m4: New file.
69077         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
69078         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
69079         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
69080         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
69081         * modules/wcsrtombs: New file.
69082         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
69083         bugs.
69085 2008-12-21  Bruno Haible  <bruno@clisp.org>
69087         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
69088         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
69089         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
69090         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
69091         if not correct.
69092         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
69093         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
69094         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
69095         m4/locale-zh.m4, m4/codeset.m4.
69096         * doc/posix-functions/wcrtomb.texi: Document the bug.
69098 2008-12-21  Bruno Haible  <bruno@clisp.org>
69100         Work around a btowc() bug on IRIX 6.5.
69101         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
69102         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
69103         REPLACE_WTOBC if not.
69104         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
69105         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
69106         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
69108 2008-12-21  Bruno Haible  <bruno@clisp.org>
69110         * modules/wcrtomb-tests: New file.
69111         * tests/test-wcrtomb.sh: New file.
69112         * tests/test-wcrtomb.c: New file.
69114         New module 'wcrtomb'.
69115         * lib/wchar.in.h (wcrtomb): New declaration.
69116         * lib/wcrtomb.c: New file.
69117         * m4/wcrtomb.m4: New file.
69118         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
69119         HAVE_WCRTOMB.
69120         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
69121         HAVE_WCRTOMB.
69122         * modules/wcrtomb: New file.
69123         * doc/posix-functions/wcrtomb.texi: Mention the new module.
69125 2008-12-21  Bruno Haible  <bruno@clisp.org>
69127         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
69128         * modules/mbsrtowcs (Files): Likewise.
69129         * modules/wctob (Files): Likewise.
69130         * modules/c-strcase-tests (Files): Likewise.
69131         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
69132         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
69133         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
69134         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
69135         * modules/vasnprintf-posix-tests (Files): Likewise.
69137 2008-12-21  William Pursell  <bill.pursell@gmail.com>
69139         gitlog-to-changelog: pass all command-line arguments to git-log
69140         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
69141         it is sometimes convenient to filter the commits in various ways.
69142         gitlog-to-changelog only allows --since to specify a start date,
69143         but git-log itself supports many other filtering mechanisms.
69144         At the moment, I want to filter by branch name.  Rather than
69145         adding a --branch option to gitlog-to-changelog, it seems more
69146         flexible to simply pass all options directly to git-log and let
69147         git do the work.  Notice that this effectively makes --since a
69148         redundant option for gitlog-to-changelog, but removing it would
69149         require current usage to change since calls would then require
69150         an additional '--'.
69152 2008-12-21  Bruno Haible  <bruno@clisp.org>
69154         * modules/mbsnrtowcs-tests: New file.
69155         * tests/test-mbsnrtowcs1.sh: New file.
69156         * tests/test-mbsnrtowcs2.sh: New file.
69157         * tests/test-mbsnrtowcs3.sh: New file.
69158         * tests/test-mbsnrtowcs4.sh: New file.
69159         * tests/test-mbsnrtowcs.c: New file.
69161         New module 'mbsnrtowcs'.
69162         * lib/wchar.in.h (mbsnrtowcs): New declaration.
69163         * lib/mbsnrtowcs.c: New file.
69164         * lib/mbsrtowcs-state.c: New file.
69165         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
69166         (internal_state): Remove variable.
69167         * m4/mbsnrtowcs.m4: New file.
69168         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
69169         compilation units.
69170         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
69171         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
69172         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
69173         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
69174         * modules/mbsnrtowcs: New file.
69175         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
69176         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
69177         portability problem.
69179 2008-12-21  Bruno Haible  <bruno@clisp.org>
69181         Work around mbsrtowcs bug.
69182         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
69183         (gl_FUNC_MBSRTOWCS): Invoke it.
69184         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
69185         m4/locale-zh.m4.
69186         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
69188 2008-12-21  Bruno Haible  <bruno@clisp.org>
69190         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
69192 2008-12-21  Bruno Haible  <bruno@clisp.org>
69194         Update doc for AIX.
69195         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
69196         16-bit wchar_t type.
69197         * doc/posix-functions/btowc.texi: Likewise.
69198         * doc/posix-functions/fgetwc.texi: Likewise.
69199         * doc/posix-functions/fgetws.texi: Likewise.
69200         * doc/posix-functions/fputwc.texi: Likewise.
69201         * doc/posix-functions/fputws.texi: Likewise.
69202         * doc/posix-functions/fwide.texi: Likewise.
69203         * doc/posix-functions/fwprintf.texi: Likewise.
69204         * doc/posix-functions/fwscanf.texi: Likewise.
69205         * doc/posix-functions/getwchar.texi: Likewise.
69206         * doc/posix-functions/getwc.texi: Likewise.
69207         * doc/posix-functions/iswalnum.texi: Likewise.
69208         * doc/posix-functions/iswalpha.texi: Likewise.
69209         * doc/posix-functions/iswblank.texi: Likewise.
69210         * doc/posix-functions/iswcntrl.texi: Likewise.
69211         * doc/posix-functions/iswctype.texi: Likewise.
69212         * doc/posix-functions/iswdigit.texi: Likewise.
69213         * doc/posix-functions/iswgraph.texi: Likewise.
69214         * doc/posix-functions/iswlower.texi: Likewise.
69215         * doc/posix-functions/iswprint.texi: Likewise.
69216         * doc/posix-functions/iswpunct.texi: Likewise.
69217         * doc/posix-functions/iswspace.texi: Likewise.
69218         * doc/posix-functions/iswupper.texi: Likewise.
69219         * doc/posix-functions/iswxdigit.texi: Likewise.
69220         * doc/posix-functions/mbrtowc.texi: Likewise.
69221         * doc/posix-functions/mbsrtowcs.texi: Likewise.
69222         * doc/posix-functions/mbstowcs.texi: Likewise.
69223         * doc/posix-functions/mbtowc.texi: Likewise.
69224         * doc/posix-functions/putwchar.texi: Likewise.
69225         * doc/posix-functions/putwc.texi: Likewise.
69226         * doc/posix-functions/swprintf.texi: Likewise.
69227         * doc/posix-functions/tolower.texi: Likewise.
69228         * doc/posix-functions/toupper.texi: Likewise.
69229         * doc/posix-functions/towctrans.texi: Likewise.
69230         * doc/posix-functions/ungetwc.texi: Likewise.
69231         * doc/posix-functions/vswprintf.texi: Likewise.
69232         * doc/posix-functions/wcrtomb.texi: Likewise.
69233         * doc/posix-functions/wcscat.texi: Likewise.
69234         * doc/posix-functions/wcschr.texi: Likewise.
69235         * doc/posix-functions/wcscmp.texi: Likewise.
69236         * doc/posix-functions/wcscoll.texi: Likewise.
69237         * doc/posix-functions/wcscpy.texi: Likewise.
69238         * doc/posix-functions/wcscspn.texi: Likewise.
69239         * doc/posix-functions/wcsftime.texi: Likewise.
69240         * doc/posix-functions/wcslen.texi: Likewise.
69241         * doc/posix-functions/wcsncat.texi: Likewise.
69242         * doc/posix-functions/wcsncmp.texi: Likewise.
69243         * doc/posix-functions/wcsncpy.texi: Likewise.
69244         * doc/posix-functions/wcspbrk.texi: Likewise.
69245         * doc/posix-functions/wcsrchr.texi: Likewise.
69246         * doc/posix-functions/wcsrtombs.texi: Likewise.
69247         * doc/posix-functions/wcsspn.texi: Likewise.
69248         * doc/posix-functions/wcsstr.texi: Likewise.
69249         * doc/posix-functions/wcstod.texi: Likewise.
69250         * doc/posix-functions/wcstof.texi: Likewise.
69251         * doc/posix-functions/wcstoimax.texi: Likewise.
69252         * doc/posix-functions/wcstok.texi: Likewise.
69253         * doc/posix-functions/wcstold.texi: Likewise.
69254         * doc/posix-functions/wcstoll.texi: Likewise.
69255         * doc/posix-functions/wcstol.texi: Likewise.
69256         * doc/posix-functions/wcstombs.texi: Likewise.
69257         * doc/posix-functions/wcstoull.texi: Likewise.
69258         * doc/posix-functions/wcstoul.texi: Likewise.
69259         * doc/posix-functions/wcstoumax.texi: Likewise.
69260         * doc/posix-functions/wcswidth.texi: Likewise.
69261         * doc/posix-functions/wcsxfrm.texi: Likewise.
69262         * doc/posix-functions/wctob.texi: Likewise.
69263         * doc/posix-functions/wctomb.texi: Likewise.
69264         * doc/posix-functions/wctrans.texi: Likewise.
69265         * doc/posix-functions/wctype.texi: Likewise.
69266         * doc/posix-functions/wcwidth.texi: Likewise.
69267         * doc/posix-functions/wmemchr.texi: Likewise.
69268         * doc/posix-functions/wmemcmp.texi: Likewise.
69269         * doc/posix-functions/wmemcpy.texi: Likewise.
69270         * doc/posix-functions/wmemmove.texi: Likewise.
69271         * doc/posix-functions/wmemset.texi: Likewise.
69272         * doc/posix-functions/wprintf.texi: Likewise.
69273         * doc/posix-functions/wscanf.texi: Likewise.
69275 2008-12-21  Bruno Haible  <bruno@clisp.org>
69277         Update doc for HP-UX 11.11.
69278         * doc/posix-functions/btowc.texi: Clarify that the function is missing
69279         in HP-UX version 11.00, not in all versions of HP-UX 11.
69280         * doc/posix-functions/fwide.texi: Likewise.
69281         * doc/posix-functions/fwprintf.texi: Likewise.
69282         * doc/posix-functions/fwscanf.texi: Likewise.
69283         * doc/posix-functions/inet_ntop.texi: Likewise.
69284         * doc/posix-functions/inet_pton.texi: Likewise.
69285         * doc/posix-functions/mbrlen.texi: Likewise.
69286         * doc/posix-functions/mbrtowc.texi: Likewise.
69287         * doc/posix-functions/mbsinit.texi: Likewise.
69288         * doc/posix-functions/mbsrtowcs.texi: Likewise.
69289         * doc/posix-functions/swprintf.texi: Likewise.
69290         * doc/posix-functions/swscanf.texi: Likewise.
69291         * doc/posix-functions/towctrans.texi: Likewise.
69292         * doc/posix-functions/vfwprintf.texi: Likewise.
69293         * doc/posix-functions/vswprintf.texi: Likewise.
69294         * doc/posix-functions/vwprintf.texi: Likewise.
69295         * doc/posix-functions/wcrtomb.texi: Likewise.
69296         * doc/posix-functions/wcsrtombs.texi: Likewise.
69297         * doc/posix-functions/wcsstr.texi: Likewise.
69298         * doc/posix-functions/wctob.texi: Likewise.
69299         * doc/posix-functions/wctrans.texi: Likewise.
69300         * doc/posix-functions/wmemchr.texi: Likewise.
69301         * doc/posix-functions/wmemcmp.texi: Likewise.
69302         * doc/posix-functions/wmemcpy.texi: Likewise.
69303         * doc/posix-functions/wmemmove.texi: Likewise.
69304         * doc/posix-functions/wmemset.texi: Likewise.
69305         * doc/posix-functions/wprintf.texi: Likewise.
69306         * doc/posix-functions/wscanf.texi: Likewise.
69308 2008-12-21  Bruno Haible  <bruno@clisp.org>
69310         Work around a portability problem.
69311         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
69312         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
69314 2008-12-20  Bruno Haible  <bruno@clisp.org>
69316         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
69317         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
69318         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
69319         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
69320         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
69322         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
69323         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
69324         set.
69325         (GNULIB_defined_mbstate_t): New macro.
69326         (mbsinit): Redefine if REPLACE_MBSINIT is set.
69327         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
69328         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
69329         reuses the system's mbrtowc function but works around the bugs.
69330         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
69331         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
69332         macros.
69333         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
69334         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
69335         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
69336         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
69337         REPLACE_MBSINIT if mbsinit needs to be overridden.
69338         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
69339         REPLACE_MBSINIT, REPLACE_MBRTOWC.
69340         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
69341         REPLACE_MBSINIT, REPLACE_MBRTOWC.
69342         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
69343         m4/locale-zh.m4.
69344         (Depends): Add mbsinit.
69345         * modules/mbsinit (Depends): Add mbrtowc.
69346         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
69348 2008-12-20  Bruno Haible  <bruno@clisp.org>
69350         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
69351         so that there are no conversion errors on AIX.
69352         * tests/test-mbsrtowcs.c (main): LIkewise.
69354 2008-12-20  Bruno Haible  <bruno@clisp.org>
69356         Work around wctob bug on Solaris <= 9.
69357         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
69358         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
69359         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
69360         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
69361         * modules/wctob (Files): Add m4/locale-fr.m4.
69362         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
69364 2008-12-20  Bruno Haible  <bruno@clisp.org>
69366         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
69367         /dev/null.
69368         * tests/test-select-in.sh: Likewise.
69369         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69371 2008-12-20  Bruno Haible  <bruno@clisp.org>
69373         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
69374         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
69375         Cygwin 1.5.x.
69377 2008-12-20  Bruno Haible  <bruno@clisp.org>
69379         Ensure mbstate_t is defined on HP-UX 11.11.
69380         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
69381         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
69382         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
69383         AC_USE_SYSTEM_EXTENSIONS.
69384         * modules/fnmatch (Depends-on): Add extensions.
69385         * modules/mbrlen (Depends-on): Likewise.
69386         * modules/mbrtowc (Depends-on): Likewise.
69387         * modules/mbsinit (Depends-on): Likewise.
69388         * modules/mbsrtowcs (Depends-on): Likewise.
69389         * modules/mbswidth (Depends-on): Likewise.
69390         * modules/quotearg (Depends-on): Likewise.
69391         * modules/strftime (Depends-on): Likewise.
69393 2008-12-20  Bruno Haible  <bruno@clisp.org>
69395         Ensure wctob is declared on IRIX 6.5.
69396         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
69397         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
69398         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
69399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
69400         of HAVE_WCTOB.
69401         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
69402         HAVE_WCTOB.
69403         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
69405 2008-12-19  Bruno Haible  <bruno@clisp.org>
69407         * modules/mbsrtowcs-tests: New file.
69408         * tests/test-mbsrtowcs1.sh: New file.
69409         * tests/test-mbsrtowcs2.sh: New file.
69410         * tests/test-mbsrtowcs3.sh: New file.
69411         * tests/test-mbsrtowcs4.sh: New file.
69412         * tests/test-mbsrtowcs.c: New file.
69414         New module 'mbsrtowcs'.
69415         * lib/wchar.in.h (mbsrtowcs): New declaration.
69416         * lib/mbsrtowcs.c: New file.
69417         * m4/mbsrtowcs.m4: New file.
69418         * modules/mbsrtowcs: New file.
69419         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
69420         HAVE_MBSRTOWCS.
69421         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
69422         HAVE_MBSRTOWCS.
69423         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
69425 2008-12-19  Bruno Haible  <bruno@clisp.org>
69427         New module 'mbrlen'.
69428         * lib/wchar.in.h (mbrlen): New declaration.
69429         * lib/mbrlen.c: New file.
69430         * m4/mbrlen.m4: New file.
69431         * modules/mbrlen: New file.
69432         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
69433         HAVE_MBRLEN.
69434         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
69435         HAVE_MBRLEN.
69436         * doc/posix-functions/mbrlen.texi: Document the new module.
69438 2008-12-19  Bruno Haible  <bruno@clisp.org>
69440         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
69441         * modules/mbrtowc (Depends-on): Add verify.
69442         Suggested by Paul Eggert.
69444 2008-12-18  Bruno Haible  <bruno@clisp.org>
69446         * modules/mbsinit-tests: New file.
69447         * tests/test-mbsinit.sh: New file.
69448         * tests/test-mbsinit.c: New file.
69450 2008-12-18  Bruno Haible  <bruno@clisp.org>
69452         * modules/mbrtowc-tests: New file.
69453         * tests/test-mbrtowc1.sh: New file.
69454         * tests/test-mbrtowc2.sh: New file.
69455         * tests/test-mbrtowc3.sh: New file.
69456         * tests/test-mbrtowc4.sh: New file.
69457         * tests/test-mbrtowc.c: New file.
69459         New module 'mbrtowc'.
69460         * lib/wchar.in.h (mbstate_t): Override when the system does not have
69461         mbsinit and mbrtowc.
69462         (mbrtowc): New declaration.
69463         * lib/mbrtowc.c: New file.
69464         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
69465         * modules/mbrtowc: New file.
69466         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
69467         HAVE_MBRTOWC.
69468         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
69469         HAVE_MBRTOWC.
69470         * doc/posix-functions/mbrtowc.texi: Document the new module.
69472 2008-12-18  Bruno Haible  <bruno@clisp.org>
69474         New module 'wctob'.
69475         * lib/wchar.in.h (wctob): New declaration.
69476         * lib/wctob.c: New file.
69477         * m4/wctob.m4: New file.
69478         * modules/wctob: New file.
69479         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
69480         HAVE_WCTOB.
69481         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
69482         * doc/posix-functions/wctob.texi: Document the new module.
69484 2008-12-18  Bruno Haible  <bruno@clisp.org>
69486         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
69487         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
69489 2008-12-18  Simon Josefsson  <simon@josefsson.org>
69491         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
69492         G. Christensen" <tgc@jupiterrise.com>.
69494         * lib/flock.c: Need to include errno.h.  Reported by "Tom
69495         G. Christensen" <tgc@jupiterrise.com>.
69497         * lib/flock.c: Need to include string.h.  Reported by "Tom
69498         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
69499         <ebb9@byu.net>.
69501 2008-12-18  Bruno Haible  <bruno@clisp.org>
69503         * m4/locale-ja.m4: New file, from GNU gettext.
69505 2008-12-17  Bruno Haible  <bruno@clisp.org>
69507         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
69508         Suggested by Eric Blake.
69510 2008-12-17  Bruno Haible  <bruno@clisp.org>
69512         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
69514 2008-12-17  Bruno Haible  <bruno@clisp.org>
69516         * lib/mbsinit.c: Include verify.h. Verify an assumption.
69517         * modules/mbsinit (Depends-on): Add verify.
69518         Suggested by Paul Eggert.
69520 2008-12-17  Bruno Haible  <bruno@clisp.org>
69522         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
69523         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
69524         gl_FUNC_MBRTOWC.
69525         * m4/mbiter.m4 (gl_MBITER): LIkewise.
69526         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
69527         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
69528         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
69529         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
69530         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
69531         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
69532         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
69533         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
69534         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
69535         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
69536         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
69537         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
69538         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
69539         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
69540         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69541         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
69542         * modules/trim (configure.ac): Likewise.
69544 2008-12-17  Bruno Haible  <bruno@clisp.org>
69546         * modules/btowc-tests: New file.
69547         * tests/test-btowc1.sh: New file.
69548         * tests/test-btowc2.sh: New file.
69549         * tests/test-btowc.c: New file.
69551         New module 'btowc'.
69552         * lib/wchar.in.h (btowc): New declaration.
69553         * lib/btowc.c: New file.
69554         * m4/btowc.m4: New file.
69555         * modules/btowc: New file.
69556         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
69557         HAVE_BTOWC.
69558         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
69559         * doc/posix-functions/btowc.texi: Document the new module.
69561 2008-12-17  Bruno Haible  <bruno@clisp.org>
69563         New module 'mbsinit'.
69564         * lib/wchar.in.h (mbsinit): New declaration.
69565         * lib/mbsinit.c: New file.
69566         * m4/mbsinit.m4: New file.
69567         * modules/mbsinit: New file.
69568         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
69569         HAVE_MBSINIT.
69570         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
69571         HAVE_MBSINIT.
69572         * doc/posix-functions/mbsinit.texi: Document the new module.
69574 2008-12-16  Bruno Haible  <bruno@clisp.org>
69576         * lib/unistd.in.h: Add comment.
69577         * tests/test-environ.c: Don't include <stdlib.h>.
69579 2008-12-16  Bruno Haible  <bruno@clisp.org>
69581         * lib/parse-duration.h (parse_duration): Document return value
69582         convention.
69583         * lib/parse-duration.c: Include specification header first. Add
69584         comments.
69585         (_): Remove macro.
69586         (parse_year_month_day, parse_hour_minute_second): Move side effects
69587         outside of strchr call.
69588         (parse_non_iso8601): Move side effects outside of isspace call.
69589         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
69590         call.
69592 2008-12-16  Bruno Haible  <bruno@clisp.org>
69594         * tests/test-parse-duration.sh: Produce no output when the test
69595         succeeds.
69597 2008-12-16  Bruno Haible  <bruno@clisp.org>
69599         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
69600         expressions.
69602 2008-12-15  Bruno Haible  <bruno@clisp.org>
69604         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
69605         * doc/glibc-functions/flistxattr.texi: Likewise.
69606         * doc/glibc-functions/fopencookie.texi: Likewise.
69607         * doc/glibc-functions/fremovexattr.texi: Likewise.
69608         * doc/glibc-functions/fsetxattr.texi: Likewise.
69609         * doc/glibc-functions/getxattr.texi: Likewise.
69610         * doc/glibc-functions/lgetxattr.texi: Likewise.
69611         * doc/glibc-functions/listxattr.texi: Likewise.
69612         * doc/glibc-functions/llistxattr.texi: Likewise.
69613         * doc/glibc-functions/lremovexattr.texi: Likewise.
69614         * doc/glibc-functions/lsetxattr.texi: Likewise.
69615         * doc/glibc-functions/removexattr.texi: Likewise.
69616         * doc/glibc-functions/setxattr.texi: Likewise.
69617         * doc/posix-functions/open_memstream.texi: Likewise.
69619 2008-12-15  Eric Blake  <ebb9@byu.net>
69621         Update doc for cygwin 1.7.
69622         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
69623         functions.
69624         * doc/posix-functions/fchmodat.texi: Likewise.
69625         * doc/posix-functions/fchownat.texi: Likewise.
69626         * doc/posix-functions/fdopendir.texi: Likewise.
69627         * doc/posix-functions/fmemopen.texi: Likewise.
69628         * doc/posix-functions/freeaddrinfo.texi: Likewise.
69629         * doc/posix-functions/fstatat.texi: Likewise.
69630         * doc/posix-functions/futimens.texi: Likewise.
69631         * doc/posix-functions/gai_strerror.texi: Likewise.
69632         * doc/posix-functions/getaddrinfo.texi: Likewise.
69633         * doc/posix-functions/getnameinfo.texi: Likewise.
69634         * doc/posix-functions/if_freenameindex.texi: Likewise.
69635         * doc/posix-functions/if_indextoname.texi: Likewise.
69636         * doc/posix-functions/if_nameindex.texi: Likewise.
69637         * doc/posix-functions/if_nametoindex.texi: Likewise.
69638         * doc/posix-functions/insque.texi: Likewise.
69639         * doc/posix-functions/linkat.texi: Likewise.
69640         * doc/posix-functions/llrint.texi: Likewise.
69641         * doc/posix-functions/llrintf.texi: Likewise.
69642         * doc/posix-functions/llrintl.texi: Likewise.
69643         * doc/posix-functions/lockf.texi: Likewise.
69644         * doc/posix-functions/lrintl.texi: Likewise.
69645         * doc/posix-functions/mkdirat.texi: Likewise.
69646         * doc/posix-functions/mkfifoat.texi: Likewise.
69647         * doc/posix-functions/mknodat.texi: Likewise.
69648         * doc/posix-functions/mq_close.texi: Likewise.
69649         * doc/posix-functions/mq_getattr.texi: Likewise.
69650         * doc/posix-functions/mq_notify.texi: Likewise.
69651         * doc/posix-functions/mq_open.texi: Likewise.
69652         * doc/posix-functions/mq_receive.texi: Likewise.
69653         * doc/posix-functions/mq_send.texi: Likewise.
69654         * doc/posix-functions/mq_setattr.texi: Likewise.
69655         * doc/posix-functions/mq_timedreceive.texi: Likewise.
69656         * doc/posix-functions/mq_timedsend.texi: Likewise.
69657         * doc/posix-functions/mq_unlink.texi: Likewise.
69658         * doc/posix-functions/open_memstream.texi: Likewise.
69659         * doc/posix-functions/openat.texi: Likewise.
69660         * doc/posix-functions/posix_fadvise.texi: Likewise.
69661         * doc/posix-functions/posix_fallocate.texi: Likewise.
69662         * doc/posix-functions/posix_madvise.texi: Likewise.
69663         * doc/posix-functions/posix_memalign.texi: Likewise.
69664         * doc/posix-functions/posix_openpt.texi: Likewise.
69665         * doc/posix-functions/readlinkat.texi: Likewise.
69666         * doc/posix-functions/remque.texi: Likewise.
69667         * doc/posix-functions/renameat.texi: Likewise.
69668         * doc/posix-functions/rintl.texi: Likewise.
69669         * doc/posix-functions/sem_unlink.texi: Likewise.
69670         * doc/posix-functions/shm_open.texi: Likewise.
69671         * doc/posix-functions/shm_unlink.texi: Likewise.
69672         * doc/posix-functions/signgam.texi: Likewise.
69673         * doc/posix-functions/sigset.texi: Likewise.
69674         * doc/posix-functions/stpcpy.texi: Likewise.
69675         * doc/posix-functions/stpncpy.texi: Likewise.
69676         * doc/posix-functions/strerror.texi: Likewise.
69677         * doc/posix-functions/strtod.texi: Likewise.
69678         * doc/posix-functions/symlinkat.texi: Likewise.
69679         * doc/posix-functions/unlinkat.texi: Likewise.
69680         * doc/posix-functions/utimensat.texi: Likewise.
69681         * doc/glibc-functions/bindresvport.texi: Likewise.
69682         * doc/glibc-functions/dn_expand.texi: Likewise.
69683         * doc/glibc-functions/exp10.texi: Likewise.
69684         * doc/glibc-functions/exp10f.texi: Likewise.
69685         * doc/glibc-functions/fgetxattr.texi: Likewise.
69686         * doc/glibc-functions/flistxattr.texi: Likewise.
69687         * doc/glibc-functions/fopencookie.texi: Likewise.
69688         * doc/glibc-functions/freeifaddrs.texi: Likewise.
69689         * doc/glibc-functions/fremovexattr.texi: Likewise.
69690         * doc/glibc-functions/fsetxattr.texi: Likewise.
69691         * doc/glibc-functions/getifaddrs.texi: Likewise.
69692         * doc/glibc-functions/getxattr.texi: Likewise.
69693         * doc/glibc-functions/lgetxattr.texi: Likewise.
69694         * doc/glibc-functions/listxattr.texi: Likewise.
69695         * doc/glibc-functions/llistxattr.texi: Likewise.
69696         * doc/glibc-functions/lremovexattr.texi: Likewise.
69697         * doc/glibc-functions/lsetxattr.texi: Likewise.
69698         * doc/glibc-functions/pow10.texi: Likewise.
69699         * doc/glibc-functions/pow10f.texi: Likewise.
69700         * doc/glibc-functions/rcmd_af.texi: Likewise.
69701         * doc/glibc-functions/removexattr.texi: Likewise.
69702         * doc/glibc-functions/res_init.texi: Likewise.
69703         * doc/glibc-functions/res_mkquery.texi: Likewise.
69704         * doc/glibc-functions/res_query.texi: Likewise.
69705         * doc/glibc-functions/res_querydomain.texi: Likewise.
69706         * doc/glibc-functions/res_send.texi: Likewise.
69707         * doc/glibc-functions/rresvport_af.texi: Likewise.
69708         * doc/glibc-functions/setxattr.texi: Likewise.
69709         * doc/glibc-functions/strcasestr.texi: Likewise.
69711 2008-12-15  Bruno Haible  <bruno@clisp.org>
69713         Fix compilation error on OSF/1 4.0.
69714         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
69715         <sys/time.h>, simply delegate to the system header.
69716         Reported by Daniel Richard G. <oss@teragram.com>.
69718 2008-12-15  Bruno Haible  <bruno@clisp.org>
69720         * doc/posix-functions/openat.texi: Mention the 'openat' module.
69721         * doc/posix-functions/fchmodat.texi: Likewise.
69722         * doc/posix-functions/fchownat.texi: Likewise.
69723         * doc/posix-functions/fdopendir.texi: Likewise.
69724         * doc/posix-functions/fstatat.texi: Likewise.
69725         * doc/posix-functions/mkdirat.texi: Likewise.
69726         * doc/posix-functions/unlinkat.texi: Likewise.
69728 2008-12-14  Bruno Haible  <bruno@clisp.org>
69730         Update doc for POSIX:2008.
69731         * doc/posix-functions/faccessat.texi: New file.
69732         * doc/posix-functions/fchmodat.texi: New file.
69733         * doc/posix-functions/fchownat.texi: New file.
69734         * doc/posix-functions/fdopendir.texi: New file.
69735         * doc/posix-functions/fstatat.texi: New file.
69736         * doc/posix-functions/futimens.texi: New file.
69737         * doc/posix-functions/linkat.texi: New file.
69738         * doc/posix-functions/mkdirat.texi: New file.
69739         * doc/posix-functions/mkfifoat.texi: New file.
69740         * doc/posix-functions/mknodat.texi: New file.
69741         * doc/posix-functions/open_wmemstream.texi: New file.
69742         * doc/posix-functions/openat.texi: New file.
69743         * doc/posix-functions/psiginfo.texi: New file.
69744         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
69745         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
69746         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
69747         * doc/posix-functions/readlinkat.texi: New file.
69748         * doc/posix-functions/renameat.texi: New file.
69749         * doc/posix-functions/strerror_l.texi: New file.
69750         * doc/posix-functions/symlinkat.texi: New file.
69751         * doc/posix-functions/unlinkat.texi: New file.
69752         * doc/posix-functions/utimensat.texi: New file.
69753         * doc/gnulib.texi (Function Substitutes): Add these subsections.
69755 2008-12-14  Bruno Haible  <bruno@clisp.org>
69757         Update doc for POSIX:2008.
69758         * doc/posix-functions/alphasort.texi: Renamed from
69759         doc/glibc-functions/alphasort.texi.
69760         * doc/posix-functions/dirfd.texi: Renamed from
69761         doc/glibc-functions/dirfd.texi.
69762         * doc/posix-functions/dprintf.texi: Renamed from
69763         doc/glibc-functions/dprintf.texi.
69764         * doc/posix-functions/duplocale.texi: Renamed from
69765         doc/glibc-functions/duplocale.texi.
69766         * doc/posix-functions/fexecve.texi: Renamed from
69767         doc/glibc-functions/fexecve.texi.
69768         * doc/posix-functions/fmemopen.texi: Renamed from
69769         doc/glibc-functions/fmemopen.texi.
69770         * doc/posix-functions/freelocale.texi: Renamed from
69771         doc/glibc-functions/freelocale.texi.
69772         * doc/posix-functions/getdate_err.texi: Renamed from
69773         doc/glibc-functions/getdate_err.texi.
69774         * doc/posix-functions/isalnum_l.texi: Renamed from
69775         doc/glibc-functions/isalnum_l.texi.
69776         * doc/posix-functions/isalpha_l.texi: Renamed from
69777         doc/glibc-functions/isalpha_l.texi.
69778         * doc/posix-functions/isblank_l.texi: Renamed from
69779         doc/glibc-functions/isblank_l.texi.
69780         * doc/posix-functions/iscntrl_l.texi: Renamed from
69781         doc/glibc-functions/iscntrl_l.texi.
69782         * doc/posix-functions/isdigit_l.texi: Renamed from
69783         doc/glibc-functions/isdigit_l.texi.
69784         * doc/posix-functions/isgraph_l.texi: Renamed from
69785         doc/glibc-functions/isgraph_l.texi.
69786         * doc/posix-functions/islower_l.texi: Renamed from
69787         doc/glibc-functions/islower_l.texi.
69788         * doc/posix-functions/isprint_l.texi: Renamed from
69789         doc/glibc-functions/isprint_l.texi.
69790         * doc/posix-functions/ispunct_l.texi: Renamed from
69791         doc/glibc-functions/ispunct_l.texi.
69792         * doc/posix-functions/isspace_l.texi: Renamed from
69793         doc/glibc-functions/isspace_l.texi.
69794         * doc/posix-functions/isupper_l.texi: Renamed from
69795         doc/glibc-functions/isupper_l.texi.
69796         * doc/posix-functions/iswalnum_l.texi: Renamed from
69797         doc/glibc-functions/iswalnum_l.texi.
69798         * doc/posix-functions/iswalpha_l.texi: Renamed from
69799         doc/glibc-functions/iswalpha_l.texi.
69800         * doc/posix-functions/iswblank_l.texi: Renamed from
69801         doc/glibc-functions/iswblank_l.texi.
69802         * doc/posix-functions/iswcntrl_l.texi: Renamed from
69803         doc/glibc-functions/iswcntrl_l.texi.
69804         * doc/posix-functions/iswctype_l.texi: Renamed from
69805         doc/glibc-functions/iswctype_l.texi.
69806         * doc/posix-functions/iswdigit_l.texi: Renamed from
69807         doc/glibc-functions/iswdigit_l.texi.
69808         * doc/posix-functions/iswgraph_l.texi: Renamed from
69809         doc/glibc-functions/iswgraph_l.texi.
69810         * doc/posix-functions/iswlower_l.texi: Renamed from
69811         doc/glibc-functions/iswlower_l.texi.
69812         * doc/posix-functions/iswprint_l.texi: Renamed from
69813         doc/glibc-functions/iswprint_l.texi.
69814         * doc/posix-functions/iswpunct_l.texi: Renamed from
69815         doc/glibc-functions/iswpunct_l.texi.
69816         * doc/posix-functions/iswspace_l.texi: Renamed from
69817         doc/glibc-functions/iswspace_l.texi.
69818         * doc/posix-functions/iswupper_l.texi: Renamed from
69819         doc/glibc-functions/iswupper_l.texi.
69820         * doc/posix-functions/iswxdigit_l.texi: Renamed from
69821         doc/glibc-functions/iswxdigit_l.texi.
69822         * doc/posix-functions/isxdigit_l.texi: Renamed from
69823         doc/glibc-functions/isxdigit_l.texi.
69824         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
69825         doc/glibc-functions/mbsnrtowcs.texi.
69826         * doc/posix-functions/mkdtemp.texi: Renamed from
69827         doc/glibc-functions/mkdtemp.texi.
69828         * doc/posix-functions/newlocale.texi: Renamed from
69829         doc/glibc-functions/newlocale.texi.
69830         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
69831         doc/glibc-functions/nl_langinfo_l.texi.
69832         * doc/posix-functions/open_memstream.texi: Renamed from
69833         doc/glibc-functions/open_memstream.texi.
69834         * doc/posix-functions/opterr.texi: Renamed from
69835         doc/glibc-functions/opterr.texi.
69836         * doc/posix-functions/optind.texi: Renamed from
69837         doc/glibc-functions/optind.texi.
69838         * doc/posix-functions/optopt.texi: Renamed from
69839         doc/glibc-functions/optopt.texi.
69840         * doc/posix-functions/psignal.texi: Renamed from
69841         doc/glibc-functions/psignal.texi.
69842         * doc/posix-functions/scandir.texi: Renamed from
69843         doc/glibc-functions/scandir.texi.
69844         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
69845         doc/glibc-functions/sched_get_priority_min.texi.
69846         * doc/posix-functions/signgam.texi: Renamed from
69847         doc/glibc-functions/signgam.texi.
69848         * doc/posix-functions/stpcpy.texi: Renamed from
69849         doc/glibc-functions/stpcpy.texi.
69850         * doc/posix-functions/stpncpy.texi: Renamed from
69851         doc/glibc-functions/stpncpy.texi.
69852         * doc/posix-functions/strcasecmp_l.texi: Renamed from
69853         doc/glibc-functions/strcasecmp_l.texi.
69854         * doc/posix-functions/strcoll_l.texi: Renamed from
69855         doc/glibc-functions/strcoll_l.texi.
69856         * doc/posix-functions/strfmon_l.texi: Renamed from
69857         doc/glibc-functions/strfmon_l.texi.
69858         * doc/posix-functions/strftime_l.texi: Renamed from
69859         doc/glibc-functions/strftime_l.texi.
69860         * doc/posix-functions/strncasecmp_l.texi: Renamed from
69861         doc/glibc-functions/strncasecmp_l.texi.
69862         * doc/posix-functions/strndup.texi: Renamed from
69863         doc/glibc-functions/strndup.texi.
69864         * doc/posix-functions/strnlen.texi: Renamed from
69865         doc/glibc-functions/strnlen.texi.
69866         * doc/posix-functions/strsignal.texi: Renamed from
69867         doc/glibc-functions/strsignal.texi.
69868         * doc/posix-functions/strxfrm_l.texi: Renamed from
69869         doc/glibc-functions/strxfrm_l.texi.
69870         * doc/posix-functions/timer_gettime.texi: Renamed from
69871         doc/glibc-functions/timer_gettime.texi.
69872         * doc/posix-functions/tolower_l.texi: Renamed from
69873         doc/glibc-functions/tolower_l.texi.
69874         * doc/posix-functions/toupper_l.texi: Renamed from
69875         doc/glibc-functions/toupper_l.texi.
69876         * doc/posix-functions/towctrans_l.texi: Renamed from
69877         doc/glibc-functions/towctrans_l.texi.
69878         * doc/posix-functions/towlower_l.texi: Renamed from
69879         doc/glibc-functions/towlower_l.texi.
69880         * doc/posix-functions/towupper_l.texi: Renamed from
69881         doc/glibc-functions/towupper_l.texi.
69882         * doc/posix-functions/uselocale.texi: Renamed from
69883         doc/glibc-functions/uselocale.texi.
69884         * doc/posix-functions/vdprintf.texi: Renamed from
69885         doc/glibc-functions/vdprintf.texi.
69886         * doc/posix-functions/wcpcpy.texi:
69887         Renamed from doc/glibc-functions/wcpcpy.texi.
69888         * doc/posix-functions/wcpncpy.texi: Renamed from
69889         doc/glibc-functions/wcpncpy.texi.
69890         * doc/posix-functions/wcscasecmp.texi: Renamed from
69891         doc/glibc-functions/wcscasecmp.texi.
69892         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
69893         doc/glibc-functions/wcscasecmp_l.texi.
69894         * doc/posix-functions/wcscoll_l.texi: Renamed from
69895         doc/glibc-functions/wcscoll_l.texi.
69896         * doc/posix-functions/wcsdup.texi: Renamed from
69897         doc/glibc-functions/wcsdup.texi.
69898         * doc/posix-functions/wcsncasecmp.texi: Renamed from
69899         doc/glibc-functions/wcsncasecmp.texi.
69900         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
69901         doc/glibc-functions/wcsncasecmp_l.texi.
69902         * doc/posix-functions/wcsnlen.texi: Renamed from
69903         doc/glibc-functions/wcsnlen.texi.
69904         * doc/posix-functions/wcsnrtombs.texi: Renamed from
69905         doc/glibc-functions/wcsnrtombs.texi.
69906         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
69907         doc/glibc-functions/wcsxfrm_l.texi.
69908         * doc/posix-functions/wctrans_l.texi: Renamed from
69909         doc/glibc-functions/wctrans_l.texi.
69910         * doc/posix-functions/wctype_l.texi: Renamed from
69911         doc/glibc-functions/wctype_l.texi.
69912         * doc/gnulib.texi (Function Substitutes): Add these subsections.
69913         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
69914         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
69915         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
69916         these subsections.
69917         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
69918         Remove sections.
69920 2008-12-14  Bruno Haible  <bruno@clisp.org>
69922         Update doc for POSIX:2008.
69923         * doc/posix-functions/*.texi: Update URL of POSIX specification.
69925 2008-12-14  Bruno Haible  <bruno@clisp.org>
69927         Update doc for POSIX:2008.
69928         * doc/pastposix-functions/bcmp.texi: Renamed from
69929         doc/posix-functions/bcmp.texi.
69930         * doc/pastposix-functions/bcopy.texi: Renamed from
69931         doc/posix-functions/bcopy.texi.
69932         * doc/pastposix-functions/bsd_signal.texi: Renamed from
69933         doc/posix-functions/bsd_signal.texi.
69934         * doc/pastposix-functions/bzero.texi: Renamed from
69935         doc/posix-functions/bzero.texi.
69936         * doc/pastposix-functions/ecvt.texi: Renamed from
69937         doc/posix-functions/ecvt.texi.
69938         * doc/pastposix-functions/fcvt.texi: Renamed from
69939         doc/posix-functions/fcvt.texi.
69940         * doc/pastposix-functions/ftime.texi: Renamed from
69941         doc/posix-functions/ftime.texi.
69942         * doc/pastposix-functions/gcvt.texi: Renamed from
69943         doc/posix-functions/gcvt.texi.
69944         * doc/pastposix-functions/getcontext.texi: Renamed from
69945         doc/posix-functions/getcontext.texi.
69946         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
69947         doc/posix-functions/gethostbyaddr.texi.
69948         * doc/pastposix-functions/gethostbyname.texi: Renamed from
69949         doc/posix-functions/gethostbyname.texi.
69950         * doc/pastposix-functions/getwd.texi: Renamed from
69951         doc/posix-functions/getwd.texi.
69952         * doc/pastposix-functions/h_errno.texi: Renamed from
69953         doc/posix-functions/h_errno.texi.
69954         * doc/pastposix-functions/index.texi: Renamed from
69955         doc/posix-functions/index.texi.
69956         * doc/pastposix-functions/makecontext.texi: Renamed from
69957         doc/posix-functions/makecontext.texi.
69958         * doc/pastposix-functions/mktemp.texi: Renamed from
69959         doc/posix-functions/mktemp.texi.
69960         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
69961         doc/posix-functions/pthread_attr_getstackaddr.texi.
69962         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
69963         doc/posix-functions/pthread_attr_setstackaddr.texi.
69964         * doc/pastposix-functions/rindex.texi: Renamed from
69965         doc/posix-functions/rindex.texi.
69966         * doc/pastposix-functions/scalb.texi: Renamed from
69967         doc/posix-functions/scalb.texi.
69968         * doc/pastposix-functions/setcontext.texi: Renamed from
69969         doc/posix-functions/setcontext.texi.
69970         * doc/pastposix-functions/swapcontext.texi: Renamed from
69971         doc/posix-functions/swapcontext.texi.
69972         * doc/pastposix-functions/ualarm.texi: Renamed from
69973         doc/posix-functions/ualarm.texi.
69974         * doc/pastposix-functions/usleep.texi: Renamed from
69975         doc/posix-functions/usleep.texi.
69976         * doc/pastposix-functions/vfork.texi: Renamed from
69977         doc/posix-functions/vfork.texi.
69978         * doc/pastposix-functions/wcswcs.texi: Renamed from
69979         doc/posix-functions/wcswcs.texi.
69980         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
69981         (Function Substitutes): Update.
69983 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69985         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
69986         m4/strerror.m4.
69988 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69989             Bruno Haible  <bruno@clisp.org>
69991         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
69993 2008-12-13  Bruno Haible  <bruno@clisp.org>
69995         * modules/strtoull (Depends-on): Remove unistd.
69997 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69999         * modules/strtoull (Depends-on): Add stdlib.
70001 2008-12-11  Simon Josefsson  <simon@josefsson.org>
70003         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
70005 2008-12-10  Jim Meyering  <meyering@redhat.com>
70007         gl_ASSERT: don't say assertions are disabled when they're not
70008         * m4/assert.m4 (gl_ASSERT): Do not make configure report
70009         "checking whether to enable assertions... no", when they are in
70010         fact enabled.  This is solely a bug in the output of configure.
70011         In spite of saying "no", NDEBUG was not defined in that case.
70012         Also, as noted by Eric Blake, leave assertions enabled upon
70013         --enable-assert=INVALID.
70015 2008-12-10  Bruno Haible  <bruno@clisp.org>
70017         Change MODULES.html to refer to POSIX:2008 where possible.
70018         * MODULES.html.sh (POSIX2008_URL): New variable.
70019         (posix_headers): Remove sys/timeb, ucontext.
70020         (posix2001_headers): New variable.
70021         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
70022         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
70023         index, makecontext, mktemp, pthread_attr_getstackaddr,
70024         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
70025         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
70026         (posix2001_functions): New variable.
70027         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
70028         otherwise.
70030 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70032         add missing include to parse-duration.c
70033         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
70034         * modules/parse-duration (Depends-on): Add xalloc.
70036         fix sed script reading maint.mk
70037         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
70038         (syntax-check-rules): Use it.
70040 2008-12-09  Bruno Haible  <bruno@clisp.org>
70042         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
70043         MacOS X 10.4/PowerPC.
70044         Reported by Simon Josefsson.
70046 2008-12-08  Jim Meyering  <meyering@redhat.com>
70048         work around mingw's lack of some S_IF definitions
70049         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
70050         Reported by Simon Josefsson.
70052 2008-12-08  Bruno Haible  <bruno@clisp.org>
70054         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
70055         applied to variables. Needed on MacOS X 10.4/PowerPC.
70056         Reported by Simon Josefsson.
70058 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
70059         and Eric Blake  <ebb9@byu.net>
70061         assert: honor --enable-assert
70062         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
70063         order to honor --enable-assert, rather than treating it as a
70064         synonym for --disable-assert.
70066 2008-12-08  Jim Meyering  <meyering@redhat.com>
70068         * lib/posixtm.c: Remove now-useless declaration of mktime.
70070         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
70072 2008-12-07  Bruno Haible  <bruno@clisp.org>
70074         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
70075         test_once): Mark functions as static.
70076         * tests/test-tls.c (test_tls): Likewise.
70078 2008-12-07  Bruno Haible  <bruno@clisp.org>
70080         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
70081         iconv_register_autodetect.
70083 2008-12-07  Jim Meyering  <meyering@redhat.com>
70085         posixtm.c: avoid a warning
70086         * lib/posixtm.c (posixtime): Don't initialize tm0.
70087         It's no longer needed to placate gcc4's -Wuninitialized,
70088         and the attempt to placate would elicit a new warning.
70090         unicodeio.c: mark unused parameters
70091         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
70092         (fallback_failure_callback): Likewise.
70094 2008-12-07  Bruno Haible  <bruno@clisp.org>
70096         * gnulib-tool (func_create_testdir): When building the tests
70097         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
70098         Reported by Simon Josefsson.
70100 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70102         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
70104 2008-12-06  Bruno Haible  <bruno@clisp.org>
70106         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
70107         Suggested by Eric Blake.
70109 2008-12-06  Bruno Haible  <bruno@clisp.org>
70111         Fix a c-stack test failure on MacOS X.
70112         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
70113         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
70114         handler for SIGBUS as well.
70115         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
70116         install a signal handler for SIGBUS as well.
70117         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
70119 2008-12-06  Bruno Haible  <bruno@clisp.org>
70121         Advocacy documentation.
70122         * doc/gnulib-intro.texi (Benefits): New section.
70123         * doc/gnulib.texi: Update.
70125 2008-12-06  Bruno Haible  <bruno@clisp.org>
70127         Document the 'manywarnings' module.
70128         * doc/manywarnings.texi: New file.
70129         * doc/gnulib.texi: Include it.
70131 2008-12-05  Eric Blake  <ebb9@byu.net>
70133         tests: silence some gcc warnings
70134         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
70135         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
70136         type mismatches.
70138 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70139             Bruno Haible  <bruno@clisp.org>
70141         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
70143 2008-11-29  Jim Meyering  <meyering@redhat.com>
70145         unicodeio.c: mark unused parameters
70146         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
70147         (fallback_failure_callback): Likewise.
70149         fts: fix a thinko
70150         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
70151         (set_stat_type): Return S_IF*-valued "type" directly.
70152         Prompted by James Youngman's spotting a related bug.
70153         Confirmed by further testing through find.
70155         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
70156         * lib/fts.c (D_TYPE): Define.
70157         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
70158         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
70159         (s_ifmt_shift_bits): New function.
70160         (set_stat_type): New function.
70161         (fts_build): When not calling fts_stat, call set_stat_type
70162         to propagate dirent.d_type info to fts_read caller.
70163         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
70164         fts_statp->st_mode type information may be valid.
70166 2008-11-28  Simon Josefsson  <simon@josefsson.org>
70168         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
70169         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
70170         <sds@gnu.org>.
70172 2008-11-20  Bruno Haible  <bruno@clisp.org>
70174         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
70175         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
70176         INCLUDE_NEXT.
70177         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
70178         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
70179         * modules/math (Makefile.am): Substitute
70180         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
70181         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70183 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
70184             Bruno Haible  <bruno@clisp.org>
70186         * lib/stdint.in.h: Define all type macros so that their expansion is
70187         a single typedef'ed token. Fixes a compilation failure in Boost which
70188         does "using ::int8_t;".
70190 2008-11-18  Simon Josefsson  <simon@josefsson.org>
70192         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
70193         gl_MANYWARN_ALL_GCC.
70194         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
70195         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
70196         * modules/manywarnings: New file.
70197         * MODULES.html.sh: Mention manywarnings module.
70199 2008-11-18  Bruno Haible  <bruno@clisp.org>
70201         * doc/gnulib-tool.texi (Unit tests): New section.
70203 2008-11-18  Simon Josefsson  <simon@josefsson.org>
70205         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
70206         paths like 'lib/po/foo.po'.
70208 2008-11-17  Simon Josefsson  <simon@josefsson.org>
70210         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
70211         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
70213 2008-11-17  Simon Josefsson  <simon@josefsson.org>
70215         * m4/warnings.m4: Use CPPFLAGS to really check whether the
70216         parameter works.
70218 2008-11-17  Simon Josefsson  <simon@josefsson.org>
70220         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
70222 2008-11-17  Bruce Korb  <bkorb@gnu.org>
70224         * modules/parse-duration-tests: New file.
70225         * tests/test-parse-duration.sh: New file.
70226         * tests/test-parse-duration.c: New file.
70228         New module 'parse-duration'.
70229         * lib/parse-duration.h: New file.
70230         * lib/parse-duration.c: New file.
70231         * modules/parse-duration: New file.
70233 2008-11-17  Bruno Haible  <bruno@clisp.org>
70235         * tests/test-select-out.sh: Comment out the first pipe test.
70236         Reported by Simon Josefsson.
70238 2008-11-17  Bruno Haible  <bruno@clisp.org>
70240         * modules/getaddrinfo (Depends-on): Add servent, hostent.
70241         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
70242         gl_HOSTENT.
70244 2008-11-17  Bruno Haible  <bruno@clisp.org>
70246         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
70247         -lnetwork and -lnet. Needed for Haiku and BeOS.
70249 2008-11-16  Bruno Haible  <bruno@clisp.org>
70251         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
70253 2008-11-16  Bruno Haible  <bruno@clisp.org>
70255         Avoid test failure on Haiku.
70256         * tests/test-fsync.c: Include <errno.h>.
70257         (main): Don't require that fsync (0) fails.
70259 2008-11-15  Bruno Haible  <bruno@clisp.org>
70261         New module 'hostent'.
70262         * modules/hostent: New file.
70263         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
70265 2008-11-15  Bruno Haible  <bruno@clisp.org>
70267         New module 'servent'.
70268         * modules/servent: New file.
70269         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
70271 2008-11-15  Bruno Haible  <bruno@clisp.org>
70273         Avoid generating same test program with two different rules.
70274         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
70275         test-frexp to test-frexp-nolibm.
70276         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
70277         test-frexpl to test-frexpl-nolibm.
70279 2008-11-15  Bruno Haible  <bruno@clisp.org>
70281         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
70282         $(FREXPL_LIBM).
70284 2008-11-15  Bruno Haible  <bruno@clisp.org>
70286         * lib/netdb.in.h: Activate the definitions also when the system's
70287         <netdb.h> has 'struct addrinfo'.
70288         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
70289         EAI_OVERFLOW or AI_NUMERICSERV.
70290         * doc/posix-headers/netdb.texi: Document the problem.
70292 2008-11-15  Bruno Haible  <bruno@clisp.org>
70294         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
70296         Make the 'sched' module work on platforms where <sched.h> exists but
70297         is incomplete (such as Haiku).
70298         * lib/sched.in.h; Include the system's <sched.h> if it exists.
70299         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
70300         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
70301         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
70302         HAVE_STRUCT_SCHED_PARAM.
70303         * modules/sched (Depends-on): Add include_next.
70304         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
70305         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
70306         * doc/posix-headers/sched.texi: Document the issue.
70308 2008-11-13  Jim Meyering  <meyering@redhat.com>
70310         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
70311         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
70312         test would fail due to the difference in the Report bugs to ...
70313         line.  The expected address is empty, "<>", while the actual
70314         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
70316 2008-11-12  Bruno Haible  <bruno@clisp.org>
70318         lstat: don't compile lstat.c on systems lacking lstat
70319         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
70320         which don't have lstat; this is handled by lib/sys_stat.in.h already.
70321         Reported by Daniel P. Berrange via Jim Meyering.
70323 2008-11-12  Jim Meyering  <meyering@redhat.com>
70325         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
70327 2008-11-12  Simon Josefsson  <simon@josefsson.org>
70329         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
70330         instead.
70332 2008-11-12  Bruno Haible  <bruno@clisp.org>
70334         * lib/unicodeio.c: Include unistr.h.
70335         (utf8_wctomb): Remove function.
70336         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
70338 2008-11-12  Simon Josefsson  <simon@josefsson.org>
70340         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
70341         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
70342         <bruno@clisp.org>.
70343         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
70345 2008-11-12  Simon Josefsson  <simon@josefsson.org>
70347         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
70348         * doc/gnulib.texi: Add section for warnings.
70350 2008-11-11  Bruno Haible  <bruno@clisp.org>
70352         * lib/sockets.h: Add a comment.
70354 2008-11-11  Karl Berry  <karl@gnu.org>
70356         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
70358 2008-11-11  Eric Blake  <ebb9@byu.net>
70360         fdl.texi: avoid git symlinks
70361         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
70363 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
70365         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
70367 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
70369         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
70370         (gl_WARN_ADD): Substitute $2 if literal.
70372 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
70374         * m4/warning.m4: Remove.
70376 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
70378         * m4/warnings.m4: Almost complete rewrite. :-)
70380 2008-11-10  Simon Josefsson  <simon@josefsson.org>
70382         * modules/warnings: New module.
70383         * m4/warnings.m4: New file.
70384         * MODULES.html.sh: Mention warnings module.
70385         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
70386         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70388 2008-11-10  Eric Blake  <ebb9@byu.net>
70390         fdl.texi: make a symlink to the latest version
70391         * doc/standards.texi: Revert today's earlier change.
70392         * doc/fdl-1.2.texi: Rename from old fdl.texi...
70393         * doc/fdl.texi: ...and replace this with a symlink to the newer
70394         fdl-1.3.texi.
70396 2008-11-10  Bruno Haible  <bruno@clisp.org>
70398         * tests/test-select-fd.c (main): Accept the result file name as fourth
70399         argument.
70400         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
70401         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
70403 2008-11-10  Bruno Haible  <bruno@clisp.org>
70405         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
70406         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
70407         as autoconf-substituted macros.
70408         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
70409         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
70410         gl_NETDB_H_DEFAULTS. Set these variables.
70411         * modules/netdb (Makefile.am): Substitute these variables.
70413 2008-11-10  Eric Blake  <ebb9@byu.net>
70415         standards.texi: include correct file for FDL 1.3
70416         * doc/standards.texi (GNU Free Documentation License): Change
70417         include file to pull in FDL 1.3, not 1.2.
70419         fdl.texi: revert accidental change to license
70420         * doc/fdl.texi: This is FDL 1.2, not 1.3.
70422 2008-11-10  Bruno Haible  <bruno@clisp.org>
70424         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
70425         cross-compiling guesses also when the native compile gives no result.
70427 2008-11-10  Bruno Haible  <bruno@clisp.org>
70429         * lib/spawni.c (__spawni): Force variable into the stack.
70431 2008-11-10  Bruno Haible  <bruno@clisp.org>
70433         Add support for Haiku.
70434         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
70435         glibc and BeOS, but also on Haiku.
70436         * lib/fpurge.c (fpurge): Likewise.
70437         * lib/freadable.c (freadable): Likewise.
70438         * lib/freadahead.c (freadahead): Likewise.
70439         * lib/freading.c (freading): Likewise.
70440         * lib/freadptr.c (freadptr): Likewise.
70441         * lib/freadseek.c (freadptrinc): Likewise.
70442         * lib/fseeko.c (rpl_fseeko): Likewise.
70443         * lib/fseterr.c (fseterr): Likewise.
70444         * lib/fwritable.c (fwritable): Likewise.
70445         * lib/fwriting.c (fwriting): Likewise.
70446         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
70448 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
70450         * lib/config.charset: Treat Haiku like BeOS.
70452 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
70454         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
70455         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
70457 2008-11-08  Bruno Haible  <bruno@clisp.org>
70459         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
70460         AC_CACHE_CHECK.
70462 2008-11-08  Bruno Haible  <bruno@clisp.org>
70464         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
70466 2008-11-08  Bruno Haible  <bruno@clisp.org>
70468         * tests/test-select-fd.c: New file.
70469         * tests/test-select-in.sh: New file.
70470         * tests/test-select-out.sh: New file.
70471         * tests/test-select-stdin.c: New file.
70472         * modules/select-tests (Files): Add the new files.
70473         (Depends-on): Add gettimeofday.
70474         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
70475         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
70476         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
70478 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
70479             Bruno Haible  <bruno@clisp.org>
70481         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
70483 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
70485         * build-aux/pmccabe2html: Added support for C++ source files.
70487 2008-11-05  Ben Pfaff  <blp@gnu.org>
70489         Fix lib/close.c build on Windows.
70490         * modules/close (Files): Add lib/w32sock.h.
70492 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
70494         Accept Bison's NEWS format.
70495         * build-aux/announce-gen (print_news_deltas): Tweak
70496         $re_prefix.
70498 2008-11-04  Bruno Haible  <bruno@clisp.org>
70500         * modules/random_r (Maintainer): Add glibc.
70502 2008-11-04  Simon Josefsson  <simon@josefsson.org>
70504         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
70505         by karl@freefriends.org (Karl Berry).
70506         * doc/alloca.texi: Likewise.
70507         * doc/c-ctype.texi: Likewise.
70508         * doc/c-strcase.texi: Likewise.
70509         * doc/c-strcaseeq.texi: Likewise.
70510         * doc/c-strcasestr.texi: Likewise.
70511         * doc/c-strstr.texi: Likewise.
70512         * doc/c-strtod.texi: Likewise.
70513         * doc/c-strtold.texi: Likewise.
70514         * doc/ctime.texi: Likewise.
70515         * doc/error.texi: Likewise.
70516         * doc/fdl.texi: Likewise.
70517         * doc/gcd.texi: Likewise.
70518         * doc/getdate.texi: Likewise.
70519         * doc/gnulib-intro.texi: Likewise.
70520         * doc/gnulib-tool.texi: Likewise.
70521         * doc/gnulib.texi: Likewise.
70522         * doc/inet_ntoa.texi: Likewise.
70523         * doc/maintain.texi: Likewise.
70524         * doc/make-stds.texi: Likewise.
70525         * doc/quote.texi: Likewise.
70526         * doc/regexprops-generic.texi: Likewise.
70527         * doc/standards.texi: Likewise.
70528         * doc/verify.texi: Likewise.
70529         * doc/visibility.texi: Likewise.
70530         * doc/gnulib.texi (GNU Free Documentation License): Include
70531         fdl-1.3.texi instead of fdl.texi.
70533 2008-11-04  Simon Josefsson  <simon@josefsson.org>
70535         * doc/fdl-1.3.texi: New file, from
70536         <http://www.gnu.org/licenses/fdl-1.3.texi>.
70537         * modules/fdl-1.3: Add.
70538         * MODULES.html.sh: Add fdl-1.3.
70540 2008-11-03  Bruno Haible  <bruno@clisp.org>
70542         Make determination of absolute name of header file work with AIX xlc.
70543         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
70544         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
70545         preprocessing.
70546         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
70547         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
70549 2008-11-03  Simon Josefsson  <simon@josefsson.org>
70551         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
70552         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
70553         <ludo@gnu.org>.
70555 2008-11-02  Bruno Haible  <bruno@clisp.org>
70557         Mark 'strpbrk' obsolete.
70558         * modules/strpbrk (Status, Notice): New sections.
70559         * modules/strtok_r (Depends-on): Add strpbrk.
70561 2008-11-02  Bruno Haible  <bruno@clisp.org>
70563         Mark 'strdup' obsolete.
70564         * modules/strdup (Status, Notice): New sections.
70565         * modules/findprog (Depends-on): Add strdup.
70566         * modules/getaddrinfo (Depends-on): Likewise.
70567         * modules/localename (Depends-on): Likewise.
70568         * modules/relocatable-lib (Depends-on): Likewise.
70569         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
70570         * modules/relocatable-prog (Depends-on): Likewise.
70571         * modules/trim (Depends-on): Likewise.
70572         * modules/unictype/gen-ctype (Depends-on): Likewise.
70573         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
70575 2008-11-02  Bruno Haible  <bruno@clisp.org>
70577         Mark 'strcspn' obsolete.
70578         * modules/strcspn (Status, Notice): New sections.
70580 2008-11-02  Bruno Haible  <bruno@clisp.org>
70582         Mark 'rmdir' obsolete.
70583         * modules/rmdir (Status, Notice): New sections.
70584         * modules/clean-temp (Depends-on): Add rmdir.
70585         * modules/openat (Depends-on): Likewise.
70587 2008-11-02  Bruno Haible  <bruno@clisp.org>
70589         Mark 'raise' obsolete.
70590         * modules/raise (Status, Notice): New sections.
70591         (Include): Specify <signal.h>.
70592         * modules/stdio (Depends-on): Add raise.
70593         * modules/write (Depends-on): Likewise.
70595 2008-11-02  Bruno Haible  <bruno@clisp.org>
70597         Mark 'memset' obsolete.
70598         * modules/memset (Status, Notice): New sections.
70600 2008-11-02  Bruno Haible  <bruno@clisp.org>
70602         Mark 'memmove' obsolete.
70603         * modules/memmove (Status, Notice): New sections.
70604         * modules/argp (Depends-on): Add memmove.
70605         * modules/argz (Depends-on): Likewise.
70606         * modules/canonicalize (Depends-on): Likewise.
70607         * modules/canonicalize-lgpl (Depends-on): Likewise.
70608         * modules/fts (Depends-on): Likewise.
70609         * modules/getcwd (Depends-on): Likewise.
70610         * modules/human (Depends-on): Likewise.
70611         * modules/regex (Depends-on): Likewise.
70612         * modules/striconveh (Depends-on): Likewise.
70613         * modules/trim (Depends-on): Likewise.
70614         * modules/unistr/u8-move (Depends-on): Likewise.
70615         * modules/unistr/u16-move (Depends-on): Likewise.
70616         * modules/unistr/u32-move (Depends-on): Likewise.
70618 2008-11-02  Bruno Haible  <bruno@clisp.org>
70620         Mark 'memcpy' obsolete.
70621         * modules/memcpy (Status, Notice): New sections.
70623 2008-11-02  Bruno Haible  <bruno@clisp.org>
70625         Mark 'memcmp' obsolete.
70626         * modules/memcmp (Status, Notice): New sections.
70627         * modules/argmatch (Depends-on): Add memchr.
70628         * modules/backupfile (Depends-on): Likewise.
70629         * modules/c-strcasestr (Depends-on): Likewise.
70630         * modules/crypto/des (Depends-on): Likewise.
70631         * modules/csharpcomp (Depends-on): Likewise.
70632         * modules/fnmatch (Depends-on): Likewise.
70633         * modules/git-merge-changelog (Depends-on): Likewise.
70634         * modules/isnand (Depends-on): Likewise.
70635         * modules/isnand-nolibm (Depends-on): Likewise.
70636         * modules/isnanf (Depends-on): Likewise.
70637         * modules/isnanf-nolibm (Depends-on): Likewise.
70638         * modules/isnanl (Depends-on): Likewise.
70639         * modules/isnanl-nolibm (Depends-on): Likewise.
70640         * modules/mbchar (Depends-on): Likewise.
70641         * modules/memcoll (Depends-on): Likewise.
70642         * modules/quotearg (Depends-on): Likewise.
70643         * modules/regex (Depends-on): Likewise.
70644         * modules/relocatable-prog (Depends-on): Likewise.
70645         * modules/same (Depends-on): Likewise.
70646         * modules/signbit (Depends-on): Likewise.
70647         * modules/strcasestr-simple (Depends-on): Likewise.
70648         * modules/unictype/gen-ctype (Depends-on): Likewise.
70649         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
70650         * modules/uniname/uniname (Depends-on): Likewise.
70651         * modules/unistr/u8-cmp (Depends-on): Likewise.
70653 2008-11-02  Bruno Haible  <bruno@clisp.org>
70655         Mark 'memchr' obsolete.
70656         * modules/memchr (Status, Notice): New sections.
70657         * modules/argp (Depends-on): Add memchr.
70658         * modules/base64 (Depends-on): Likewise.
70659         * modules/c-strcasestr (Depends-on): Likewise.
70660         * modules/chdir-long (Depends-on): Likewise.
70661         * modules/fnmatch (Depends-on): Likewise.
70662         * modules/getsubopt (Depends-on): Likewise.
70663         * modules/git-merge-changelog (Depends-on): Likewise.
70664         * modules/glob (Depends-on): Likewise.
70665         * modules/strcasestr-simple (Depends-on): Likewise.
70666         * modules/strnlen (Depends-on): Likewise.
70668 2008-11-02  Bruno Haible  <bruno@clisp.org>
70670         Mark 'atexit' obsolete.
70671         * modules/atexit (Status, Notice): New sections.
70672         * modules/chdir-long (Depends-on): Add atexit.
70673         * modules/wait-process (Depends-on): Likewise.
70675 2008-11-02  Bruno Haible  <bruno@clisp.org>
70677         * gnulib-tool: New option --with-obsolete.
70678         (func_usage): Document it.
70679         (func_modules_transitive_closure): Drop obsolete dependencies if
70680         incobsolete is not true.
70681         (func_import): Read and save the incobsolete variable to the cache.
70683 2008-11-02  Bruno Haible  <bruno@clisp.org>
70685         * modules/TEMPLATE-EXTENDED: New field 'Status'.
70686         * gnulib-tool: New option --extract-status.
70687         (func_usage): Document it.
70688         (sed_extract_prog): Recognize it.
70689         (func_get_status): New function.
70691 2008-10-30  Simon Josefsson  <simon@josefsson.org>
70693         * modules/sockets (License): Change from LGPL to LGPLv2+.
70695 2008-10-28  Simon Josefsson  <simon@josefsson.org>
70697         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
70699 2008-10-28  Simon Josefsson  <simon@josefsson.org>
70701         * MODULES.html.sh (Support for systems lacking POSIX:2001):
70702         Mention times and sys_times.
70703         * modules/sys_times, modules/sys_times-tests: New modules.
70704         * modules/times, modules/times-tests: Likewise
70705         * m4/sys_times_h.m4: New file.
70706         * lib/sys_times.in.h: Likewise
70707         * lib/times.c: Likewise.
70708         * tests/test-sys_times.c: Likewise.
70709         * tests/test-times.c: Likewise.
70710         * doc/posix-headers/sys_times.texi: Update.
70711         * doc/posix-functions/times.texi: Update.
70713 2008-10-28  Jim Meyering  <meyering@redhat.com>
70715         * modules/tempname (Depends-on): Add lstat.
70717         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
70719 2008-10-28  Simon Josefsson  <simon@josefsson.org>
70721         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
70722         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
70723         using idiom used elsewhere in gnulib.
70725 2008-10-27  Jim Meyering  <meyering@redhat.com>
70727         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
70729 2008-10-27  Simon Josefsson  <simon@josefsson.org>
70731         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
70732         TESTS_ENVIRONMENT, for shell scripts that needs to call built
70733         programs.
70734         * tests/test-argp-2.sh: Use $EXEEXT when needed.
70736 2008-10-27  Simon Josefsson  <simon@josefsson.org>
70738         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
70740 2008-10-27  Bruno Haible  <bruno@clisp.org>
70742         * tests/test-lstat.c: Include <stdio.h>.
70744 2008-10-27  Simon Josefsson  <simon@josefsson.org>
70746         * modules/lstat-tests: New module.
70747         * tests/test-lstat.c: New file.
70749 2008-10-26  Jim Meyering  <meyering@redhat.com>
70751         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
70753 2008-10-26  Simon Josefsson  <simon@josefsson.org>
70754             Bruno Haible  <bruno@clisp.org>
70756         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
70757         * modules/configmake (Include): Add a note that the include must come
70758         after all system headers.
70759         * lib/javaversion.c: Include configmake.h after all other includes.
70761 2008-10-26  Bruno Haible  <bruno@clisp.org>
70763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
70764         HAVE_STRUCT_RANDOM_DATA to 1.
70765         (gl_STDLIB_H): Simplify.
70767 2008-10-26  Simon Josefsson  <simon@josefsson.org>
70769         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
70770         substitute HAVE_STRUCT_RANDOM_DATA.
70771         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
70772         random_data.
70773         * modules/stdlib (Makefile.am): Substitute
70774         HAVE_STRUCT_RANDOM_DATA.
70776 2008-10-26  Simon Josefsson  <simon@josefsson.org>
70778         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
70779         * doc/gnulib-intro.texi (Copyright): Likewise.
70781 2008-10-26  Simon Josefsson  <simon@josefsson.org>
70783         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
70784         findings.
70786 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
70787             Bruno Haible  <bruno@clisp.org>
70789         * lib/unistd.in.h: Include <winsock2.h>.
70790         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
70791         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
70792         Provide dummy declarations.
70793         (gethostname): Override.
70794         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
70795         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
70796         gl_PREREQ_SYS_H_WINSOCK2.
70797         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
70798         * doc/posix-functions/gethostname.texi: More details.
70800 2008-10-25  Bruno Haible  <bruno@clisp.org>
70802         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
70803         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
70804         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
70806         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
70807         here ...
70808         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
70809         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
70810         gl_UNISTD_H_DEFAULTS.
70812 2008-10-25  Eric Blake  <ebb9@byu.net>
70814         signbit: avoid spurious compiler failure
70815         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
70816         declarations inside function.
70818 2008-10-24  Simon Josefsson  <simon@josefsson.org>
70819             Bruno Haible  <bruno@clisp.org>
70821         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
70822         * modules/random_r (Depends-on): Add stdint.
70824 2008-10-24  Bruno Haible  <bruno@clisp.org>
70826         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
70827         Eggert.
70828         * modules/strerror (License): Likewise.
70830 2008-10-24  Jim Meyering  <meyering@redhat.com>
70832         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
70833         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
70835 2008-10-24  Eric Blake  <ebb9@byu.net>
70837         getgroups: fix compilation when getgroups is available
70838         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
70839         but with <config.h> override of getgroups disabled.
70841 2008-10-24  Simon Josefsson  <simon@josefsson.org>
70843         * doc/gnulib.texi (Header files): Add note about C++ problems.
70844         Explained by Bruno Haible <bruno@clisp.org>.
70846 2008-10-23  Bruno Haible  <bruno@clisp.org>
70848         Define a dummy SA_NODEFER macro on Interix.
70849         * lib/signal.in.h (SA_NODEFER): Define fallback.
70850         Reported by Aleksey Cheusov <cheusov@tut.by> via
70851         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
70853 2008-10-23  Bruno Haible  <bruno@clisp.org>
70855         * modules/freadahead (License): Change to LGPLv2+.
70856         Suggested by Simon Josefsson.
70858 2008-10-23  Jim Meyering  <meyering@redhat.com>
70860         random_r: new module
70861         * modules/random_r: New file.
70862         * m4/random_r.m4: New file.
70863         * lib/random_r.c: New file, from glibc.
70864         * modules/random_r-tests: New file.
70865         * tests/test-random_r.c: New file.
70866         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
70867          Declare.
70868         (RAND_MAX): Define.
70869         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
70870         * modules/stdlib: Substitute them, too.
70871         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
70872         * doc/glibc-functions/initstate_r.texi: Mention the new module.
70873         * doc/glibc-functions/random_r.texi: Likewise.
70874         * doc/glibc-functions/setstate_r.texi: Likewise.
70875         * doc/glibc-functions/srandom_r.texi: Likewise.
70876         * config/srclist.txt: Mention it.
70878 2008-10-23  David Lutterkort  <lutter@redhat.com>
70880         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
70881         link requirement
70883 2008-10-23  Jim Meyering  <meyering@redhat.com>
70885         selinux-h: mark parameters of stub functions as intentionally unused
70886         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
70887         * lib/se-context.in.h: Likewise.
70889 2008-10-22  Simon Josefsson  <simon@josefsson.org>
70891         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
70893 2008-10-22  Simon Josefsson  <simon@josefsson.org>
70895         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
70897 2008-10-22  Eric Blake  <ebb9@byu.net>
70899         glthread/thread: avoid compiler warning
70900         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
70901         Add unreachable abort to silence compiler.
70903 2008-10-22  Eric Blake  <ebb9@byu.net>
70905         netdb: also supply struct addrinfo for cygwin 1.5.x
70906         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
70907         older cygwin.
70908         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
70909         cygwin.
70910         * doc/posix-headers/netdb.texi (netdb.h): Document this.
70912 2008-10-22  Bruno Haible  <bruno@clisp.org>
70914         * users.txt: Update entry about pspp.
70916 2008-10-21  Bruno Haible  <bruno@clisp.org>
70918         Simplification.
70919         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
70920         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
70922         Simplification.
70923         * lib/ioctl.c (ioctl): Don't undefine.
70924         * lib/socket.c (socket): Don't undefine.
70926         Remove unused module indicator macros.
70927         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
70928         GNULIB_$1 as a C macro.
70930         * doc/posix-functions/close.texi: Undo last change.
70931         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
70932         Windows platforms.
70934 2008-10-21  Bruno Haible  <bruno@clisp.org>
70936         Add gethostname() declaration to <unistd.h>.
70937         * lib/unistd.in.h (gethostname): New declaration.
70938         * lib/gethostname.c: Include <unistd.h>.
70939         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
70940         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
70941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
70942         and HAVE_GETHOSTNAME.
70943         * modules/gethostname (Depends-on): Add unistd.
70944         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70945         (Include): Specify <unistd.h>.
70946         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
70947         HAVE_GETHOSTNAME.
70948         * tests/test-gethostname.c: Include <unistd.h> first.
70950 2008-10-21  Bruno Haible  <bruno@clisp.org>
70952         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
70953         * modules/select-tests (Depends-on): Likewise.
70954         Reported by Simon Josefsson.
70956 2008-10-21  Simon Josefsson  <simon@josefsson.org>
70958         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
70959         * lib/accept.c: New file, based on winsock.c.
70960         * lib/bind.c: New file, based on winsock.c.
70961         * lib/connect.c: New file, based on winsock.c.
70962         * lib/getpeername.c: New file, based on winsock.c.
70963         * lib/getsockname.c: New file, based on winsock.c.
70964         * lib/getsockopt.c: New file, based on winsock.c.
70965         * lib/ioctl.c: New file, based on winsock.c.
70966         * lib/listen.c: New file, based on winsock.c.
70967         * lib/recv.c: New file, based on winsock.c.
70968         * lib/recvfrom.c: New file, based on winsock.c.
70969         * lib/send.c: New file, based on winsock.c.
70970         * lib/sendto.c: New file, based on winsock.c.
70971         * lib/setsockopt.c: New file, based on winsock.c.
70972         * lib/shutdown.c: New file, based on winsock.c.
70973         * lib/socket.c: New file, based on winsock.c.
70974         * lib/w32sock.h: New file, based on winsock.c.
70975         * lib/winsock.c: Remove file.
70976         * modules/accept: Likewise.
70977         * modules/bind: Likewise.
70978         * modules/connect: Likewise.
70979         * modules/getpeername: Likewise.
70980         * modules/getsockname: Likewise.
70981         * modules/getsockopt: Likewise.
70982         * modules/ioctl: Likewise.
70983         * modules/listen: Likewise.
70984         * modules/recv: Likewise.
70985         * modules/recvfrom: Likewise.
70986         * modules/send: Likewise.
70987         * modules/sendto: Likewise.
70988         * modules/setsockopt: Likewise.
70989         * modules/shutdown: Likewise.
70990         * modules/socket: Use socket.c instead of winsock.c.
70991         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
70992         * doc/posix-functions/accept.texi: Doc fix.
70993         * doc/posix-functions/bind.texi: Doc fix.
70994         * doc/posix-functions/close.texi: Doc fix.
70995         * doc/posix-functions/connect.texi: Doc fix.
70996         * doc/posix-functions/getpeername.texi: Doc fix.
70997         * doc/posix-functions/getsockname.texi: Doc fix.
70998         * doc/posix-functions/getsockopt.texi: Doc fix.
70999         * doc/posix-functions/ioctl.texi: Doc fix.
71000         * doc/posix-functions/listen.texi: Doc fix.
71001         * doc/posix-functions/recv.texi: Doc fix.
71002         * doc/posix-functions/recvfrom.texi: Doc fix.
71003         * doc/posix-functions/send.texi: Doc fix.
71004         * doc/posix-functions/sendto.texi: Doc fix.
71005         * doc/posix-functions/setsockopt.texi: Doc fix.
71006         * doc/posix-functions/shutdown.texi: Doc fix.
71007         * doc/posix-functions/socket.texi: Doc fix.
71009 2008-10-20  Bruno Haible  <bruno@clisp.org>
71011         Take into account the role of SIGABRT_COMPAT on Windows 2008.
71012         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
71013         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
71014         as an alias for SIGABRT.
71015         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
71016         (sigaction): Map it to SIGABRT.
71017         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
71019 2008-10-20  Bruno Haible  <bruno@clisp.org>
71021         * lib/fts.c: Don't include lstat.h.
71022         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
71024         Move the lstat() declaration to <sys/stat.h>.
71025         * lib/lstat.h: Remove file.
71026         * lib/sys_stat.in.h: Add special invocation convention.
71027         (lstat): New declaration.
71028         * lib/lstat.c (orig_lstat): New function.
71029         (rpl_lstat): Use orig_lstat instead of lstat.
71030         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
71031         AC_C_INLINE. Set REPLACE_LSTAT.
71032         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
71033         and REPLACE_LSTAT.
71034         * modules/lstat (Files): Remove lib/lstat.h.
71035         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
71036         (Include): Specify <sys/stat.h> instead of lstat.h.
71037         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
71038         REPLACE_LSTAT.
71039         * NEWS: Mention the change.
71041 2008-10-20  Bruno Haible  <bruno@clisp.org>
71043         * modules/posix_spawn-tests: New file.
71044         * tests/test-posix_spawn3.c: New file.
71046 2008-10-20  Bruno Haible  <bruno@clisp.org>
71048         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
71049         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
71050         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
71051         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
71052         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
71054 2008-10-20  Bruno Haible  <bruno@clisp.org>
71056         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
71057         of posix_spawn on AIX 5.3.
71059 2008-10-20  Bruno Haible  <bruno@clisp.org>
71061         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
71063 2008-10-20  Bruno Haible  <bruno@clisp.org>
71065         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
71066         of AC_LANG_PROGRAM.
71068 2008-10-20  Simon Josefsson  <simon@josefsson.org>
71070         * lib/netdb.in.h: Don't define GNU specific constants until they
71071         are supported or needed.  Reported by Bruno Haible
71072         <bruno@clisp.org>.
71074 2008-10-20  Simon Josefsson  <simon@josefsson.org>
71076         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
71078 2008-10-20  Simon Josefsson  <simon@josefsson.org>
71080         * lib/getaddrinfo.h: Remove file.
71081         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
71082         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
71083         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
71084         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
71085         * modules/netdb: Substitute GNULIB_GETADDRINFO.
71086         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
71087         * tests/test-getaddrinfo.c: Likewise.
71088         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
71089         * NEWS: Mention change.
71091 2008-10-19  Bruno Haible  <bruno@clisp.org>
71093         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
71095 2008-10-19  Bruno Haible  <bruno@clisp.org>
71097         * lib/wait-process.c: Include simply <sys/wait.h>.
71098         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
71099         WIFSTOPPED): Remove fallback definitions.
71100         * modules/wait-process (Depends-on): Add sys_wait.
71102         New module 'sys_wait'.
71103         * modules/sys_wait: New file.
71104         * lib/sys_wait.in.h: New file, partially copied from
71105         lib/wait-process.c.
71106         * m4/sys_wait_h.m4: New file.
71107         * doc/posix-headers/sys_wait.texi: Mention the new module.
71109 2008-10-19  Bruno Haible  <bruno@clisp.org>
71111         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
71113 2008-10-19  Bruno Haible  <bruno@clisp.org>
71115         Assume that waitpid() fills an 'int' status, not a 'union wait'.
71116         * lib/wait-process.c (WAIT_T): Remove type.
71117         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
71118         (wait_subprocess): Update.
71120 2008-10-19  Bruno Haible  <bruno@clisp.org>
71122         New module 'atoll'.
71123         * modules/atoll: New file.
71124         * lib/stdlib.in.h (atoll): New declaration.
71125         * lib/atoll.c: New file, from glibc with modifications.
71126         * m4/atoll.m4: New file.
71127         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
71128         HAVE_ATOLL.
71129         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
71130         * doc/posix-functions/atoll.texi: Mention the new module.
71132 2008-10-19  Bruno Haible  <bruno@clisp.org>
71134         Add strtoull() declaration to <stdlib.h>.
71135         * lib/stdlib.in.h (strtoull): New declaration.
71136         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
71137         Set HAVE_STRTOULL.
71138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
71139         HAVE_STRTOULL.
71140         * modules/strtoull (Depends-on): Add stdlib.
71141         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71142         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
71143         HAVE_STRTOULL.
71145 2008-10-19  Bruno Haible  <bruno@clisp.org>
71147         Add strtoll() declaration to <stdlib.h>.
71148         * lib/stdlib.in.h (strtoll): New declaration.
71149         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
71150         Set HAVE_STRTOLL.
71151         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
71152         HAVE_STRTOLL.
71153         * modules/strtoll (Depends-on): Add stdlib.
71154         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71155         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
71157 2008-10-19  Bruno Haible  <bruno@clisp.org>
71159         * modules/bcopy (Depends-on): Add strings.
71160         (Include): Specify <strings.h>.
71162 2008-10-19  Bruno Haible  <bruno@clisp.org>
71164         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
71166 2008-10-19  Bruno Haible  <bruno@clisp.org>
71168         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
71169         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
71170         mingw.
71172 2008-10-19  Bruno Haible  <bruno@clisp.org>
71174         * lib/atanl.c: Don't include isnanl.h.
71175         * lib/cosl.c: Likewise.
71176         * lib/ldexpl.c: Likewise.
71177         * lib/logl.c: Likewise.
71178         * lib/sinl.c: Likewise.
71179         * lib/sqrtl.c: Likewise.
71180         * lib/tanl.c: Likewise.
71182         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
71183         * lib/isnanf.h: Remove file.
71184         * lib/isnand.h: Remove file.
71185         * lib/isnanl.h: Remove file.
71186         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
71187         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
71188         macros.
71189         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
71190         HAVE_ISNANF, don't define it as a C macro.
71191         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
71192         HAVE_ISNAND, don't define it as a C macro.
71193         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
71194         HAVE_ISNANL, don't define it as a C macro.
71195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
71196         HAVE_ISNAN[FDL].
71197         * modules/isnanf (Files): Remove lib/isnanf.h.
71198         (Depends-on): Add math.
71199         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
71200         (Include): Specify <math.h> instead of isnanf.h.
71201         * modules/isnand (Files): Remove lib/isnand.h.
71202         (Depends-on): Add math.
71203         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
71204         (Include): Specify <math.h> instead of isnand.h.
71205         * modules/isnanl (Files): Remove lib/isnanl.h.
71206         (Depends-on): Add math.
71207         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
71208         (Include): Specify <math.h> instead of isnanl.h.
71209         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
71210         HAVE_ISNAN[FDL].
71211         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
71212         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
71213         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
71214         * NEWS: Mention the change.
71216 2008-10-18  Bruno Haible  <bruno@clisp.org>
71218         Add getusershell(), setusershell(), endusershell() declarations to
71219         <unistd.h>.
71220         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
71221         declarations.
71222         * lib/getusershell.c: Include unistd.h.
71223         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
71224         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
71225         HAVE_GETUSERSHELL.
71226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
71227         and HAVE_GETUSERSHELL.
71228         * modules/getusershell (Depends-on): Add unistd, extensions.
71229         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71230         (Include): Specify <unistd.h>.
71231         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
71232         HAVE_GETUSERSHELL.
71234 2008-10-18  Bruno Haible  <bruno@clisp.org>
71236         Add a getloadavg() declaration to <stdlib.h>.
71237         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
71238         getloadavg declaration.
71239         (getloadavg): New declaration.
71240         * lib/getloadavg.c: Include <stdlib.h> first.
71241         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
71242         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
71243         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
71244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
71245         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
71246         * modules/getloadavg (Depends-on): Add stdlib, extensions.
71247         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71248         (Include): Specify <stdlib.h>.
71249         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
71250         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
71252 2008-10-18  Bruno Haible  <bruno@clisp.org>
71254         * lib/dirchownmod.c: Don't include lchmod.h.
71256         Move the lchmod() declaration to <sys/stat.h>.
71257         * lib/lchmod.h: Remove file.
71258         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
71259         (lchmod): New declaration, moved here from lib/lchown.h.
71260         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
71261         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
71262         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
71263         and HAVE_LCHMOD.
71264         * modules/lchmod (Files): Remove lib/lchmod.h.
71265         (Depends-on): Add sys_stat, extensions.
71266         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
71267         (Include): Specify <sys/stat.h> instead of lchmod.h.
71268         * modules/sys_stat (Depends-on): Add link-warning.
71269         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
71270         definition of GL_LINK_WARNING.
71271         * NEWS: Mention the change.
71273 2008-10-18  Bruno Haible  <bruno@clisp.org>
71275         * lib/fchdir.c: Don't include dirfd.h.
71276         * lib/fts.c: Likewise.
71277         * lib/getcwd.c: Likewise.
71278         * lib/glob.c: Likewise.
71280         Move the dirfd() declaration to <dirent.h>.
71281         * lib/dirfd.h: Remove file.
71282         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
71283         (dirfd): New declaration.
71284         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
71285         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
71286         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
71287         HAVE_DECL_DIRFD.
71288         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
71289         HAVE_DECL_DIRFD.
71290         * modules/dirfd (Files): Remove lib/dirfd.h.
71291         (Depends-on): Add dirent, extensions.
71292         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
71293         (Include): Specify <dirent.h> instead of dirfd.h.
71294         * modules/dirent (Depends-on): Add link-warning.
71295         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
71296         definition of GL_LINK_WARNING.
71297         * NEWS: Mention the change.
71299 2008-10-18  Bruno Haible  <bruno@clisp.org>
71301         Move the euidaccess() declaration to <unistd.h>.
71302         * lib/euidaccess.h: Remove file.
71303         * lib/unistd.in.h (euidaccess): New declaration.
71304         * lib/euidaccess.c: Don't include euidaccess.h.
71305         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
71306         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
71307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
71308         and HAVE_EUIDACCESS.
71309         * modules/euidaccess (Files): Remove lib/euidaccess.h.
71310         (Depends-on): Add unistd.
71311         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71312         (Include): Specify <unistd.h> instead of euidaccess.h.
71313         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
71314         HAVE_EUIDACCESS.
71315         * NEWS: Mention the change.
71317 2008-10-18  Bruno Haible  <bruno@clisp.org>
71319         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
71321         Move the getdomainname() declaration to <unistd.h>.
71322         * lib/getdomainname.h: Remove file.
71323         * lib/unistd.in.h (getdomainname): New declaration.
71324         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
71325         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
71326         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
71327         HAVE_GETDOMAINNAME.
71328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71329         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
71330         * modules/getdomainname (Files): Remove lib/getdomainname.h.
71331         (Depends-on): Add unistd, extensions.
71332         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71333         (Includes): Specify <unistd.h> instead of getdomainname.h.
71334         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
71335         HAVE_GETDOMAINNAME.
71336         * NEWS: Mention the change.
71338 2008-10-18  Bruno Haible  <bruno@clisp.org>
71340         * modules/dirent: New file.
71341         * m4/dirent_h.m4: New file.
71342         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
71343         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
71344         * modules/fchdir (Files): Remove lib/dirent.in.h.
71345         (Depends-on): Add dirent.
71346         (Makefile.am): Move rules to modules/dirent.
71347         * doc/posix-headers/dirent.texi: Mention the new module.
71349 2008-10-18  Bruno Haible  <bruno@clisp.org>
71351         Avoid -Wunused-parameter warnings in public gnulib header files.
71352         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
71353         macro.
71354         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
71356 2008-10-18  Bruno Haible  <bruno@clisp.org>
71358         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
71359         * doc/glibc-functions/error.texi: Mention the module 'error'.
71360         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
71361         * doc/glibc-functions/getdomainname.texi: Mention the module
71362         'getdomainname'.
71363         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
71364         * doc/glibc-functions/getpagesize.texi: Mention the module
71365         'getpagesize'.
71366         * doc/glibc-functions/getusershell.texi: Mention the module
71367         'getusershell'.
71368         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
71369         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
71370         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
71371         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
71372         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
71373         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
71374         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
71375         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
71376         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
71377         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
71378         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
71379         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
71380         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
71381         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
71383 2008-10-17  Bruno Haible  <bruno@clisp.org>
71385         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
71386         HP-UX and IRIX, use -0.0L.
71387         * tests/test-ceill.c (minus_zero): Likewise.
71388         * tests/test-floorl.c (minus_zero): Likewise.
71389         * tests/test-frexpl.c (minus_zero): Likewise.
71390         * tests/test-isnan.c (minus_zerol): Likewise.
71391         * tests/test-isnanl.h (minus_zero): Likewise.
71392         * tests/test-ldexpl.c (minus_zero): Likewise.
71393         * tests/test-roundl.c (minus_zero): Likewise.
71394         * tests/test-signbit.c (minus_zerol): Likewise.
71395         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
71396         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
71397         * tests/test-truncl.c (minus_zero): Likewise.
71398         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
71399         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
71400         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
71401         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
71403 2008-10-17  Bruno Haible  <bruno@clisp.org>
71405         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
71406         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
71407         that it gets activated only for gcc >= 3.0.
71408         * lib/dirent.in.h: Likewise.
71409         * lib/errno.in.h: Likewise.
71410         * lib/fcntl.in.h: Likewise.
71411         * lib/float.in.h: Likewise.
71412         * lib/iconv.in.h: Likewise.
71413         * lib/inttypes.in.h: Likewise.
71414         * lib/locale.in.h: Likewise.
71415         * lib/math.in.h: Likewise.
71416         * lib/netdb.in.h: Likewise.
71417         * lib/netinet_in.in.h: Likewise.
71418         * lib/search.in.h: Likewise.
71419         * lib/signal.in.h: Likewise.
71420         * lib/spawn.in.h: Likewise.
71421         * lib/stdarg.in.h: Likewise.
71422         * lib/stdint.in.h: Likewise.
71423         * lib/stdio.in.h: Likewise.
71424         * lib/stdlib.in.h: Likewise.
71425         * lib/string.in.h: Likewise.
71426         * lib/strings.in.h: Likewise.
71427         * lib/sys_file.in.h: Likewise.
71428         * lib/sys_ioctl.in.h: Likewise.
71429         * lib/sys_select.in.h: Likewise.
71430         * lib/sys_socket.in.h: Likewise.
71431         * lib/sys_stat.in.h: Likewise.
71432         * lib/sys_time.in.h: Likewise.
71433         * lib/sysexits.in.h: Likewise.
71434         * lib/time.in.h: Likewise.
71435         * lib/unistd.in.h: Likewise.
71436         * lib/wchar.in.h: Likewise.
71437         * lib/wctype.in.h: Likewise.
71438         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71440 2008-10-17  Jim Meyering  <meyering@redhat.com>
71442         ignore-value: don't depend on inline module
71443         * modules/ignore-value (Depends-on): Remove 'inline'.
71444         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
71445         Suggestion from Bruno Haible.
71447 2008-10-17  Bruno Haible  <bruno@clisp.org>
71449         New implementation of condition variables for Win32.
71450         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
71451         (gl_linked_waitqueue_t): New type.
71452         (gl_cond_t): Use it.
71453         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
71454         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
71455         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
71456         (glthread_cond_init_func, glthread_cond_wait_func,
71457         glthread_cond_timedwait_func, glthread_cond_signal_func,
71458         glthread_cond_broadcast_func, glthread_cond_destroy_func):
71459         Reimplemented on the basis of gl_linked_waitqueue_t.
71460         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
71461         gl_waitqueue_t.
71462         (gl_rwlock_t): Update.
71463         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
71465 2008-10-17  Simon Josefsson  <simon@josefsson.org>
71467         * modules/recvfrom (Depends-on): Add dependency on getpeername.
71468         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71470 2008-10-17  Jim Meyering  <meyering@redhat.com>
71472         ignore-value: new module
71473         * modules/ignore-value: New file.
71474         * lib/ignore-value.h: New file.
71475         * MODULES.html.sh (Compiler warning management): New section,
71476         just for this module.  More to come.
71478 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71480         open-safer.c: avoid 'signed and unsigned in conditional...' warning
71481         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
71482         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
71484 2008-10-16  Jim Meyering  <meyering@redhat.com>
71486         openat-die.c: avoid 'no previous prototype' warning
71487         * lib/openat-die.c: Include "openat.h".
71488         Reported by Reuben Thomas <rrt@sc3d.org>.
71490 2008-10-16  Simon Josefsson  <simon@josefsson.org>
71492         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
71493         * lib/netdb.in.h: Fix typo.
71494         Reported by Bruno Haible  <bruno@clisp.org>
71496         * lib/netdb.in.h: Include sys/socket.h for platforms without
71497         netdb.h, to get structures like hostent on MinGW.
71498         * modules/netdb (Depends-on): Add sys_socket.
71500 2008-10-15  Simon Josefsson  <simon@josefsson.org>
71502         * modules/netdb, modules/netdb-tests: New file.
71503         * m4/netdb_h.m4: New file.
71504         * lib/netdb.in.h: Add, currently just an empty file pending
71505         definitions.
71506         * tests/test-netdb.c: New file.
71507         * doc/posix-headers/netdb.texi: Mention that we replace it if
71508         needed.
71509         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71510         netdb.
71512 2008-10-15  Simon Josefsson  <simon@josefsson.org>
71514         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
71515         with code.
71517 2008-10-13  Bruno Haible  <bruno@clisp.org>
71519         * lib/glthread/cond.c (glthread_cond_wait_func,
71520         glthread_cond_timedwait_func): Add a comment.
71522 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71524         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
71525         * tests/test-select.c: Likewise,
71527 2008-10-13  Bruno Haible  <bruno@clisp.org>
71529         * lib/glthread/cond.c (glthread_cond_wait_func,
71530         glthread_cond_timedwait_func): Fix variable name.
71531         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71533 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
71535         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
71536         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
71537         struct sockaddr.sa_len.
71538         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
71540 2008-10-13  Simon Josefsson  <simon@josefsson.org>
71542         * build-aux/pmccabe2html: Add css and css_url parameters.
71544 2008-10-12  Bruno Haible  <bruno@clisp.org>
71546         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
71547         calling aclx_get.
71548         Reported by Rainer Tammer <tammer@tammer.net>.
71550 2008-10-12  Bruno Haible  <bruno@clisp.org>
71552         Use msvcrt aware primitives for creation/termination of Win32 threads.
71553         * lib/glthread/thread.c: Include <process.h>.
71554         (glthread_create_func): Use _beginthreadex instead of CreateThread.
71555         (wrapper_func): Update signature.
71556         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
71558 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71559             Bruno Haible  <bruno@clisp.org>
71561         Provide a Win32 implementation of the 'cond' module.
71562         * lib/glthread/cond.h [USE_WIN32]: New implementation.
71563         * lib/glthread/cond.c (glthread_cond_init_func,
71564         glthread_cond_wait_func, glthread_cond_timedwait_func,
71565         glthread_cond_signal_func, glthread_cond_broadcast_func,
71566         glthread_cond_destroy_func) [USE_WIN32]: New functions.
71567         * modules/cond (Dependencies): Add gettimeofday.
71569 2008-10-11  Bruno Haible  <bruno@clisp.org>
71571         Make sleep work on older versions of mingw.
71572         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
71573         only whether it exists.
71574         * doc/posix-functions/sleep.texi: Mention the problem with older
71575         versions of mingw.
71577 2008-10-11  Bruno Haible  <bruno@clisp.org>
71579         New module 'shutdown'.
71580         * modules/shutdown: New file.
71581         * lib/sys_socket.in.h (shutdown): New declaration.
71582         * lib/winsock.c (shutdown): New function.
71583         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
71584         GNULIB_SHUTDOWN.
71585         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
71586         * doc/posix-functions/shutdown.texi: Document the new module.
71588 2008-10-11  Jim Meyering  <meyering@redhat.com>
71590         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
71592 2008-10-11  Bruno Haible  <bruno@clisp.org>
71594         New module 'fclose'.
71595         * modules/fclose: New file.
71596         * lib/stdio.in.h (fclose): New declaration.
71597         * lib/fclose.c: New file.
71598         * m4/fclose.m4: New file.
71599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
71600         REPLACE_FCLOSE.
71601         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
71602         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
71603         REPLACE_FCLOSE.
71604         * modules/close (Depends-on): fclose.
71605         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
71607 2008-10-11  Bruno Haible  <bruno@clisp.org>
71609         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
71610         set errno and don't call _close.
71612 2008-10-10  Bruno Haible  <bruno@clisp.org>
71614         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
71615         ACL, not afterwards. Fixes test failure on Cygwin.
71617 2008-10-09  Ben Pfaff  <blp@gnu.org>
71619         * build-aux/announce-gen: Fix gnulib version related part of usage
71620         message.  Die with a useful error message if no tarballs are
71621         found.
71623 2008-10-10  Jim Meyering  <meyering@redhat.com>
71625         bootstrap: use git's --depth=N option only if it's supported
71626         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
71627         recognize the --depth option.  Reported by Pádraig Brady.
71629 2008-10-09  Bruno Haible  <bruno@clisp.org>
71631         New module 'ioctl'.
71632         * modules/ioctl: New file.
71633         * lib/sys_socket.in.h (ioctl): Remove declaration.
71634         * lib/winsock.c: Include <sys/ioctl.h>.
71635         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
71636         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
71637         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
71638         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
71639         * doc/posix-functions/ioctl.texi: Mention the new module.
71641 2008-10-09  Bruno Haible  <bruno@clisp.org>
71643         New module 'sys_ioctl'.
71644         * lib/sys_ioctl.in.h: New file.
71645         * m4/sys_ioctl_h.m4: New file.
71646         * modules/sys_ioctl: New file.
71647         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
71649 2008-10-09  Bruno Haible  <bruno@clisp.org>
71651         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
71652         * lib/winsock.c: Include <stdarg.h>.
71653         (rpl_ioctl): Change to second argument 'int' and then varargs.
71655 2008-10-09  Bruno Haible  <bruno@clisp.org>
71657         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
71658         when the sys_socket module is present and the system has <winsock2.h>.
71660 2008-10-09  Bruno Haible  <bruno@clisp.org>
71662         * doc/posix-functions/close.texi: Mention module 'close' instead of
71663         module 'sys_socket'.
71665 2008-10-09  Bruno Haible  <bruno@clisp.org>
71667         * doc/glibc-headers/sys_ioctl.texi: New file.
71668         * doc/gnulib.texi: Include it.
71670 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71671             Bruno Haible  <bruno@clisp.org>
71673         Combine the two replacements of 'close'.
71674         * lib/sys_socket.in.h (close): Define to a reminder to include
71675         <unistd.h>.
71676         (_gl_close_fd_maybe_socket): New declaration.
71677         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
71678         * lib/winsock.c (close): Remove undefinition.
71679         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
71680         needed for the gnulib module 'close'.
71681         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
71682         define to an error symbol or to a warning, if suitable.
71683         * lib/close.c: Include <sys/socket.h>.
71684         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
71685         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
71686         UNISTD_H_HAVE_WINSOCK2_H.
71687         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
71688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71689         UNISTD_H_HAVE_WINSOCK2_H.
71690         * modules/sys_socket (Files): Add m4/unistd_h.m4.
71691         (configure.ac): Set a module indicator.
71692         (Makefile.am): Substitute GNULIB_CLOSE.
71693         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
71694         * modules/poll-tests (Depends-on): Add close.
71695         * modules/select-tests (Depends-on): Likewise.
71697 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71698             Bruno Haible  <bruno@clisp.org>
71700         New module 'close'.
71701         * modules/close: New file.
71702         * lib/unistd.in.h (close): Move declaration out of the
71703         FCHDIR_REPLACEMENT scope.
71704         (_gl_unregister_fd): New declaration.
71705         * lib/close.c: New file.
71706         * lib/fchdir.c (rpl_close): Remove function.
71707         * m4/close.m4: New file.
71708         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
71709         close.
71710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
71711         REPLACE_CLOSE.
71712         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
71713         REPLACE_CLOSE.
71714         * modules/fchdir (Depends-on): Add close.
71716 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71717             Bruno Haible  <bruno@clisp.org>
71719         * lib/fcntl.in.h (open): Simplify conditionals.
71720         (_gl_register_fd): New declaration.
71721         * lib/fchdir.c (rpl_open): Remove function.
71722         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
71723         also.
71724         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
71725         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
71726         open.
71728 2008-10-09  Jim Meyering  <meyering@redhat.com>
71730         GNUmakefile: use the more name-space-friendly "_version"
71731         * top/GNUmakefile (_dummy): Update.
71732         (_version): Rename from "version".
71734 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71735             Bruno Haible  <bruno@clisp.org>
71737         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
71738         rpl_close.
71739         (_gl_register_fd): New function, extracted from rpl_open.
71740         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
71741         (rpl_open, rpl_opendir): Use _gl_register_fd.
71743 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71745         Fix organization of 'open' replacement.
71746         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
71747         (gl_FUNC_OPEN): Use it.
71748         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
71750 2008-10-08  Bruno Haible  <bruno@clisp.org>
71752         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
71754 2008-10-08  Simon Josefsson  <simon@josefsson.org>
71756         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
71757         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
71758         listen).
71760 2008-10-08  Eric Blake  <ebb9@byu.net>
71762         GNUmakefile: add 'make version' target
71763         * top/GNUmakefile (_curr-ver): Split version update rules...
71764         (version): ...into a target.
71766 2008-10-07  Bruno Haible  <bruno@clisp.org>
71768         Use a more portable replacement expression for -0.0L.
71769         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
71770         instead of -0.0L. Fix m4 quotation.
71772         * tests/test-signbit.c: Include <float.h>.
71773         (minus_zero): New variable.
71774         (test_signbitl): Use minus_zero instead of -zero.
71775         * modules/signbit-tests (Depends-on): Add float.
71777         * tests/test-ceill.c: Include <float.h>.
71778         (zero): Remove variable.
71779         (minus_zero): New variable.
71780         (main): Use minus_zero instead of -zero.
71781         * modules/ceill-tests (Depends-on): Add float.
71783         * tests/test-floorl.c: Include <float.h>.
71784         (zero): Remove variable.
71785         (minus_zero): New variable.
71786         (main): Use minus_zero instead of -zero.
71787         * modules/floorl-tests (Depends-on): Add float.
71789         * tests/test-roundl.c: Include <float.h>.
71790         (zero): Remove variable.
71791         (minus_zero): New variable.
71792         (main): Use minus_zero instead of -zero.
71793         * modules/roundl-tests (Depends-on): Add float.
71795         * tests/test-truncl.c: Include <float.h>.
71796         (zero): Remove variable.
71797         (minus_zero): New variable.
71798         (main): Use minus_zero instead of -zero.
71799         * modules/truncl-tests (Depends-on): Add float.
71801         * tests/test-frexpl.c (zero): Remove variable.
71802         (minus_zero): New variable.
71803         (main): Use minus_zero instead of -zero.
71804         * modules/frexpl-tests (Depends-on): Add float.
71806         * tests/test-isnan.c (zerol): Remove variable.
71807         (minus_zerol): New variable.
71808         (test_long_double): Use minus_zerol instead of -zerol.
71809         * modules/isnan-tests (Depends-on): Add float.
71811         * tests/test-isnanl.h (zero): Remove variable.
71812         (minus_zero): New variable.
71813         (main): Use minus_zero instead of -zero.
71814         * modules/isnanl-nolibm-tests (Depends-on): Add float.
71815         * modules/isnanl-tests (Depends-on): Add float.
71817         * tests/test-ldexpl.c (zero): Remove variable.
71818         (minus_zero): New variable.
71819         (main): Use minus_zero instead of -zero.
71820         * modules/ldexpl-tests (Depends-on): Add float.
71822         * tests/test-snprintf-posix.h (zerol): Remove variable.
71823         (minus_zerol): New variable.
71824         (test_function): Use minus_zerol instead of -zerol.
71825         * modules/snprintf-posix-tests (Depends-on): Add float.
71826         * modules/vsnprintf-posix-tests (Depends-on): Add float.
71828         * tests/test-sprintf-posix.h (zerol): Remove variable.
71829         (minus_zerol): New variable.
71830         (test_function): Use minus_zerol instead of -zerol.
71831         * modules/sprintf-posix-tests (Depends-on): Add float.
71832         * modules/vsprintf-posix-tests (Depends-on): Add float.
71834         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
71835         (minus_zerol): New variable.
71836         (test_function): Use minus_zerol instead of -zerol.
71837         * modules/vasnprintf-posix-tests (Depends-on): Add float.
71839         * tests/test-vasprintf-posix.c (zerol): Remove variable.
71840         (minus_zerol): New variable.
71841         (test_function): Use minus_zerol instead of -zerol.
71842         * modules/vasprintf-posix-tests (Depends-on): Add float.
71844 2008-10-07  Simon Josefsson  <simon@josefsson.org>
71846         * MODULES.html.sh (Support for building documentation): Mention
71847         pmccabe2html.  Sort entries.
71849         Add pmccabe2html module, from gnupdf.
71850         * build-aux/pmccabe.css: New file.
71851         * build-aux/pmccabe2html: New file.
71852         * m4/pmccabe2html.m4: New file.
71853         * modules/pmccabe2html: New file.
71855 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
71857         flock: new module
71858         * MODULES.html.sh: Add to list of modules.
71859         * lib/flock.c: flock implementation for Windows and Unix systems
71860         which have fcntl.
71861         * doc/glibc-functions/flock.texi: Update documentation.
71862         * lib/sys_file.in.h: <sys/file.h> header file.
71863         * m4/flock.m4: M4 macros.
71864         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
71865         * modules/flock: flock module.
71866         * modules/flock-tests: flock tests module.
71867         * modules/sys_file: sys/file.h module.
71868         * tests/test-flock.c: test suite for flock.
71870 2008-10-06  Jim Meyering  <meyering@redhat.com>
71872         bootstrap: check for LT_INIT more portably still ;-)
71873         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
71874         Spotted by Bruno Haible.
71876 2008-10-06  Eric Blake  <ebb9@byu.net>
71878         test-signbit: avoid tripping Irix cc bug on -0.0L
71879         * tests/test-signbit.c (minus_zerol): Delete, and replace with
71880         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
71881         entire testsuite consistent and avoids an Irix 6.2 bug.
71883 2008-10-05  Bruno Haible  <bruno@clisp.org>
71884             Jim Meyering  <jim@meyering.net>
71886         Add an option for ignoring EPIPE during close_stdout.
71887         * lib/closeout.h: Include <stdbool.h>.
71888         (close_stdout_set_ignore_EPIPE): New declaration.
71889         * lib/closeout.c: Include <stdbool.h>.
71890         (ignore_EPIPE): New variable.
71891         (close_stdout_set_ignore_EPIPE): New function.
71892         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
71893         * lib/close-stream.c (close_stream): Mention the possible EPIPE
71894         failure.
71895         * modules/closeout (Depends-on): Add stdbool.
71897 2008-10-05  Bruno Haible  <bruno@clisp.org>
71899         * modules/accept: New file.
71900         * modules/bind: New file.
71901         * modules/connect: New file.
71902         * modules/getpeername: New file.
71903         * modules/getsockname: New file.
71904         * modules/getsockopt: New file.
71905         * modules/listen: New file.
71906         * modules/recv: New file.
71907         * modules/recvfrom: New file.
71908         * modules/send: New file.
71909         * modules/sendto: New file.
71910         * modules/setsockopt: New file.
71911         * modules/socket: New file.
71912         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
71913         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
71914         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
71915         the particular module is requested. Add a link warning when the
71916         particular module is not requested.
71917         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
71918         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
71919         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
71920         the particular module is requested.
71921         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
71922         gl_SYS_SOCKET_H_DEFAULTS): New macros.
71923         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
71924         * modules/sys_socket (Depends-on): Add link-warning.
71925         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
71926         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
71927         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
71928         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
71929         GL_LINK_WARNING.
71930         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
71931         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
71932         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
71933         * doc/posix-functions/getpeername.texi: Mention the new module
71934         'getpeername'.
71935         * doc/posix-functions/getsockname.texi: Mention the new module
71936         'getsockname'.
71937         * doc/posix-functions/getsockopt.texi: Mention the new module
71938         'getsockopt'.
71939         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
71940         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
71941         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
71942         * doc/posix-functions/send.texi: Mention the new module 'send'.
71943         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
71944         * doc/posix-functions/setsockopt.texi: Mention the new module
71945         'setsockopt'.
71946         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
71947         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
71948         listen, connect, accept.
71949         * modules/select-tests (Depends-on): Likewise.
71951 2008-10-05  Bruno Haible  <bruno@clisp.org>
71953         * lib/winsock.c (strerror): Remove unused #undef.
71954         (rpl_close): Remove unused local variable.
71956         * modules/sys_socket (Depends-on); Add errno.
71958 2008-10-05  Bruno Haible  <bruno@clisp.org>
71960         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
71961         (select): Add a link warning when the 'select' module is not used.
71962         * modules/sys_select (Depends-on): Add link-warning.
71963         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
71964         Suggested by Paolo Bonzini.
71966 2008-10-05  Jim Meyering  <meyering@redhat.com>
71968         bootstrap: check for LT_INIT more portably
71969         * build-aux/bootstrap: Avoid using grep -E, since it's not
71970         portable enough.  Suggestion from Bruno Haible.
71972 2008-10-05  Bruno Haible  <bruno@clisp.org>
71974         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
71975         as being fixed by gnulib.
71977 2008-10-05  Bruno Haible  <bruno@clisp.org>
71979         * modules/select-tests: New file, mostly copied from
71980         modules/sys_select-tests.
71981         * tests/test-select.c: New file, mostly copied from
71982         tests/test-sys_select.c.
71983         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
71984         * modules/sys_select-tests (Depends-on): Remove all dependencies.
71985         (Makefile.am): Remove test_sys_select_LDADD.
71987         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
71988         to an undefined symbol, for an error message.
71989         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
71990         (gl_SYS_SELECT_H_DEFAULTS): New macro.
71991         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
71992         winsock-select.c here.
71993         * modules/sys_select (Files): Remove lib/winsock-select.c.
71994         (Depends-on): Remove alloca.
71995         (Makefile.am): Substitute GNULIB_SELECT.
71996         * modules/select: New file.
71997         * doc/posix-functions/select.texi: Update.
71999 2008-10-05  Bruno Haible  <bruno@clisp.org>
72001         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
72002         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
72003         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
72004         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
72005         getdtablesize.
72006         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
72007         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
72009 2008-10-05  Bruno Haible  <bruno@clisp.org>
72011         * modules/getdtablesize-tests: New file.
72012         * tests/test-getdtablesize.c: New file.
72014         New module 'getdtablesize'.
72015         * lib/unistd.in.h (getdtablesize): New declaration.
72016         * lib/getdtablesize.c: New file.
72017         * m4/getdtablesize.m4: New file.
72018         * modules/getdtablesize: New file.
72019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72020         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
72021         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
72022         HAVE_GETDTABLESIZE.
72023         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
72025 2008-10-05  Bruno Haible  <bruno@clisp.org>
72027         * modules/sched (Makefile.am): Fix typo.
72028         Reported by Simon Josefsson.
72030 2008-10-05  Jim Meyering  <meyering@redhat.com>
72032         bootstrap: check for LT_INIT, too
72033         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
72034         are deprecated.  Suggestion from Ralf Wildenhues.
72036 2008-10-05  Bruno Haible  <bruno@clisp.org>
72038         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
72039         overriding them by ours.
72040         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
72042 2008-10-05  Jim Meyering  <meyering@redhat.com>
72044         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
72045         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
72046         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
72048 2008-10-04  Bruno Haible  <bruno@clisp.org>
72050         * modules/dup2 (License): Change to LGPLv2+.
72051         * modules/sleep (License): Likewise.
72052         * modules/perror (License): Likewise.
72053         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
72054         Blake.
72055         * modules/signal (License): Likewise.
72056         * modules/sigprocmask (License): Likewise.
72057         * modules/raise (License): Change to LGPLv2+, with approval by Jim
72058         Meyering.
72060 2008-10-04  Bruno Haible  <bruno@clisp.org>
72062         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
72063         Reported by Rainer Tammer <tammer@tammer.net>.
72065 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
72066             Bruno Haible  <bruno@clisp.org>
72068         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
72069         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
72070         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
72072 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
72074         filevercmp: new module
72075         * lib/filevercmp.h: New function filevercmp comparing version strings.
72076         * lib/filevercmp.c: Implementation of filevercmp function.
72077         * modules/filevercmp: Module metadata.
72078         * tests/test-filevercmp.c: Unit test for new module.
72079         * modules/filevercmp-tests: Unit test metadata.
72080         * MODULES.html.sh: Add filevercmp module.
72082 2008-10-03  Bruno Haible  <bruno@clisp.org>
72084         * lib/c-ctype.h: Add comment.
72085         Reported by Jim Meyering.
72087 2008-10-02  Bruno Haible  <bruno@clisp.org>
72089         * modules/posix_spawn-internal (Depends-on): Add 'open'.
72091 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
72093         * build-aux/bootstrap: Allow renaming bootstrap, and change the
72094         name of bootstrap.conf accordingly.
72096 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
72098         * build-aux/bootstrap: Install git-merge-changelog configuration
72099         items into .gitconfig if needed.
72101 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
72103         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
72104         git repository, and initialize/update it accordingly.
72106 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
72108         * modules/fsync-tests: New file.
72109         * tests/test-fsync.c: New file.
72111         New module 'fsync'.
72112         * lib/fsync.c: New file.
72113         * m4/fsync.m4: New file.
72114         * modules/fsync: New file.
72115         * lib/unistd.in.h (fsync): New declaration.
72116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
72117         GNULIB_FSYNC and HAVE_FSYNC.
72118         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
72119         * MODULES.html.sh (posix_functions): Add fsync.
72120         * doc/posix-functions/fsync.texi: Mention the new module.
72122 2008-10-02  Jim Meyering  <meyering@redhat.com>
72124         fts.c: sync with similar code from coreutils' remove.c
72125         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
72126         Guard also with "#if defined __linux__", since for now at least,
72127         this code is Linux-kernel-specific.
72129 2008-10-02  Jim Meyering  <meyering@redhat.com>
72131         fts: bug fixes
72132         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
72133         Include <sys/vfs.h>, not <sys/statfs.h>.
72135         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
72136         Include <sys/vfs.h>, not <sys/statfs.h>.
72138 2008-10-01  Bruno Haible  <bruno@clisp.org>
72140         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
72141         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
72142         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
72143         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
72144         * doc/posix-functions/posix_spawnp.texi: Likewise.
72145         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
72146         whether posix_spawn actually works.
72147         * m4/pipe.m4 (gl_PIPE): Likewise.
72148         * modules/execute (Files): Add m4/posix_spawn.m4.
72149         * modules/pipe (Files): Add m4/posix_spawn.m4.
72150         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
72152 2008-10-01  Jim Meyering  <meyering@redhat.com>
72154         remove trailing spaces
72155         * NEWS: Likewise.
72156         * lib/poll.c (poll): Likewise.
72157         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
72158         * lib/winsock.c (rpl_close): Likewise.
72159         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
72160         * modules/yield: Likewise.
72161         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
72162         * tests/test-sys_select.c (connect_to_socket): Likewise.
72164         fts.c: adjust a new interface to be more generally useful
72165         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
72166         (fts_build): Adjust caller.
72168 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72170         * modules/cond-tests: New file.
72171         * tests/test-cond.c: New file.
72173 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72174             Bruno Haible  <bruno@clisp.org>
72176         * modules/cond (Dependencies): Add errno, time.
72177         * lib/glthread/cond.h: Include <time.h>.
72178         (gl_cond_define, gl_cond_define_initialized): Use the same definition
72179         across platforms.
72181 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72182             Bruno Haible  <bruno@clisp.org>
72184         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
72186 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72187             Bruno Haible  <bruno@clisp.org>
72189         * modules/tls-tests (Depends-on): Add thread, yield.
72190         (configure.ac): Remove all checks.
72191         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
72192         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
72193         gl_thread_self): Remove definitions. Include glthread/thread.h and
72194         glthread/yield.h instead.
72195         (test_tls): Pass an additional NULL argument to gl_thread_join.
72197 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72198             Bruno Haible  <bruno@clisp.org>
72200         * modules/lock-tests (Depends-on): Add thread, yield.
72201         (configure.ac): Remove all checks.
72202         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
72203         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
72204         gl_thread_self): Remove definitions. Include glthread/thread.h and
72205         glthread/yield.h instead.
72206         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
72207         additional NULL argument to gl_thread_join.
72209 2008-09-30  Bruno Haible  <bruno@clisp.org>
72211         Fix the Win32 implementation of the 'thread' module.
72212         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
72213         pointer type.
72214         (gl_thread_self): Invoke gl_thread_self_func.
72215         (gl_thread_self_func): New declaration.
72216         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
72217         (do_init_self_key, init_self_key): New functions.
72218         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
72219         Remove some fields.
72220         (running_threads, running_lock): Remove variables.
72221         (get_current_thread_handle): New function.
72222         (gl_thread_self_func, wrapper_func, glthread_create_func,
72223         glthread_join_func, gl_thread_exit_func): Largely rewritten and
72224         simplified.
72226 2008-09-30  Bruno Haible  <bruno@clisp.org>
72228         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
72229         files.
72231 2008-09-30  Jim Meyering  <meyering@redhat.com>
72233         fts.m4: correct the test for statfs.f_type
72234         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
72235         when checking for statfs.f_type.
72237 2008-09-15  Simon Josefsson  <simon@josefsson.org>
72239         tests: avoid some compiler warnings
72240         * tests/test-memchr.c (main): Pass NULL indirectly.
72241         * tests/test-getdate.c (main): Remove unused variable 'ret'.
72243 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
72245         getdate.y: disallow countable dayshifts like "4 yesterday ago"
72246         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
72247         exactly specified dayshifts.
72248         (dayshift): New rule.
72249         (rel): Add dayshift.
72250         (relative_time_table) [tomorrow, yesterday, today, now]:
72251         Use tDAY_SHIFT in place of tDAY_UNIT.
72252         * tests/test-getdate.c: Add tests for now-disallowed countable
72253         dayshifts, e.g., "4 yesterday ago".
72255 2008-09-29  Bruno Haible  <bruno@clisp.org>
72257         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
72258         * tests/test-posix_spawn1.in.sh: Renamed from
72259         tests/test-posix_spawn.in.sh.
72260         * tests/test-posix_spawn2.c: New file.
72261         * tests/test-posix_spawn2.in.sh: New file.
72262         * modules/posix_spawnp-tests (Files): Update.
72263         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
72265 2008-09-29  Bruno Haible  <bruno@clisp.org>
72267         Propagate effects of putenv/setenv/unsetenv to child processes.
72268         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
72269         * lib/pipe.c (create_pipe): Likewise.
72271 2008-09-29  Bruno Haible  <bruno@clisp.org>
72273         Enable use of shell scripts as executables in mingw.
72274         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
72275         run the program as a shell script.
72276         * lib/pipe.c (create_pipe): Likewise.
72277         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
72278         resulting array.
72280 2008-09-29  Eric Blake  <ebb9@byu.net>
72282         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
72284 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
72286         * doc/posix-functions/accept.texi: Update mingw problems.
72287         * doc/posix-functions/bind.texi: Update mingw problems.
72288         * doc/posix-functions/close.texi: Update mingw problems.
72289         * doc/posix-functions/connect.texi: Update mingw problems.
72290         * doc/posix-functions/getpeername.texi: Update mingw problems.
72291         * doc/posix-functions/getsockname.texi: Update mingw problems.
72292         * doc/posix-functions/getsockopt.texi: Update mingw problems.
72293         * doc/posix-functions/ioctl.texi: Update mingw problems.
72294         * doc/posix-functions/listen.texi: Update mingw problems.
72295         * doc/posix-functions/recv.texi: Update mingw problems.
72296         * doc/posix-functions/recvfrom.texi: Update mingw problems.
72297         * doc/posix-functions/select.texi: Update mingw problems.
72298         * doc/posix-functions/send.texi: Update mingw problems.
72299         * doc/posix-functions/sendto.texi: Update mingw problems.
72300         * doc/posix-functions/setsockopt.texi: Update mingw problems.
72301         * doc/posix-functions/socket.texi: Update mingw problems.
72303 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
72304             Bruno Haible  <bruno@clisp.org>
72306         * lib/sys_select.in.h: Include sys/time.h.
72307         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
72308         * modules/sys_select: Depend on sys_time.
72309         * tests/test-sys_select.c: Test that sys/select.h defines struct
72310         timeval fully.
72312 2008-09-29  Bruno Haible  <bruno@clisp.org>
72314         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
72315         * lib/sys_select.in.h: Likewise.
72317 2008-09-29  Bruno Haible  <bruno@clisp.org>
72319         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
72321 2008-09-29  Bruno Haible  <bruno@clisp.org>
72323         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
72324         Set LIBSOCKET instead of augmenting LIBS.
72325         * modules/sockets (Link): New section.
72326         * modules/sockets-tests (test_sockets_LDADD): New variable.
72327         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
72328         * modules/poll-tests (test_poll_LDADD): New variable.
72329         * NEWS: Document the change.
72331 2008-09-29  Bruno Haible  <bruno@clisp.org>
72333         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
72334         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
72335         ARPA_INET_H directly.
72336         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
72338 2008-09-28  Bruno Haible  <bruno@clisp.org>
72340         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
72341         from gl_HEADER_SYS_SOCKET.
72342         (gl_HEADER_SYS_SOCKET): Invoke it.
72343         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72345 2008-09-28  Bruno Haible  <bruno@clisp.org>
72347         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
72348         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
72349         Needed on OSF/1 4.0.
72351 2008-09-28  Bruno Haible  <bruno@clisp.org>
72353         Override open more carefully.
72354         * lib/open.c (orig_open): New function.
72355         (rpl_open): Use orig_open instead of open.
72356         * lib/fcntl.in.h: Add special invocation convention.
72357         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
72358         (gl_FUNC_OPEN): Invoke it.
72360         Override freopen more carefully.
72361         * lib/freopen.c (orig_freopen): New function.
72362         (rpl_freopen): Use orig_freopen instead of freopen.
72363         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
72364         (gl_FUNC_FREOPEN): Invoke it.
72366         Override fopen more carefully.
72367         * lib/fopen.c (orig_fopen): New function.
72368         (rpl_fopen): Use orig_fopen instead of fopen.
72369         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
72370         (gl_FUNC_FOPEN): Invoke it.
72371         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
72373 2008-09-28  Bruno Haible  <bruno@clisp.org>
72375         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
72376         SIGPIPE.
72378 2008-09-28  Bruno Haible  <bruno@clisp.org>
72380         * tests/test-sigaction.c (handler, main): Disable the check whether
72381         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
72382         glibc systems with LinuxThreads.
72384 2008-09-28  Bruno Haible  <bruno@clisp.org>
72386         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
72388         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
72389         with AIX xlc.
72390         * lib/fcntl.in.h (open): Likewise.
72391         Reported by Rainer Tammer <tammer@tammer.net>.
72393 2008-09-28  Bruno Haible  <bruno@clisp.org>
72395         * modules/posix_spawnp-tests: New file.
72396         * tests/test-posix_spawn.c: New file.
72397         * tests/test-posix_spawn.in.sh: New file.
72399         New module 'posix_spawnp'.
72400         * modules/posix_spawnp: New file.
72401         * lib/spawnp.c: New file, from GNU libc with modifications.
72402         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
72404         New module 'posix_spawn'.
72405         * modules/posix_spawn: New file.
72406         * lib/spawn.c: New file, from GNU libc with modifications.
72407         * doc/posix-functions/posix_spawn.texi: Mention the new module.
72409         New module 'posix_spawnattr_destroy'.
72410         * modules/posix_spawnattr_destroy: New file.
72411         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
72412         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
72413         module.
72415         New module 'posix_spawnattr_setsigmask'.
72416         * modules/posix_spawnattr_setsigmask: New file.
72417         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
72418         modifications.
72419         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
72420         new module.
72422         New module 'posix_spawnattr_getsigmask'.
72423         * modules/posix_spawnattr_getsigmask: New file.
72424         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
72425         modifications.
72426         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
72427         new module.
72429         New module 'posix_spawnattr_setsigdefault'.
72430         * modules/posix_spawnattr_setsigdefault: New file.
72431         * lib/spawnattr_setdefault.c: New file, from GNU libc with
72432         modifications.
72433         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
72434         new module.
72436         New module 'posix_spawnattr_getsigdefault'.
72437         * modules/posix_spawnattr_getsigdefault: New file.
72438         * lib/spawnattr_getdefault.c: New file, from GNU libc with
72439         modifications.
72440         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
72441         new module.
72443         New module 'posix_spawnattr_setschedpolicy'.
72444         * modules/posix_spawnattr_setschedpolicy: New file.
72445         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
72446         modifications.
72447         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
72448         new module.
72450         New module 'posix_spawnattr_getschedpolicy'.
72451         * modules/posix_spawnattr_getschedpolicy: New file.
72452         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
72453         modifications.
72454         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
72455         new module.
72457         New module 'posix_spawnattr_setschedparam'.
72458         * modules/posix_spawnattr_setschedparam: New file.
72459         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
72460         modifications.
72461         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
72462         new module.
72464         New module 'posix_spawnattr_getschedparam'.
72465         * modules/posix_spawnattr_getschedparam: New file.
72466         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
72467         modifications.
72468         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
72469         new module.
72471         New module 'posix_spawnattr_setpgroup'.
72472         * modules/posix_spawnattr_setpgroup: New file.
72473         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
72474         modifications.
72475         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
72476         module.
72478         New module 'posix_spawnattr_getpgroup'.
72479         * modules/posix_spawnattr_getpgroup: New file.
72480         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
72481         modifications.
72482         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
72483         module.
72485         New module 'posix_spawnattr_setflags'.
72486         * modules/posix_spawnattr_setflags: New file.
72487         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
72488         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
72489         module.
72491         New module 'posix_spawnattr_getflags'.
72492         * modules/posix_spawnattr_getflags: New file.
72493         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
72494         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
72495         module.
72497         New module 'posix_spawnattr_init'.
72498         * modules/posix_spawnattr_init: New file.
72499         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
72500         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
72501         module.
72503         New module 'posix_spawn_file_actions_destroy'.
72504         * modules/posix_spawn_file_actions_destroy: New file.
72505         * lib/spawn_faction_destroy.c: New file, from GNU libc with
72506         modifications.
72507         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
72508         the new module.
72510         New module 'posix_spawn_file_actions_addopen'.
72511         * modules/posix_spawn_file_actions_addopen: New file.
72512         * lib/spawn_faction_addopen.c: New file, from GNU libc with
72513         modifications.
72514         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
72515         the new module.
72517         New module 'posix_spawn_file_actions_adddup2'.
72518         * modules/posix_spawn_file_actions_adddup2: New file.
72519         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
72520         modifications.
72521         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
72522         the new module.
72524         New module 'posix_spawn_file_actions_addclose'.
72525         * modules/posix_spawn_file_actions_addclose: New file.
72526         * lib/spawn_faction_addclose.c: New file, from GNU libc with
72527         modifications.
72528         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
72529         the new module.
72531         New module 'posix_spawn_file_actions_init'.
72532         * modules/posix_spawn_file_actions_init: New file.
72533         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
72534         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
72535         new module.
72537         New module 'posix_spawn-internal'.
72538         * modules/posix_spawn-internal: New file.
72539         * lib/spawn_int.h: New file, from GNU libc with modifications.
72540         * lib/spawni.c: New file, from GNU libc with modifications.
72541         * m4/posix_spawn.m4: New file.
72543         New module 'spawn'.
72544         * modules/spawn: New file.
72545         * lib/spawn.in.h: New file, from GNU libc with modifications.
72546         * m4/spawn_h.m4: New file.
72547         * doc/posix-headers/spawn.texi: Mention the new module.
72549 2008-09-28  Bruno Haible  <bruno@clisp.org>
72551         * modules/sched-tests: New file.
72552         * tests/test-sched.c: New file.
72554         New module 'sched'.
72555         * modules/sched: New file.
72556         * lib/sched.in.h: New file.
72557         * m4/sched_h.m4: New file.
72558         * doc/posix-headers/sched.texi: Mention the new module.
72560 2008-09-27  Eric Blake  <ebb9@byu.net>
72562         Fix previous patch, and tweak references to $0.
72563         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
72564         (func_version, func_gnulib_dir): Don't call this program
72565         gnulib-tool.
72566         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
72567         with using $0 in function.
72568         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
72569         (func_fatal_error): Reuse the name the user invoked us with.
72571 2008-09-27  Bruno Haible  <bruno@clisp.org>
72573         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
72574         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
72575         (gl_ICONV_H): Not here.
72576         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
72577         instead of assigning ICONV_H directly.
72579         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
72580         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
72581         WCHAR_H directly.
72583 2008-09-27  Bruno Haible  <bruno@clisp.org>
72585         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
72586         * modules/arpa_inet (Depends-on): Add link-warning.
72587         (Makefile.am): Insert the definition of GL_LINK-WARNING.
72588         * modules/unistd (Makefile.am): Likewise.
72590 2008-09-26  Bruno Haible  <bruno@clisp.org>
72592         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
72593         variables.
72594         (func_version): Essentially copied from gnulib-tool.
72595         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
72596         func_readlink): Copied from gnulib-tool.
72598 2008-09-26  Bruno Haible  <bruno@clisp.org>
72600         * gnulib-tool (func_version): Change directory to $gnulib_dir before
72601         invoking git-version-gen.
72603 2008-09-26  Bruno Haible  <bruno@clisp.org>
72605         * posix-modules: Update to directory names changed on 2008-01-19.
72606         Remove commas in output before splitting into words. No more need to
72607         avoid 'ftruncate' since 2007-02-19.
72609 2008-09-26  Bruno Haible  <bruno@clisp.org>
72611         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
72613 2008-09-26  Bruno Haible  <bruno@clisp.org>
72615         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
72616         * modules/fwriteerror (Depends-on): Add errno.
72618 2008-09-26  Bruno Haible  <bruno@clisp.org>
72620         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
72621         * tests/test-vc-list-files-cvs.sh: Likewise.
72623 2008-09-26  Bruno Haible  <bruno@clisp.org>
72625         * doc/posix-headers/sys_resource.texi: Reorder items.
72627 2008-09-26  Jim Meyering  <meyering@redhat.com>
72629         fts: tweak inode comparison function
72630         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
72631         inode numbers, as documented.
72633         fts: sort dirent entries on inode number before traversing
72634         This avoids a quadratic, seek-related performance penalty when
72635         operating on a directory containing many entries (measurable at 10k;
72636         3.5 hours at 2 million entries with a cold cache) on certain types
72637         of file systems, including ext3 and ext4, but not tmpfs.
72638         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
72639         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
72640         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
72641         (fs_handles_readdir_ordered_dirents_efficiently): New function.
72642         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
72643         (fts_build): Set the stat.st_ino member from D_INO.
72644         If it is likely to be useful, sort dirent entries on inode number.
72646         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
72647         and the struct statfs.f_type member.
72648         * modules/fts (Depends-on): Add d-ino.
72650 2008-09-26  Bruno Haible  <bruno@clisp.org>
72652         * modules/sigpipe-die (Depends-on): Add sigpipe.
72654         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
72655         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
72656         and GNULIB_STDIO_H_SIGPIPE are set.
72657         * lib/stdio-write.c: New file.
72658         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
72659         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
72660         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
72661         REPLACE_STDIO_WRITE_FUNCS.
72662         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
72663         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
72664         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
72665         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
72666         * modules/stdio (Files): Add lib/stdio-write.c.
72667         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
72668         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
72669         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
72670         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
72671         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
72672         REPLACE_FPRINTF_POSIX.
72673         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
72674         REPLACE_PRINTF_POSIX.
72675         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
72676         REPLACE_VFPRINTF_POSIX.
72677         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
72678         REPLACE_VPRINTF_POSIX.
72679         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
72680         SIGPIPE issue.
72681         * doc/posix-functions/fputc.texi: Likewise.
72682         * doc/posix-functions/fputs.texi: Likewise.
72683         * doc/posix-functions/fwrite.texi: Likewise.
72684         * doc/posix-functions/printf.texi: Likewise.
72685         * doc/posix-functions/putc.texi: Likewise.
72686         * doc/posix-functions/putchar.texi: Likewise.
72687         * doc/posix-functions/puts.texi: Likewise.
72688         * doc/posix-functions/vfprintf.texi: Likewise.
72689         * doc/posix-functions/vprintf.texi: Likewise.
72691         * modules/safe-write (Depends-on): Add write.
72693         * modules/sigpipe-tests: New file.
72694         * tests/test-sigpipe.c: New file.
72695         * tests/test-sigpipe.sh: New file.
72697         * modules/write: New file.
72698         * lib/unistd.in.h: Include <sys/types.h>.
72699         (write): New declaration.
72700         * lib/write.c: New file.
72701         * m4/write.m4: New file.
72702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72703         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
72704         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
72705         GNULIB_WRITE, REPLACE_WRITE.
72706         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
72707         and the SIGPIPE issue.
72709         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
72710         (raise): New declaration.
72711         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
72712         (ext_signal): New function.
72713         (rpl_raise): New function.
72714         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
72715         GNULIB_SIGNAL_H_SIGPIPE.
72716         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
72717         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
72719         * modules/sigpipe: New file.
72720         * m4/sigpipe.m4: New file.
72722 2008-09-25  Derek Price  <derek@ximbiot.com>
72723             Bruno Haible  <bruno@clisp.org>
72725         * gnulib-tool (func_import): Report all license incompatibilities, not
72726         just the first one.
72728 2008-09-25  Bruno Haible  <bruno@clisp.org>
72730         * gnulib-tool (func_import): When computing the edits, consider not
72731         only the Makefile.ams that exist but also those that will be generated.
72733 2008-09-25  Simon Josefsson  <simon@josefsson.org>
72735         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
72736         fixes gnulib-tool --test warning about duplicate dependency.
72738 2008-09-25  Bruno Haible  <bruno@clisp.org>
72740         * gnulib-tool: Don't ask the user to perform edits in the generated
72741         Makefile.ams.
72742         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
72743         apply to the Makefile.am being generated.
72744         (func_emit_tests_Makefile_am): Execute edits that apply to the
72745         Makefile.am being generated.
72746         (func_import): Setup list of Makefile.am edits before emitting the
72747         Makefile.ams, not at the end.
72748         (func_create_testdir): Update.
72749         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72751 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72753         * gnulib-tool (func_import): Store the --tests-base option in the
72754         comment in gnulib-cache.m4.
72756 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
72758         * NEWS: Document increased portability that sys_select now provides.
72760         * lib/sys_select.in.h: Install select wrapper.
72761         * lib/sys_socket.in.h: Use more descriptive name when there is no
72762         select wrapper.
72763         * lib/winsock-select.c: New.
72764         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
72765         Require gl_HEADER_SYS_SOCKET.
72766         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
72767         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
72768         * tests/test-sys_select.c: Add functional tests.
72770 2008-09-24  Eric Blake  <ebb9@byu.net>
72772         open, fopen: close fd leak in last patch
72773         * lib/open.c (rpl_open): Close fd before returning error.
72774         * lib/fopen.c (rpl_fopen): Close fd before returning error.
72775         * doc/posix-functions/open.texi (open): Document that Irix also
72776         has the bug.
72777         * doc/posix-functions/fopen.texi (fopen): Likewise.
72778         Reported by Paolo Bonzini.
72780 2008-09-24  Bruno Haible  <bruno@clisp.org>
72782         Ensure that a filename ending in a slash cannot be used to access a
72783         non-directory.
72784         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
72785         to check whether it's really a directory.
72786         * lib/fopen.c: Include fcntl.h, unistd.h.
72787         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
72788         and fdopen().
72789         * modules/fopen (Depends-on): Add unistd.
72790         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
72791         * tests/test-fopen.c (main): Likewise.
72792         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
72793         * doc/posix-functions/fopen.texi: Likewise.
72794         Reported by Eric Blake.
72796 2008-09-23  Eric Blake  <ebb9@byu.net>
72798         c-stack: avoid compiler optimizations when provoking overflow
72799         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
72800         recursion harder to optimize, to ensure a stack overflow occurs.
72801         * tests/test-c-stack.c (recurse): Likewise.
72802         Borrowed from libsigsegv.
72804         c-stack: work around Irix sigaltstack bug
72805         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
72806         whether sigaltstack uses wrong end of stack_t (copied in part from
72807         libsigsegv).
72808         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
72809         Irix bug, without requiring an over-allocation.
72810         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
72811         bug.
72813         fopen: document mingw bug on directories
72814         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
72815         not allowing a stream visiting a directory, even though reading
72816         from such a stream is not portable.
72818 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
72820         * lib/poll.c: Rewrite.
72821         * modules/poll: Depend on alloca.
72823 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
72825         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
72826         instead define prototypes for a full set of wrappers.  Ensure
72827         that Cygwin does not use the compatibility code, which is only
72828         for MinGW.
72829         * lib/winsock.c: New.
72830         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
72831         * modules/sys_socket: Add lib/winsock.c.
72833         * modules/poll-tests: Add errno and perror.
72834         * tests/test-poll.c: Use ioctl, not ioctlsocket.
72836 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
72838         * tests/test-poll.c: Downgrade minimum needed Winsock version.
72840 2008-09-23  Bruno Haible  <bruno@clisp.org>
72842         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
72843         * doc/glibc-functions/*: Likewise.
72845 2008-09-23  Simon Josefsson  <simon@josefsson.org>
72847         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
72848         success.
72850 2008-09-22  Eric Blake  <ebb9@byu.net>
72851             Bruno Haible  <bruno@clisp.org>
72853         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
72854         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
72855         supply %A but mishandle pseudo-NaN.
72856         Reported by Simon Josefsson.
72858 2008-09-21  Bruno Haible  <bruno@clisp.org>
72860         * tests/test-lock.c (main): Tweak skip message.
72861         * tests/test-tls.c (main): Likewise.
72863 2008-09-21  Bruno Haible  <bruno@clisp.org>
72865         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
72866         whether 'struct sigaction' has sa_sigaction here...
72867         (gl_PREREQ_SIG_HANDLER_H): ... not here.
72868         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
72870 2008-09-21  Bruno Haible  <bruno@clisp.org>
72872         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
72873         section.
72874         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
72875         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
72876         the new section.
72877         (Support for obsolete systems lacking POSIX:2001): New section.
72878         (String handling <string.h>): Move strdup to the new section.
72879         Suggested by Simon Josefsson and Paolo Bonzini.
72881 2008-09-21  Bruno Haible  <bruno@clisp.org>
72883         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
72884         exponents in %e and %g results on 'long double'. Needed for mingw's
72885         improved *printf functions.
72886         * tests/test-vasprintf-posix.c (test_function): Likewise.
72887         * tests/test-snprintf-posix.h (test_function): Likewise.
72888         * tests/test-sprintf-posix.h (test_function): Likewise.
72889         Reported by Eric Blake.
72891 2008-09-21  Bruno Haible  <bruno@clisp.org>
72893         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
72894         * tests/test-sprintf-posix.h (test_function): Likewise.
72896 2008-09-21  Bruno Haible  <bruno@clisp.org>
72898         * modules/getpass (Depends-on): Add strdup-posix.
72900         New module 'strdup-posix'.
72901         * modules/strdup-posix: New file.
72902         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
72903         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
72904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72905         REPLACE_STRDUP.
72906         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
72907         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
72908         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72909         strdup-posix.
72911         * modules/strdup (Depends-on): Remove malloc-posix.
72913 2008-09-20  Bruno Haible  <bruno@clisp.org>
72915         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
72916         Wildenhues.
72918 2008-09-20  Bruno Haible  <bruno@clisp.org>
72920         Ensure that wint_t gets defined on IRIX 5.3.
72921         * lib/wchar.in.h (wint_t): Define if not defined by the system.
72922         * lib/wctype.in.h (wint_t): Likewise.
72923         (__wctype_wint_t): Remove type.
72924         (isw*): Use wint_t instead of __wctype_wint_t.
72925         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
72926         * modules/wchar (Files): Add m4/wint_t.m4.
72927         (Makefile.am): Substitute HAVE_WINT_T.
72928         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
72929         * tests/test-wctype.c: Check that wint_t is defined.
72930         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
72931         * doc/posix-headers/wctype.texi: Likewise.
72932         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
72934 2008-09-18  Bruno Haible  <bruno@clisp.org>
72936         * gnulib-tool (func_exit): Update comment.
72938 2008-09-18  Simon Josefsson  <simon@josefsson.org>
72940         * modules/getaddrinfo (Depends-on): Remove strdup, this module
72941         assumes strdup exists and does not depend on strdup to return
72942         ENOMEM on out of memory conditions.
72944 2008-09-18  Bruno Haible  <bruno@clisp.org>
72946         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
72947         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
72948         digits for the exponent.
72950 2008-09-18  Jim Meyering  <meyering@redhat.com>
72951             Bruno Haible  <bruno@clisp.org>
72953         * lib/vasnprintf.c (decimal_point_char): Define also if
72954         NEED_PRINTF_INFINITE_LONG_DOUBLE.
72956 2008-09-16  Bruno Haible  <bruno@clisp.org>
72957         and Eric Blake  <ebb9@byu.net>
72959         vasnprintf: support Irix 5.3
72960         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
72961         that mishandle long double infinity.
72962         Reported by Tom G. Christensen.
72964 2008-09-16  Bruno Haible  <bruno@clisp.org>
72966         * doc/glibc-functions/scandir.texi: Mention the function is missing on
72967         Solaris 9.
72968         * doc/glibc-functions/alphasort.texi: Likewise.
72969         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
72971 2008-09-16  Jim Meyering  <meyering@redhat.com>
72973         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
72974         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
72975         a umask modification leak out of a subshell.  Otherwise, the
72976         opensolaris /bin/sh would be accepted and thus cause unwarranted
72977         failures in the coreutils test suite.
72979 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
72981         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
72982         to succeed.
72984 2008-09-16  Jim Meyering  <meyering@redhat.com>
72986         avoid spurious test failure when library is built without ACL support
72987         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
72988         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
72989         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
72990         * tests/test-copy-acl.sh: Likewise.
72992 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72994         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
72995         based on character occurrence counts.
72997 2008-09-15  Eric Blake  <ebb9@byu.net>
72999         tests: avoid some compiler warnings
73000         * tests/test-memchr.c (main): Pass NULL indirectly.
73001         * tests/test-closein.c (main): Avoid unused variable.
73003 2008-09-15  Bruno Haible  <bruno@clisp.org>
73005         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
73006         are missing on OpenBSD 4.0 individually.
73007         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73009 2008-09-15  Bruno Haible  <bruno@clisp.org>
73011         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
73012         * doc/posix-functions/strerror.texi: Mention also Cygwin.
73013         * doc/posix-functions/perror.texi: Likewise.
73014         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
73015         is missing.
73016         Reported by Eric Blake.
73018         * lib/errno.in.h: Use replacement values >= 2000.
73019         Reported by Eric Blake.
73021 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73023         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
73024         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
73025         limit.
73026         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
73027         compareseq was aborted.
73029 2008-09-14  Bruno Haible  <bruno@clisp.org>
73031         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
73032         yvec_edit_count.
73033         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
73034         (fstrcmp_bounded): Simplify result computation accordingly.
73036 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73038         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
73039         (fstrcmp): Define in terms of fstrcmp_bounded.
73040         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
73041         lower_bound argument.
73042         Return quickly if the result is certainly < lower_bound.
73043         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
73045 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73047         * lib/diffseq.h (EARLY_ABORT): New macro.
73048         (compareseq): Change return type to bool. Return true when EARLY_ABORT
73049         evaluates to true.
73051 2008-09-14  Bruno Haible  <bruno@clisp.org>
73053         * modules/perror-tests: New file.
73054         * tests/test-perror.sh: New file.
73055         * tests/test-perror.c: New file.
73057         New module 'perror'.
73058         * lib/stdio.in.h (perror): New declaration.
73059         * lib/perror.c: New file.
73060         * m4/perror.m4: New file.
73061         * modules/perror: New file.
73062         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
73063         * doc/posix-functions/perror.texi: Mention the perror module.
73064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
73065         REPLACE_PERROR.
73066         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
73067         REPLACE_PERROR.
73069 2008-09-14  Bruno Haible  <bruno@clisp.org>
73071         * modules/stdio (Makefile.am): Reorder to match the order in
73072         lib/stdio.in.h.
73073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
73075 2008-09-13  Bruno Haible  <bruno@clisp.org>
73077         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
73079 2008-09-13  Bruno Haible  <bruno@clisp.org>
73081         Extend strerror to cover the added errno values.
73082         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
73083         (rpl_strerror): Provide error messages for the added errno values and
73084         for the WSA* values.
73085         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
73086         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
73087         strerror.
73088         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
73089         * modules/strerror (Depends-on): Add errno.
73090         * doc/posix-functions/strerror.texi: Document the change.
73091         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
73092         and EOVERFLOW.
73094 2008-09-13  Bruno Haible  <bruno@clisp.org>
73096         * modules/EOVERFLOW: Remove file.
73097         * m4/eoverflow.m4: Remove file.
73098         * modules/EOVERFLOW-tests: Remove file.
73099         * tests/test-EOVERFLOW.c: Remove file.
73100         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
73101         * modules/ftell (Depends-on): Likewise.
73102         * modules/getdelim (Depends-on): Likewise.
73103         * modules/getugroups (Depends-on): Likewise.
73104         * modules/poll (Depends-on): Likewise.
73105         * modules/snprintf (Depends-on): Likewise.
73106         * modules/sprintf-posix (Depends-on): Likewise.
73107         * modules/vasnprintf (Depends-on): Likewise.
73108         * modules/vasprintf (Depends-on): Likewise.
73109         * modules/vfprintf-posix (Depends-on): Likewise.
73110         * modules/vsnprintf (Depends-on): Likewise.
73111         * modules/vsprintf-posix (Depends-on): Likewise.
73112         * modules/xvasprintf (Depends-on): Likewise.
73113         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
73114         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
73115         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
73116         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
73117         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
73118         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
73119         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
73120         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
73121         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
73122         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
73123         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
73124         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
73125         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
73126         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
73127         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
73128         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
73129         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
73130         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
73131         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
73132         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
73133         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
73134         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
73135         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
73136         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
73137         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
73138         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
73139         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
73140         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
73141         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
73142         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
73143         * MODULES.html.sh: Remove EOVERFLOW.
73144         * NEWS: Mention the change.
73146 2008-09-13  Bruno Haible  <bruno@clisp.org>
73148         * modules/errno-tests: New file.
73149         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
73151         * lib/errno.in.h: New file.
73152         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
73153         * modules/errno: New file.
73154         * doc/posix-headers/errno.texi: Update documentation.
73155         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
73157 2008-09-13  Bruno Haible  <bruno@clisp.org>
73159         * tests/test-poll.c: Use #if for native Windows, rather than testing
73160         __MSVCRT__.
73162 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73163             Bruno Haible  <bruno@clisp.org>
73165         * lib/glob.c: Don't include <pwd.h> on native Windows.
73166         (WINDOWS32): New macro.
73167         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
73169 2008-09-13  Bruno Haible  <bruno@clisp.org>
73171         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
73172         (ETIMEDOUT): Remove macro.
73173         (glthread_cond_timedwait_multithreaded): New declaration.
73174         (glthread_cond_timedwait): Use it.
73175         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
73176         (glthread_cond_timedwait_multithreaded): New function.
73178 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
73180         * modules/poll-tests: Do not check for io.h.
73181         * tests/test-poll.c: Check for __MSVCRT__ instead.
73183 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
73185         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
73186         * modules/poll-tests: Add inet_pton, stdbool, sockets.
73187         * tests/test-poll.c: Use them.  Use _pipe on Windows.
73189 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
73191         * modules/poll-tests: New.
73192         * tests/test-poll.c: New.
73194 2008-09-12  Eric Blake  <ebb9@byu.net>
73196         frexp: test for NetBSD failure on -0.0
73197         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
73198         not all, bugs from NetBSD 3.0 have been fixed.
73199         * doc/posix-functions/frexp.texi (frexp): Document bug.
73200         Reported by Thomas Klausner.
73202         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
73203         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
73204         literal -0.0.
73205         Reported by Jonathan C. Patschke <jp@centtech.com>.
73207 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73209         * lib/glthread/cond.h: Use dummy implementation also if
73210         USE_WIN32_THREADS.
73212 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73214         * modules/fnmatch-posix (License): Change to LGPLv2+.
73215         * modules/fnmatch-gnu (License): Likewise.
73217 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73219         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
73221 2008-09-11  Jim Meyering  <meyering@redhat.com>
73223         * users.txt: Add gtk-vnc.
73225 2008-09-08  Simon Josefsson  <simon@josefsson.org>
73227         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
73228         rotate amounts.
73230         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
73231         required for 16-bit and 8-bit rotates.
73232         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
73233         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
73234         UINT8_MAX instead of hard-coded constants.
73235         Suggested by Paul Eggert.
73237 2008-09-07  Bruno Haible  <bruno@clisp.org>
73239         * tests/test-striconveh.c (main): Check behaviour when converting from
73240         UTF-7.
73242         Make striconveh work better with stateful encodings.
73243         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
73244         that iconv does not increment the inptr when returning -1/EINVAL.
73246 2008-09-07  Bruno Haible  <bruno@clisp.org>
73248         * build-aux/config.rpath: Update according to libtool-2.2.6.
73249         * build-aux/config.libpath: Likewise.
73251 2008-09-06  Bruno Haible  <bruno@clisp.org>
73253         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
73254         * lib/freadptr.c (freadptr): Likewise.
73255         * lib/freadseek.c (freadptrinc): Likewise.
73256         Reported by Simon Josefsson.
73258 2008-09-06  Bruno Haible  <bruno@clisp.org>
73260         * modules/freadptr (License): Change to LGPLv2+.
73261         * modules/freadseek (License): Likewise.
73262         Suggested by Eric Blake.
73264         * modules/memchr2 (License): Change to LGPLv2+.
73265         Approved by Eric Blake.
73267 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73268             Bruno Haible  <bruno@clisp.org>
73270         Make gnulib-tool work with native 'sed' on AIX.
73271         * gnulib-tool (sed_noop): New variable.
73272         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
73273         func_add_or_update, func_create_testdir): Use it to initialize sed
73274         script variables.
73275         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73277 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
73278             Bruno Haible  <bruno@clisp.org>
73280         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
73281         also works after #include directives.
73283 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
73285         getdate.y: reject an out-of-range timezone value
73286         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
73287         the range [-24...+24].  When specified with only one or two digits,
73288         * tests/test-getdate.c: Tests for the fix.
73289         * doc/getdate.texi: Document this change.
73291 2008-09-03  Bruno Haible  <bruno@clisp.org>
73293         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
73295 2008-09-02  Simon Josefsson  <simon@josefsson.org>
73297         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
73298         <bruce.korb@gmail.com> with ideas from Ben Pfaff
73299         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
73300         Blake <ebb9@byu.net>.
73302         * tests/test-bitrotate.c: Add more test vectors.
73304 2008-09-02  Eric Blake  <ebb9@byu.net>
73306         vasnprintf-posix: handle large precision via %.*d
73307         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
73308         when handling it ourselves.
73309         * tests/test-vasnprintf-posix.c (test_function): Add test.
73310         * tests/test-snprintf-posix.h (test_function): Likewise.
73311         * tests/test-sprintf-posix.h (test_function): Likewise.
73312         * tests/test-vasprintf-posix.c (test_function): Likewise.
73313         Reported by Alain Guibert.
73315 2008-09-01  Eric Blake  <ebb9@byu.net>
73317         c-stack: make configure-time check more robust
73318         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
73319         successful sigaction call.
73320         Reported by Tom G. Christensen.
73322 2008-09-01  Bruno Haible  <bruno@clisp.org>
73324         New module 'findprog-lgpl'.
73325         * modules/findprog-lgpl: New file.
73326         * lib/findprog-lgpl.c: New file.
73327         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
73328         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
73329         to decide whether to use strdup or xstrdup, concatenated_filename or
73330         xconcatenated_filename.
73332 2008-09-01  Bruno Haible  <bruno@clisp.org>
73334         Split module 'concat-filename' into 'concat-filename' (LGPL) and
73335         'xconcat-filename' (GPL).
73336         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
73337         (License): Change to LGPLv2+.
73338         * modules/xconcat-filename: New file.
73339         * lib/concat-filename.h (concatenated_filename): Change specification.
73340         (xconcatenated_filename): New declaration.
73341         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
73342         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
73343         memory situations.
73344         * lib/xconcat-filename.c: New file.
73345         * NEWS: Mention the change.
73346         * lib/findprog.c: Include concat-filename.h, not filename.h.
73347         (find_in_path): Use xconcatenated_filename instead of
73348         concatenated_filename.
73349         * lib/javacomp.c: Include concat-filename.h, not filename.h.
73350         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73351         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73352         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73353         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
73354         instead of concatenated_filename.
73355         * lib/javaexec.c: Include concat-filename.h, not filename.h.
73356         (execute_java_class): Use xconcatenated_filename instead of
73357         concatenated_filename.
73358         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
73359         * modules/javacomp (Depends-on): Likewise.
73360         * modules/javaexec (Depends-on): Likewise.
73362 2008-09-01  Bruno Haible  <bruno@clisp.org>
73364         Split module 'filename' into 'filename' and 'concat-filename'.
73365         * modules/filename: Keep only lib/filename.h.
73366         (License): Change to LGPLv2+.
73367         * modules/concat-filename: New file, extracted from modules/filename.
73368         * lib/filename.h (concatenated_filename): Remove declaration.
73369         * lib/concat-filename.h: New file, extracted from lib/filename.h.
73370         * lib/concat-filename.c: Include concat-filename.h.
73371         * NEWS: Mention the change.
73373 2008-09-01  Simon Josefsson  <simon@josefsson.org>
73375         * lib/bitrotate.h (rotl8, rotr8): Add.
73377         * modules/bitrotate (configure.ac): Need
73378         AC_REQUIRE([AC_C_INLINE]).
73379         (Description): Mention stdint.h.  Reported by Bruno Haible
73380         <bruno@clisp.org>.
73382         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
73383         Paolo Bonzini <bonzini@gnu.org>.
73385 2008-08-31  Bruno Haible  <bruno@clisp.org>
73387         Assume Solaris specific bi-arch conventions on Solaris systems.
73388         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
73389         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
73390         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
73391         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
73392         like acl_libdirstem.
73393         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
73394         acl_libdirstem.
73395         * NEWS: Mention the change.
73396         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
73398 2008-08-31  Jim Meyering  <meyering@redhat.com>
73400         * lib/strftime.h: Add comments describing the two added arguments.
73402         remove duplicate #include directives
73403         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
73404         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
73406 2008-08-31  Bruno Haible  <bruno@clisp.org>
73408         New module 'sigpipe-die'.
73409         * modules/sigpipe-die: New file.
73410         * lib/sigpipe-die.h: New file.
73411         * lib/sigpipe-die.c: New file.
73412         * MODULES.html.sh (Signal handling): Add sigpipe-die.
73414 2008-08-31  Bruno Haible  <bruno@clisp.org>
73416         Don't override previously installed signal handlers.
73417         * lib/fatal-signal.c (saved_sigactions): New variable.
73418         (uninstall_handlers): Reset the signal to the saved handler, not
73419         to SIG_DFL (except when ignored).
73420         (install_handlers): Save the previous handlers.
73422 2008-08-30  Bruno Haible  <bruno@clisp.org>
73424         * gnulib-tool (func_reset_sigpipe): New function.
73425         (func_get_automake_snippet, func_modules_transitive_closure,
73426         func_import): Invoke it before a join command that reads from stdin,
73427         to avoid "echo: write error: Broken pipe" error messages on stderr.
73428         Reported by Sam Steingold <sds@gnu.org>.
73430 2008-08-30  Bruno Haible  <bruno@clisp.org>
73432         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
73433         Code copied from m4/open.m4.
73434         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
73435         access and the filename ends in a slash. Code copied from lib/open.c.
73436         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
73437         * tests/test-fopen.c (main): Check against bug with trailing slash.
73439 2008-08-29  Bruno Haible  <bruno@clisp.org>
73441         Avoid some "gcc -pedantic" warnings.
73442         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
73443         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
73444         * lib/dirent.in.h: Likewise.
73445         * lib/fcntl.in.h: Likewise.
73446         * lib/float.in.h: Likewise.
73447         * lib/iconv.in.h: Likewise.
73448         * lib/inttypes.in.h: Likewise.
73449         * lib/locale.in.h: Likewise.
73450         * lib/math.in.h: Likewise.
73451         * lib/netinet_in.in.h: Likewise.
73452         * lib/search.in.h: Likewise.
73453         * lib/signal.in.h: Likewise.
73454         * lib/stdarg.in.h: Likewise.
73455         * lib/stdint.in.h: Likewise.
73456         * lib/stdio.in.h: Likewise.
73457         * lib/stdlib.in.h: Likewise.
73458         * lib/string.in.h: Likewise.
73459         * lib/strings.in.h: Likewise.
73460         * lib/sys_select.in.h: Likewise.
73461         * lib/sys_socket.in.h: Likewise.
73462         * lib/sys_stat.in.h: Likewise.
73463         * lib/sys_time.in.h: Likewise.
73464         * lib/sysexits.in.h: Likewise.
73465         * lib/time.in.h: Likewise.
73466         * lib/unistd.in.h: Likewise.
73467         * lib/wchar.in.h: Likewise.
73468         * lib/wctype.in.h: Likewise.
73469         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
73470         * modules/fchdir (Makefile.am): Likewise.
73471         * modules/fcntl (Makefile.am): Likewise.
73472         * modules/float (Makefile.am): Likewise.
73473         * modules/iconv_open (Makefile.am): Likewise.
73474         * modules/inttypes (Makefile.am): Likewise.
73475         * modules/locale (Makefile.am): Likewise.
73476         * modules/math (Makefile.am): Likewise.
73477         * modules/netinet_in (Makefile.am): Likewise.
73478         * modules/search (Makefile.am): Likewise.
73479         * modules/signal (Makefile.am): Likewise.
73480         * modules/stdarg (Makefile.am): Likewise.
73481         * modules/stdint (Makefile.am): Likewise.
73482         * modules/stdio (Makefile.am): Likewise.
73483         * modules/stdlib (Makefile.am): Likewise.
73484         * modules/string (Makefile.am): Likewise.
73485         * modules/strings (Makefile.am): Likewise.
73486         * modules/sys_select (Makefile.am): Likewise.
73487         * modules/sys_socket (Makefile.am): Likewise.
73488         * modules/sys_stat (Makefile.am): Likewise.
73489         * modules/sys_time (Makefile.am): Likewise.
73490         * modules/sysexits (Makefile.am): Likewise.
73491         * modules/time (Makefile.am): Likewise.
73492         * modules/unistd (Makefile.am): Likewise.
73493         * modules/wchar (Makefile.am): Likewise.
73494         * modules/wctype (Makefile.am): Likewise.
73495         Reported by Reuben Thomas <rrt@sc3d.org>.
73497 2008-08-29  Bruno Haible  <bruno@clisp.org>
73499         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
73500         any more.
73502 2008-08-29  Simon Josefsson  <simon@josefsson.org>
73504         * MODULES.html.sh (Misc): Add bitrotate.
73506         * modules/bitrotate: New file.
73508         * lib/bitrotate.h: New file.
73510         * modules/bitrotate-tests: New file.
73512         * tests/test-bitrotate.c: New file.
73514         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
73515         on the bitrotate module.
73517         * lib/arctwo.c: Use new bitrotate module.
73519 2008-08-29  Jim Meyering  <meyering@redhat.com>
73521         bootstrap: merge changes from coreutils
73522         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
73523         of copied files.  Remove a kludge, now that this is fixed.
73524         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
73525         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
73526         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
73528 2008-08-29  Bruno Haible  <bruno@clisp.org>
73530         * MODULES.html.sh: Remove --cvs-urls option.
73532 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
73534         maint.mk: adjust to file name change
73535         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
73537 2008-08-28  Jim Meyering  <meyering@redhat.com>
73539         * modules/getndelim2 (License): Relicense to LGPLv2+.
73540         Approved by Richard Stallman for the version of 1995, and by
73541         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
73543 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
73545         * lib/getdelim.c (flockfile, funlockfile): Make all of them
73546         dummy if one is not available.  Do not touch them if
73547         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
73548         (getc_maybe_unlocked): New.
73549         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
73551 2008-08-26  Eric Blake  <ebb9@byu.net>
73553         doc/INSTALL: resync from autoconf
73554         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
73555         (INSTALL_PRELUDE): Delete; this is done more efficiently by
73556         moving...
73557         * install.texi [!autoconf]: ...here.  Resync from autoconf.
73558         * INSTALL: Regenerate.
73559         * INSTALL.ISO: New file.
73560         * INSTALL.UTF-8: Likewise.
73562 2008-08-26  Jim Meyering  <meyering@redhat.com>
73564         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
73565         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
73566         these definitions conditional, so that they may be overridden, too.
73568 2008-08-26  Bruno Haible  <bruno@clisp.org>
73570         Generate INSTALL file variants with prettier quotes.
73571         * doc/Makefile (INSTALL_PRELUDE): New macro.
73572         (INSTALL): Use it.
73573         (INSTALL.ISO, INSTALL.UTF-8): New rules.
73575 2008-08-26  Bruno Haible  <bruno@clisp.org>
73577         Run makeinfo in an English locale.
73578         * doc/Makefile (MAKEINFO): New variable.
73580 2008-08-26  Bruno Haible  <bruno@clisp.org>
73582         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
73583         Suggested by Eric Blake.
73585 2008-08-25  Bruno Haible  <bruno@clisp.org>
73587         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
73589 2008-08-25  Eric Blake  <ebb9@byu.net>
73591         c-stack: test that stack overflow can be caught
73592         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
73593         that platform allows handling stack overflow; at least OS/2 EMX
73594         has sigaltstack, but crashes before transferring control to
73595         handler on stack overflow.
73596         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
73597         check for HAVE_STACK_OVERFLOW_HANDLING.
73598         Reported by Elbert Pol.
73600 2008-08-25  Bruno Haible  <bruno@clisp.org>
73602         * doc/posix-functions/strftime.texi: Fix description of strftime
73603         module.
73605 2008-08-24  Bruno Haible  <bruno@clisp.org>
73607         * tests/uniwidth/test-uc_width2.c: New file.
73608         * tests/uniwidth/test-uc_width2.sh: New file.
73609         * modules/uniwidth/width-tests (Files): Add the new files.
73610         (TESTS): Add uniwidth/test-uc_width2.sh.
73611         (TESTS_ENVIRONMENT): New variable.
73612         (check_PROGRAMS): Add test-uc_width2.
73613         (test_uc_width2_SOURCES): New variable.
73615         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
73616         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
73617         not 0x00AB.
73618         Reported by Alexander V. Lukyanov <lav@netis.ru>.
73620 2008-08-22  Eric Blake  <ebb9@byu.net>
73622         test-lock, test-tls: mention why a test is skipped
73623         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
73624         skipped.
73625         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
73627         count-one-bits: relax license
73628         * modules/count-one-bits (License): Relicense to LGPLv2+.
73629         Suggested by Ludovic Courtès, approved by Ben Pfaff.
73631 2008-08-22  Andreas Schwab  <schwab@suse.de>
73633         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
73634         Remove spurious space in assignment.
73636 2008-08-21  Simon Josefsson  <simon@josefsson.org>
73638         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
73639         Paul Eggert <eggert@CS.UCLA.EDU>.
73641 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
73643         * modules/gettext: Add m4/threadlib.m4.
73645 2008-08-19  Eric Blake  <ebb9@byu.net>
73647         test-c-stack: fix compilation failure on FreeBSD 5.0
73648         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
73649         headers before <sys/resource.h>.
73650         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
73651         the bug.
73652         Reported by Nelson H. F. Beebe.
73654         strverscmp: migrate from "strverscmp.h" to <string.h>
73655         * modules/string (Makefile.am): Add new hooks.
73656         * modules/strverscmp (Files): Remove strverscmp.h.
73657         (Depends-on): Add string.
73658         (configure.ac): Add indicator.
73659         (Include): Mention new header.
73660         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
73661         defaults.
73662         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
73663         results.
73664         * lib/strverscmp.h: Delete.
73665         * lib/string.in.h (strverscmp): Provide declaration, when needed.
73666         * tests/test-strverscmp.c (includes): Adjust client.
73667         * lib/check-version.c (includes): Likewise.
73668         * NEWS: Document the change.
73670         strverscmp: add unit test
73671         * modules/strverscmp-tests: New file.
73672         * tests/test-strverscmp.c: Likewise.
73674 2008-08-19  Simon Josefsson  <simon@josefsson.org>
73676         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
73677         regarding Windows crypto stuff, from Mono.
73679 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
73681         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
73682         if present, for intel RND.  Return error on failures.
73684 2008-08-18  Ben Pfaff  <blp@gnu.org>
73686         gitlog-to-changelog: give better diagnostic for failed pipe-open
73687         * build-aux/gitlog-to-changelog: Improve error message: suggest
73688         that the version of Git may be too old.
73690 2008-08-18  Simon Josefsson  <simon@josefsson.org>
73692         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
73693         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
73695 2008-08-18  Bruno Haible  <bruno@clisp.org>
73697         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
73698         pthread_in_use().
73700 2008-08-18  Bruno Haible  <bruno@clisp.org>
73702         * lib/glthread/threadlib.c: Include <pthread.h>.
73704 2008-08-18  Bruno Haible  <bruno@clisp.org>
73706         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
73707         glthread_recursive_lock_* macros.
73708         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
73709         Fix syntax error.
73711 2008-08-18  Bruno Haible  <bruno@clisp.org>
73713         * lib/glthread/thread.c: Avoid forcing a context switch right after
73714         thread creation.
73716 2008-08-17  Bruno Haible  <bruno@clisp.org>
73718         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
73719         * lib/glthread/thread.h: Provide Win32 specific implementation.
73720         * modules/thread (Files): Add lib/glthread/thread.c.
73721         (Depends-on): Add lock.
73722         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
73724 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73726         New module 'yield'.
73727         * modules/yield: New file.
73728         * lib/glthread/yield.h: New file.
73729         * m4/yield.m4: New file.
73730         * MODULES.html.sh (Multithreading): Add yield.
73732 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73734         New module 'thread'.
73735         * modules/thread: New file.
73736         * lib/glthread/thread.h: New file.
73737         * m4/thread.m4: New file.
73738         * MODULES.html.sh (Multithreading): Add thread.
73740 2008-08-17  Bruno Haible  <bruno@clisp.org>
73742         * lib/glthread/lock.h: Include <stdlib.h> always.
73743         * lib/glthread/tls.h: Likewise.
73744         * lib/glthread/cond.h: Likewise.
73746 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73748         New module 'cond'.
73749         * modules/cond: New file.
73750         * lib/glthread/cond.h: New file.
73751         * lib/glthread/cond.c: New file.
73752         * m4/cond.m4: New file.
73753         * MODULES.html.sh (Multithreading): Add cond.
73755 2008-08-16  Eric Blake  <ebb9@byu.net>
73757         c-stack: fix regression on Irix 5.3 from 2008-06-21
73758         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
73759         sa_sigaction...
73760         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
73761         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
73762         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
73763         * modules/signal (Makefile.am): Use the value.
73764         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
73765         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
73766         * doc/posix-headers/signal.texi (signal.h): Document this
73767         portability issue.
73768         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
73769         Reported by Tom G. Christensen.
73771 2008-08-17  Bruno Haible  <bruno@clisp.org>
73773         New module 'threadlib'.
73774         * modules/threadlib: New file.
73775         * lib/glthread/threadlib.c: New file, extracted from
73776         lib/glthread/lock.c.
73777         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
73778         functions.
73779         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
73780         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
73781         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
73782         macros.
73783         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
73784         (gl_DISABLE_THREADS): Remove macro.
73785         * modules/lock (Files): Remove build-aux/config.rpath.
73786         (Depends-on): Remove havelib. Add threadlib.
73787         (configure.ac-early): Remove section.
73788         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
73789         * modules/tls (Depends-on): Remove lock. Add threadlib.
73790         (Link): New section, copied from threadlib.
73791         * MODULES.html.sh (Multithreading): Add threadlib.
73793 2008-08-14  Bruno Haible  <bruno@clisp.org>
73795         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
73796         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
73797         glthread_rwlock_unlock, glthread_rwlock_destroy,
73798         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
73799         glthread_recursive_lock_destroy): Define as macros always.
73800         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
73801         glthread_lock_lock.
73802         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
73803         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
73804         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
73805         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
73806         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
73807         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
73808         (glthread_recursive_lock_lock_func): Renamed from
73809         glthread_recursive_lock_lock.
73810         (glthread_recursive_lock_unlock_func): Renamed from
73811         glthread_recursive_lock_unlock.
73812         (glthread_recursive_lock_destroy_func): Renamed from
73813         glthread_recursive_lock_destroy.
73815 2008-08-14  Bruno Haible  <bruno@clisp.org>
73817         * lib/glthread/lock.h: Renamed from lib/lock.h.
73818         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
73819         * lib/glthread/tls.h: Renamed from lib/tls.h.
73820         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
73821         * lib/fstrcmp.c: Update includes.
73822         * lib/strsignal.c: Update includes.
73823         * modules/lock (Files, Makefile.am): Update.
73824         (Include): Change to "glthread/lock.h".
73825         * modules/tls (Files, Makefile.am): Update.
73826         (Include): Change to "glthread/tls.h".
73827         * tests/test-lock.c: Update includes.
73828         * tests/test-tls.c: Update includes.
73829         * NEWS: Mention the renamed header files.
73831 2008-08-11  Jim Meyering  <meyering@redhat.com>
73833         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
73835 2008-08-11  Eric Blake  <ebb9@byu.net>
73837         test-c-stack: avoid C99-ism
73838         * tests/test-c-stack.c (main): Fix whitespace, move declaration
73839         before statement.
73840         Reported by Alain Guibert.
73842 2008-08-10  Jim Meyering  <meyering@redhat.com>
73844         ensure that return value of uinttostr et al are not ignored
73845         * lib/inttostr.h (__GNUC_PREREQ): Define.
73846         (__attribute_warn_unused_result__): Define.
73847         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
73849 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
73851         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
73852         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
73854 2008-08-07  Jim Meyering  <meyering@redhat.com>
73856         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
73858         * modules/mkstemp (License): Relicense under LGPLv2+.
73859         * modules/tempname (License): Likewise.
73861 2008-08-06  Bruno Haible  <bruno@clisp.org>
73863         * lib/poll.c (poll): Further micro-optimization.
73865 2008-08-06  Jim Meyering  <meyering@redhat.com>
73867         inet_pton.c: use locale-independent tolower
73868         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
73869         (inet_pton6): Use c_tolower rather than tolower.
73870         * modules/inet_pton (Depends-on): Add c-ctype.
73872 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
73874         * lib/poll.c (poll): Avoid division when timeout is 0, cache
73875         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
73877 2008-08-06  Jim Meyering  <meyering@redhat.com>
73879         * modules/inet_pton (License): Relicense under LGPLv2+.
73881 2008-08-03  Bruno Haible  <bruno@clisp.org>
73883         Additional non-aborting API for lock and tls.
73884         * lib/lock.h: Include <errno.h>.
73885         (glthread_lock_init): New macro/function.
73886         (gl_lock_init): Define as wrapper around glthread_lock_init.
73887         (glthread_lock_lock): New macro/function.
73888         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
73889         (glthread_lock_unlock): New macro/function.
73890         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
73891         (glthread_lock_destroy): New macro/function.
73892         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
73893         (glthread_rwlock_init): New macro/function.
73894         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
73895         (glthread_rwlock_rdlock): New macro/function.
73896         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
73897         (glthread_rwlock_wrlock): New macro/function.
73898         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
73899         (glthread_rwlock_unlock): New macro/function.
73900         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
73901         (glthread_rwlock_destroy): New macro/function.
73902         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
73903         (glthread_recursive_lock_init): New macro/function.
73904         (gl_recursive_lock_init): Define as wrapper around
73905         glthread_recursive_lock_init.
73906         (glthread_recursive_lock_lock): New macro/function.
73907         (gl_recursive_lock_lock): Define as wrapper around
73908         glthread_recursive_lock_lock.
73909         (glthread_recursive_lock_unlock): New macro/function.
73910         (gl_recursive_lock_unlock): Define as wrapper around
73911         glthread_recursive_lock_unlock.
73912         (glthread_recursive_lock_destroy): New macro/function.
73913         (gl_recursive_lock_destroy): Define as wrapper around
73914         glthread_recursive_lock_destroy.
73915         (glthread_once): New macro/function.
73916         (gl_once): Define as wrapper around glthread_once.
73917         Update function declarations.
73918         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
73919         glthread_rwlock_init. Return error code.
73920         (glthread_rwlock_rdlock_multithreaded): Renamed from
73921         glthread_rwlock_rdlock. Return error code.
73922         (glthread_rwlock_wrlock_multithreaded): Renamed from
73923         glthread_rwlock_wrlock. Return error code.
73924         (glthread_rwlock_unlock_multithreaded): Renamed from
73925         glthread_rwlock_unlock. Return error code.
73926         (glthread_rwlock_destroy_multithreaded): Renamed from
73927         glthread_rwlock_destroy. Return error code.
73928         (glthread_recursive_lock_init_multithreaded): Renamed from
73929         glthread_recursive_lock_init. Return error code.
73930         (glthread_recursive_lock_lock_multithreaded): Renamed from
73931         glthread_recursive_lock_lock. Return error code.
73932         (glthread_recursive_lock_unlock_multithreaded): Renamed from
73933         glthread_recursive_lock_unlock. Return error code.
73934         (glthread_recursive_lock_destroy_multithreaded): Renamed from
73935         glthread_recursive_lock_destroy. Return error code.
73936         (glthread_once_call): Make static.
73937         (glthread_once_multithreaded): Renamed from glthread_once.
73938         * lib/tls.h: Include <errno.h>.
73939         (glthread_tls_key_init): New macro/function.
73940         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
73941         (glthread_tls_set): New macro/function.
73942         (gl_tls_set): Define as wrapper around glthread_tls_set.
73943         (glthread_tls_key_destroy): New macro/function.
73944         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
73945         Update function declarations.
73946         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
73947         glthread_tls_get.
73948         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73950 2008-08-04  Eric Blake  <ebb9@byu.net>
73952         gnumakefile: use space, not TAB, outside of targets
73953         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
73955 2008-08-02  Jim Meyering  <meyering@redhat.com>
73957         getdate.y: avoid locale-dependent date parsing failure
73958         In Turkish locales, getdate would fail to recognize keywords
73959         containing a lowercase "i".  The solution is not to rely on
73960         locale-sensitive case-conversion.
73961         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
73962         (lookup_word): Use c_toupper in place of toupper.
73963         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
73964         Reported by Vefa Bicakci <bicave@superonline.com> in
73965         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
73966         * modules/getdate (Depends-on): Add c-ctype.
73968 2008-08-02  Bruno Haible  <bruno@clisp.org>
73970         * gnulib-tool (func_import): When updating or creating a .gitignore
73971         file, prepend each added line with a slash, and ignore leading slashes
73972         from the existing lines.
73973         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73975 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73977         Portability fix for GNU make 3.79.1.
73978         * top/GNUmakefile: Avoid 'else COND', which older GNU make
73979         versions do not understand.
73981 2008-08-01  Bruno Haible  <bruno@clisp.org>
73983         Work around bug of HP-UX 10.20 cc with -0.0 literal.
73984         * tests/test-isnanf.h (zero): New variable.
73985         (main): Avoid literal -0.0f.
73986         * tests/test-isnand.h (zero): New variable.
73987         (main): Avoid literal -0.0.
73988         * tests/test-isnanl.h (zero): New variable.
73989         (main): Avoid literal -0.0L.
73990         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
73991         (test_float, test_double, test_long_double): Avoid literals -0.0f,
73992         -0.0, -0.0L.
73993         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
73994         (test_signbitd): Avoid literal -0.0.
73995         (test_signbitl): Avoid literal -0.0L.
73996         * tests/test-ceilf1.c (zero): New variable.
73997         (main): Avoid literal -0.0f.
73998         * tests/test-ceill.c (zero): New variable.
73999         (main): Avoid literal -0.0L.
74000         * tests/test-floorf1.c (zero): New variable.
74001         (main): Avoid literal -0.0f.
74002         * tests/test-floorl.c (zero): New variable.
74003         (main): Avoid literal -0.0L.
74004         * tests/test-roundf1.c (zero): New variable.
74005         (main): Avoid literal -0.0f.
74006         * tests/test-round1.c (zero): New variable.
74007         (main): Avoid literal -0.0.
74008         * tests/test-roundl.c (zero): New variable.
74009         (main): Avoid literal -0.0L.
74010         * tests/test-truncf1.c (zero): New variable.
74011         (main): Avoid literal -0.0f.
74012         * tests/test-trunc1.c (zero): New variable.
74013         (main): Avoid literal -0.0.
74014         * tests/test-truncl.c (zero): New variable.
74015         (main): Avoid literal -0.0L.
74016         * tests/test-frexp.c (zero): New variable.
74017         (main): Avoid literal -0.0.
74018         * tests/test-frexpl.c (zero): New variable.
74019         (main): Avoid literal -0.0L.
74020         * tests/test-ldexpl.c (zero): New variable.
74021         (main): Avoid literal -0.0L.
74022         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
74023         (zerod, zerol): New variables.
74024         (test_function): Avoid literals -0.0, -0.0L.
74025         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
74026         (zerod, zerol): New variables.
74027         (test_function): Avoid literals -0.0, -0.0L.
74028         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
74029         (zerod, zerol): New variables.
74030         (test_function): Avoid literals -0.0, -0.0L.
74031         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
74032         (zerod, zerol): New variables.
74033         (test_function): Avoid literals -0.0, -0.0L.
74034         * tests/test-strtod.c (zero): New variable.
74035         (main): Avoid literal -0.0.
74036         Reported by Jonathan C. Patschke <jp@centtech.com>.
74038 2008-07-31  Jim Meyering  <meyering@redhat.com>
74040         sha256.h: correct definition of SHA224_DIGEST_SIZE
74041         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
74042         Reported by Paulie Pena IV <paulie4@gmail.com>.
74043         Define as 224 / 8, rather than as a literal.
74044         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
74045         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
74046         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
74048 2008-07-31  Bruno Haible  <bruno@clisp.org>
74050         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
74051         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
74052         Reported by Jonathan Patschke <jp@centtech.com>.
74054 2008-07-31  Bruno Haible  <bruno@clisp.org>
74056         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
74057         Reported by Paolo Bonzini <bonzini@gnu.org>.
74059 2008-07-30  Eric Blake  <ebb9@byu.net>
74061         test-strtod: allow compilation without -lm
74062         * tests/test-strtod.c (main): Avoid link dependence on fabs.
74063         Reported by Dennis Clarke <blastwave@gmail.com>.
74065 2008-07-28  Jim Meyering  <meyering@redhat.com>
74067         bootstrap: work also when there are no .po files in po/
74068         * build-aux/bootstrap (update_po_files): Complete the change
74069         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
74071 2008-07-27  Jim Meyering  <meyering@redhat.com>
74073         * users.txt: Add zile.
74075 2008-07-26  Ben Pfaff  <blp@gnu.org>
74077         Add missing dependencies on new m4/exponent[fdl].m4 files.
74078         * modules/isnanf-nolibm: Add m4/exponentf.m4.
74079         * modules/isnand-nolibm: Add m4/exponentd.m4.
74080         * modules/isnanl-nolibm: Add m4/exponentl.m4.
74081         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
74082         m4/isnan[fdl].m4, because the macros actually used moved.
74083         Reported by Jim Meyering.
74085 2008-07-14  Ben Pfaff  <blp@gnu.org>
74087         Add isinf module.
74088         * lib/isinf.c: New file.
74089         * lib/math.in.h: Define isinf macro if we have decided to replace
74090         it.
74091         * m4/isinf.m4: New file.
74092         * m4/math_h.m4: Initialize and substitute variables for isinf
74093         module.
74094         * modules/isinf: New file.
74095         * modules/isinf-tests: New file.
74096         * modules/math: Add substitutions for new module.
74097         * tests/test-isinf.c: New file.
74098         * doc/posix-functions/isinf.texi: Mention new module.
74099         * MODULES.html.sh: Mention new module.
74101 2008-07-14  Ben Pfaff  <blp@gnu.org>
74103         Factor out some macros for use by additional modules.
74104         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
74105         exponentf.m4.
74106         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
74107         exponentd.m4.
74108         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
74109         file exponentl.m4.
74110         * m4/exponentf.m4: New file.
74111         * m4/exponentd.m4: New file.
74112         * m4/exponentl.m4: New file.
74113         * modules/isnanf: Use new file m4/exponentf.m4.
74114         * modules/isnand: Use new file m4/exponentd.m4.
74115         * modules/isnanl: Use new file m4/exponentl.m4.
74117 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
74119         mktime.c: normalize tp->tm_isdst value to -1/0/1.
74120         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
74121         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
74122         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
74124         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
74125         readlink on platforms without PATH_MAX.
74127 2008-07-21  Eric Blake  <ebb9@byu.net>
74129         Warn, not fail, on stale version.
74130         * top/GNUmakefile (_curr-ver): Tone down previous patch.
74132         Don't allow installation with stale devel version number.
74133         * top/GNUmakefile (_is-install-target): New macro.
74134         (_curr-ver): Forbid installation with stale version number.
74136 2008-07-20  Bruno Haible  <bruno@clisp.org>
74138         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
74139         TESTS_ENVIRONMENT.
74140         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
74142 2008-07-20  Bruno Haible  <bruno@clisp.org>
74144         * lib/c-stack.h (c_stack_action): Add documentation.
74145         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
74147 2008-07-20  Bruno Haible  <bruno@clisp.org>
74149         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
74150         * modules/readlink (License): Likewise.
74152 2008-07-17  Eric Blake  <ebb9@byu.net>
74154         * modules/c-stack (Link): Fix typo.
74156         Make c-stack use libsigsegv, when available.
74157         * modules/c-stack (Depends-on): Add libsigsegv.
74158         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
74159         needed.
74160         * lib/c-stack.c (SIGSTKSZ): Define fallback.
74161         (segv_handler, overflow_handler, c_stack_action)
74162         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
74163         implementation when libsigsegv is available, but only when using
74164         the library is necessary.
74165         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
74166         comment, explaining why XSI check fails on Linux.
74167         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
74168         * tests/test-c-stack2.sh: Tweak skip message.
74169         * NEWS: Document new link-time requirements.
74171 2008-07-16  Eric Blake  <ebb9@byu.net>
74173         c-stack: Expose false positives when not using libsigsegv.
74174         * modules/c-stack-tests (Files): Expand test.
74175         * tests/test-c-stack.c (main): Add means to conditionally trigger
74176         non-overflow SIGSEGV.
74177         * tests/test-c-stack2.sh: New file.
74179 2008-07-14  Bruno Haible  <bruno@clisp.org>
74181         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
74182         Reported by Eric Blake.
74184 2008-07-14  Sam Steingold  <sds@gnu.org>
74185             Bruno Haible  <bruno@clisp.org>
74187         New module libsigsegv.
74188         * modules/libsigsegv: New file.
74189         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
74190         modifications.
74191         * MODULES.html.sh (Signal handling): New section.
74193 2008-07-14  Bruno Haible  <bruno@clisp.org>
74195         * modules/unictype/ctype-* (Description): Add the word "function".
74196         Improves the resulting doc in MODULES.html.
74198 2008-07-12  Ben Pfaff  <blp@gnu.org>
74200         Add longlong module.
74201         * modules/longlong: New file.
74203 2008-07-12  Bruno Haible  <bruno@clisp.org>
74205         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
74206         to empty.
74208 2008-07-10  Ben Pfaff  <blp@gnu.org>
74210         Add isnan module.
74211         * doc/posix-functions/isnan.texi: Mention new module.
74212         * lib/math.in.h: Define isnan macro if we have decided to replace
74213         it.
74214         * m4/isnan.m4: New file.
74215         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
74216         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
74217         also.
74218         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
74219         redundancy.
74220         * m4/math_h.m4: Initialize and substitute variables for isnan
74221         module.
74222         * modules/isnan: New file.
74223         * modules/isnan-tests: New file.
74224         * modules/math: Add substitutions for new module.
74225         * tests/test-isnan.c: New file.
74226         * MODULES.html.sh: Mention new module.
74228 2008-07-10  Ben Pfaff  <blp@gnu.org>
74230         Add isnanf module.
74231         * lib/isnanf.m4: New file.
74232         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
74233         (gl_HAVE_ISNANF_IN_LIBM): New macro.
74234         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
74235         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
74236         * modules/isnanf: New file.
74237         * modules/isnanf-tests: New file.
74238         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
74239         files.
74240         * tests/test-isnanf-nolibm.c: factored most of its contents into
74241         new file tests/test-isnanf.h.
74242         * tests/test-isnanf.h: New file.
74243         * tests/test-isnanf.c: New file.
74244         * MODULES.html.sh: Mention new module.
74245         * doc/glibc-functions/isnanf.texi: Mention new module.
74247 2008-07-10  Ben Pfaff  <blp@gnu.org>
74249         Add isnand module.
74250         * lib/isnand.h: New file.
74251         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
74252         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
74253         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
74254         functionality also.
74255         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
74256         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
74257         (gl_HAVE_ISNAND_IN_LIBM): New macro.
74258         * modules/isnand: New file.
74259         * modules/isnand-tests: New file.
74260         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
74261         files.
74262         * tests/test-isnand-nolibm.c: factored most of its contents into
74263         new file tests/test-isnand.h.
74264         * tests/test-isnand.h: New file.
74265         * tests/test-isnand.c: New file.
74266         * MODULES.html.sh: Mention new module.
74268 2008-07-10  Ben Pfaff  <blp@gnu.org>
74270         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
74271         * lib/isnand.h: Rename lib/isnand-nolibm.h.
74272         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
74273         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
74274         * modules/isnanf-nolibm: Update references to renamed files.
74275         * modules/isnand-nolibm: Likewise.
74276         * modules/isnanf-nolibm-tests: Likewise.
74277         * modules/isnand-nolibm-tests: Likewise.
74278         * lib/frexp.c: Likewise.
74279         * lib/isfinite.c: Likewise.
74280         * lib/signbitd.c: Likewise.
74281         * lib/signbitf.c: Likewise.
74282         * lib/vasnprintf.c: Likewise.
74283         * tests/test-ceilf1.c: Likewise.
74284         * tests/test-ceilf2.c: Likewise.
74285         * tests/test-floorf1.c: Likewise.
74286         * tests/test-floorf2.c: Likewise.
74287         * tests/test-frexp.c: Likewise.
74288         * tests/test-round1.c: Likewise.
74289         * tests/test-round2.c: Likewise.
74290         * tests/test-roundf1.c: Likewise.
74291         * tests/test-strtod.c: Likewise.
74292         * tests/test-trunc1.c: Likewise.
74293         * tests/test-trunc2.c: Likewise.
74294         * tests/test-truncf1.c: Likewise.
74295         * tests/test-truncf2.c: Likewise.
74296         * NEWS: Mention the renamed header files.
74298 2008-07-11  Jim Meyering  <meyering@redhat.com>
74300         vc-list-files: make the last-resort awk code more portable
74301         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
74302         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
74303         does not support it.
74305 2008-07-10  Eric Blake  <ebb9@byu.net>
74307         Work with tar's bootstrap.
74308         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
74309         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
74310         an m4 comment.
74312 2008-07-09  Jim Meyering  <meyering@redhat.com>
74314         posix-shell.m4: fix typo that made this test malfunction
74315         * m4/posix-shell.m4: Remove capitalization in variable name.
74317 2008-07-08  Bruno Haible  <bruno@clisp.org>
74319         * m4/onceonly.m4: Update comments.
74320         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74322 2008-07-04  Jim Meyering  <meyering@redhat.com>
74324         * users.txt: Add vc-dwim.
74325         (bison, coreutils): Use the gitweb URL.
74327 2008-07-03  Jim Meyering  <meyering@redhat.com>
74329         * users.txt: Add libffcall.  From Sam Steingold.
74331 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
74333         getdate.y: do not ignore TZ with relative day, month or year offset
74334         * lib/getdate.y (get_date): Move the tz-handling block to follow the
74335         relative-date-handling, since otherwise, the latter would clobber the
74336         sole output (an updated Start value) of the tz-handling block.
74337         * tests/test-getdate.c: Tests for the fix
74339 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74341         Recognize 'foo_LIBRARIES += libgnu.a'.
74342         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
74343         makefile snippet has already specified an installation location,
74344         also using '+='.
74346 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
74348         getdate.y: factor out common actions
74349         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
74350         Use them in place of open-coded actions.
74352 2008-07-01  Simon Josefsson  <simon@josefsson.org>
74354         Add self-test for getdate module.
74355         * modules/getdate-tests: New file.
74356         * tests/test-getdate.c: New file.
74358 2008-06-29  Bruno Haible  <bruno@clisp.org>
74360         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
74361         .gitignore.
74362         Reported by Sylvain Beucler <beuc@beuc.net>.
74364 2008-06-29  Bruno Haible  <bruno@clisp.org>
74366         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
74367         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
74369 2008-06-29  Bruno Haible  <bruno@clisp.org>
74371         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
74372         EXTRA_DIST.
74373         Reported by Sylvain Beucler <beuc@beuc.net>.
74375 2008-06-26  Jim Meyering  <meyering@redhat.com>
74377         make several modules depend on the "open" module
74378         This provides slightly increased consistency when opening-for-write
74379         the name of a non-directory spelled with a trailing slash.
74380         * modules/chdir-safer: Likewise.
74381         * modules/chown: Likewise.
74382         * modules/clean-temp: Likewise.
74383         * modules/copy-file: Likewise.
74384         * modules/fchdir: Likewise.
74385         * modules/fcntl-safer: Likewise.
74386         * modules/pipe: Likewise.
74387         * modules/utime: Likewise.
74388         Prompted by Eric Blake and Bruno Haible.
74390 2008-06-24  Andreas Schwab  <schwab@suse.de>
74392         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
74393         literals can be used as initializers for global variables.
74395 2008-06-23  Eric Blake  <ebb9@byu.net>
74397         Make gnulib-cache.m4 easier to diff.
74398         * gnulib-tool (func_import): Allow newlines when reading cached
74399         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
74401 2008-06-23  Bruno Haible  <bruno@clisp.org>
74403         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
74404         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
74405         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
74406         m4/signalblocking.m4.
74407         (gl_PREREQ_SIGACTION): Don't invoke it.
74408         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
74409         gl_PREREQ_SIG_HANDLER_H.
74410         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
74411         Don't check for sigaction here.
74413 2008-06-23  Bruno Haible  <bruno@clisp.org>
74415         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
74416         (install_handlers): Don't set the SA_RESETHAND flag.
74418 2008-06-23  Bruno Haible  <bruno@clisp.org>
74420         * m4/sigaction.m4: Comment fixes.
74421         * lib/signal.in.h: Likewise.
74423 2008-06-23  Eric Blake  <ebb9@byu.net>
74425         Fix typo.
74426         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
74428         Avoid SA_ namespace.
74429         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
74430         Reported by Ralf Wildenhues.
74432         Avoid test failure due to SA_RESTORER.
74433         * tests/test-sigaction.c (SA_MASK): New macro.
74434         (main): Avoid failing due to extension flags being set.
74435         Reported by Jim Meyering.
74437         Revert use of sig-handler.h in sigprocmask.c.
74438         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
74439         it requires the existence of struct sigaction.
74440         * lib/sigprocmask.c (handler_t): Restore typedef.
74441         (rpl_signal, old_handlers): Use local type.
74443 2008-06-22  Bruno Haible  <bruno@clisp.org>
74445         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
74446         conditionally.
74447         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
74449 2008-06-22  Bruno Haible  <bruno@clisp.org>
74451         * doc/posix-functions/siginterrupt.texi: Move note.
74453         * lib/signal.in.h (SA_RESTART): New macro.
74454         * lib/sigaction.c: Update comment.
74456         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
74458         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
74459         (gl_PREREQ_SIGPROCMASK): Invoke it.
74460         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
74462         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
74464         * lib/sigprocmask.c: Update a comment.
74466 2008-06-21  Eric Blake  <ebb9@byu.net>
74468         Use sigaction module rather than signal().
74469         * modules/c-stack (Depends-on): Add sigaction.
74470         * modules/fatal-signal (Depends-on): Likewise.
74471         * modules/nanosleep (Depends-on): Likewise.
74472         * modules/sigprocmask (Files): Add sig-handler.h.
74473         * modules/sigaction (Files): Likewise.
74474         * lib/sig-handler.h (get_handler): New file, suggested by Paul
74475         Eggert.
74476         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
74477         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
74478         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
74479         (init_fatal_signals): Likewise.
74480         * lib/nanosleep.c (rpl_nanosleep): Likewise.
74481         (siginterrupt): Delete fallback.
74482         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
74483         instead.
74484         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
74485         siginterrupt.
74487         New module sigaction, for mingw.
74488         * modules/sigaction: New module...
74489         * modules/sigaction-tests: ...and its test.
74490         * m4/sigaction.m4: New file.
74491         * lib/sigaction.c: Likewise.
74492         * tests/test-sigaction.c: Likewise.
74493         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
74494         * modules/signal (Makefile.am): Likewise.
74495         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
74496         needed.
74497         * doc/posix-headers/signal.texi (signal.h): Mention provided
74498         types.
74499         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
74500         that sigaction is preferable.
74501         * doc/posix-functions/sigaction.texi (sigaction): Mention new
74502         module.
74503         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74504         sigaction.
74506         Improve robustness of sigprocmask by overriding signal.
74507         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
74508         is in use.
74509         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
74510         (SIGKILL, SIGSTOP): Provide fallbacks.
74511         (rpl_signal): Implement.
74512         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
74513         signal can be called inside handlers.
74515         Fix nanosleep module on mingw.
74516         * modules/nanosleep (Depends-on): Add sys_select.
74517         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
74519         Fix licensing of sigprocmask.
74520         * modules/raise (License): Relicense as LGPL.
74522 2008-06-21  Bruno Haible  <bruno@clisp.org>
74524         * lib/propername.c (proper_name_utf8): Don't use the transliterated
74525         result if it contains question marks.
74526         Reported by Michael Geng <linux@michaelgeng.de>.
74528 2008-06-19  Bruno Haible  <bruno@clisp.org>
74530         Fix CVS-ism.
74531         * doc/gnulib.texi: Include updated-stamp.texi.
74532         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
74533         (updated-stamp.texi): New rule.
74534         (gnulib.info): Depend on it.
74535         * doc/.gitignore: Add updated-stamp.texi.
74536         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
74538 2008-06-19  Bruno Haible  <bruno@clisp.org>
74540         * doc/Makefile (gnulib.info): Update and simplify dependencies.
74541         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
74543 2008-06-19  Eric Blake  <ebb9@byu.net>
74545         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
74546         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
74547         Reported by Stepan Kasal.
74549 2008-06-18  Bruno Haible  <bruno@clisp.org>
74551         * lib/fatal-signal.c (init_fatal_signals): Add comment.
74552         Reported by Eric Blake.
74554 2008-06-18  Eric Blake  <ebb9@byu.net>
74556         Work around cygwin 1.5.25 strsignal bug.
74557         * tests/test-strsignal.c: Allow for const char *.
74558         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
74560 2008-06-18  Simon Josefsson  <simon@josefsson.org>
74562         * users.txt: Update URL to article and add author/date
74563         information.
74565 2008-06-17  Bruno Haible  <bruno@clisp.org>
74567         New macro gl_DISABLE_THREADS.
74568         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
74569         if the user did not pass --enable-threads or --disable-threads option.
74570         (gl_DISABLE_THREADS): New macro.
74571         Reported by Eric Blake <ebb9@byu.net>.
74573 2008-06-17  Bruno Haible  <bruno@clisp.org>
74575         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
74576         when the macro ignores it.
74577         Based on a patch by Eric Blake <ebb9@byu.net>.
74579 2008-06-17  Bruno Haible  <bruno@clisp.org>
74581         * modules/tls (License): Change to LGPLv2+.
74582         Reported by Eric Blake.
74584 2008-06-17  Eric Blake  <ebb9@byu.net>
74586         Simplify c-stack prerequisites.
74587         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
74588         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
74589         no longer requires <ucontext.h> to exist.  Optimize setrlimit
74590         check.
74591         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
74592         <sys/resource.h>.
74594         Move c-stack test into testsuite.
74595         * modules/c-stack-tests: New file.
74596         * lib/c-stack.c [DEBUG]: Move test program...
74597         * tests/test-c-stack.c: ...into this new file.  Skip rather than
74598         fail test if sigaltstack is lacking.
74599         * tests/test-c-stack.sh: New driver file.
74601 2008-06-16  Eric Blake  <ebb9@byu.net>
74603         Use raise module consistently.
74604         * modules/fatal-signal (Depends-on): Add raise.
74605         * modules/sigprocmask (Depends-on): Likewise.
74606         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
74607         * lib/sigprocmask.c (sigprocmask): Likewise.
74608         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
74609         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
74611         Fix compliance bug in sigpending.
74612         * lib/sigprocmask.c (sigpending): Return pending array via
74613         parameter, not return value.
74615 2008-06-14  Eric Blake  <ebb9@byu.net>
74617         Improve obstack-printf test code.
74618         * tests/test-obstack-printf.c (test_function): Fix comment, and
74619         simplify usage of obstack_* in macros.  Add a test for coverage.
74620         Reported by Bruno Haible.
74622 2008-06-14  Bruno Haible  <bruno@clisp.org>
74624         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
74625         array size as a constant, not as a const variable.
74626         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
74627         AC_USE_SYSTEM_EXTENSIONS.
74628         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
74629         Test whether the obstack_printf function actually exists.
74630         * modules/obstack-printf (Depends-on): Add extensions.
74631         (Include): Remove obstack.h.
74632         * modules/obstack-printf-posix (Depends-on): Add extensions.
74633         (Include): Remove obstack.h.
74635 2008-06-13  Eric Blake  <ebb9@byu.net>
74637         Add obstack-printf and obstack-printf-posix modules.
74638         * modules/obstack-printf: New file.
74639         * modules/obstack-printf-posix: Likewise.
74640         * MODULES.html.sh (Misc): Mention them.
74641         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
74642         Likewise.
74643         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
74644         Likewise.
74645         * modules/stdio (Makefile.am): Accomodate new modules.
74646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
74647         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
74648         Declare.
74649         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
74650         functions.
74651         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
74652         (gl_REPLACE_OBSTACK_PRINTF): New macros
74653         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
74654         * tests/test-obstack-printf.c: New file.
74655         * modules/obstack-printf-tests: Likewise.
74656         * modules/obstack-printf-posix-tests: Likewise.
74658 2008-06-11  Bruno Haible  <bruno@clisp.org>
74660         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
74661         * lib/open.c: Include errno.h.
74662         (open): Fail when attempting to write to a file that has a trailing
74663         slash.
74664         * tests/test-open.c (main): Test against trailing slash bug.
74665         * doc/posix-functions/open.texi: Mention the trailing slash bug.
74667 2008-06-10  Bruno Haible  <bruno@clisp.org>
74669         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
74670         for $? to work inside the trap command, with various /bin/sh-s.
74671         * tests/test-vc-list-files-cvs.sh: Likewise.
74673 2008-06-10  Bruno Haible  <bruno@clisp.org>
74675         * lib/acl-internal.h: Don't include gettext.h here.
74676         * lib/set-mode-acl.c: Include gettext.h here.
74677         * lib/copy-acl.c: Likewise.
74679 2008-06-10  Bruno Haible  <bruno@clisp.org>
74681         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
74682         * lib/wait-process.c (wait_subprocess): Likewise.
74683         * lib/execute.h (execute): Add termsigp argument.
74684         * lib/execute.c (execute): Likewise.
74685         * lib/csharpcomp.c (compile_csharp_using_pnet,
74686         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
74687         * lib/csharpexec.c (execute_csharp_using_pnet,
74688         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
74689         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
74690         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
74691         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
74692         is_jikes_present): Update.
74693         * lib/javaexec.c (execute_java_class): Update.
74694         * lib/javaversion.c (execute_and_read_line): Update.
74695         * NEWS: Document the changes.
74696         Reported by Eric Blake.
74698 2008-06-10  Eric Blake  <ebb9@byu.net>
74700         Add missing include.
74701         * tests/test-strstr.c (includes): Add <signal.h>.
74702         * tests/test-strcasestr.c (includes): Likewise.
74703         * tests/test-memmem.c (includes): Likewise.
74705 2008-06-10  Bruno Haible  <bruno@clisp.org>
74707         * lib/wait-process.c (wait_subprocess): Add an assertion.
74709 2008-06-10  Bruno Haible  <bruno@clisp.org>
74711         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
74713 2008-06-10  Bruno Haible  <bruno@clisp.org>
74715         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
74716         using alarm().
74717         * tests/test-strcasestr.c (main): Likewise.
74718         * tests/test-strstr.c (main): Likewise.
74720 2008-06-09  Bruno Haible  <bruno@clisp.org>
74722         Work around the Solaris 10 ACE ACLs ABI change.
74723         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
74724         declare if ACL_NO_TRIVIAL is present.
74725         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
74726         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
74727         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
74728         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
74729         define if ACL_NO_TRIVIAL is present.
74730         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
74731         and use the current ABI.
74732         (file_has_acl): Use same #if condition as elsewhere.
74733         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
74734         in use, and use the current ABI.
74735         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
74736         Reported by Jim Meyering.
74738 2008-06-09  Eric Blake  <ebb9@byu.net>
74740         Work around environments that (stupidly) ignore SIGALRM.
74741         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
74742         before using alarm().
74743         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74744         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
74745         Reported by Ian Beckwith <ianb@erislabs.net>.
74747         Produce autobuild blurb earlier in log.
74748         * modules/autobuild (configure.ac-early): Move AB_INIT here.
74750 2008-06-09  Jim Meyering  <meyering@redhat.com>
74751         and Ondřej Vašík  <ovasik@redhat.com>
74753         utimens.c: correct kernel bug work-around
74754         Ondřej Vašík found that the invalid return value of 280 indicates
74755         failure, not success, and the kernel bug we're trying to work
74756         around affects not just the utimensat call, but also the fallback
74757         futimens call.
74758         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
74759         not success.
74760         [HAVE_FUTIMENS]: Use the same work-around, here.
74762 2008-06-09  Jim Meyering  <meyering@redhat.com>
74764         add more guards around definition of ACE_-related code
74765         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
74766         ALLOW and ACE_OWNER are also defined.
74768 2008-06-08  Bruno Haible  <bruno@clisp.org>
74770         * lib/acl-internal.h: Add me as co-author.
74771         * lib/file-has-acl.c: Likewise.
74772         * lib/set-mode-acl.c: Likewise.
74773         * lib/copy-acl.c: Likewise.
74775 2008-06-08  Bruno Haible  <bruno@clisp.org>
74777         Add support for AIX ACLs.
74778         * lib/acl-internal.h (acl_nontrivial): New declaration.
74779         * lib/file-has-acl.c (acl_nontrivial): New function.
74780         (file_has_acl): Add implementation using AIX 4 ACL API.
74781         * lib/set-mode-acl.c (qset_acl): Likewise.
74782         * lib/copy-acl.c (qcopy_acl): Likewise.
74784 2008-06-08  Bruno Haible  <bruno@clisp.org>
74786         Add support for HP-UX ACLs.
74787         * lib/acl-internal.h (acl_nontrivial): New declaration.
74788         * lib/file-has-acl.c (acl_nontrivial): New function.
74789         (file_has_acl): Add implementation using HP-UX 11 ACL API.
74790         * lib/set-mode-acl.c (qset_acl): Likewise.
74791         * lib/copy-acl.c (qcopy_acl): Likewise.
74793 2008-06-08  Bruno Haible  <bruno@clisp.org>
74795         Add support for Cygwin ACLs.
74796         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
74797         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
74798         the chmod_or_fchmod call.
74799         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
74801 2008-06-08  Bruno Haible  <bruno@clisp.org>
74803         Fix bug with setuid modes in Solaris 10+ code.
74804         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
74805         succeeded, when the mode contains some special bits.
74807 2008-06-08  Bruno Haible  <bruno@clisp.org>
74809         Add support for Solaris 7..10 ACLs.
74810         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
74811         declarations.
74812         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
74813         functions.
74814         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
74815         * lib/set-mode-acl.c (qset_acl): Likewise.
74816         * lib/copy-acl.c (qcopy_acl): Likewise.
74818 2008-06-08  Bruno Haible  <bruno@clisp.org>
74820         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
74821         declaration.
74822         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
74823         (acl_access_nontrivial): Remove MacOS X case.
74824         (file_has_acl): Use acl_extended_nontrivial.
74825         * lib/copy-acl.c (qcopy_acl): Likewise.
74827 2008-06-08  Bruno Haible  <bruno@clisp.org>
74829         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
74831 2008-06-08  Jim Meyering  <meyering@redhat.com>
74833         * modules/acl (Maintainer): Add Bruno Haible.
74835 2008-06-07  Bruno Haible  <bruno@clisp.org>
74837         Improve support for Tru64 ACLs.
74838         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
74839         ACL on OSF/1.
74841 2008-06-07  Bruno Haible  <bruno@clisp.org>
74843         Add support for MacOS X ACLs.
74844         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
74845         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
74846         * lib/set-mode-acl.c (qset_acl): Likewise.
74847         * lib/copy-acl.c (qcopy_acl): Likewise.
74849 2008-06-07  Bruno Haible  <bruno@clisp.org>
74851         Fix memory leak introduced on 2008-05-22.
74852         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
74853         use.
74855 2008-06-07  Bruno Haible  <bruno@clisp.org>
74857         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
74858         to construct an empty ACL.
74860 2008-06-07  Bruno Haible  <bruno@clisp.org>
74862         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
74863         precisely.
74864         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
74866 2008-06-07  Bruno Haible  <bruno@clisp.org>
74868         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
74869         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
74871 2008-06-07  Bruno Haible  <bruno@clisp.org>
74873         * doc/posix-functions/_setjmp.texi: Explain the use of this function
74874         regardless of POSIX.
74875         * doc/posix-functions/_longjmp.texi: Likewise.
74876         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
74877         SystemV platform in this case.
74879 2008-06-06  Eric Blake  <ebb9@byu.net>
74881         Document abort() bugs.
74882         * doc/posix-functions/abort.texi (abort): Mention anomalies.
74884         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
74885         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
74886         sigsetjmp.
74887         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
74888         siglongjmp, but only as a macro.
74889         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
74890         is obsolete.
74891         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
74893         Tweak documentation to cover cygwin argz bugs.
74894         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
74895         argz bug fix; no code change needed since no cygwin releases
74896         occurred between the last fix and the bug being tested.
74897         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
74898         module and recently fixed cygwin bugs.
74899         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
74900         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
74901         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
74902         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
74903         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
74904         Likewise.
74905         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
74906         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
74907         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
74908         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
74909         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
74910         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
74911         Likewise.
74913         Avoid gcc warning on cygwin.
74914         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
74915         !ACL_NO_TRIVIAL]: Avoid unused variable.
74917 2008-06-05  Eric Blake  <ebb9@byu.net>
74919         Be tolerant of UNKNOWN version in gnulib-tool test dir.
74920         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
74921         git-version-gen fails to come up with a version.
74922         Reported by Simon Josefsson.
74924 2008-06-05  Jim Meyering  <meyering@redhat.com>
74925             Paul Eggert  <eggert@cs.ucla.edu>
74927         utimens.c: work around a probable Linux kernel bug
74928         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
74929         appears to be a kernel bug that causes utimensat to return 280
74930         instead of 0, indicating success.
74932 2008-06-04  Bruno Haible  <bruno@clisp.org>
74934         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
74935         2008-06-01 commit.
74937 2008-06-04  Bruno Haible  <bruno@clisp.org>
74939         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
74940         * lib/file-has-acl.c (acl_access_nontrivial): New function.
74941         (file_has_acl): Use it. Save errno afterwards.
74942         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
74944 2008-06-03  Bruno Haible  <bruno@clisp.org>
74946         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
74947         draft code. Simplify #ifs.
74948         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
74949         Put Solaris code after POSIX-draft code. Fix comments regarding
74950         Solaris 10, HP-UX. Mention Cygwin.
74951         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
74953 2008-06-03  Eric Blake  <ebb9@byu.net>
74955         Provide fallback for older kernels.
74956         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
74957         Provide runtime fallback if kernel lacks support.
74958         Reported by Mike Frysinger.
74960 2008-06-02  Bruno Haible  <bruno@clisp.org>
74962         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
74963         it exists.
74965 2008-06-02  Bruno Haible  <bruno@clisp.org>
74967         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
74968         * lib/copy-acl.c (qcopy_acl): Update comment.
74970 2008-06-02  Bruno Haible  <bruno@clisp.org>
74972         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
74973         like ACL APIs.
74975 2008-06-02  Bruno Haible  <bruno@clisp.org>
74977         * tests/test-file-has-acl.sh: Use different code for Cygwin.
74978         * tests/test-set-mode-acl.sh: Likewise.
74979         * tests/test-copy-acl.sh: Likewise.
74980         * tests/test-copy-file.sh: Likewise.
74982 2008-06-02  Bruno Haible  <bruno@clisp.org>
74984         * tests/test-file-has-acl.sh: Remove unused code.
74986 2008-06-01  Bruno Haible  <bruno@clisp.org>
74988         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
74989         (copy_acl): Just a wrapper around qcopy_acl that emits the error
74990         messages.
74991         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
74993 2008-06-01  Bruno Haible  <bruno@clisp.org>
74995         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
74996         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
74997         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
74998         APIs.
74999         * modules/acl-tests (configure.ac): Remove tests now contained in
75000         m4/acl.m4.
75002 2008-06-02  Jim Meyering  <meyering@redhat.com>
75004         announce-gen: use a better key-server host name
75005         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
75006         it may be more consistently reliable.  Suggested by Werner Koch
75007         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
75009 2008-06-01  Bruno Haible  <bruno@clisp.org>
75011         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
75012         Reported by Voroskoi Andras <voroskoi@gmail.com>.
75014 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
75016         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
75018 2008-06-01  Bruno Haible  <bruno@clisp.org>
75020         New ACL tests.
75021         * tests/test-file-has-acl.sh: New file.
75022         * tests/test-file-has-acl.c: New file.
75023         * tests/test-set-mode-acl.sh: New file.
75024         * tests/test-set-mode-acl.c: New file.
75025         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
75026         * tests/test-copy-acl.c: New file.
75027         * modules/acl-tests: New file, based on modules/copy-file-tests.
75028         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
75029         (Depends-on): Add acl-tests.
75030         (configure.ac): Remove checks.
75031         (Makefile.am): Don't create test-sameacls program here any more.
75033 2008-06-01  Bruno Haible  <bruno@clisp.org>
75035         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
75036         * tests/test-sameacls.c: Include progname.h.
75037         (main): Invoke set_program_name. Portability fixes for MacOS X,
75038         Solaris, HP-UX.
75040 2008-06-01  Bruno Haible  <bruno@clisp.org>
75042         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
75043         function.
75044         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
75046 2008-06-01  Bruno Haible  <bruno@clisp.org>
75048         * modules/rpmatch (Depends-on): Add strdup.
75050 2008-06-01  Bruno Haible  <bruno@clisp.org>
75052         * lib/pipe.c: Include unistd-safer.h.
75053         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
75054         * modules/pipe (Depends-on): Add unistd-safer.
75056 2008-05-30  Simon Josefsson  <simon@josefsson.org>
75058         * modules/autobuild (configure.ac): Call AB_INIT.
75060 2008-05-30  Simon Josefsson  <simon@josefsson.org>
75062         * tests/test-getaddrinfo.c: Don't print debug messages by default.
75063         Suggested by Bruno Haible <bruno@clisp.org>.
75065 2008-05-30  Simon Josefsson  <simon@josefsson.org>
75067         * tests/test-base64.c: Cast size_t to unsigned long when invoking
75068         printf.  Use %lu instead of %d.  Reported by Bruno Haible
75069         <bruno@clisp.org>.
75071 2008-05-29  Eric Blake  <ebb9@byu.net>
75073         Prefer new POSIX 200x interfaces over futimesat.
75074         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
75075         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
75076         when available.
75077         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
75079 2008-05-28  Bruno Haible  <bruno@clisp.org>
75081         * modules/stpcpy (License): Change to LGPLv2+.
75082         Requested by David Lutterkort <dlutter@redhat.com>.
75084 2008-05-27  Bruno Haible  <bruno@clisp.org>
75086         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
75087         current mingw.
75088         Reported by Jose E. Marchesi <jemarch@gnu.org>.
75090 2008-05-27  Bruno Haible  <bruno@clisp.org>
75092         * modules/iconv_open (Link): New section, from module 'iconv'.
75093         * modules/striconv (Link): Likewise.
75094         * modules/striconveh (Link): Likewise.
75095         * modules/xstriconv (Link): Likewise.
75096         * modules/unicodeio (Link): Likewise.
75097         * modules/propername (Link): Likewise.
75098         Reported by Jim Meyering.
75100 2008-05-26  Jim Meyering  <meyering@redhat.com>
75102         sha256: do not artificially restrict buffer length to be < 2^32
75103         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
75104         uint32_t to size_t.
75105         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
75106         to match.
75108         avoid unaligned access errors, e.g., on sparc
75109         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
75110         direct access through a possibly-unaligned uint64* pointer.
75111         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
75112         direct access through a possibly-unaligned uint32* pointer.
75113         Prompted by this patch from Tom "spot" Callaway:
75114         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
75116         sha512.c: fix typo in comment
75117         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
75119 2008-05-25  Bruno Haible  <bruno@clisp.org>
75121         * lib/set-mode-acl.c: Renamed from lib/acl.c.
75122         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
75123         (Makefile.am): Update lib_SOURCES.
75125 2008-05-25  Bruno Haible  <bruno@clisp.org>
75127         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
75129 2008-05-25  Jim Meyering  <meyering@redhat.com>
75131         useless-if-before-free: freed expr may have white-space differences
75132         * build-aux/useless-if-before-free: Recognize cases in which the
75133         freed expression differs from the tested one in embedded white
75134         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
75135         $1 was used, so we can't make any regexp shy.  Improved tests now
75136         detect this.
75138         useless-if-before-free: accept white space in the expression.
75139         * build-aux/useless-if-before-free: For now, any white space
75140         in the expression must be identical in the free argument.
75142         useless-if-before-free: efficiency tweak
75143         * build-aux/useless-if-before-free: Make the expression-matching
75144         regexp "shy".
75145         Make the *outer* regexp shy, not the expr-matching one.
75147         update code-in-comment to accept cast of free arg
75148         * build-aux/useless-if-before-free: Update regexp.
75150 2008-05-25  Bruno Haible  <bruno@clisp.org>
75152         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
75153         * modules/copy-file-tests (Files, Makefile.am): Update.
75154         * tests/test-copy-file.c (func_test_copy): Update.
75156 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
75158         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
75160 2008-05-23  Bruno Haible  <bruno@clisp.org>
75162         Improve support for ACLs on OSF/1.
75163         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
75164         Remove fallback for unknown flavors of ACLs.
75166 2008-05-22  Bruno Haible  <bruno@clisp.org>
75168         Add support for ACLs on OSF/1.
75169         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
75170         replacements.
75171         (acl_free_text): New macro fallback.
75172         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
75173         acl_free.
75174         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
75175         acl_free_text function. Require AC_C_INLINE.
75177 2008-05-22  Bruno Haible  <bruno@clisp.org>
75179         Make copy_acl work on MacOS X 10.5.
75180         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
75181         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
75182         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
75183         If MODE_INSIDE_ACL, don't assume that every system has the same text
75184         representation for ACLs as FreeBSD.
75185         * lib/copy-acl.c (copy_acl): Add support for platforms with
75186         !MODE_INSIDE_ACL.
75187         * lib/file-has-acl.c (file_has_acl): Likewise.
75188         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
75189         FreeBSD, MacOS X, or IRIX, respectively.
75191 2008-05-22  Bruno Haible  <bruno@clisp.org>
75193         * lib/acl.h: Don't include <sys/acl.h>.
75194         (GETACLCNT): Move fallback to lib/acl-internal.h.
75195         * lib/acl-internal.h: Include <sys/acl.h> here.
75196         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
75198 2008-05-22  Bruno Haible  <bruno@clisp.org>
75200         Split off copy_acl function to separate file.
75201         * lib/copy-acl.c: New file, extracted from lib/acl.c.
75202         * lib/acl.c (copy_acl): Moved function to separate file.
75203         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
75204         * modules/acl (Files): Add lib/copy-acl.c.
75205         (Makefiles.am): Augment lib_SOURCES.
75207 2008-05-22  Bruno Haible  <bruno@clisp.org>
75209         * modules/copy-file-tests: New file.
75210         * tests/test-copy-file.sh: New file.
75211         * tests/test-copy-file.c: New file.
75212         * tests/test-copy-file-sameacls.c: New file.
75214 2008-05-22  Eric Blake  <ebb9@byu.net>
75216         Avoid gcc warning.
75217         * tests/test-memcmp.c (main): Pass NULL indirectly.
75219 2008-05-21  Bruno Haible  <bruno@clisp.org>
75221         Add reference doc about ACLs.
75222         * doc/acl-resources.txt: New file.
75223         * doc/acl-cygwin.txt: New file.
75225 2008-05-21  Bruno Haible  <bruno@clisp.org>
75227         Avoid one more warning from gcc.
75228         * lib/vasnprintf.c (IF_LINT): Update comments.
75229         (VASNPRINTF): Use it also for the 'prefix' array initializer.
75231 2008-05-21  Jim Meyering  <meyering@redhat.com>
75233         avoid a warning from gcc
75234         * lib/vasnprintf.c (IF_LINT): Define.
75235         (scale10_round_decimal_long_double):
75236         Use it to avoid a "may be used uninitialized" warning.
75237         (scale10_round_decimal_double): Likewise.
75239 2008-05-21  Simon Josefsson  <simon@josefsson.org>
75241         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
75242         declared.
75244 2008-05-20  Bruno Haible  <bruno@clisp.org>
75246         * tests/test-memcmp.c (main): Test also the sign of the result. Test
75247         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
75249 2008-05-20  Simon Josefsson  <simon@josefsson.org>
75251         * modules/memcmp-tests: New file.
75252         * tests/test-memcmp.c: New file.
75254 2008-05-19  Bruno Haible  <bruno@clisp.org>
75256         * modules/propername (Notice, configure.ac): Put quoted "..." into
75257         --keyword option.
75258         * lib/propername.h: Update comments accordingly.
75259         Reported by Eric Blake.
75261 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
75263         * modules/getpass-gnu (Depends-on): Add fseeko.
75265 2008-05-19  Simon Josefsson  <simon@josefsson.org>
75267         * modules/base64-tests: New file.
75269 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
75271         * lib/base64.c (base64_decode_ctx): If a decode context structure
75272         was passed in use it to ignore newlines.  If a context structure
75273         was _not_ passed in, continue to treat newlines as garbage (this
75274         is the historical behavior).  Formerly base64_decode.
75275         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
75276         takes a decode context structure.
75277         * lib/base64.h (base64_decode): Macro for four-argument calls.
75278         (base64_decode_alloc): Likewise.
75279         * lib/base64.c (base64_decode_ctx): If a decode context structure
75280         was passed in use it to ignore newlines.  If a context structure
75281         was _not_ passed in, continue to treat newlines as garbage (this
75282         is the historical behavior).  Formerly base64_decode.
75283         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
75284         takes a decode context structure.
75285         * lib/base64.h (base64_decode): Macro for four-argument calls.
75286         (base64_decode_alloc): Likewise.
75288 2008-05-19  Jim Meyering  <meyering@redhat.com>
75290         avoid a warning from gcc
75291         * lib/trim.c (IF_LINT): Define.
75292         (trim2): Use it to avoid a "may be used uninitialized" warning.
75294         Fix doc typo.
75295         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
75297 2008-05-19  Bruno Haible  <bruno@clisp.org>
75299         * doc/glibc-functions/getpass.texi: Document limits of other
75300         implementations.
75302 2008-05-19  Simon Josefsson  <simon@josefsson.org>
75303             Bruno Haible <bruno@clisp.org>
75305         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
75307 2008-05-18  Bruno Haible  <bruno@clisp.org>
75309         * modules/propername: New file, from GNU gettext.
75310         * lib/propername.h: New file, from GNU gettext.
75311         * lib/propername.c: New file, from GNU gettext.
75312         * MODULES.html.sh (Internationalization functions): Add propername.
75314 2008-05-16  Jim Meyering  <meyering@redhat.com>
75315             Bruno Haible  <bruno@clisp.org>
75317         Avoid some warnings from "gcc -Wshadow".
75318         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
75320 2008-05-15  Eric Blake  <ebb9@byu.net>
75322         Extend previous patch to cygwin 1.7.0.
75323         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
75324         fast implementation in cygwin >= 1.7.0.
75325         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75326         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75328 2008-05-15  Bruno Haible  <bruno@clisp.org>
75330         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
75331         implementation in glibc >= 2.9.
75332         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75333         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75335 2008-05-15  Bruno Haible  <bruno@clisp.org>
75337         * MODULES.html.sh (Internationalization functions): Remove linebreak.
75338         (Unicode string functions): Add unilbrk/*.
75339         Reported by Karl Berry.
75341 2008-05-15  Eric Blake  <ebb9@byu.net>
75343         Fix violation of <stdbool.h> replacement in regex.
75344         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
75345         * lib/regexec.c (re_search_internal): Likewise.
75346         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
75348 2008-05-15  Jim Meyering  <meyering@redhat.com>
75350         avoid distracting test output when git or cvs is not found
75351         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
75352         * tests/test-vc-list-files-git.sh: Likewise.
75354 2008-05-15  Eric Blake  <ebb9@byu.net>
75356         Glibc finally accepted the memmem speedup code, bugzilla #5514.
75357         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
75358         glibc version.
75359         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
75360         * doc/posix-functions/strstr.texi (strstr): Likewise.
75361         * lib/str-two-way.h (MAX): Sychronize with glibc.
75363 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
75365         * lib/regcomp.c (optimize_utf8): Add a note on why we test
75366         opr.ctx_type.
75367         (calc_first): Initialize constraint field.
75368         (duplicate_node_closure): Use it instead of special casing ANCHORS.
75369         Fix grammar.
75370         (duplicate_node): Merge constraint field for all node types.
75371         (calc_eclosure_iter): Look at constraint field for all node types.
75372         * lib/regex_internal.c (create_cd_newstate): Don't look at
75373         opr.ctx_type.
75375 2008-05-14  Bruno Haible  <bruno@clisp.org>
75377         Help GCC to do better code generation.
75378         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
75379         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
75380         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
75381         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
75382         Declare with attribute 'malloc' if supported.
75384 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
75386         use "echo STR|wc -c" rather than unportable "expr length STR"
75387         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
75388         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
75390 2008-05-14  Jim Meyering  <meyering@redhat.com>
75392         use dd ibs=$n count=1 ... rather than less-portable head -c$n
75393         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
75394         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
75395         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
75396         via Collin Lasse.
75398 2008-05-14  Eric Blake  <ebb9@byu.net>
75400         Avoid quadratic growth in gl_LIBSOURCES.
75401         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
75402         Suggested by Bruno Haible.
75404         Test xmemdup0.
75405         * modules/xmemdup0-tests: New file.
75406         * tests/test-xmemdup0.c: Likewise.
75408 2008-05-13  Eric Blake  <ebb9@byu.net>
75410         Split xmemdup0 into its own module.
75411         * modules/xmemdup0: New file.
75412         * lib/xmemdup0.h: Likewise.
75413         * lib/xmemdup0.c: Likewise.
75414         * MODULES.html.sh (Memory management functions): Add xmemdup0.
75415         * lib/xalloc.h (xmemdup0): Remove.
75416         * lib/xmalloc.c (xmemdup0): Likewise.
75418 2008-05-13  Eric Blake  <ebb9@byu.net>
75419             Bruno Haible  <bruno@clisp.org>
75421         Reduce number of forks required during autoconf.
75422         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
75423         and gl_LIBSOURCES_DIR.
75424         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
75425         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
75426         m4_syscmd per file.
75427         <m4_foreach_w>: Move...
75428         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
75430 2008-05-13  Eric Blake  <ebb9@byu.net>
75432         * gnulib-tool: Fix various comment typos.
75434 2008-05-12  Bruno Haible  <bruno@clisp.org>
75436         Tailor the linebreaking algorithm.
75437         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
75439 2008-05-12  Bruno Haible  <bruno@clisp.org>
75441         Update to Unicode 5.0.0.
75442         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
75443         LBP_JV, LBP_JT. Redistribute values.
75444         (unilbrk_table): Change size.
75445         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
75446         Unicode TR#14 rev. 22.
75447         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
75448         LBP_JV, LBP_JT. Redistribute values.
75449         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
75450         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
75451         Update.
75452         * lib/unilbrk/lbrkprop1.h: Regenerated.
75453         * lib/unilbrk/lbrkprop2.h: Regenerated.
75454         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
75455         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
75456         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
75457         Likewise.
75458         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
75459         Likewise.
75460         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
75461         result.
75462         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
75463         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
75464         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
75465         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
75466         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
75467         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
75469 2008-05-11  Bruno Haible  <bruno@clisp.org>
75471         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
75473 2008-05-11  Bruno Haible  <bruno@clisp.org>
75475         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
75476         * modules/unilbrk/gen-lbrk: New file.
75478 2008-05-11  Bruno Haible  <bruno@clisp.org>
75480         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
75481         * m4/sha512.m4 (gl_SHA512): Likewise.
75483 2008-05-11  Jim Meyering  <meyering@redhat.com>
75485         New modules: crypto/sha256, crypto/sha512 (from coreutils)
75486         * modules/crypto/sha256: New file.
75487         * modules/crypto/sha512: Likewise.
75488         * lib/sha256.c: Likewise.
75489         * lib/sha256.h: Likewise.
75490         * lib/sha512.c: Likewise.
75491         * lib/sha512.h: Likewise.
75492         * lib/u64.h: Likewise.
75493         * m4/sha256.m4: Likewise.
75494         * m4/sha512.m4: Likewise.
75495         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
75497 2008-05-10  Bruno Haible  <bruno@clisp.org>
75499         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
75500         (Input/Output <stdio.h>): Add xprintf.
75501         (Signal handling <signal.h>): Add strsignal.
75502         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
75503         (Core language properties): Add func.
75504         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
75505         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
75506         strings.
75507         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
75508         (Input/output): New section.
75509         (File system functions): Add openat-die, stat-macros.
75510         (Networking functions): Add sockets.
75511         (Unicode string functions): Add unictype/*.
75512         (Support for building libraries and executables): Add gperf.
75513         (Support for building documentation): Add agpl-3.0.
75514         (Misc): Add nocrash.
75516 2008-05-10  Bruno Haible  <bruno@clisp.org>
75518         * modules/unictype/gen-ctype: New file.
75520 2008-05-10  Jim Meyering  <meyering@redhat.com>
75522         Make chdir-safer.c more efficient on a system with no symlinks.
75523         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
75524         also if ELOOP is zero.  Suggested by Bruno Haible.
75526         Make chdir-safer.c slightly safer.
75527         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
75528         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
75530         Avoid compile failure on systems without ELOOP (like mingw).
75531         * lib/chdir-safer.c (ELOOP): Define if not already defined.
75532         Reported by Bruno Haible.
75534 2008-05-10  Bruno Haible  <bruno@clisp.org>
75536         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
75537         (is_utf8_encoding): Use a case-insensitive comparison.
75538         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
75539         streq.
75541 2008-05-10  Bruno Haible  <bruno@clisp.org>
75543         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
75544         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
75545         * lib/unilbrk/ulc-common.h (iconv_string_length,
75546         iconv_string_keeping_offsets): Remove declarations.
75547         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
75548         Don't include <iconv.h>, streq.h, xsize.h.
75549         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
75550         conversion.
75551         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
75552         <iconv.h>, streq.h, xsize.h.
75553         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
75554         conversion.
75555         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
75556         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
75557         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
75558         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
75560 2008-05-10  Bruno Haible  <bruno@clisp.org>
75562         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
75563         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
75565         * modules/unilbrk/u32-width-linebreaks-tests: New file.
75566         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
75568         * modules/unilbrk/u16-width-linebreaks-tests: New file.
75569         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
75571         * modules/unilbrk/u8-width-linebreaks-tests: New file.
75572         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
75574         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
75575         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
75577         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
75578         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
75580         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
75581         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
75583         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
75584         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
75586 2008-05-10  Bruno Haible  <bruno@clisp.org>
75588         Split up 'linebreak' module.
75589         * lib/unilbrk.h: New file, based on lib/linebreak.h.
75590         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
75591         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
75592         modifications.
75593         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
75594         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
75595         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
75596         lib/linebreak.c.
75597         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
75598         lib/linebreak.c.
75599         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
75600         lib/linebreak.c.
75601         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
75602         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
75603         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
75604         lib/linebreak.c.
75605         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
75606         lib/linebreak.c.
75607         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
75608         lib/linebreak.c.
75609         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
75610         lib/linebreak.c.
75611         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
75612         lib/linebreak.c.
75613         * modules/unilbrk/base: New file.
75614         * modules/unilbrk/tables: New file.
75615         * modules/unilbrk/u8-possible-linebreaks: New file.
75616         * modules/unilbrk/u16-possible-linebreaks: New file.
75617         * modules/unilbrk/u32-possible-linebreaks: New file.
75618         * modules/unilbrk/ulc-common: New file.
75619         * modules/unilbrk/ulc-possible-linebreaks: New file.
75620         * modules/unilbrk/u8-width-linebreaks: New file.
75621         * modules/unilbrk/u16-width-linebreaks: New file.
75622         * modules/unilbrk/u32-width-linebreaks: New file.
75623         * modules/unilbrk/ulc-width-linebreaks: New file.
75624         * lib/linebreak.h: Remove file.
75625         * lib/linebreak.c: Remove file.
75626         * m4/linebreak.m4: Remove file.
75627         * modules/linebreak: Remove file.
75628         * NEWS: Mention the changes.
75630 2008-05-09  Eric Blake  <ebb9@byu.net>
75632         Add xmemdup0.
75633         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
75634         implementation.
75635         * lib/xmalloc.c (xmemdup0): New C implementation.
75637 2008-05-08  Bruno Haible  <bruno@clisp.org>
75639         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
75641 2008-05-07  Eric Blake  <ebb9@byu.net>
75643         Support cross-compilation of <wctype.h>.
75644         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
75645         AC_CACHE_CHECK.
75647 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
75649         * build-aux/vc-list-files: Add support for bzr.
75651 2008-05-03  Jim Meyering  <meyering@redhat.com>
75653         avoid failed assertion with tight malloc
75654         * tests/test-getndelim2.c: Correct an off-by-one assertion.
75656 2008-05-03  Simon Josefsson  <simon@josefsson.org>
75658         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
75659         are needed from arpa/inet.h.
75660         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
75661         Reported by Bruno Haible.
75663 2008-05-02  Jim Meyering  <meyering@redhat.com>
75665         avoid compilation error on FreeBSD 6
75666         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
75668 2008-05-01  Jim Meyering  <meyering@redhat.com>
75670         useless-if-before-free: correct --help's exit status description
75671         * build-aux/useless-if-before-free (usage): Like grep, exit 0
75672         for one or more matches, etc.  Reported by Bruno Haible.
75674         vc-list-files: make the stand-alone gnulib test work
75675         * modules/vc-list-files-tests (configure.ac):
75676         Define and AC_SUBST abs_aux_dir.
75677         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
75678         $(abs_top_srcdir) to each script and having each of them
75679         duplicate the work of setting PATH, set PATH here, using
75680         the new variable, abs_aux_dir instead.
75681         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
75682         * tests/test-vc-list-files-git.sh: Likewise.
75683         Reported by Bruno Haible.
75685 2008-05-01  Bruno Haible  <bruno@clisp.org>
75687         * lib/getndelim2.c (getndelim2): Fix newsize computation during
75688         reallocation. Rename 'done' to 'found_delimiter'.
75690 2008-05-01  Jim Meyering  <meyering@redhat.com>
75692         vc-list-files: accommodate /bin/sh like the one from Solaris 10
75693         * build-aux/vc-list-files: Use `...`, not $(...).
75695 2008-04-30  Jim Meyering  <meyering@redhat.com>
75697         add tests for vc-list-files
75698         * modules/vc-list-files-tests: New module.
75699         * tests/test-vc-list-files-cvs.sh: New file.
75700         * tests/test-vc-list-files-git.sh: New file.
75702         avoid a warning from gcc
75703         * lib/getndelim2.c (IF_LINT): Define.
75704         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
75706         vc-list-files: work properly with build-aux/cvsu, too
75707         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
75708         to all cvs-based clauses.
75710         vc-list-files: work properly in the CVS+awk case, too
75711         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
75713         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
75714         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
75715         take more than one file argument, so .  Add quotes, just in case $dir
75716         ever contains a shell meta-character.  Prompted by Soren Hansen in
75717         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
75719 2008-04-29  Eric Blake  <ebb9@byu.net>
75721         Optimize getndelim2 to use block operations when possible.
75722         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
75723         freadseek, and memchr2.
75724         * lib/getndelim2.c (getndelim2): Use them for block reads.
75726 2008-04-29  Bruno Haible  <bruno@clisp.org>
75728         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
75729         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75730         * modules/inet_ntop (Depends-on): Add extensions.
75731         * modules/inet_pton (Depends-on): Likewise.
75732         Reported by Simon Josefsson.
75734 2008-04-29  Jim Meyering  <meyering@redhat.com>
75736         When the is more than one match in a block, match all of them.
75737         * build-aux/useless-if-before-free: Iterate through each block
75738         until there are no more matches.
75740         Fix broken useless-if-before-free script.
75741         * build-aux/useless-if-before-free: Fix typo: missing "?" after
75742         the expression to match cast of argument to free-like function.
75744 2008-04-29  Eric Blake  <ebb9@byu.net>
75746         Use new header.
75747         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
75749 2008-04-29  Jim Meyering  <meyering@redhat.com>
75751         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
75752         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
75753         by gnulib to exist and to declare e.g., inet_ntop.
75754         Don't include "inet_ntop.h", now removed.
75756         * m4/arpa_inet_h.m4: Remove trailing blanks.
75758 2008-04-29  Eric Blake  <ebb9@byu.net>
75760         Silence valgrind on safe reads beyond potential array bounds.
75761         * lib/rawmemchr.valgrind: New file.
75762         * lib/strchrnul.valgrind: Likewise.
75763         * modules/rawmemchr (Files): Distribute new file.
75764         * modules/strchrnul (Files): Likewise.
75765         Suggested by Bruno Haible.
75767 2008-04-29  Bruno Haible  <bruno@clisp.org>
75769         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
75770         (inet_ntop, inet_pton): Change portability warning's wording.
75771         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
75772         Invoke gl_CHECK_NEXT_HEADERS.
75773         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
75774         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
75775         set ARPA_INET_H.
75776         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75777         * modules/arpa_inet (Description): No longer only for systems that
75778         lack it.
75779         (Depends-on): Add include_next.
75780         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
75781         HAVE_ARPA_INET_H.
75783 2008-04-29  Jim Meyering  <meyering@redhat.com>
75785         * modules/mkdir (License): Re-license as LGPLv2+.
75787 2008-04-29  Bruno Haible  <bruno@clisp.org>
75789         * modules/rawmemchr (Maintainer): Set to Eric.
75790         * modules/strchrnul (Maintainer): Likewise.
75792 2008-04-29  Simon Josefsson  <simon@josefsson.org>
75794         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
75795         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
75797         * modules/arpa_inet (arpa/inet.h): Use them.
75799 2008-04-28  Eric Blake  <ebb9@byu.net>
75801         Test getndelim2.
75802         * modules/getndelim2-tests: New file.
75803         * tests/test-getndelim2.c: Likewise.
75804         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
75805         stream.
75806         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
75808         * MODULES.html.sh: Document new module.
75810 2008-04-20  Bruno Haible  <bruno@clisp.org>
75812         * lib/c-stack.c (die): Use raise.
75813         * modules/c-stack (Depends-on): Add raise.
75815 2008-04-28  Bruno Haible  <bruno@clisp.org>
75817         Expect rpmatch to be declared.
75818         * lib/yesno.c (rpmatch): Remove declaration.
75820         Declare rpmatch.
75821         * lib/stdlib.in.h (rpmatch): New declaration.
75822         * lib/rpmatch.c: Include <stdlib.h> first.
75823         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
75824         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
75825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
75826         HAVE_RPMATCH.
75827         * modules/rpmatch (Depends-on): Add stdlib, extensions.
75828         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
75829         (Include): Set to <stdlib.h>.
75830         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
75831         HAVE_RPMATCH.
75832         * NEWS: Document the change.
75834 2008-04-28  Bruno Haible  <bruno@clisp.org>
75836         Change rpmatch to use nl_langinfo when appropriate.
75837         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
75838         (N_): New macro.
75839         (localized_pattern): New function/macro.
75840         (try): Remove match, nomatch arguments. Copy the pattern into safe
75841         memory before caching it.
75842         (rpmatch): Use localized_pattern. Add translator comments.
75843         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
75844         Suggested by Eric Blake.
75845         * modules/rpmatch (Depends-on): Add stdbool.
75847 2008-04-28  Eric Blake  <ebb9@byu.net>
75849         Add rawmemchr module, matching glibc.
75850         * modules/string (Makefile.am): New indicator.
75851         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
75852         * lib/string.in.h (rawmemchr): Declare when appropriate.
75853         * modules/rawmemchr: New file.
75854         * m4/rawmemchr.m4: Likewise.
75855         * lib/rawmemchr.c: Likewise.
75856         * modules/rawmemchr-tests: Likewise.
75857         * tests/test-rawmemchr.c: Likewise.
75858         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
75859         module.
75860         * modules/strchrnul (Depends-on): Add rawmemchr.
75861         * lib/strchrnul.c (strchrnul): Optimize a corner case.
75863         Whitespace cleanup.
75864         * tests/test-strchrnul.c: Reindent.
75865         * lib/strchrnul.c: Likewise.
75867         Optimize and test strchrnul.
75868         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
75869         * modules/strchrnul-tests: New file.
75870         * tests/test-strchrnul.c: Likewise.
75872         Remove intprops dependency.
75873         * modules/memchr (Depends-on): Remove intprops.
75874         * modules/memrchr (Depends-on): Likewise.
75875         * modules/memchr2 (Depends-on): Likewise.
75876         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
75877         * lib/memrchr.c (__memrchr): Likewise.
75878         * lib/memrchr2.c (memchr2): Likewise.
75879         Reported by Simon Josefsson.
75881 2008-04-28  Simon Josefsson  <simon@josefsson.org>
75883         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
75884         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75886 2008-04-28  Simon Josefsson  <simon@josefsson.org>
75888         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
75890         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
75892         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
75894         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
75895         declarations.
75896         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
75898         * m4/inet_pton.m4: Don't check for header files.
75900         * m4/inet_ntop.m4: Don't check for header files.
75902 2008-04-28  Simon Josefsson  <simon@josefsson.org>
75904         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
75905         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
75906         trigger for cygwin).
75907         Reported by Bruno Haible  <bruno@clisp.org>.
75909 2008-04-28  Bruno Haible  <bruno@clisp.org>
75911         * doc/posix-functions/strdup.texi: Mention mingw problem.
75913 2008-04-27  Bruno Haible  <bruno@clisp.org>
75915         * modules/stat-time-tests (Depends-on): Add sleep.
75916         * tests/test-stat-time.c (force_unlink): New function.
75917         (cleanup): Use it.
75918         (test_mtime): Remove the ctime related tests.
75919         (test_ctime): New function, containing the ctime related tests.
75920         (main): Call test_ctime, except on native Windows platforms.
75922 2008-04-27  Bruno Haible  <bruno@clisp.org>
75924         * lib/rpmatch.c (rpmatch): Add some comments.
75925         Reported by James Youngman <jay@gnu.org>.
75927 2008-04-27  Bruno Haible  <bruno@clisp.org>
75929         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
75930         quiet NaNs.
75932 2008-04-27  Bruno Haible  <bruno@clisp.org>
75934         Make test-yesno.sh work on mingw.
75935         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
75936         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
75937         (main): Set stdin to binary mode.
75938         * modules/yesno-tests (Depends-on): Add binary-io.
75940 2008-04-27  Bruno Haible  <bruno@clisp.org>
75942         Fix 'isfinite' on x86, x86_64, ia64 platforms.
75943         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
75944         argument that lie outside the IEEE 854 domain.
75945         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
75946         (gl_ISFINITE): Use it.
75947         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
75949 2008-04-27  Bruno Haible  <bruno@clisp.org>
75951         Allow local renaming in config.h.
75952         * lib/memrchr.c (memrchr): Don't undefine outside libc.
75954 2008-04-27  Bruno Haible  <bruno@clisp.org>
75956         * lib/memchr.c (__memchr): Change type of 'i'.
75957         * lib/memchr2.c (memchr2): Likewise.
75959 2008-04-26  Eric Blake  <ebb9@byu.net>
75960         and Bruno Haible  <bruno@clisp.org>
75962         Optimize and test memrchr.
75963         * modules/memrchr (Depends-on): Add intprops.
75964         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
75965         * modules/memrchr-tests: New file.
75966         * tests/test-memrchr.c: New file.
75968 2008-04-26  Bruno Haible  <bruno@clisp.org>
75970         Add tentative support for DragonFly BSD.
75971         * lib/stdio-impl.h: Add macros for DragonFly BSD.
75972         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
75973         fp.
75974         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
75975         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
75976         * lib/fpurge.c (fpurge): Likewise.
75977         * lib/freadable.c (freaadable): Likewise.
75978         * lib/freadahead.c (freadahead): Likewise.
75979         * lib/freading.c (freading): Likewise.
75980         * lib/freadptr.c (freadptr): Likewise.
75981         * lib/freadseek.c (freadptrinc): Likewise.
75982         * lib/fseeko.c (fseeko): Likewise.
75983         * lib/fseterr.c (fseterr): Likewise.
75984         * lib/fwritable.c (fwritable): Likewise.
75985         * lib/fwriting.c (fwriting): Likewise.
75987 2008-04-26  Bruno Haible  <bruno@clisp.org>
75989         * lib/stdio-impl.h: New file.
75990         * lib/fbufmode.c: Include stdio-impl.h.
75991         (fbufmode): Use fp_, remove redundant #defines.
75992         * lib/fflush.c: Include stdio-impl.h.
75993         (clear_ungetc_buffer): Remove redundant #defines.
75994         * lib/fpurge.c: Include stdio-impl.h.
75995         (fpurge): Remove redundant #defines.
75996         * lib/freadable.c: Include stdio-impl.h.
75997         (freadable): Remove redundant #defines.
75998         * lib/freadahead.c: Include stdio-impl.h.
75999         (freadahead): Remove redundant #defines.
76000         * lib/freading.c: Include stdio-impl.h.
76001         (freading): Remove redundant #defines.
76002         * lib/freadptr.c: Include stdio-impl.h.
76003         (freadptr): Remove redundant #defines.
76004         * lib/freadseek.c: Include stdio-impl.h.
76005         (freadptrinc): Remove redundant #defines.
76006         * lib/fseeko.c: Include stdio-impl.h.
76007         (rpl_fseeko): Remove redundant #defines.
76008         * lib/fseterr.c: Include stdio-impl.h.
76009         (fseterr): Remove redundant #defines.
76010         * lib/fwritable.c: Include stdio-impl.h.
76011         (fwritable: Remove redundant #defines.
76012         * lib/fwriting.c: Include stdio-impl.h.
76013         (fwriting): Remove redundant #defines.
76014         * modules/fbufmode (Files): Add lib/stdio-impl.h.
76015         * modules/fflush (Files): Likewise.
76016         * modules/fpurge (Files): Likewise.
76017         * modules/freadable (Files): Likewise.
76018         * modules/freadahead (Files): Likewise.
76019         * modules/freading (Files): Likewise.
76020         * modules/freadptr (Files): Likewise.
76021         * modules/freadseek (Files): Likewise.
76022         * modules/fseeko (Files): Likewise.
76023         * modules/fseterr (Files): Likewise.
76024         * modules/fwritable (Files): Likewise.
76025         * modules/fwriting (Files): Likewise.
76027 2008-04-26  Bruno Haible  <bruno@clisp.org>
76029         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
76030         restore_seek_optimization, update_fpos_cache): New functions, extracted
76031         from rpl_fflush.
76032         (rpl_fflush): Use them.
76033         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
76034         (gl_REPLACE_FFLUSH): Use it.
76036 2008-04-26  Bruno Haible  <bruno@clisp.org>
76038         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
76039         on Solaris.
76040         * tests/test-xstrtoimax.sh: Likewise.
76041         * tests/test-xstrtoumax.sh: Likewise.
76042         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76044 2008-04-26  Bruno Haible  <bruno@clisp.org>
76046         * modules/memchr-tests: New file.
76047         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
76049 2008-04-26  Eric Blake  <ebb9@byu.net>
76050             Bruno Haible  <bruno@clisp.org>
76052         * lib/memchr.c: Include intprops.h.
76053         (__memchr): Optimize parallel detection of matching bytes. Rename local
76054         variables. Add explanatory comments.
76056 2008-04-26  Bruno Haible  <bruno@clisp.org>
76058         Fix module 'memchr', broken since 2000-10-28.
76059         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
76061 2008-04-26  Bruno Haible  <bruno@clisp.org>
76063         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
76064         comments.
76066 2008-04-25  Eric Blake  <ebb9@byu.net>
76068         Use native fstatat on cygwin 1.7.0.
76069         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
76070         first.
76072 2008-04-23  Eric Blake  <ebb9@byu.net>
76074         Improve memchr2 performance.
76075         * lib/memchr2.c (memchr2): Further optimize parallel detection of
76076         NUL bytes.
76077         * modules/memchr2 (Depends-on): Use intprops.h.
76079 2008-04-23  Simon Josefsson  <simon@josefsson.org>
76081         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
76082         an inline function instead of a CPP macro.  Patch by Ben Pfaff
76083         <blp@cs.stanford.edu>.
76085 2008-04-23  Simon Josefsson  <simon@josefsson.org>
76087         * lib/arpa_inet.in.h: New file.
76089         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
76090         (Makefile.am): Sed in substitute header file.
76092         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
76093         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
76095         * modules/inet_ntop (configure.ac): Use
76096         gl_ARPA_INET_MODULE_INDICATOR.
76098         * modules/inet_pton (configure.ac): Use
76099         gl_ARPA_INET_MODULE_INDICATOR.
76101 2008-04-22  Jim Meyering  <meyering@redhat.com>
76103         * modules/verify (License): Re-license as LGPLv2+.
76105 2008-04-22  Simon Josefsson  <simon@josefsson.org>
76107         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
76108         parameter to void* as per POSIX standard (MinGW uses char*).
76110 2008-04-21  Bruno Haible  <bruno@clisp.org>
76112         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76113         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76114         Define to replacements if REPLACE_ISWCNTRL is 1.
76115         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
76116         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
76117         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
76118         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
76119         what it fixes.
76120         * doc/posix-functions/iswalpha.texi: Likewise.
76121         * doc/posix-functions/iswblank.texi: Likewise.
76122         * doc/posix-functions/iswcntrl.texi: Likewise.
76123         * doc/posix-functions/iswdigit.texi: Likewise.
76124         * doc/posix-functions/iswgraph.texi: Likewise.
76125         * doc/posix-functions/iswlower.texi: Likewise.
76126         * doc/posix-functions/iswprint.texi: Likewise.
76127         * doc/posix-functions/iswpunct.texi: Likewise.
76128         * doc/posix-functions/iswspace.texi: Likewise.
76129         * doc/posix-functions/iswupper.texi: Likewise.
76130         * doc/posix-functions/iswxdigit.texi: Likewise.
76131         Reported by Alain Guibert.
76133 2008-04-21  Bruno Haible  <bruno@clisp.org>
76135         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
76136         Patch by Alain Guibert.
76138 2008-04-21  Bruno Haible  <bruno@clisp.org>
76140         Fix test failures on mingw.
76141         * tests/test-xstrtol.c (print_no_progname): New function.
76142         (main): Install it in error_print_progname hook.
76143         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
76144         * tests/test-xstrtoimax.sh: Likewise.
76145         * tests/test-xstrtoumax.sh: Likewise.
76147 2008-04-21  Bruno Haible  <bruno@clisp.org>
76149         Fix test failure on mingw.
76150         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
76152 2008-04-21  Bruno Haible  <bruno@clisp.org>
76154         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
76155         Actually assign a value.
76157 2008-04-20  Bruno Haible  <bruno@clisp.org>
76159         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
76160         take 2.
76161         * lib/canonicalize.c (canonicalize_file_name): Elide if the
76162         'canonicalize-lgpl' module is also used.
76163         * lib/canonicalize-lgpl.c: Undo last change.
76164         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
76166 2008-04-20  Bruno Haible  <bruno@clisp.org>
76168         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
76169         config.h. Provide _mkdir based fallback for mingw.
76170         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
76171         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
76172         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
76173         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
76174         rather than defining mkdir in config.h.
76175         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
76176         (gl_SYS_STAT_H_DEFAULTS): New macro.
76177         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
76178         HAVE_IO_H any more.
76179         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
76180         HAVE_DECL_MKDIR and HAVE_IO_H.
76182 2008-04-20  Bruno Haible  <bruno@clisp.org>
76184         * lib/isapipe.c: Port to native Windows platforms.
76186 2008-04-20  Bruno Haible  <bruno@clisp.org>
76188         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
76190 2008-04-21  Eric Blake  <ebb9@byu.net>
76192         Work around preprocessors that don't handle UINTMAX_MAX.
76193         * lib/memchr2.c (memchr2): Avoid embedded #if.
76194         Reported by Alain Guibert, fix suggested by Bruno Haible.
76196 2008-04-21  Simon Josefsson  <simon@josefsson.org>
76198         * doc/posix-functions/strftime.texi (strftime): Explain better
76199         Windows incompatibility.  Suggested by Micah Cowan
76200         <micah@cowan.name>.
76202 2008-04-20  Bruno Haible  <bruno@clisp.org>
76204         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
76205         unistr/u8-mblen.
76207 2008-04-20  Bruno Haible  <bruno@clisp.org>
76209         Fix test failure on platforms with non-GNU iconv.
76210         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
76211         (U_TO_U8): Use it, rather than u16_to_u8.
76212         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
76213         units at the end of the input string.
76214         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
76216 2008-04-20  Bruno Haible  <bruno@clisp.org>
76218         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
76219         when the resulting length is 0.
76220         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
76222 2008-04-20  Bruno Haible  <bruno@clisp.org>
76224         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
76225         works.
76226         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
76228 2008-04-20  Bruno Haible  <bruno@clisp.org>
76230         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
76231         * modules/tsearch-tests (configure.ac): Test for initstate function.
76233 2008-04-20  Bruno Haible  <bruno@clisp.org>
76235         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
76236         for nlink_t if missing.
76237         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
76239 2008-04-19  Bruno Haible  <bruno@clisp.org>
76241         Work around snprintf bug on Linux libc5.
76242         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
76243         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
76244         gl_SNPRINTF_SIZE1.
76245         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
76246         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
76247         that test failed.
76248         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
76249         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
76250         * modules/snprintf (Files): Add m4/printf.m4.
76251         * modules/vsnprintf (Files): Likewise.
76252         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
76253         * doc/posix-functions/vsnprintf.texi: Likewise.
76255 2008-04-19  Bruno Haible  <bruno@clisp.org>
76257         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
76258         from 0.0058 to less than 10^-7.
76260 2008-04-19  Bruno Haible  <bruno@clisp.org>
76262         Fix rounding when a precision is given.
76263         * lib/vasnprintf.c (is_borderline): New function.
76264         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
76265         9...9x.
76266         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
76267         %e, %g.
76268         * tests/test-vasprintf-posix.c (test_function): Likewise.
76269         * tests/test-snprintf-posix.h (test_function): Likewise.
76270         * tests/test-sprintf-posix.h (test_function): Likewise.
76271         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
76272         * tests/test-printf-posix.h (test_function): Likewise.
76273         * tests/test-printf-posix.output: Update.
76274         Reported by John Darrington <john@darrington.wattle.id.au> via
76275         Ben Pfaff <blp@cs.stanford.edu>.
76277 2008-04-18  Simon Josefsson  <simon@josefsson.org>
76279         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
76280         Suggested by Bruno Haible <bruno@clisp.org>.
76282 2008-04-17  Bruno Haible  <bruno@clisp.org>
76284         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
76285         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
76286         implementation.
76287         Patch by Bruce Merry <bmerry@gmail.com>.
76289 2008-04-17  Simon Josefsson  <simon@josefsson.org>
76291         * doc/posix-functions/strftime.texi (strftime): Mention that %e
76292         doesn't work under Windows.
76294 2008-04-16  Bruno Haible  <bruno@clisp.org>
76296         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
76297         New macros.
76298         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
76299         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
76300         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
76301         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
76302         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
76303         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
76304         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
76305         macros.
76306         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
76307         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
76308         Northern Sotho, Uighur.
76310 2008-04-16  Bruno Haible  <bruno@clisp.org>
76312         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
76313         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
76314         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
76315         Reported by Daniel Bergström <daniel@octocode.com>.
76317 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
76318             Bruno Haible  <bruno@clisp.org>
76320         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
76321         function.
76322         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
76323         New functions, mostly extracted from gl_locale_name_default.
76324         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
76326 2008-04-16  Eric Blake  <ebb9@byu.net>
76328         Adjust strtod detection to catch glibc 2.7 bug.
76329         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
76330         Reported by John Gatewood Ham.
76332 2008-04-16  Bruno Haible  <bruno@clisp.org>
76334         Add tentative support for Linux libc5.
76335         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
76336         * lib/fpurge.c (fpurge): Likewise.
76337         * lib/freadable.c (freadable): Likewise.
76338         * lib/freadahead.c (freadahead): Likewise.
76339         * lib/freading.c (freading): Likewise.
76340         * lib/freadptr.c (freadptr): Likewise.
76341         * lib/freadseek.c (freadptrinc): Likewise.
76342         * lib/fseeko.c (rpl_fseeko): Likewise.
76343         * lib/fseterr.c (fseterr): Likewise.
76344         * lib/fwritable.c (fwritable): Likewise.
76345         * lib/fwriting.c (fwriting): Likewise.
76346         Reported by Alain Guibert <alguibert+bts@free.fr>.
76348 2008-04-15  Bruno Haible  <bruno@clisp.org>
76350         * modules/mathl (configure.ac): Define module indicator.
76352 2008-04-15  Bruno Haible  <bruno@clisp.org>
76354         * lib/logl.c (logl): Remove unused variables.
76356 2008-04-15  Bruno Haible  <bruno@clisp.org>
76358         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
76359         fails.
76361 2008-04-15  Bruno Haible  <bruno@clisp.org>
76363         * lib/trim.c (trim2): Fix argument of isspace() macro.
76365 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
76367         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
76368         to 0.
76369         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
76371 2008-04-14  Bruno Haible  <bruno@clisp.org>
76373         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
76374         AC_LANG_PROGRAM argument.
76375         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
76376         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
76377         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
76378         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
76379         * m4/math_h.m4 (gl_MATH_H): Likewise.
76380         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
76381         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
76382         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
76383         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
76384         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76385         * m4/regex.m4 (gl_REGEX): Likewise.
76386         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
76387         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
76388         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
76389         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
76390         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
76391         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
76392         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
76393         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
76395 2008-04-14  Jim Meyering  <meyering@redhat.com>
76397         test-strtod: fix typos: s/abs/fabs/
76398         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
76400 2008-04-13  Bruno Haible  <bruno@clisp.org>
76402         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
76403         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
76404         module is also used and while not building the reloc-wrapper.
76406 2008-04-13  Bruno Haible  <bruno@clisp.org>
76408         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
76410 2008-04-13  Bruno Haible  <bruno@clisp.org>
76412         Fix AIX compilation failure introduced on 2008-04-02.
76413         * tests/test-frexp.c (exp): Undefine before redefining.
76414         * tests/test-frexpl.c (exp): Likewise.
76416 2008-04-13  Bruno Haible  <bruno@clisp.org>
76418         Work around a HP-UX stdio bug.
76419         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
76420         * tests/test-ftello.c (main): Likewise.
76421         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
76422         * doc/posix-functions/ftello.texi: Likewise.
76424 2008-04-13  Bruno Haible  <bruno@clisp.org>
76426         Make test-signbit pass on HP-UX/hppa.
76427         * tests/test-signbit.c (minus_zerol): New variable.
76428         (test_signbitl): Use it.
76430 2008-04-13  Bruno Haible  <bruno@clisp.org>
76432         Make truncl work on OSF/1 4.0.
76433         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
76434         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
76435         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
76436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
76437         HAVE_DECL_TRUNCL.
76438         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
76439         HAVE_DECL_TRUNCL.
76440         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
76442 2008-04-13  Bruno Haible  <bruno@clisp.org>
76444         * lib/unictype.h: Remove trailing comma from enumeration definitions.
76446 2008-04-13  Bruno Haible  <bruno@clisp.org>
76448         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
76449         expression, so as to avoid HP-UX 11 cc compiler bug.
76451 2008-04-13  Bruno Haible  <bruno@clisp.org>
76453         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
76455 2008-04-13  Bruno Haible  <bruno@clisp.org>
76457         * lib/git-merge-changelog.c: Remove empty declaration outside of
76458         functions.
76460 2008-04-13  Bruno Haible  <bruno@clisp.org>
76462         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
76464 2008-04-13  Bruno Haible  <bruno@clisp.org>
76466         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
76467         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
76468         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
76469         also if it exists but lacks definitions of the SHUT_* macros.
76470         * modules/sys_socket (Description): Update.
76471         Reported by Elbert Pol <e.pol@chello.nl>.
76473 2008-04-13  Bruno Haible  <bruno@clisp.org>
76475         * lib/localcharset.c (OS2): Don't redefine if already defined.
76476         Reported by Elbert Pol <e.pol@chello.nl>.
76478 2008-04-13  Bruno Haible  <bruno@clisp.org>
76480         * lib/binary-io.h [__EMX__]: Include <io.h>.
76481         Reported by Elbert Pol <e.pol@chello.nl>.
76483 2008-04-12  Bruno Haible  <bruno@clisp.org>
76485         * lib/fpucw.h: Enable the definitions also for x86_64.
76486         Needed for NetBSD/x86_64.
76487         Reported by Thomas Klausner <tk@giga.or.at>.
76489 2008-04-12  Bruno Haible  <bruno@clisp.org>
76491         * tests/test-strtod.c: Include isnand.h.
76492         (main): Use isnand instead of isnan.
76493         Reported by Jim Meyering.
76495 2008-04-12  Bruno Haible  <bruno@clisp.org>
76497         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
76498         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76500 2008-04-12  Jim Meyering  <meyering@redhat.com>
76502         * m4/math_h.m4 (gl_MATH_H): Fix typos.
76504 2008-04-12  Bruno Haible  <bruno@clisp.org>
76506         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
76507         Reported by Elbert Pol <e.pol@chello.nl>.
76509 2008-04-12  Eric Blake  <ebb9@byu.net>
76511         Work around Solaris 10 math.h bug.
76512         * m4/math_h.m4 (gl_MATH_H): Check for bug.
76513         (gl_MATH_H_DEFAULTS): Set up default.
76514         * modules/math (Makefile.am): Replace new indicators.
76515         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
76516         * tests/test-math.c (main): Test this.
76517         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
76518         * doc/posix-headers/math.texi (math.h): Mention bug.
76519         Reported by Nelson H. F. Beebe and Jim Meyering.
76521 2008-04-11  Bruno Haible  <bruno@clisp.org>
76523         Adapt to future versions of Apple GCC.
76524         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
76525         Reported by Peter O'Gorman <peter@pogma.com>.
76527 2008-04-11  Bruno Haible  <bruno@clisp.org>
76529         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
76531 2008-04-11  Bruno Haible  <bruno@clisp.org>
76533         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
76535         * modules/getaddrinfo-tests (Makefile.am): Define
76536         test_getaddrinfo_LDADD.
76538 2008-04-11  Bruno Haible  <bruno@clisp.org>
76540         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
76541         (init): Fix syntax error.
76542         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
76543         is declared.
76545 2008-04-11  Bruno Haible  <bruno@clisp.org>
76547         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
76548         * modules/glob (Depends-on): Add stdbool.
76550 2008-04-11  Bruno Haible  <bruno@clisp.org>
76552         * lib/trim.c: Include <string.h>.
76554 2008-04-11  Eric Blake  <ebb9@byu.net>
76556         Avoid compile failure on OS/2.
76557         * lib/regex_internal.h (internal_function): Disable optimization
76558         on OS/2 (__EMX__), where it caused compiler error.
76559         Reported by Elbert Pol.
76561 2008-04-11  Bruno Haible  <bruno@clisp.org>
76563         Flush the standard error stream before aborting. Needed on mingw.
76564         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
76565         * tests/test-array_list.c (ASSERT): Likewise.
76566         * tests/test-array_oset.c (ASSERT): Likewise.
76567         * tests/test-avltree_list.c (ASSERT): Likewise.
76568         * tests/test-avltree_oset.c (ASSERT): Likewise.
76569         * tests/test-avltreehash_list.c (ASSERT): Likewise.
76570         * tests/test-binary-io.c (ASSERT): Likewise.
76571         * tests/test-byteswap.c (ASSERT): Likewise.
76572         * tests/test-c-ctype.c (ASSERT): Likewise.
76573         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
76574         * tests/test-c-strcasestr.c (ASSERT): Likewise.
76575         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
76576         * tests/test-c-strstr.c (ASSERT): Likewise.
76577         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
76578         * tests/test-canonicalize.c (ASSERT): Likewise.
76579         * tests/test-carray_list.c (ASSERT): Likewise.
76580         * tests/test-ceilf1.c (ASSERT): Likewise.
76581         * tests/test-ceilf2.c (ASSERT): Likewise.
76582         * tests/test-ceill.c (ASSERT): Likewise.
76583         * tests/test-count-one-bits.c (ASSERT): Likewise.
76584         * tests/test-fbufmode.c (ASSERT): Likewise.
76585         * tests/test-fflush2.c (ASSERT): Likewise.
76586         * tests/test-floorf1.c (ASSERT): Likewise.
76587         * tests/test-floorf2.c (ASSERT): Likewise.
76588         * tests/test-floorl.c (ASSERT): Likewise.
76589         * tests/test-fopen.c (ASSERT): Likewise.
76590         * tests/test-fpending.c (ASSERT): Likewise.
76591         * tests/test-fprintf-posix.c (ASSERT): Likewise.
76592         * tests/test-fpurge.c (ASSERT): Likewise.
76593         * tests/test-freadable.c (ASSERT): Likewise.
76594         * tests/test-freadahead.c (ASSERT): Likewise.
76595         * tests/test-freading.c (ASSERT): Likewise.
76596         * tests/test-freadptr.c (ASSERT): Likewise.
76597         * tests/test-freadptr2.c (ASSERT): Likewise.
76598         * tests/test-freadseek.c (ASSERT): Likewise.
76599         * tests/test-freopen.c (ASSERT): Likewise.
76600         * tests/test-frexp.c (ASSERT): Likewise.
76601         * tests/test-frexpl.c (ASSERT): Likewise.
76602         * tests/test-fseek.c (ASSERT): Likewise.
76603         * tests/test-fseeko.c (ASSERT): Likewise.
76604         * tests/test-fstrcmp.c (ASSERT): Likewise.
76605         * tests/test-ftell.c (ASSERT): Likewise.
76606         * tests/test-ftello.c (ASSERT): Likewise.
76607         * tests/test-func.c (ASSERT): Likewise.
76608         * tests/test-fwritable.c (ASSERT): Likewise.
76609         * tests/test-fwriting.c (ASSERT): Likewise.
76610         * tests/test-getdelim.c (ASSERT): Likewise.
76611         * tests/test-getline.c (ASSERT): Likewise.
76612         * tests/test-i-ring.c (ASSERT): Likewise.
76613         * tests/test-iconv-utf.c (ASSERT): Likewise.
76614         * tests/test-iconv.c (ASSERT): Likewise.
76615         * tests/test-isfinite.c (ASSERT): Likewise.
76616         * tests/test-isnand.c (ASSERT): Likewise.
76617         * tests/test-isnanf.c (ASSERT): Likewise.
76618         * tests/test-isnanl.h (ASSERT): Likewise.
76619         * tests/test-ldexpl.c (ASSERT): Likewise.
76620         * tests/test-linked_list.c (ASSERT): Likewise.
76621         * tests/test-linkedhash_list.c (ASSERT): Likewise.
76622         * tests/test-localename.c (ASSERT): Likewise.
76623         * tests/test-lseek.c (ASSERT): Likewise.
76624         * tests/test-mbscasecmp.c (ASSERT): Likewise.
76625         * tests/test-mbscasestr1.c (ASSERT): Likewise.
76626         * tests/test-mbscasestr2.c (ASSERT): Likewise.
76627         * tests/test-mbscasestr3.c (ASSERT): Likewise.
76628         * tests/test-mbscasestr4.c (ASSERT): Likewise.
76629         * tests/test-mbschr.c (ASSERT): Likewise.
76630         * tests/test-mbscspn.c (ASSERT): Likewise.
76631         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
76632         * tests/test-mbspbrk.c (ASSERT): Likewise.
76633         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
76634         * tests/test-mbsrchr.c (ASSERT): Likewise.
76635         * tests/test-mbsspn.c (ASSERT): Likewise.
76636         * tests/test-mbsstr1.c (ASSERT): Likewise.
76637         * tests/test-mbsstr2.c (ASSERT): Likewise.
76638         * tests/test-mbsstr3.c (ASSERT): Likewise.
76639         * tests/test-memchr2.c (ASSERT): Likewise.
76640         * tests/test-memmem.c (ASSERT): Likewise.
76641         * tests/test-open.c (ASSERT): Likewise.
76642         * tests/test-printf-frexp.c (ASSERT): Likewise.
76643         * tests/test-printf-frexpl.c (ASSERT): Likewise.
76644         * tests/test-printf-posix.c (ASSERT): Likewise.
76645         * tests/test-quotearg.c (ASSERT): Likewise.
76646         * tests/test-rbtree_list.c (ASSERT): Likewise.
76647         * tests/test-rbtree_oset.c (ASSERT): Likewise.
76648         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
76649         * tests/test-round1.c (ASSERT): Likewise.
76650         * tests/test-roundf1.c (ASSERT): Likewise.
76651         * tests/test-roundl.c (ASSERT): Likewise.
76652         * tests/test-signbit.c (ASSERT): Likewise.
76653         * tests/test-sleep.c (ASSERT): Likewise.
76654         * tests/test-snprintf-posix.c (ASSERT): Likewise.
76655         * tests/test-snprintf.c (ASSERT): Likewise.
76656         * tests/test-sprintf-posix.c (ASSERT): Likewise.
76657         * tests/test-stat-time.c (ASSERT): Likewise.
76658         * tests/test-strcasestr.c (ASSERT): Likewise.
76659         * tests/test-strerror.c (ASSERT): Likewise.
76660         * tests/test-striconv.c (ASSERT): Likewise.
76661         * tests/test-striconveh.c (ASSERT): Likewise.
76662         * tests/test-striconveha.c (ASSERT): Likewise.
76663         * tests/test-strsignal.c (ASSERT): Likewise.
76664         * tests/test-strstr.c (ASSERT): Likewise.
76665         * tests/test-strtod.c (ASSERT): Likewise.
76666         * tests/test-trunc1.c (ASSERT): Likewise.
76667         * tests/test-trunc2.c (ASSERT): Likewise.
76668         * tests/test-truncf1.c (ASSERT): Likewise.
76669         * tests/test-truncf2.c (ASSERT): Likewise.
76670         * tests/test-truncl.c (ASSERT): Likewise.
76671         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
76672         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
76673         * tests/test-vasnprintf.c (ASSERT): Likewise.
76674         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
76675         * tests/test-vasprintf.c (ASSERT): Likewise.
76676         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
76677         * tests/test-vprintf-posix.c (ASSERT): Likewise.
76678         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
76679         * tests/test-vsnprintf.c (ASSERT): Likewise.
76680         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
76681         * tests/test-wcwidth.c (ASSERT): Likewise.
76682         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
76683         * tests/test-xprintf-posix.c (ASSERT): Likewise.
76684         * tests/test-xvasprintf.c (ASSERT): Likewise.
76685         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
76686         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
76687         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
76688         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
76689         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
76690         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
76691         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
76692         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
76693         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
76694         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
76695         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
76696         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
76697         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
76698         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
76699         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
76700         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
76701         * tests/unictype/test-block_list.c (ASSERT): Likewise.
76702         * tests/unictype/test-block_of.c (ASSERT): Likewise.
76703         * tests/unictype/test-block_test.c (ASSERT): Likewise.
76704         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
76705         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
76706         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
76707         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
76708         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
76709         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
76710         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
76711         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
76712         * tests/unictype/test-combining.c (ASSERT): Likewise.
76713         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
76714         * tests/unictype/test-digit.c (ASSERT): Likewise.
76715         * tests/unictype/test-mirror.c (ASSERT): Likewise.
76716         * tests/unictype/test-numeric.c (ASSERT): Likewise.
76717         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
76718         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
76719         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
76720         * tests/unictype/test-scripts.c (ASSERT): Likewise.
76721         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
76722         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
76723         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
76724         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
76725         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
76726         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
76727         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
76728         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
76729         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
76730         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
76731         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
76732         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
76733         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
76734         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
76735         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
76736         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
76737         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
76738         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
76739         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
76740         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
76741         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
76742         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
76743         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
76744         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
76745         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
76746         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
76747         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
76748         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
76749         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
76750         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
76751         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
76752         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
76753         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
76754         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
76755         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
76756         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
76757         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
76758         Reported by Eric Blake.
76760 2008-04-11  Bruno Haible  <bruno@clisp.org>
76762         * lib/wchar.in.h: Tweak comment.
76764 2008-04-11  Bruno Haible  <bruno@clisp.org>
76766         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
76767         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
76768         gl_COMMON.
76769         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
76771 2008-04-11  Bruno Haible  <bruno@clisp.org>
76773         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
76775 2008-04-11  Simon Josefsson  <simon@josefsson.org>
76777         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
76778         of attempting to use non-existing /dev/*random.  Based on patch
76779         from Adam Strzelecki <ono@java.pl> in
76780         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
76782 2008-04-08  Bruno Haible  <bruno@clisp.org>
76784         Add tentative support for emx+gcc.
76785         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
76786         * lib/fpurge.c (fpurge): Likewise.
76787         * lib/freadable.c (freadable): Likewise.
76788         * lib/freadahead.c (freadahead): Likewise.
76789         * lib/freading.c (freading): Likewise.
76790         * lib/freadptr.c (freadptr): Likewise.
76791         * lib/freadseek.c (freadptrinc): Likewise.
76792         * lib/fseeko.c (rpl_fseeko): Likewise.
76793         * lib/fseterr.c (fseterr): Likewise.
76794         * lib/fwritable.c (fwritable): Likewise.
76795         * lib/fwriting.c (fwriting): Likewise.
76796         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
76798 2008-04-09  Eric Blake  <ebb9@byu.net>
76800         Avoid some autoconf warnings.
76801         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
76802         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
76803         * m4/afs.m4 (gl_AFS): Likewise.
76804         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
76805         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
76806         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
76807         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
76808         (gl_INTEGER_TYPE_SUFFIX): Likewise.
76809         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
76810         (AC_CHECK_DECLS_ONCE): Likewise.
76811         Rename file...
76812         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
76813         gnulib-tool requires autoconf 2.59 or better.
76814         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
76816 2008-04-08  Eric Blake  <ebb9@byu.net>
76818         Use 'git describe --match' if present (added in git 1.5.5).
76819         * build-aux/git-version-gen: Limit result to tags that match 'v*'
76820         if possible.
76822 2008-04-08  Bruno Haible  <bruno@clisp.org>
76824         Add tentative support for OpenServer.
76825         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
76826         _ptr, _cnt.
76827         * lib/fpurge.c (fpurge): Likewise.
76828         * lib/freadable.c (freadable): Likewise.
76829         * lib/freadahead.c (freadahead): Likewise.
76830         * lib/freading.c (freading): Likewise.
76831         * lib/freadptr.c (freadptr): Likewise.
76832         * lib/freadseek.c (freadptrinc): Likewise.
76833         * lib/fseeko.c (rpl_fseeko): Likewise.
76834         * lib/fseterr.c (fseterr): Likewise.
76835         * lib/fwritable.c (fwritable): Likewise.
76836         * lib/fwriting.c (fwriting): Likewise.
76837         Reported by Roger Cornelius <rac@tenzing.org> and
76838         Brian K. White <brian@aljex.com>.
76840 2008-04-06  Jim Meyering  <meyering@redhat.com>
76842         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
76844 2008-04-06  Bruno Haible  <bruno@clisp.org>
76846         Avoid possible error with non-ASCII bytes in UTF-8 locales.
76847         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
76848         * tests/test-printf-posix.sh: Likewise.
76849         * tests/test-vfprintf-posix.sh: Likewise.
76850         * tests/test-vprintf-posix.sh: Likewise.
76851         * tests/test-xprintf-posix.sh: Likewise.
76853 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76855         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
76856         hide error from 'ls', needed on OS/2.
76857         Report by Elbert Pol <elbert.pol@gmail.com>.
76859 2008-04-04  Eric Blake  <ebb9@byu.net>
76861         Make test-fseeko.c failures meaningful.
76862         * tests/test-fseeko.c: Print line number on failure.
76863         * tests/test-fseek.c: Likewise.
76864         Reported by Nelson H. F. Beebe.
76866         Improve strtod bug detection check.
76867         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
76868         required for Solaris 10.
76869         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
76871 2008-04-04  Bruno Haible  <bruno@clisp.org>
76873         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
76874         by m4/setenv.m4.
76876 2008-04-03  Eric Blake  <ebb9@byu.net>
76878         Ensure sane .version contents.
76879         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
76880         version string.
76881         * build-aux/git-version-gen: Improve documentation.
76883         Make GNU make output nicer.
76884         * top/GNUmakefile [!_have-Makefile]: Add dependency on
76885         MAKECMDGOALS to enforce message for all command line targets.  Set
76886         srcdir for use in maint.mk.
76888         Another maintainer tweak.
76889         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
76890         a target that regenerates version.
76892 2008-04-03  Jim Meyering  <meyering@redhat.com>
76894         vc-list-files: don't cause coreutils "make po-check" failure
76895         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
76897 2008-04-03  Eric Blake  <ebb9@byu.net>
76899         Allow VPATH usage of vc-list-files.
76900         * build-aux/vc-list-files (scriptversion): Add timestamp.
76901         (options): Add --help, --version, -C.
76902         (CVS): Support installed cvsu.
76904 2008-04-02  Bruno Haible  <bruno@clisp.org>
76906         Avoid some "statement with no effect" warnings from gcc.
76907         * tests/test-wctype.c (main): Explicitly ignore unused values.
76908         Reported by Jim Meyering.
76910 2008-04-02  Jim Meyering  <meyering@redhat.com>
76912         Avoid some warnings from "gcc -Wshadow".
76913         * tests/test-frexp.c (exp): Define to a different identifier.
76914         * tests/test-frexpl.c (exp): Likewise.
76916 2008-04-03  Jim Meyering  <meyering@redhat.com>
76918         bootstrap: remove dangling *.[ch] symlinks from lib
76919         * build-aux/bootstrap [dangling symlink removal]: Move find's
76920         -depth option to precede all others, to avoid a warning.
76921         Remove *.[ch] files too, and from "$source_base" (usually lib/).
76923 2008-04-02  Bruno Haible  <bruno@clisp.org>
76925         Avoid some warnings from "gcc -Wshadow".
76926         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
76927         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
76928         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
76929         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
76930         Reported by Jim Meyering.
76932 2008-04-01  Bruno Haible  <bruno@clisp.org>
76934         Fix test to work on IRIX 6.5 with cc.
76935         * tests/test-math.c (numeric_equal): New function.
76936         (main): Use it.
76938 2008-04-01  Bruno Haible  <bruno@clisp.org>
76940         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
76942 2008-04-01  Bruno Haible  <bruno@clisp.org>
76944         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
76945         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
76946         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
76947         (Depends-on): Remove math.
76949         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
76950         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
76951         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
76952         (Depends-on): Remove math.
76954         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
76955         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
76956         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
76957         (Depends-on): Remove math.
76958         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
76959         (Depends-on): Remove math.
76961         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
76962         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
76963         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
76964         (Depends-on): Remove math.
76965         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
76966         (Depends-on): Remove math.
76968         * tests/test-round1.c: Include nan.h.
76969         (main): Use NaNd instead of NAN.
76970         * modules/round-tests (Files): Add tests/nan.h.
76972         * tests/test-trunc1.c: Include nan.h.
76973         (main): Use NaNd instead of NAN.
76974         * modules/trunc-tests (Files): Add tests/nan.h.
76976         * tests/test-roundf1.c: Include nan.h.
76977         (main): Use NaNf instead of NAN.
76978         * modules/roundf-tests (Files): Add tests/nan.h.
76980         * tests/test-truncf1.c: Include nan.h.
76981         (main): Use NaNf instead of NAN.
76982         * modules/truncf-tests (Files): Add tests/nan.h.
76984         * tests/test-ceilf1.c: Include nan.h.
76985         (main): Use NaNf instead of NAN.
76986         * modules/ceilf-tests (Files): Add tests/nan.h.
76988         * tests/test-floorf1.c: Include nan.h.
76989         (main): Use NaNf instead of NAN.
76990         * modules/floorf-tests (Files): Add tests/nan.h.
76992         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
76993         (main): Use NaNf instead of NAN.
76994         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
76996         * tests/test-isnand.c: Include nan.h instead of <math.h>.
76997         (main): Use NaNd instead of NAN.
76998         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
77000         * tests/test-frexp.c: Include nan.h.
77001         (main): Use NaNd instead of NAN.
77002         * modules/frexp-tests (Files): Add tests/nan.h.
77004         * lib/isnan.c: Don't include <math.h>.
77005         (FUNC): Don't use NAN macro.
77006         * modules/isnand-nolibm (Depends-on): Remove math.
77007         * modules/isnanf-nolibm (Depends-on): Remove math.
77008         * modules/isnanl (Depends-on): Remove math.
77009         * modules/isnanl-nolibm (Depends-on): Remove math.
77011         * tests/nan.h: New file.
77013 2008-04-01  Eric Blake  <ebb9@byu.net>
77015         Fix typos.
77016         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
77017         values to be the right type.
77019         For now, cater to gnulib strtod inaccuracies.
77020         * tests/test-strtod.c (main): Allow 1-ulp error on expected
77021         fractional results.  While not as nice from a QoI perspective, it
77022         is a quicker patch than correctly implementing decimal to binary
77023         rounding.
77025 2008-03-31  Eric Blake  <ebb9@byu.net>
77027         Guarantee a definition of NAN.
77028         * lib/math.in.h (NAN): Define if missing.
77029         * tests/test-math.c (main): Test it.
77030         * doc/posix-headers/math.texi (math.h): Document this.
77031         * lib/isnan.c (rpl_isnand): Use it.
77032         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
77033         * tests/test-floorf1.c (NaN): Likewise.
77034         * tests/test-frexp.c (NaN): Likewise.
77035         * tests/test-isnand.c (NaN): Likewise.
77036         * tests/test-isnanf.c (NaN): Likewise.
77037         * tests/test-round1.c (NaN): Likewise.
77038         * tests/test-roundf1.c (NaN): Likewise.
77039         * tests/test-snprintf-posix.h (NaN): Likewise.
77040         * tests/test-sprintf-posix.h (NaN): Likewise.
77041         * tests/test-trunc1.c (NaN): Likewise.
77042         * tests/test-truncf1.c (NaN): Likewise.
77043         * tests/test-vasnprintf-posix.c (NaN): Likewise.
77044         * tests/test-vasprintf-posix.c (NaN): Likewise.
77045         * modules/isnand-nolibm (Depends-on): Add math.
77046         * modules/isnanf-nolibm (Depends-on): Likewise.
77047         * modules/isnanl (Depends-on): Likewise.
77048         * modules/isnanl-nolibm (Depends-on): Likewise.
77049         * modules/snprintf-posix-tests (Depends-on): Likewise.
77050         * modules/sprintf-posix-tests (Depends-on): Likewise.
77051         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
77052         * modules/vsprintf-posix-tests (Depends-on): Likewise.
77053         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
77054         * modules/vasprintf-posix-tests (Depends-on): Likewise.
77056 2008-03-31  Bruno Haible  <bruno@clisp.org>
77058         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
77059         * doc/posix-functions/strtod.texi: Likewise.
77061 2008-03-31  Bruno Haible  <bruno@clisp.org>
77063         * tests/test-strtod.c (main): Don't use C99 syntax.
77065 2008-03-31  Bruno Haible  <bruno@clisp.org>
77067         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
77068         Reported by Eric Blake.
77070 2008-03-31  Jim Meyering  <meyering@redhat.com>
77072         Don't compare actual signbit return values.
77073         * tests/test-strtod.c (main): Rather, compare only their
77074         zero/non-zero nature.
77076 2008-03-31  Eric Blake  <ebb9@byu.net>
77078         More strtod documentation.
77079         * doc/posix-functions/strtod.texi (strtod): Interpret more test
77080         failures as distinct bugs.
77082 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
77084         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
77085         Problem reported by Erik Benada in
77086         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
77088 2008-03-30  Bruno Haible  <bruno@clisp.org>
77090         * tests/test-strtod.c: Add comments about which assertion fails on which
77091         platform.
77092         * doc/posix-functions/strtod.texi: Add info about many more platforms.
77094 2008-03-30  Eric Blake  <ebb9@byu.net>
77096         Test signbit behavior on zeros.
77097         * tests/test-signbit.c (test_signbitf): Add tests for zero.
77098         (test_signbitd, test_signbitl): Likewise.
77100         More strtod touchups.
77101         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
77102         sign of negative underflow, for now.  Use .5, not .1.
77103         * doc/posix-functions/strtod.texi (strtod): Mention these
77104         limitations.
77105         Reported by Jim Meyering.
77107 2008-03-30  Bruno Haible  <bruno@clisp.org>
77109         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
77110         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
77112 2008-03-30  Bruno Haible  <bruno@clisp.org>
77114         Avoid failure when attempting to return empty iconv results on some
77115         platforms.
77116         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
77117         allocation, don't report ENOMEM when the resulting string is empty.
77119 2008-03-30  Bruno Haible  <bruno@clisp.org>
77121         Fix buffer overrun.
77122         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
77123         Don't consider the width for tmp_length. Check count against tmp_length
77124         before doing the padding. Ensure enough allocation during padding.
77126 2008-03-30  Eric Blake  <ebb9@byu.net>
77128         strtod touchups.
77129         * lib/strtod.c (strtod): Avoid compiler warnings.
77130         Reported by Jim Meyering.
77132 2008-03-30  Bruno Haible  <bruno@clisp.org>
77134         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
77135         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
77136         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
77137         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
77138         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
77139         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
77140         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
77141         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
77143         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
77144         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
77145         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
77146         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
77147         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
77148         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
77149         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
77150         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
77152         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
77153         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
77154         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
77155         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
77156         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
77157         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
77158         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
77159         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
77161         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
77162         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
77164         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
77165         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
77167         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
77168         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
77170         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
77171         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
77172         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
77174         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
77175         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
77176         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
77178         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
77179         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
77180         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
77182         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
77183         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
77184         * modules/vasprintf (Depends-on): Add EOVERFLOW.
77186         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
77187         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
77188         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
77189         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
77190         (Depends-on): Add EOVERFLOW.
77191         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
77192         (Depends-on): Add EOVERFLOW.
77193         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
77194         (Depends-on): Add EOVERFLOW.
77195         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
77196         (Depends-on): Add EOVERFLOW.
77197         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
77198         (Depends-on): Add EOVERFLOW.
77199         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
77200         (Depends-on): Add EOVERFLOW.
77201         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
77202         (Depends-on): Add EOVERFLOW.
77203         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
77204         (Depends-on): Add EOVERFLOW.
77206         * lib/sprintf.c (EOVERFLOW): Remove fallback.
77207         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
77208         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
77210         * lib/snprintf.c (EOVERFLOW): Remove fallback.
77211         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
77212         * modules/snprintf (Depends-on): Add EOVERFLOW.
77214         * lib/poll.c (EOVERFLOW): Remove fallback.
77215         * modules/poll (Depends-on): Add EOVERFLOW.
77217         * lib/getugroups.c (EOVERFLOW): Remove fallback.
77218         * modules/getugroups (Depends-on): Add EOVERFLOW.
77220         * lib/getdelim.c (EOVERFLOW): Remove fallback.
77221         * modules/getdelim (Depends-on): Add EOVERFLOW.
77223         * lib/ftell.c (EOVERFLOW): Remove fallback.
77224         * modules/ftell (Depends-on): Add EOVERFLOW.
77226         * lib/fprintf.c (EOVERFLOW): Remove fallback.
77227         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
77228         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
77230         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
77232         * modules/EOVERFLOW-tests: New file.
77233         * tests/test-EOVERFLOW.c: New file.
77235         * modules/EOVERFLOW: New file.
77236         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
77238 2008-03-30  Bruno Haible  <bruno@clisp.org>
77240         Fix bug introduced on 2007-06-10.
77241         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
77242         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
77244 2008-03-30  Bruno Haible  <bruno@clisp.org>
77246         Improve freadseek's efficiency after ungetc.
77247         * lib/freadseek.c: Include freadahead.h.
77248         (freadptrinc): New function, extracted from freadseek.
77249         (freadseek): Use it in a loop. Use freadahead to determine the number
77250         of loop iterations.
77251         * modules/freadseek (Depends-on): Add freadahead.
77252         (configure.ac): Require AC_C_INLINE.
77254 2008-03-30  Bruno Haible  <bruno@clisp.org>
77256         * lib/freadseek.c (freadseek): Don't ignore the return value of
77257         freadptr.
77259 2008-03-29  Eric Blake  <ebb9@byu.net>
77261         Add hex float support.
77262         * modules/strtod (Depends-on): Add c-ctype.
77263         (Link): Mention POW_LIB.
77264         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
77265         whitespace between 'e' and exponent.
77266         * tests/test-strtod.c (main): Enable hex float tests.
77267         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
77268         now provides.
77270         Document various strtod bugs, with some fixes.
77271         * doc/posix-functions/strtod.texi (strtod): Document bugs with
77272         "-0x", "inf", "nan", and hex constants.
77273         * doc/posix-functions/atof.texi (atof): Likewise.
77274         * modules/stdlib (Makefile.am): Support strtod.
77275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
77276         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
77277         detect additional strtod bugs.
77278         * lib/stdlib.in.h (rpl_strtod): Add declarations.
77279         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
77280         bool where appropriate.  Parse 'inf' and 'nan'.
77281         * tests/test-strtod.c: New file.
77282         * modules/strtod (Depends-on): Add stdbool, stdlib.
77283         (configure.ac): Turn on module indicator.
77284         * modules/strtod-tests: New module.
77286 2008-03-29  Eric Blake  <ebb9@byu.net>
77288         Fix ftell on mingw.
77289         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
77290         * modules/ftell-tests (Depends-on): Add binary-io.
77291         * modules/ftello-tests (Depends-on): Likewise.
77292         * tests/test-ftell.c (main): Enhance test to cover behavior after
77293         ungetc.  Enforce binary mode.
77294         * tests/test-ftello.c (main): Likewise.
77296         Pass test-freadseek on cygwin.
77297         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
77298         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
77299         ungetc buffer.
77301         * tests/test-fflush2.c (main): Fix typo.
77303 2008-03-29  Bruno Haible  <bruno@clisp.org>
77305         * tests/test-fflush2.c (main): Temporarily disable the contents of
77306         this test.
77307         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
77308         Reported by Eric Blake.
77310 2008-03-28  Simon Josefsson  <simon@josefsson.org>
77312         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
77313         (GC_SHA224_DIGEST_SIZE): Add.
77315         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
77316         (gc_hash_digest_length): Likewise.
77317         (gc_hash_buffer): Likewise.
77319 2008-03-25  Bruno Haible  <bruno@clisp.org>
77321         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
77322         detail which gettext release to use.
77323         Reported by Simon Josefsson.
77325 2008-03-26  Jim Meyering  <meyering@redhat.com>
77327         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
77328         * modules/gnumakefile (clean-GNUmakefile): Also, use
77329         test ... && ... || : syntax rather than if-then ... fi.
77331         gnumakefile: Don't double-quote-expand $(VPATH) value.
77332         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
77334 2008-03-24  Eric Blake  <ebb9@byu.net>
77336         Alter GNUmakefile to install into top directory.
77337         * modules/maintainer-makefile: Split, and add dependency...
77338         * modules/gnumakefile: to this new module.
77339         * build-aux/GNUmakefile: Move...
77340         * top/GNUmakefile: ...here.
77341         * build-aux/maint.mk: Move...
77342         * top/maint.mk: ...here.
77343         * MODULES.html.sh (Support for maintaining...): Document new
77344         module.
77346 2008-03-23  Bruno Haible  <bruno@clisp.org>
77348         * gnulib-tool: New options --vc-files, --no-vc-files.
77349         (func_usage): Document them.
77350         (vc_files): New variable.
77351         (func_import): Consider vc_files.
77352         (func_create_testdir): Set vc_files to empty.
77353         Suggested by Jim Meyering and Karl Berry.
77355 2008-03-23  Bruno Haible  <bruno@clisp.org>
77357         Fix regex compilation error on HP-UX 11.
77358         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
77359         * modules/regex (Files): Add m4/mbstate_t.m4.
77360         Reported by Ton Voon <ton.voon@altinity.com>.
77362 2008-03-23  Bruno Haible  <bruno@clisp.org>
77364         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
77366 2008-03-23  Eric Blake  <ebb9@byu.net>
77367             Bruno Haible  <bruno@clisp.org>
77369         Install files from top/ in the destination directory.
77370         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
77371         augmentation also for the files from top/.
77372         (func_import, func_create_testdir): Rewrite file names:
77373         top/filename -> filename.
77375 2008-03-23  Bruno Haible  <bruno@clisp.org>
77377         Tweak "gnulib --version" output.
77378         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
77380 2008-03-23  Bruno Haible  <bruno@clisp.org>
77382         Tweak "gnulib --version" output.
77383         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
77384         rather than contents of ChangeLog, when possible.
77386 2008-03-21  Eric Blake  <ebb9@byu.net>
77388         More --version tweaks.
77389         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
77390         date of last ChangeLog entry.
77392 2008-03-21  Jim Meyering  <meyering@redhat.com>
77394         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
77396 2008-03-20  Eric Blake  <ebb9@byu.net>
77398         VPATH fix.
77399         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
77401 2008-03-20  Simon Josefsson  <simon@josefsson.org>
77403         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
77404         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
77406 2008-03-20  Eric Blake  <ebb9@byu.net>
77408         Sync GNUmakefile with coreutils.
77409         * build-aux/GNUmakefile (have-Makefile): Rename...
77410         (_have-Makefile): ...to this, for namespace consideration.
77411         (GNUmakefile.cfg): Include, if present.
77412         (_autoreconf): Define a default.
77413         (_is-dist-target): New rule for rebuilds to pick up intra-release
77414         version.
77415         (maint-cfg.mk): Rename...
77416         (cfg.mk): ...to this.
77418 2008-03-18  Jim Meyering  <meyering@redhat.com>
77420         New script and module: mktempd
77421         * MODULES.html.sh (maint+release support): Add mktempd.
77422         * build-aux/mktempd: New file.
77423         * modules/mktempd: New file.
77425 2008-03-15  Jim Meyering  <meyering@redhat.com>
77427         Undo last change.
77428         * lib/sha1.c, lib/md5.c: 63 != ~63.
77429         Reported by Andreas Schwab.
77431         sha1.c, md5.c: Hoist a redundant expression.
77432         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
77433         "ctx->buflen" only once, before calling *_process_block.
77434         * lib/md5.c (md5_process_bytes): Likewise.
77436 2008-03-14  Eric Blake  <ebb9@byu.net>
77438         Bump copyright year in files generated by gnulib-tool.
77439         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
77440         gnulib-tool, rather than hard-coding it.
77442         Fix 'gnulib-tool --version' output to work with git.
77443         * gnulib-tool (func_gnulib_dir): New function, extracted from...
77444         (startup): ...here.
77445         (func_version): Use it to invoke git-version-gen, rather than
77446         relying on CVS keyword expansion.  Modernize wording.
77447         (cvsdatestamp, last_checkin_date, version): Kill unused
77448         variables.
77450 2008-03-12  Jim Meyering  <meyering@redhat.com>
77452         Recognize optional cast of the argument to free.
77453         * build-aux/useless-if-before-free: Update regexps.
77455         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
77457 2008-03-11  Bruno Haible  <bruno@clisp.org>
77459         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
77460         by a single package.
77461         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
77462         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
77463         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
77464         Reported by Sam Steingold <sds@gnu.org>.
77466 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77468         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
77469         repositories.
77471 2008-03-11  Bruno Haible  <bruno@clisp.org>
77473         Avoid conflicts between local macro definitions.
77474         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
77475         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
77477 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
77478             Bruno Haible  <bruno@clisp.org>
77480         Make va_copy work with some version of xlc on AIX 5.1.
77481         * lib/stdarg.in.h: New file.
77482         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
77483         On AIX, use a <stdarg.h> file substitute.
77484         * modules/stdarg (Files): Add lib/stdarg.in.h.
77485         (Depends-on): Add include_next.
77486         (Makefile.am): Build a stdarg.h substitute if requested.
77487         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
77489 2008-03-10  Bruno Haible  <bruno@clisp.org>
77491         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
77492         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
77493         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
77495 2008-03-10  Bruno Haible  <bruno@clisp.org>
77497         * modules/stdlib (Depends-on): Add include_next, remove
77498         absolute-header.
77500 2008-03-09  Bruno Haible  <bruno@clisp.org>
77502         * lib/freadahead.h (freadahead): Document more precisely.
77503         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
77504         the sum of both buffer sizes.
77505         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
77506         * NEWS: Document the change.
77508 2008-03-09  Bruno Haible  <bruno@clisp.org>
77510         Extend freadptr to return also the buffer size.
77511         * lib/freadptr.h (freadptr): Add sizep argument.
77512         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
77513         (freadptr): Add sizep argument. Determine buffer size like freadahead
77514         does.
77515         * tests/test-freadptr.c: Don't include freadahead.h.
77516         (main): Adapt for new calling convention of freadptr.
77517         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
77518         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
77519         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
77520         tests/test-freadptr2.sh.
77521         (Depends): Remove freadahead.
77522         (TESTS): Add test-freadptr2.sh.
77523         (check_PROGRAMS): Add test-freadptr2.
77525 2008-03-09  Bruno Haible  <bruno@clisp.org>
77527         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
77528         Report and solution by Simon Josefsson.
77530 2008-03-06  Bruno Haible  <bruno@clisp.org>
77532         Make fflush after ungetc work on BSD platforms.
77533         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
77534         * tests/test-fflush2.c: New file.
77535         * tests/test-fflush2.sh: New file.
77536         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
77537         tests/test-fflush2.c.
77538         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
77539         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
77541 2008-03-06  Eric Blake  <ebb9@byu.net>
77543         Likewise for ftello.
77544         * modules/ftello (Dependencies): Add extensions.
77545         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
77547 2008-03-06  Bruno Haible  <bruno@clisp.org>
77549         * modules/fseeko (Dependencies): Add extensions.
77550         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
77551         Needed on glibc systems.
77553 2008-03-06  Bruno Haible  <bruno@clisp.org>
77555         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
77556         email address.
77557         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77559 2008-03-06  Bruno Haible  <bruno@clisp.org>
77561         * users.txt: Add libgnupdf.
77563 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
77565         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
77566         (Header File Substitutes, Function Substitutes,
77567         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
77568         (Build robot for gnulib): Fix typo.
77570 2008-03-06  Bruno Haible  <bruno@clisp.org>
77572         * doc/gnulib-tool.texi (VCS Issues): Small updates.
77573         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77575 2008-03-06  Bruno Haible  <bruno@clisp.org>
77577         * doc/func.texi: New file, extracted from doc/gnulib.texi.
77578         * doc/gnulib.texi: Include it.
77580 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77582         * modules/func (License): Change license to unlimited; there was
77583         no LGPL parts in the module anyway.
77585 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77587         * modules/__func__: Renamed to modules/func.
77588         * modules/__func__-tests: Renamed to modules/func-tests.
77589         * tests/test-__func__.c: Renamed to tests/test-func.c.
77590         * m4/__func__.m4: Renamed to m4/func.m4.
77591         * doc/gnulib.texi (__func__): Section renamed to func.
77592         Suggested by Eric Blake <ebb9@byu.net>.
77594 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77596         * doc/gnulib.texi (__func__): Use C99 terminology when talking
77597         about __func__.  Make example self-contained.  Suggested by Eric
77598         Blake <ebb9@byu.net>.
77600         * tests/test-__func__.c (main): Avoid extraneous () around __func.
77601         Suggested by Eric Blake <ebb9@byu.net>.
77603 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77605         * modules/__func__: New file.
77606         * modules/__func__-tests: New file.
77607         * tests/test-__func__.c: New file.
77608         * m4/__func__.m4: New file.
77609         * doc/gnulib.texi (__func__): Document __func__ module.
77611 2008-03-05  Simon Josefsson  <simon@josefsson.org>
77613         * modules/byteswap (License): Re-license as LGPLv2+.
77615 2008-03-05  Simon Josefsson  <simon@josefsson.org>
77617         * doc/Makefile: Add pdf target.
77619 2008-03-05  Simon Josefsson  <simon@josefsson.org>
77621         * modules/inline (License): Use 'unlimited', since there are only
77622         *.m4 files in this module.
77624 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
77625             Bruno Haible  <bruno@clisp.org>
77627         Add support for HP C 7.1 on OpenVMS 8.3.
77628         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
77630 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
77632         Update VMS specifics.
77633         * lib/getopt.c [VMS]: Remove include of unixlib.h.
77635 2008-03-02  Jim Meyering  <meyering@redhat.com>
77637         Remove the last dependency on the "free" module.
77638         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
77639         Reported by Bob Proulx.
77641         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
77643         Remove useless "if" tests before free.  Deprecate "free" module.
77644         * doc/posix-functions/free.texi: Mention that this
77645         module is no longer useful.
77646         * modules/free (Notice): Say this module is obsolete.
77647         * modules/readutmp (Depends-on): Remove free.
77648         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
77649         * lib/putenv.c (putenv): Likewise.
77650         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
77651         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
77652         * tests/test-c-strcasestr.c (main): Likewise.
77653         * tests/test-c-strstr.c (main): Likewise.
77654         * tests/test-mbscasestr1.c (main): Likewise.
77655         * tests/test-mbscasestr2.c (main): Likewise.
77656         * tests/test-mbsstr1.c (main): Likewise.
77657         * tests/test-mbsstr2.c (main): Likewise.
77658         * tests/test-memmem.c (main): Likewise.
77659         * tests/test-strcasestr.c (main): Likewise.
77660         * tests/test-striconv.c (main): Likewise.
77661         * tests/test-striconveh.c (main): Likewise.
77662         * tests/test-striconveha.c (main): Likewise.
77663         * tests/test-strstr.c (main): Likewise.
77665         * build-aux/git-version-gen: Adjust a comment and the Usage string.
77667         bootstrap: sync from coreutils again
77668         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
77670 2008-03-01  Jim Meyering  <meyering@redhat.com>
77672         bootstrap: sync from coreutils
77673         * build-aux/bootstrap (update_po_files): Copy a .po file into place
77674         also when the target doesn't exist.
77676 2008-03-01  Eric Blake  <ebb9@byu.net>
77678         Fix bugs in last patch.
77679         * lib/memchr2.c (memchr2): Fix typo.
77680         * tests/test-memchr2.c: Test previous bug, and don't use GNU
77681         extension.
77682         Reported by Bruce Korb.
77684         New module 'memchr2'.
77685         * modules/memchr2: New file.
77686         * modules/memchr2-tests: Likewise.
77687         * lib/memchr2.h: Likewise.
77688         * lib/memchr2.c: Likewise, based on memchr.c.
77689         * tests/test-memchr2.c: New test.
77690         * MODULES.html.sh (String handling): Add memchr2.
77692 2008-02-29  Bruno Haible  <bruno@clisp.org>
77694         * modules/freadseek-tests: New file.
77695         * tests/test-freadseek.sh: New file.
77696         * tests/test-freadseek.c: New file.
77698         New module 'freadseek'.
77699         * modules/freadseek: New file.
77700         * lib/freadseek.h: New file.
77701         * lib/freadseek.c: New file.
77702         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
77704 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
77706         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
77707         wydawca.
77709         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
77710         program_invocation_name and program_invocation_short_name are
77711         present.
77713 2008-02-28  Bruno Haible  <bruno@clisp.org>
77715         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
77716         * tests/test-freadptr.sh: Also test non-seekable stdin.
77718 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
77720         * build-aux/bootstrap (source_base, m4_base)
77721         (doc_base, tests_base): New variables.
77722         (gnulib_tool_options): Do not hardcode base directories, use
77723         the above variables instead.
77725 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
77727         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
77729 2008-02-28  Bruno Haible  <bruno@clisp.org>
77731         * modules/freadptr-tests: New file.
77732         * tests/test-freadptr.sh: New file.
77733         * tests/test-freadptr.c: New file.
77735         New module 'freadptr'.
77736         * modules/freadptr: New file.
77737         * lib/freadptr.h: New file.
77738         * lib/freadptr.c: New file.
77739         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
77741 2008-02-26  Karl Berry  <karl@freefriends.org>
77743         Sync from Libtool:
77744         * libltdl/argz.c (argz_add, argz_count): New functions.
77745         * libltdl/argz.in.h: Declare them.
77746         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
77748 2008-02-22  Bruno Haible  <bruno@clisp.org>
77750         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
77751         is a pointer type.  Needed for HP-UX 10.
77752         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
77753         * doc/posix-functions/gmtime_r.texi: Likewise.
77754         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
77756 2008-02-24  Bruno Haible  <bruno@clisp.org>
77758         * modules/environ-tests: New file.
77759         * tests/test-environ.c: New file.
77761         New module 'environ'.
77762         * modules/environ: New file.
77763         * lib/unistd.in.h (environ): New declaration.
77764         * m4/environ.m4: New file.
77765         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
77766         after use.
77767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
77768         HAVE_DECL_ENVIRON.
77769         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
77770         HAVE_DECL_ENVIRON.
77771         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
77772         wrong claim that 'environ' is missing on some systems.
77773         * modules/execute (Depends-on): Add environ.
77774         * lib/execute.c (environ): Remove fallback declaration.
77775         * modules/pipe (Depends-on): Add environ.
77776         * lib/pipe.c (environ): Remove fallback declaration.
77777         * modules/setenv (Depends-on): Add environ.
77778         * lib/setenv.c (environ): Remove fallback declaration.
77779         * modules/unsetenv (Depends-on): Add environ.
77780         * lib/unsetenv.c (environ): Remove fallback declaration.
77781         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
77782         m4/environ.m4.
77783         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
77784         (gl_PREREQ_UNSETENV): Likewise.
77786 2008-02-24  Bruno Haible  <bruno@clisp.org>
77788         * doc/posix-functions/environ.texi: Document the MacOS X problem.
77790 2008-02-20  Bob Proulx  <bob@proulx.com>
77792         Enable use of older two part flavor 'git describe'.
77793         * build-aux/git-version-gen: If using the older two part flavor of
77794         git version then recreate the third part now present in the
77795         newer three part flavor of git describe.
77797 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
77799         * lib/fts.c (fts_build): Typo correction to comment.
77801 2008-02-17  Bruno Haible  <bruno@clisp.org>
77803         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
77804         generating no-op conflicts.
77806 2008-02-17  Bruno Haible  <bruno@clisp.org>
77808         Speed up by 10%.
77809         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
77810         result_entries, rather than an index-based loop.
77812 2008-02-17  Bruno Haible  <bruno@clisp.org>
77814         Speed up by 25%.
77815         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
77816         'hashcode_cached'.
77817         (entry_create): New function.
77818         (entry_hashcode): Use the cached hashcode if possible.
77819         (read_changelog_file, try_split_merged_entry): Use entry_create.
77821 2008-02-17  Bruno Haible  <bruno@clisp.org>
77823         Speed up from O(n^2) to O(n) for long ChangeLog files.
77824         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
77825         (read_changelog_file): Change implementation of entries_reversed list
77826         to rbtreehash.
77827         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
77829 2008-02-17  Bruno Haible  <bruno@clisp.org>
77831         New option --split-merged-entry.
77832         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
77833         (find_paragraph_end, try_split_merged_entry): New functions.
77834         (long_options): Add option --split-merged-entry.
77835         (usage): Document option --split-merged-entry.
77836         (main): Implement option --split-merged-entry.
77837         Reported by Eric Blake.
77839 2008-02-17  Bruno Haible  <bruno@clisp.org>
77841         * lib/git-merge-changelog.c: Include c-strstr.h.
77842         (main): Support the "git pull --rebase" situation.
77843         * modules/git-merge-changelog (Depends-on): Add c-strstr.
77844         Reported by Eric Blake.
77846 2008-02-16  Eric Blake  <ebb9@byu.net>
77848         Avoid doubling \ in common case of "c-maybe" quoting style.
77849         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
77850         eliding outer quotes.
77851         * lib/quotearg.h: Document this.
77852         * tests/test-quotearg.c (result_strings, inputs, results_g)
77853         (flag_results, locale_results): Test it by adding a new string to
77854         each test group.
77855         (compare_strings): Test new string.
77857 2008-02-13  Eric Blake  <ebb9@byu.net>
77859         Avoid trigraph quoting in default output.
77860         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
77861         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
77862         unless explicitly requested.
77863         * tests/test-quotearg.c (flag_results, main): Add additional tests.
77865 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
77867         Don't rely on signed integer overflowing to negative value.
77868         * lib/getugroups.c (getugroups): Include <limits.h>.
77869         Instead, compare against INT_MAX, and increment only if the test passes.
77871 2008-02-13  Jim Meyering  <meyering@redhat.com>
77872         and Eric Blake  <ebb9@byu.net>
77874         Avoid shadowing warning and compile errors on Linux.
77875         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
77876         forwarding macros on Linux.
77877         (dcgettext): Define a stub, for Linux.
77878         (results_g, main): Avoid warnings.
77880 2008-02-12  Eric Blake  <ebb9@byu.net>
77882         Silence warning in last patch.
77883         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
77885         Quotearg part 4: add tests, fix c-maybe colon quoting.
77886         * lib/quotearg.h: Improve documentation.
77887         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
77888         escapes when adding outer quotes.  When quoting trigraphs, use
77889         valid C notation.  When quoting NUL, omit extra characters if next
77890         character is not digit.  Alter prototype.
77891         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
77892         callers.
77893         * modules/quotearg-tests: New module.
77894         * tests/test-quotearg.c: New test.
77896 2008-02-07  Eric Blake  <ebb9@byu.net>
77898         Quotearg part 3: add flag to control outer quote elision.
77899         * lib/quotearg.h (c_maybe_quoting_style): New style.
77900         (enum quoting_flags): Better documentation of flags.
77901         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
77902         c-maybe style.
77903         (quotearg_buffer_restyled): Handle new flag to elide outer
77904         quotes.
77906         Quotearg part 2: add flag that can control NUL elision.
77907         * lib/quotearg.h (set_quoting_flags): New prototype.
77908         * lib/quotearg.c (struct quoting_options): Add flag field.
77909         (set_quoting_flags): New function.
77910         (quotearg_buffer_restyled): Add flags parameter.
77911         (quotearg_alloc_mem): Set the flag if length cannot be returned.
77912         (quotearg_n_options): Set the flag, since length cannot be
77913         returned.
77914         (quoting_options_from_style): Default flags correctly.
77916         Quotearg part 1: more wrappers, restore quotearg_char state.
77917         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
77918         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
77919         (quotearg_colon_mem): New wrappers.
77920         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
77921         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
77922         functions.
77923         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
77924         (quotearg_colon_mem): New functions.
77926 2008-02-11  Bruno Haible  <bruno@clisp.org>
77928         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
77929         library in the current directory: it does not work with parallel make.
77930         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77932 2008-02-11  Bruno Haible  <bruno@clisp.org>
77934         * .gitattributes: New file.
77936 2008-02-11  Jim Meyering  <meyering@redhat.com>
77938         useless-if-before-free: Fix reversed exit values.
77939         * build-aux/useless-if-before-free: Use correct values
77940         for EXIT_MATCH and EXIT_NO_MATCH.
77942         * build-aux/useless-if-before-free: Close stdout carefully.
77944 2008-02-10  Bruno Haible  <bruno@clisp.org>
77946         New module 'git-merge-changelog'.
77947         * modules/git-merge-changelog: New file.
77948         * lib/git-merge-changelog.c: New file.
77950 2008-02-10  Jim Meyering  <meyering@redhat.com>
77952         useless-if-before-free: New option: --list (-l).
77954         useless-if-before-free: Don't exit immediately upon open failure.
77955         * build-aux/useless-if-before-free: Exit 2 for errors.
77956         Upon failure to open a file, don't exit immediately.
77957         Rather, just warn and continue with any remaining files.
77959 2008-02-10  Bruno Haible  <bruno@clisp.org>
77961         New abstract list operation 'node_set_value'.
77962         * lib/gl_list.h (gl_list_node_set_value): New function.
77963         (struct gl_list_implementation): New field node_set_value.
77964         * lib/gl_list.c (gl_list_node_set_value): New function.
77965         * lib/gl_array_list.c (gl_array_node_set_value): New function.
77966         (gl_array_list_implementation): Update.
77967         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
77968         (gl_carray_list_implementation): Update.
77969         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
77970         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77971         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77972         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
77973         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77974         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77975         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77976         Update.
77977         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77978         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
77979         (gl_sublist_list_implementation): Update.
77981 2008-02-10  Bruno Haible  <bruno@clisp.org>
77983         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
77984         Needed when ELEMENT is #defined to 'some_type *'.
77986 2008-02-10  Jim Meyering  <meyering@redhat.com>
77988         New script and module: useless-if-before-free
77989         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
77990         * build-aux/useless-if-before-free: New file.
77991         * modules/useless-if-before-free: New file.
77993         * build-aux/gitlog-to-changelog: Use committer date, not author date.
77995         xstrtol_error: Fix typo.
77996         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
77997         s/exit_failure/exit_status/.
77999 2008-02-09  Jim Meyering  <meyering@redhat.com>
78001         New script and module: gitlog-to-changelog
78002         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
78003         * modules/gitlog-to-changelog: New file.
78004         * build-aux/gitlog-to-changelog: New file.
78006 2008-02-08  Jim Meyering  <meyering@redhat.com>
78008         Avoid two "parameter unused" warnings.
78009         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
78010         Mark "st" as used.
78012         Use "git COMMAND", not "git-COMMAND".
78013         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
78014         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
78015         * build-aux/git-version-gen: Use "git status", not "git-status".
78017 2008-02-07  Bruno Haible  <bruno@clisp.org>
78019         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
78020         Avoids a crash on Windows Vista.
78021         Reported by Adam Strzelecki <ono@java.pl> via
78022         Simon Josefsson <simon@josefsson.org>.
78024 2008-02-06  Bruno Haible  <bruno@clisp.org>
78026         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
78027         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
78028         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
78029         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
78030         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
78031         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
78032         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
78033         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
78034         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
78035         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
78036         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
78037         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
78038         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
78039         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
78040         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
78041         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
78042         left-adjust flag.
78043         * tests/test-snprintf-posix.h (test_function): Likewise.
78044         * tests/test-sprintf-posix.h (test_function): Likewise.
78045         * tests/test-vasprintf-posix.c (test_function): Likewise.
78046         * doc/posix-functions/fprintf.texi: Update.
78047         * doc/posix-functions/printf.texi: Update.
78048         * doc/posix-functions/snprintf.texi: Update.
78049         * doc/posix-functions/sprintf.texi: Update.
78050         * doc/posix-functions/vfprintf.texi: Update.
78051         * doc/posix-functions/vprintf.texi: Update.
78052         * doc/posix-functions/vsnprintf.texi: Update.
78053         * doc/posix-functions/vsprintf.texi: Update.
78054         Reported by Peter Fales <psfales@alcatel-lucent.com>.
78056 2008-02-06  Bruno Haible  <bruno@clisp.org>
78058         Fix bug introduced on 2008-01-26.
78059         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
78061 2008-02-06  Bruno Haible  <bruno@clisp.org>
78063         Fix bug introduced on 2007-06-10.
78064         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
78065         !NEED_PRINTF_FLAG_ZERO.
78067 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
78069         getloadavg: use libperfstat on AIX5
78070         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
78072 2008-02-03  Bruno Haible  <bruno@clisp.org>
78074         * lib/diffseq.h: Add comments about required #includes.
78075         Reported by Michael Biggs <gnulib@doubleplum.net>.
78077 2008-02-01  Bruno Haible  <bruno@clisp.org>
78079         * users.txt: Add gnuit.
78081 2008-01-31  Bruno Haible  <bruno@clisp.org>
78083         * lib/md4.c (set_uint32): Mark as inline.
78084         * lib/md5.c (set_uint32): Likewise.
78085         * lib/sha1.c (set_uint32): Likewise.
78086         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
78087         * m4/md5.m4 (gl_MD5): Likewise.
78088         * m4/sha1.m4 (gl_SHA1): Likewise.
78090 2008-01-31  Jim Meyering  <meyering@redhat.com>
78092         Use "sizeof VAR", rather than a literal "4".
78093         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
78094         * lib/md4.c (md4_read_ctx): Likewise.
78095         * lib/sha1.c (sha1_read_ctx): Likewise.
78097 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78099         * tests/test-sha1.c: New file, based on test-md5.c.
78101         * modules/crypto/sha1-tests: New file.
78103 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78105         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
78107 2008-01-31  Jim Meyering  <meyering@redhat.com>
78109         Prefer "sizeof v" over the equivalent "4".
78110         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
78111         * lib/md5.c (set_uint32): Likewise.
78112         * lib/sha1.c (set_uint32): Likewise.
78114 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78116         * lib/sha1.c (set_uint32): Mark function as static.
78118 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78120         md2: clarify comments to say that alignment is not required.
78121         * lib/md2.h: Remove warning about alignment in comment.
78122         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
78123         never been required.
78125 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78127         md4: adapt alignment constraint fix from sha1.
78128         * lib/md4.c (set_uint32): New function, from sha1.c
78129         (md4_read_ctx): Use it.
78130         (md4_finish_ctx): Doc fix.
78131         * lib/md4.h: Doc fix.
78133 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78135         md5: adapt alignment constraint fix from sha1.
78136         * lib/md5.c (set_uint32): New function, from sha1.c
78137         (md5_read_ctx): Use it.
78138         (md5_finish_ctx): Doc fix.
78139         * lib/md5.h: Doc fix.
78141 2008-01-30  Peter Palfrader  <weasel@debian.org>
78143         sha1: remove the result buffer alignment constraint
78144         * lib/sha1.c (set_uint32): New function.
78145         (sha1_read_ctx): Rewrite to remove the result buffer alignment
78146         constraint.
78147         (sha1_finish_ctx): Remove comment warning about alignment constraint.
78148         * lib/sha1.h: Likewise.
78150 2008-01-30  Andreas Schwab  <schwab@suse.de>
78151             Bruno Haible  <bruno@clisp.org>
78153         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
78154         correct definition of LDBL_MIN_EXP.
78156 2008-01-30  Karl Berry  <karl@gnu.org>
78158         * config/srclist-update: try to preserve x bit on updates.
78159         * config/srclistvars.sh: update for karl.
78161 2008-01-29  Jim Meyering  <meyering@redhat.com>
78163         vasnprintf.c: Avoid warning about unused label
78164         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
78165         "overflow" label definition and associated code with the
78166         same cpp condition that guards the sole use of that label.
78168 2008-01-26  Bruno Haible  <bruno@clisp.org>
78170         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
78171         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
78172         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
78173         * lib/isnanl-nolibm.h (isnanl): Likewise.
78174         Reported by Paul Eggert <eggert@cs.ucla.edu>.
78176 2008-01-26  Bruno Haible  <bruno@clisp.org>
78178         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
78179         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
78181 2008-01-26  Bruno Haible  <bruno@clisp.org>
78183         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
78184         GCC >= 4.0 built-in.
78185         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
78187 2008-01-26  Bruno Haible  <bruno@clisp.org>
78189         Rename isnan, applicable to 'double' only, to isnand.
78190         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
78191         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
78192         (configure.ac): Update.
78193         (Include): Replace "isnan.h" with "isnand.h".
78194         * m4/isnand.m4: Renamed from m4/isnan.m4.
78195         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
78196         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
78197         instead of isnan.c.
78198         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
78199         instead of HAVE_ISNAN_IN_LIBC.
78200         (isnand): Renamed from isnan.
78201         * lib/isnand.c: New file.
78202         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
78203         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
78204         (Makefile.am): Update.
78205         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
78206         Include isnand.h instead of isnan.h.
78207         (main): Test isnand instead of isnan.
78208         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
78209         isnan-nolibm.
78210         * modules/frexp (Depends-on): Likewise.
78211         * modules/frexp-tests (Depends-on): Likewise.
78212         * modules/frexp-nolibm (Depends-on): Likewise.
78213         * modules/frexp-nolibm-tests (Depends-on): Likewise.
78214         * modules/isfinite (Depends-on): Likewise.
78215         * modules/round-tests (Depends-on): Likewise.
78216         * modules/signbit (Depends-on): Likewise.
78217         * modules/signbit-tests (Depends-on): Likewise.
78218         * modules/snprintf-posix (Depends-on): Likewise.
78219         * modules/sprintf-posix (Depends-on): Likewise.
78220         * modules/trunc-tests (Depends-on): Likewise.
78221         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
78222         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
78223         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
78224         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
78225         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
78226         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
78227         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
78228         * modules/vasnprintf-posix (Depends-on): Likewise.
78229         * modules/vasprintf-posix (Depends-on): Likewise.
78230         * modules/vfprintf-posix (Depends-on): Likewise.
78231         * modules/vsnprintf-posix (Depends-on): Likewise.
78232         * modules/vsprintf-posix (Depends-on): Likewise.
78233         * lib/frexp.c: Include isnand.h instead of isnan.h.
78234         (ISNAN): Set to isnand instead of isnan.
78235         * lib/isfinite.c: Include isnand.h instead of isnan.h.
78236         (gl_isfinited): Use isnand instead of isnan.
78237         * lib/signbitd.c: Include isnand.h instead of isnan.h.
78238         (gl_signbitd): Use isnand instead of isnan.
78239         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
78240         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
78241         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
78242         (main): Use isnand instead of isnan.
78243         * tests/test-round1.c: Include isnand.h.
78244         (main): Use isnand instead of isnan.
78245         * tests/test-round2.c: Include isnand.h instead of isnan.h.
78246         (ISNAN): Set to isnand instead of isnan.
78247         * tests/test-trunc1.c: Include isnand.h.
78248         (main): Use isnand instead of isnan.
78249         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
78250         (equal): Use isnand instead of isnan.
78251         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
78252         isnand-nolibm.
78253         * NEWS: Mention the change.
78255 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78256             Bruno Haible  <bruno@clisp.org>
78258         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
78259         the GCC builtins for signbits are present and set
78260         REPLACE_SIGNBIT_USING_GCC if so.
78261         * lib/math.in.h (signbit): Define using GCC builtins if
78262         REPLACE_SIGNBIT_USING_GCC is set.
78263         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
78264         REPLACE_SIGNBIT_USING_GCC.
78265         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
78267 2008-01-25  Jim Meyering  <meyering@redhat.com>
78269         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
78270         * lib/poll.c: Include <config.h>, not "config.h".
78271         * tests/test-getaddrinfo.c: Likewise.
78273 2008-01-25  Simon Josefsson  <simon@josefsson.org>
78275         * modules/sockets-tests: New file.
78277 2008-01-24  Simon Josefsson  <simon@josefsson.org>
78279         * modules/sockets: New module, can be used to call WSA_Startup and
78280         WSA_Cleanup when needed.
78282         * lib/sockets.h, lib/sockets.c: New files.
78284         * m4/sockets.m4: New file.
78286         * tests/test-sockets.c: New file.
78288 2008-01-19  Bruno Haible  <bruno@clisp.org>
78290         * doc/posix-headers: Renamed from doc/headers.
78291         * doc/posix-functions: Renamed from doc/functions.
78292         * doc/gnulib.texi: Update.
78294 2008-01-19  Bruno Haible  <bruno@clisp.org>
78296         * doc/glibc-functions/strcasestr.texi: Include contents of
78297         doc/functions/strcasestr.texi, fixing the list of platforms.
78298         * doc/functions/strcasestr.texi: Remove file.
78300 2008-01-19  Bruno Haible  <bruno@clisp.org>
78302         * doc/glibc-functions/memmem.texi: Include contents of
78303         doc/functions/memmem.texi.
78304         * doc/functions/memmem.texi: Remove file.
78306 2008-01-18  Bruno Haible  <bruno@clisp.org>
78308         * doc/glibc-functions/*.texi: New files.
78309         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
78310         to use the new files.
78312 2008-01-17  Bruno Haible  <bruno@clisp.org>
78314         * tests/test-gethostname.c (main): Fix printf statement.
78316 2008-01-17  Simon Josefsson  <simon@josefsson.org>
78318         * modules/gethostname-tests: New file.
78320         * tests/test-gethostname.c: New file.
78322 2008-01-17  Simon Josefsson  <simon@josefsson.org>
78324         * lib/gethostname.c: Include string.h unconditionally, strncpy is
78325         used by the UNAME case.  Reported by Bruno Haible
78326         <bruno@clisp.org>.
78328 2008-01-17  Eric Blake  <ebb9@byu.net>
78330         Convert c-strcasestr to be more efficient.
78331         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
78332         (Depends-on): Add c-strcase, remove malloca, strnlen.
78333         * tests/test-c-strcasestr.c (main): Enhance test.
78334         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
78336 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
78338         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
78339         Use it in creating po/Makevars.
78341 2008-01-15  Simon Josefsson  <simon@josefsson.org>
78343         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
78344         Applications that requires it should initialize libgcrypt
78345         manually.
78347 2008-01-16  Simon Josefsson  <simon@josefsson.org>
78349         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
78351 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
78353         Fix problem with getdate on mingw32 reported by Simon Josefsson
78354         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
78355         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
78356         tzname", when deciding whether to declare tzname.
78357         * lib/strftime.c (tzname): Likewise.
78359 2008-01-15  Bruno Haible  <bruno@clisp.org>
78361         Work around a MacOS X 10.5 bug in frexpl().
78362         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
78363         * doc/functions/frexpl.texi: Document the bug.
78364         Reported by Elias Pipping <pipping@gentoo.org>.
78366 2008-01-14  Eric Blake  <ebb9@byu.net>
78368         Touch up previous patch.
78369         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
78370         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
78372         Convert strcasestr module to use Two-Way algorithm.
78373         * modules/strcasestr-simple: New module, based on the old
78374         strcasestr, but with Two-Way rather than KMP.
78375         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
78376         * lib/string.in.h (rpl_strcasestr): Declare.
78377         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
78378         performance.
78379         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
78380         * modules/string (Makefile.am): Support strcasestr.
78381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
78382         * modules/strcasestr-tests (Depends-on): Check for alarm.
78383         * tests/test-strcasestr.c: Augment test.
78384         * lib/str-two-way.h: Clean up stray macro.
78385         * NEWS: Document new module.
78386         * MODULES.html.sh (string handling): Likewise.
78387         * doc/functions/strcasestr.texi: New file.
78388         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
78389         here, since it is not a POSIX function.
78391 2008-01-14  Colin Watson  <cjwatson@debian.org>
78392             Bruno Haible  <bruno@clisp.org>
78394         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
78395         works fine; if not, set REPLACE_STRSIGNAL.
78396         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
78397         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
78398         REPLACE_STRSIGNAL.
78399         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
78400         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
78401         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
78403 2008-01-14  Bruno Haible  <bruno@clisp.org>
78405         * modules/strsignal (Include): Change to <string.h>.
78407 2008-01-14  Colin Watson  <cjwatson@debian.org>
78409         * modules/argp (Notice): Add a notice recommending to change
78410         XGETTEXT_OPTIONS.
78411         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
78413 2008-01-13  Colin Watson  <cjwatson@debian.org>
78415         * modules/strsignal-tests: New file.
78416         * tests/test-strsignal.c: New file.
78418         * lib/strsignal.c: New file, from glibc with modifications.
78419         * lib/siglist.h: New file, from glibc with modifications.
78420         * lib/string.in.h (strsignal): New declaration.
78421         * m4/strsignal.m4: New file.
78422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
78423         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
78424         * modules/strsignal: New file.
78425         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
78426         HAVE_DECL_STRSIGNAL.
78428 2008-01-13  Bruno Haible  <bruno@clisp.org>
78430         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
78431         locale encoding is not ASCII. Needed for OpenBSD 4.0.
78432         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
78433         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
78435 2008-01-13  Bruno Haible  <bruno@clisp.org>
78437         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
78438         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
78439         * lib/argp.h (__attribute__): Likewise.
78440         * lib/c-stack.c (__attribute__): Likewise.
78441         * lib/error.h (__attribute__): Likewise.
78442         * lib/fts.c (__attribute__): Likewise.
78443         * lib/openat.h (__attribute__): Likewise.
78444         * lib/stdio.in.h (__attribute__): Likewise.
78445         * lib/string.in.h (__attribute__): Likewise.
78446         * lib/utimens.c (__attribute__): Likewise.
78447         * lib/vasnprintf.h (__attribute__): Likewise.
78448         * lib/xalloc.h (__attribute__): Likewise.
78449         * lib/xprintf.h (__attribute__): Likewise.
78450         * lib/xstrtol.h (__attribute__): Likewise.
78451         * lib/xvasprintf.h (__attribute__): Likewise.
78453 2008-01-12  Bruno Haible  <bruno@clisp.org>
78455         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
78456         * doc/glibc-headers/a.out.texi: New file.
78457         * doc/glibc-headers/aliases.texi: New file.
78458         * doc/glibc-headers/alloca.texi: New file.
78459         * doc/glibc-headers/ar.texi: New file.
78460         * doc/glibc-headers/argp.texi: New file.
78461         * doc/glibc-headers/argz.texi: New file.
78462         * doc/glibc-headers/byteswap.texi: New file.
78463         * doc/glibc-headers/crypt.texi: New file.
78464         * doc/glibc-headers/endian.texi: New file.
78465         * doc/glibc-headers/envz.texi: New file.
78466         * doc/glibc-headers/err.texi: New file.
78467         * doc/glibc-headers/error.texi: New file.
78468         * doc/glibc-headers/execinfo.texi: New file.
78469         * doc/glibc-headers/fpu_control.texi: New file.
78470         * doc/glibc-headers/fstab.texi: New file.
78471         * doc/glibc-headers/fts.texi: New file.
78472         * doc/glibc-headers/getopt.texi: New file.
78473         * doc/glibc-headers/ieee754.texi: New file.
78474         * doc/glibc-headers/ifaddrs.texi: New file.
78475         * doc/glibc-headers/libintl.texi: New file.
78476         * doc/glibc-headers/mcheck.texi: New file.
78477         * doc/glibc-headers/mntent.texi: New file.
78478         * doc/glibc-headers/obstack.texi: New file.
78479         * doc/glibc-headers/paths.texi: New file.
78480         * doc/glibc-headers/printf.texi: New file.
78481         * doc/glibc-headers/pty.texi: New file.
78482         * doc/glibc-headers/resolv.texi: New file.
78483         * doc/glibc-headers/shadow.texi: New file.
78484         * doc/glibc-headers/sysexits.texi: New file.
78485         * doc/glibc-headers/ttyent.texi: New file.
78487 2008-01-12  Jim Meyering  <meyering@redhat.com>
78489         announce-gen: emit Gnulib's git-based version string.
78490         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
78491         New option --gnulib-version=V, where V is expected to be
78492         the output of running git describe in the gnulib directory.
78493         (get_tool_versions): Request feedback on xdelta.  I suspect it's
78494         not useful, and plan to stop publishing an xdelta file with each
78495         coreutils release.
78497         * build-aux/announce-gen: Also check for lzma-compressed files.
78499 2008-01-11  Bruno Haible  <bruno@clisp.org>
78501         * tests/test-memmem.c (main): Increase maximum allowed time.
78502         * tests/test-strstr.c (main): Likewise.
78504 2008-01-11  Bruno Haible  <bruno@clisp.org>
78506         * doc/functions/memmem.texi: Add more precisions about platforms.
78507         * doc/functions/strstr.texi: Likewise.
78509 2008-01-10  Eric Blake  <ebb9@byu.net>
78511         * m4/strstr.m4: Delete cruft from copy-n-paste.
78512         Reported by Bruno Haible.
78514 2008-01-10  Bruno Haible  <bruno@clisp.org>
78516         Make c-strstr rely on strstr.
78517         * lib/c-strstr.c: Don't include str-kmp.h.
78518         (c_strstr): Define in terms of strstr.
78519         * modules/c-strstr (Files): Remove lib/str-kmp.h.
78520         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
78522 2008-01-10  Bruno Haible  <bruno@clisp.org>
78524         * doc/gnulib.texi (String Functions in C Locale): New section.
78525         * doc/c-ctype.texi: New file.
78526         * doc/c-strcase.texi: New file.
78527         * doc/c-strcaseeq.texi: New file.
78528         * doc/c-strcasestr.texi: New file.
78529         * doc/c-strstr.texi: New file.
78530         * doc/c-strtod.texi: New file.
78531         * doc/c-strtold.texi: New file.
78533 2008-01-10  Eric Blake  <ebb9@byu.net>
78535         * lib/relocatable.h: Fix a comment.
78537 2008-01-10  Eric Blake  <ebb9@byu.net>
78539         Share two-way algorithm.
78540         * lib/str-two-way.h: New file, merged from...
78541         * lib/memmem.c: ...here...
78542         * lib/strstr.c: ...and here.
78543         * modules/memmem (Files): Use it.
78544         * modules/strstr (Files): Likewise.
78546         Avoid quadratic strstr implementations.
78547         * lib/strstr.c: New file.
78548         * m4/strstr.m4: Likewise.
78549         * modules/strstr: Likewise.
78550         * modules/strstr-tests: Likewise.
78551         * tests/test-strstr.c: Likewise.
78552         * lib/string.in.h (rpl_strstr): Declare.
78553         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
78554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
78555         * modules/string (Makefile.am): Likewise.
78556         * MODULES.html.sh (string handling): Mention new module.
78557         * doc/functions/strstr.texi (strstr): Document the bug.
78559 2008-01-10  Bruno Haible  <bruno@clisp.org>
78561         * lib/relocatable.h (relocate): State whether result is freshly
78562         allocated or not.
78563         * lib/relocatable.c (relocate): Return a freshly allocated string
78564         instead of a pointer to a privately held string.
78565         Reported by Sylvain Beucler <beuc@gnu.org>.
78567 2008-01-10  Colin Watson  <cjwatson@debian.org>
78569         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
78570         s/S_ISNLK/S_ISLNK/.
78572 2008-01-09  Bruno Haible  <bruno@clisp.org>
78574         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
78575         and other files.
78576         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
78577         if it's only a guess.
78578         * modules/memmem: Simplify by depending on memmem-simple.
78580 2008-01-09  Bruno Haible  <bruno@clisp.org>
78582         Work around OpenBSD 4.0 tdelete() bug.
78583         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
78584         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
78585         macros and don't redefine the enum values.
78586         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
78587         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
78588         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
78590 2008-01-09  Bruno Haible  <bruno@clisp.org>
78592         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
78593         (main): Don't perform the tests if setlocale did not install a UTF-8
78594         locale. Needed on OpenBSD 4.0.
78595         * modules/wcwidth-tests (Depends-on): Add localcharset.
78597 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78599         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
78600         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
78601         * NEWS: announce this.
78602         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
78604 2008-01-09  Simon Josefsson  <simon@josefsson.org>
78605         and Eric Blake  <ebb9@byu.net>
78607         Add memmem-simple module.
78608         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
78609         (gl_FUNC_MEMMEM): Separate performance from presence checks.
78610         * modules/memmem-simple: New file.
78611         * modules/memmem (Description): Tweak.
78612         * MODULES.html.sh (string handling): Mention new module.
78613         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
78614         addressed by memmem-simple.
78615         * NEWS: Document the difference.
78617 2008-01-09  Eric Blake  <ebb9@byu.net>
78619         Give gcc some memmem optimization hints.
78620         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
78621         (strcasestr): Declare as pure.
78622         * modules/memmem (Maintainer): Claim my implementation.
78624 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78626         Support AIX 6.1 and higher.
78627         * build-aux/config.libpath: Likewise.
78628         * build-aux/config.rpath: Likewise.
78630 2008-01-08  Jim Meyering  <meyering@redhat.com>
78631             Bruno Haible  <bruno@clisp.org>
78633         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
78634         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
78635         Reported by Peter Fales in
78636         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
78638 2008-01-08  Bruno Haible  <bruno@clisp.org>
78640         * modules/unictype/category-of (Depends-on): Add
78641         unictype/category-none.
78642         * modules/unictype/category-and-tests (Depends-on): Add
78643         unictype/category-{L,N,Lu,Nd}.
78644         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
78645         * modules/unictype/category-or-tests (Depends-on): Add
78646         unictype/category-{L,N}.
78647         * modules/unictype/category-name-tests (Depends-on): Add
78648         unictype/category-{Z,Nl}.
78649         Reported by Simon Josefsson.
78651 2008-01-08  Bruno Haible  <bruno@clisp.org>
78653         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
78654         convention better.
78655         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
78656         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
78657         Reported by Peter Miller <millerp@canb.auug.org.au>.
78659 2008-01-08  Eric Blake  <ebb9@byu.net>
78661         Rewrite memmem to guarantee linear complexity without malloc.
78662         * lib/memmem.c (memmem): Use Two-Way rather than
78663         Knuth-Morris-Pratt, to allow O(1) space usage.
78664         (critical_factorization, two_way_short_needle)
78665         (two_way_long_needle): New functions.
78666         (knuth_morris_pratt): Delete.
78667         * modules/memmem (Depends-on): No longer need malloca or stdbool.
78668         Add stdint.
78669         * tests/test-memmem.c (main): Add tests for periodic needle and
78670         sublinear performance.
78671         * doc/functions/memmem.texi (memmem): Document other deficiencies
78672         in cygwin and older glibc.
78674 2008-01-08  Bruno Haible  <bruno@clisp.org>
78676         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
78677         augmentation.
78679 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
78681         Add a configure time option: --disable-acl.
78682         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
78683         AC_ARG_ENABLE(acl).
78685 2008-01-06  Simon Josefsson  <simon@josefsson.org>
78687         * tests/test-localename.c: Don't include obsolete "setenv.h".
78689         * modules/localename-tests (Depends-on): Need unsetenv.
78691 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78693         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
78695 2008-01-06  Colin Watson  <cjwatson@debian.org>
78697         * users.txt: Add man-db.
78699 2008-01-07  Bruno Haible  <bruno@clisp.org>
78701         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
78702         previous section name.
78704 2008-01-07  Bruno Haible  <bruno@clisp.org>
78706         * lib/progname.c (set_program_name): Don't strip off a leading
78707         "lt-" prefix outside a .libs directory.
78708         Suggested by Paul Eggert.
78710 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
78711             Bruno Haible  <bruno@clisp.org>
78713         Improve memory cleanup in 'relocatable' module.
78714         * lib/relocatable.h (compute_curr_prefix): Change return type to
78715         'char *'.
78716         * lib/relocatable.c (compute_curr_prefix): Change return type to
78717         'char *'. Free curr_installdir after use.
78718         (relocate): Free curr_prefix_better after use.
78719         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
78721 2008-01-01  Bruno Haible  <bruno@clisp.org>
78723         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
78724         failure on older glibc systems.
78725         Reported by Peter Fales <psfales@alcatel-lucent.com>.
78727 2008-01-05  Eric Blake  <ebb9@byu.net>
78729         Avoid quadratic system memmem.
78730         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
78731         Reported by Ralf Wildenhues.
78733         Fix memmem test for mingw.
78734         * modules/memmem-tests (configure.ac): Check for alarm.
78735         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
78736         it.
78737         * doc/functions/memmem.texi: New file.
78738         * doc/gnulib.texi (Function Substitutes): Add memmem.
78739         Reported by Bruno Haible.
78741 2008-01-04  Bruno Haible  <bruno@clisp.org>
78743         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
78744         Require gl_HEADER_STRINGS_H_DEFAULTS, not
78745         gl_HEADER_STRING_H_DEFAULTS.
78747 2008-01-04  Eric Blake  <ebb9@byu.net>
78749         Shorten duration of memmem test.
78750         * tests/test-memmem.c (main): Use alarm to declare failure if test
78751         is taking too long.
78752         Reported by Ralf Wildenhues.
78754 2007-12-21  Simon Josefsson  <simon@josefsson.org>
78756         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
78757         string, needed by strerror.
78759 2008-01-03  Colin Watson  <cjwatson@debian.org>
78760             Bruno Haible  <bruno@clisp.org>
78762         * doc/gnulib-tool.texi (Localization): New section.
78764 2008-01-02  Bruno Haible  <bruno@clisp.org>
78766         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
78767         variables to 'unsigned char *' type.
78768         Reported by Paul Eggert.
78770 2008-01-02  Jim Meyering  <jim@meyering.net>
78772         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
78774 2007-12-31  Jim Meyering  <jim@meyering.net>
78776         Avoid use of private FTS type name.
78777         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
78779 2007-12-30  Karl Berry  <karl@gnu.org>
78781         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
78782         work around defect in Texinfo and/or the standalone Info browser.
78784 2007-12-30  Bruno Haible  <bruno@clisp.org>
78786         Unify 5 copies of the KMP code.
78787         * lib/str-kmp.h: New file.
78788         * lib/c-strcasestr.c: Include str-kmp.h.
78789         (knuth_morris_pratt): Remove function.
78790         (c_strcasestr): Update.
78791         * lib/c-strstr.c: Include str-kmp.h.
78792         (knuth_morris_pratt): Remove function.
78793         (c_strcasestr): Update.
78794         * lib/mbscasestr.c: Include str-kmp.h.
78795         (knuth_morris_pratt_unibyte): Remove function.
78796         * lib/mbsstr.c: Include str-kmp.h.
78797         (knuth_morris_pratt_unibyte): Remove function.
78798         * lib/strcasestr.c: Include str-kmp.h.
78799         (knuth_morris_pratt): Remove function.
78800         (strcasestr): Update.
78801         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
78802         * modules/c-strstr (Files): Likewise.
78803         * modules/mbscasestr (Files): Likewise.
78804         * modules/mbsstr (Files): Likewise.
78805         * modules/strcasestr (Files): Likewise.
78806         Suggested by Paul Eggert.
78808 2007-12-30  Bruno Haible  <bruno@clisp.org>
78810         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
78811         defined.
78813 2007-12-30  Bruno Haible  <bruno@clisp.org>
78815         * lib/xmalloca.h: Include xalloc.h.
78816         (xnmalloca): New macro.
78818 2007-12-30  Bruno Haible  <bruno@clisp.org>
78820         * lib/malloca.h (nmalloca): New macro.
78821         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
78822         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
78823         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
78824         knuth_morris_pratt_multibyte): Likewise.
78825         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
78826         knuth_morris_pratt_multibyte): Likewise.
78827         * lib/memmem.c (knuth_morris_pratt): Likewise.
78828         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
78830 2007-12-25  Bruno Haible  <bruno@clisp.org>
78832         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
78833         * lib/glob.c: Don't include openat.h.
78834         (link_exists2_p): Add back the code that deals with the
78835         !GLOB_ALTDIRFUNC case.
78836         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
78837         let it do the filename concatenation.
78838         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
78839         * modules/glob (Depends-on): Remove openat.
78841 2007-12-31  Bruno Haible  <bruno@clisp.org>
78843         * modules/dirfd (License): Change to LGPLv2+.
78844         Approved by Jim Meyering.
78846 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
78848         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
78849         when multiplying M by sizeof (size_t).
78851 2007-12-10  Martin Lambers  <marlam@marlam.de>
78853         Override getpagesize on mingw.
78854         * lib/getpagesize.c: New file.
78855         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
78856         * modules/getpagesize (Files): Add lib/getpagesize.c.
78857         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
78858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78859         REPLACE_GETPAGESIZE.
78860         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
78862 2007-12-25  Bruno Haible  <bruno@clisp.org>
78864         * modules/localcharset (Notice): New field.
78865         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
78866         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
78868 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
78869             Bruno Haible  <bruno@clisp.org>
78871         Avoid using the syntax symbol() in formatted documentation.
78872         * MODULES.html.sh (func_module): When replacing symbol() with a
78873         hyperlink, remove the parentheses. Show an error if some remain.
78874         Recognize and render the '...' syntax.
78875         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
78876         Rework. Add paragraph about GCC's inlining.
78877         * doc/alloca.texi: Likewise.
78878         * doc/error.texi: Remove parentheses from symbol reference.
78879         * doc/gnulib-intro.texi: Likewise.
78880         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
78881         * modules/fnmatch (Description): Reword to say "the ... function".
78882         * modules/full-read (Description): Likewise.
78883         * modules/full-write (Description): Likewise.
78884         * modules/safe-read (Description): Likewise.
78885         * modules/safe-write (Description): Likewise.
78886         * modules/strchrnul (Description): Likewise.
78887         * modules/trim (Description): Likewise.
78888         * modules/error (Description): Remove parentheses from symbol
78889         references.
78890         * modules/verror (Description): Likewise.
78891         Reported by Karl Berry.
78893 2007-12-25  Bruno Haible  <bruno@clisp.org>
78895         Fixup after 2007-10-16 commit.
78896         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
78898 2007-12-24  Bruno Haible  <bruno@clisp.org>
78900         Make --enable-relocatable work with DESTDIR.
78901         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
78902         to compute installdir from destprog.
78903         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
78904         also set the RELOC_DESTDIR variable.
78905         Reported by Левашев Иван <octagram@bluebottle.com>.
78907 2007-12-24  Bruno Haible  <bruno@clisp.org>
78909         Fix link error due to xalloc_die().
78910         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
78911         of xreadlink.
78912         * lib/relocwrapper.c: Update comments.
78913         * build-aux/install-reloc: Remove xreadlink.c from file list.
78914         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
78915         xreadlink.c.
78916         Reported by Левашев Иван <octagram@bluebottle.com>.
78918 2007-12-24  Bruno Haible  <bruno@clisp.org>
78920         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
78921         * lib/setenv.h: Remove file.
78922         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
78923         lib/setenv.h.
78924         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
78925         (Depends-on): Add stdlib.
78926         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
78927         gl_FUNC_UNSETENV.
78928         (Include): Replace setenv.h with <stdlib.h>.
78929         * modules/unsetenv: New file.
78930         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
78931         * lib/unsetenv.c: Include <stdlib.h> first.
78932         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
78933         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
78934         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
78935         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
78936         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
78937         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
78938         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
78939         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
78940         * doc/functions/unsetenv.texi: Update.
78941         * modules/xsetenv (Depends-on): Add unsetenv.
78942         * modules/getdate (Depends-on): Likewise.
78943         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
78944         * lib/xsetenv.c: Don't include setenv.h.
78945         * lib/getdate.y: Likewise.
78946         * lib/relocwrapper.c: Likewise.
78947         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
78948         (Depends-on): Add stdlib.
78949         * NEWS: Mention the changes.
78950         Reported by Левашев Иван <octagram@bluebottle.com>.
78952 2007-12-23  Bruno Haible  <bruno@clisp.org>
78954         * lib/memmem.c (memmem): Use lowercase variable names. Tab
78955         indentation.
78957 2007-12-23  Bruno Haible  <bruno@clisp.org>
78959         * lib/c-strcasestr.c: Add more comments.
78960         * lib/c-strstr.c: Likewise.
78961         * lib/mbscasestr.c: Likewise.
78962         * lib/mbsstr.c: Likewise.
78963         * lib/strcasestr.c: Likewise.
78964         * lib/memmem.c: Likewise.
78966 2007-12-23  Bruno Haible  <bruno@clisp.org>
78968         * tests/test-memmem.c: Include <string.h> first.
78970 2007-12-22  Bruno Haible  <bruno@clisp.org>
78972         * gnulib-tool (func_create_testdir): Change $auxdir while generating
78973         the contents of $testsbase.
78974         Reported by Ralf Wildenhues.
78976 2007-12-22  Bruno Haible  <bruno@clisp.org>
78978         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
78979         two variables local_ldadd_before, local_ldadd_last.
78981 2007-12-20  Eric Blake  <ebb9@byu.net>
78983         Work around circular library issue when cross-compiling.
78984         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
78985         that progname.o does not need to pull in rpl_memcmp.
78987 2007-12-19  Eric Blake  <ebb9@byu.net>
78989         Fix memmem to avoid O(n^2) worst-case complexity.
78990         * lib/memmem.c (knuth_morris_pratt): New function.
78991         (memmem): Use it if first few naive iterations fail.
78992         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
78993         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
78994         * modules/memchr (License): Likewise.
78995         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
78996         malloca.
78997         * tests/test-memmem.c: Rewrite, borrowing ideas from
78998         test-mbsstr1.c; the old version wouldn't even compile!
78999         * modules/memmem-tests: New file.
79000         * lib/string.in.h (rpl_memmem): Add declaration.
79001         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
79002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
79003         REPLACE_MEMMEM.
79005 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
79007         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
79008         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
79009         before any system include files, and undef after them all.  This
79010         should fix a problem on VMS reported by John E. Malmberg in
79011         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
79013 2007-12-17  Eric Blake  <ebb9@byu.net>
79015         Revert addition of verify, for BSD/OS.
79016         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
79017         can't handle large files, for the sake of obsolete platforms.
79018         * modules/fseeko (Depends-on): Remove verify.
79019         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
79020         * doc/functions/ftello.texi (ftello): Likewise.
79021         * doc/functions/fgetpos.texi (fgetpos): Likewise.
79022         Reported by Larry Jones.
79024 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
79026         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
79027         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
79029 2007-12-17  Jim Meyering  <meyering@redhat.com>
79031         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
79032         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
79033         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
79034         * modules/getcwd (Depends-on): Add openat.
79035         Reported by Petr Salinger.
79037 2007-12-17  Bruno Haible  <bruno@clisp.org>
79039         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
79040         avoid a segmentation fault of the configure test on x86_64 systems.
79042 2007-12-15  Jim Meyering  <meyering@redhat.com>
79044         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
79046 2007-12-13  Eric Blake  <ebb9@byu.net>
79048         Another fseek test.
79049         * tests/test-fseek.c (main): Also test ungetc handling.
79050         * tests/test-fseeko.c (main): Likewise.
79051         * modules/fseeko (Depends-on): Add verify.
79052         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
79053         large.
79054         Reported by Larry Jones.
79056         Fix fseeko on mingw.
79057         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
79058         seek.
79060         Beef up fseek tests.
79061         * tests/test-fseek.c (main): Also test eof handling.
79062         * tests/test-fseeko.c (main): Likewise.
79063         Reported by Larry Jones.
79065 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
79067         Fix fseeko on BSD-based platforms.
79068         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
79069         successful seek.
79071 2007-12-12  Eric Blake  <ebb9@byu.net>
79073         Allow circular dependency of separate libtests.a
79074         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
79075         when use_libtests.
79077 2007-12-11  Eric Blake  <ebb9@byu.net>
79079         Fix bug with -0.0L in previous patch.
79080         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
79081         * tests/test-isnan.c (main): Also test on zeroes.
79082         * tests/test-isnanf.c (main): Likewise.
79083         * tests/test-isnanl.h (main): Likewise.
79085         Detect pseudo-denormals on x86 even when cross-compiling.
79086         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
79087         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
79088         invalid bit patterns that happen to satisfy ==.
79090         Avoid link failures with separate libtests.a.
79091         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
79092         last, to satisfy circular dependencies.
79094 2007-12-11  Eric Blake  <ebb9@byu.net>
79095         and Bruno Haible  <bruno@clisp.org>
79097         Fix OpenBSD 4.0 <float.h> handling of long double.
79098         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
79099         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
79100         * doc/headers/float.texi (float.h): Document OpenBSD bug.
79102 2007-12-11  Jim Meyering  <meyering@redhat.com>
79104         * users.txt: Add libvirt.
79106         Support versions of autoconf prior to 2.59c.
79107         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
79108         if it is not already defined.
79110 2007-12-09  Bruno Haible  <bruno@clisp.org>
79112         Let 'gnulib-tool --import' collect sources needed for the tests in
79113         tests/ rather than in lib/.
79114         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
79115         argument. If true, add rules to generate libtests.a, and put libtests.a
79116         into $(LDADD). Consider source files in subdirectories and set
79117         uses_subdirs.
79118         (func_emit_initmacro_start, func_emit_initmacro_end,
79119         func_emit_initmacro_done): Pass all arguments explicitly.
79120         (func_import): Determine two module lists main_modules,
79121         testsrelated_modules. Determine use_libtests. Determine two variables
79122         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
79123         instead of just sed_transform_lib_file. Determine two variables
79124         main_files and testsrelated_files. Compute 'files' as the union of
79125         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
79126         func_add_or_update. In the generated gnulib-comp.m4, collect the
79127         object files for tests/ in different variables than those for lib/.
79128         Substitute LIBTESTS_LIBDEPS.
79129         (func_create_testdir): Combine the uses_subdirs results from
79130         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
79132 2007-12-09  Bruno Haible  <bruno@clisp.org>
79134         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
79135         the build-aux directory.
79137 2007-12-09  Bruno Haible  <bruno@clisp.org>
79139         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
79140         introduced on 2006-09-09.
79142 2007-12-07  Jim Meyering  <meyering@redhat.com>
79144         Let these macros work also with autoconf-2.59.
79145         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
79146         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
79147         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
79149 2007-12-06  Jim Meyering  <meyering@redhat.com>
79151         Avoid a configure-time syntax error in gl_FUNC_ACL.
79152         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
79153         function in each branch, before testing the cache variable.
79155 2007-12-04  Eric Blake  <ebb9@byu.net>
79157         Make scripts executable.
79158         * build-aux/config.guess: Add execute permissions.
79159         * build-aux/config.sub: Likewise.
79160         * build-aux/gendocs.sh: Likewise.
79162         Fix frexp on mingw.
79163         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
79164         cross-compiling.
79165         * doc/functions/frexp.texi (frexp): Document the bug.
79167         Make cygwin fseeko check more reliable.
79168         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
79169         version numbers, rather than unrelated feature check.
79170         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
79171         * doc/functions/ftello.texi (ftello): Likewise.
79172         Reported by Bruno Haible.
79174         * m4/strerror.m4: Bump version number.
79176 2007-12-03  Bruno Haible  <bruno@clisp.org>
79178         * doc/functions/mprotect.texi: Mention the mingw problem.
79180 2007-12-03  Eric Blake  <ebb9@byu.net>
79182         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
79183         REPLACE_STRERROR is initialized before this macro.
79185 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
79187         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
79188         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
79189         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
79190         put -lsec in even for programs other than 'ls'.  This fixes a problem
79191         for gettext reported by Bruno Haible in
79192         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
79193         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
79194         Add support for Solaris 10.  This isn't efficient, but should get the
79195         job done for now.
79197 2007-12-03  James Youngman  <jay@gnu.org>
79199         * doc/regexprops-generic.texi: change "an close-group" to "a
79200         close-group" and "illegal" to "not allowed".
79202 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79204         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
79205         pr_byname.h. Needed for the rare case when the maintainer has done
79206         "make maintainer-clean" in the source directory and then attempts a
79207         build outside the source directory.
79208         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
79209         scripts_byname.h.
79211 2007-12-02  Martin Lambers  <marlam@marlam.de>
79212             Bruno Haible  <bruno@clisp.org>
79214         * lib/getpagesize.h: Remove file.
79215         * lib/unistd.in.h: Include declaration of getpagesize here.
79216         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
79217         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
79218         HAVE_SYS_PARAM_H.
79219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
79220         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
79221         * modules/getpagesize (Files): Remove lib/getpagesize.h.
79222         (Depends-on): Add unistd.
79223         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
79224         (Include): Use <unistd.h> instead of getpagesize.h.
79225         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
79226         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
79227         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
79228         gl_GETPAGESIZE invocation, already handled by module dependency.
79229         * lib/pagealign_alloc.c: Don't include getpagesize.h.
79231 2007-12-02  Bruno Haible  <bruno@clisp.org>
79233         * modules/strings-tests: New file.
79234         * tests/test-strings.c: New file.
79236         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
79237         * lib/strings.in.h: New file.
79238         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
79239         * m4/strings_h.m4: New file.
79240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
79241         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
79242         * modules/strings: New file.
79243         * modules/string (Makefile.am): Update.
79244         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
79245         Reported by Karl Berry.
79247 2007-12-01  Eric Blake  <ebb9@byu.net>
79249         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
79250         accommodate fix in cygwin 1.5.25.
79252 2007-12-01  Jim Meyering  <meyering@redhat.com>
79254         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
79255         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
79256         that would inhibit utf8-optimization of a regexp containing line-
79257         or buffer-anchors, e.g., `^', `$'.
79259 2007-11-30  Bruno Haible  <bruno@clisp.org>
79261         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
79262         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
79263         glthread_recursive_lock_init.
79264         * lib/lock.c (glthread_recursive_lock_init)
79265         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
79266         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79268 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
79270         New function qset_acl, like set_acl but with syscall semantics.
79271         * lib/acl.h (qset_acl): New decl.
79272         * lib/acl.c (qset_acl): New function.
79273         (set_acl): Use new function.  Use more-consistent diagnostics.
79275 2007-11-28  Jim Meyering  <meyering@redhat.com>
79277         * modules/physmem (License): Change from GPL to LGPLv2+.
79279 2007-11-26  Bruno Haible  <bruno@clisp.org>
79281         * lib/vasnprintf.c (decode_long_double): Don't abort if the
79282         'long double' type has excess precision.
79283         Reported by Jim Meyering in
79284         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
79286 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79288         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
79289         Sync from <http://gnu.org/licenses>.
79290         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
79291         with license text from same location.
79292         * doc/maintain.texi, doc/standards.texi:  Sync from
79293         <http://savannah.gnu.org/projects/gnustandards>.
79295 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
79296         and Jim Meyering  <meyering@redhat.com>
79298         Adjust getdate' grammar to accept a slightly more regular language.
79299         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
79300         Before, the former was rejected.
79301         * lib/getdate.y (digits_to_date_time): New function, factored
79302         out of ...
79303         (number): ...here.  Just call digits_to_date_time.
79304         (hybrid): New non-terminal to handle an <unsigned number,
79305         signed relative offset> sequence consistently.
79307 2007-11-18  Jim Meyering  <meyering@redhat.com>
79309         Pull my changes from coreutils:
79310         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
79311         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
79312         use of $gnulib_tool_option_extras, so that it's separated from the
79313         preceding argument.
79315         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
79316         * build-aux/bootstrap (cp_mark_as_generated): Create any required
79317         parent destination directories before copying a file into place.
79319 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
79321         bootstrap: work also with 4-argument variant of AC_INIT
79322         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
79324 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79326         Port test-getaddrinfo to Solaris.
79327         Problem reported by Bruno Haible in
79328         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
79329         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
79330         explanation of setting 'hints'.
79331         Don't reject an implementation merely because it returns EAI_SERVICE.
79332         (EAI_SERVICE): Define to 0 if not defined.
79334 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79336         The license of gnu-make and posix-shell is now "GPLed build tool".
79337         * modules/gnu-make (License): Likewise.
79338         * modules/posix-shell (License): Likewise.
79340         New module posix-shell, for determining a POSIX shell
79341         or perhaps something that is close enough to a POSIX shell.
79342         * m4/posix-shell.m4: New file.
79343         * modules/posix-shell: New file.
79345         * MODULES.html.sh: Mention new module.
79347         New module gnu-make, for determining whether we're using GNU Make.
79348         * m4/gnu-make.m4: New file.
79349         * modules/gnu-make: New file.
79350         * MODULES.html.sh: Mention new module.
79352 2007-11-14  Jim Meyering  <meyering@redhat.com>
79354         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
79355         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
79356         use this macro to create a function _definition_.
79357         Remove useless "#undef ARGMATCH_DIE".
79359 2007-11-14  Bruno Haible  <bruno@clisp.org>
79361         * lib/config.charset: Update for OpenBSD 4.1.
79362         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
79364 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
79366         Document 64-bit #if problems in stdint.texi.
79367         * doc/headers/stdint.texi (stdint.h): Mention problems with
79368         64-bit-#if, and how to work around them.
79370         Don't insist on 'long long int' support in the preprocessor.  It
79371         breaks too many things.  For example, PRIdMAX still uses a 'long
79372         long int' format with the latest Sun compiler, even though
79373         HAVE_LONG_LONG_INT isn't defined due to that compiler's
79374         preprocessor problem.  This causes the latest coreutils to dump
79375         core on Solaris 10 sparc with the Sun C compiler.
79376         Instead, fix the 2007-10-16 problem in a different way, by evaluating
79377         the troublesome expressions at configure-time, not at #if-time.
79378         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
79379         preprocessor.
79380         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
79381         compile-time C checks, done at 'configure'-time.
79382         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
79383         * modules/inttypes (Makefile): Substitute the new symbols that
79384         gl_INTTYPES_H now generates.
79385         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
79387 2007-11-12  Bruno Haible  <bruno@clisp.org>
79389         Tests for Unicode character classification functions.
79391         * modules/unictype/bidicategory-byname-tests: New file.
79392         * modules/unictype/bidicategory-name-tests: New file.
79393         * modules/unictype/bidicategory-of-tests: New file.
79394         * modules/unictype/bidicategory-test-tests: New file.
79395         * modules/unictype/block-list-tests: New file.
79396         * modules/unictype/block-of-tests: New file.
79397         * modules/unictype/block-test-tests: New file.
79398         * modules/unictype/category-C-tests: New file.
79399         * modules/unictype/category-Cc-tests: New file.
79400         * modules/unictype/category-Cf-tests: New file.
79401         * modules/unictype/category-Cn-tests: New file.
79402         * modules/unictype/category-Co-tests: New file.
79403         * modules/unictype/category-Cs-tests: New file.
79404         * modules/unictype/category-L-tests: New file.
79405         * modules/unictype/category-Ll-tests: New file.
79406         * modules/unictype/category-Lm-tests: New file.
79407         * modules/unictype/category-Lo-tests: New file.
79408         * modules/unictype/category-Lt-tests: New file.
79409         * modules/unictype/category-Lu-tests: New file.
79410         * modules/unictype/category-M-tests: New file.
79411         * modules/unictype/category-Mc-tests: New file.
79412         * modules/unictype/category-Me-tests: New file.
79413         * modules/unictype/category-Mn-tests: New file.
79414         * modules/unictype/category-N-tests: New file.
79415         * modules/unictype/category-Nd-tests: New file.
79416         * modules/unictype/category-Nl-tests: New file.
79417         * modules/unictype/category-No-tests: New file.
79418         * modules/unictype/category-P-tests: New file.
79419         * modules/unictype/category-Pc-tests: New file.
79420         * modules/unictype/category-Pd-tests: New file.
79421         * modules/unictype/category-Pe-tests: New file.
79422         * modules/unictype/category-Pf-tests: New file.
79423         * modules/unictype/category-Pi-tests: New file.
79424         * modules/unictype/category-Po-tests: New file.
79425         * modules/unictype/category-Ps-tests: New file.
79426         * modules/unictype/category-S-tests: New file.
79427         * modules/unictype/category-Sc-tests: New file.
79428         * modules/unictype/category-Sk-tests: New file.
79429         * modules/unictype/category-Sm-tests: New file.
79430         * modules/unictype/category-So-tests: New file.
79431         * modules/unictype/category-Z-tests: New file.
79432         * modules/unictype/category-Zl-tests: New file.
79433         * modules/unictype/category-Zp-tests: New file.
79434         * modules/unictype/category-Zs-tests: New file.
79435         * modules/unictype/category-and-not-tests: New file.
79436         * modules/unictype/category-and-tests: New file.
79437         * modules/unictype/category-byname-tests: New file.
79438         * modules/unictype/category-name-tests: New file.
79439         * modules/unictype/category-none-tests: New file.
79440         * modules/unictype/category-of-tests: New file.
79441         * modules/unictype/category-or-tests: New file.
79442         * modules/unictype/category-test-withtable-tests: New file.
79443         * modules/unictype/combining-class-tests: New file.
79444         * modules/unictype/ctype-alnum-tests: New file.
79445         * modules/unictype/ctype-alpha-tests: New file.
79446         * modules/unictype/ctype-blank-tests: New file.
79447         * modules/unictype/ctype-cntrl-tests: New file.
79448         * modules/unictype/ctype-digit-tests: New file.
79449         * modules/unictype/ctype-graph-tests: New file.
79450         * modules/unictype/ctype-lower-tests: New file.
79451         * modules/unictype/ctype-print-tests: New file.
79452         * modules/unictype/ctype-punct-tests: New file.
79453         * modules/unictype/ctype-space-tests: New file.
79454         * modules/unictype/ctype-upper-tests: New file.
79455         * modules/unictype/ctype-xdigit-tests: New file.
79456         * modules/unictype/decimal-digit-tests: New file.
79457         * modules/unictype/digit-tests: New file.
79458         * modules/unictype/mirror-tests: New file.
79459         * modules/unictype/numeric-tests: New file.
79460         * modules/unictype/property-alphabetic-tests: New file.
79461         * modules/unictype/property-ascii-hex-digit-tests: New file.
79462         * modules/unictype/property-bidi-arabic-digit-tests: New file.
79463         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
79464         * modules/unictype/property-bidi-block-separator-tests: New file.
79465         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
79466         * modules/unictype/property-bidi-common-separator-tests: New file.
79467         * modules/unictype/property-bidi-control-tests: New file.
79468         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
79469         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
79470         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
79471         * modules/unictype/property-bidi-european-digit-tests: New file.
79472         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
79473         * modules/unictype/property-bidi-left-to-right-tests: New file.
79474         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
79475         * modules/unictype/property-bidi-other-neutral-tests: New file.
79476         * modules/unictype/property-bidi-pdf-tests: New file.
79477         * modules/unictype/property-bidi-segment-separator-tests: New file.
79478         * modules/unictype/property-bidi-whitespace-tests: New file.
79479         * modules/unictype/property-byname-tests: New file.
79480         * modules/unictype/property-combining-tests: New file.
79481         * modules/unictype/property-composite-tests: New file.
79482         * modules/unictype/property-currency-symbol-tests: New file.
79483         * modules/unictype/property-dash-tests: New file.
79484         * modules/unictype/property-decimal-digit-tests: New file.
79485         * modules/unictype/property-default-ignorable-code-point-tests: New file.
79486         * modules/unictype/property-deprecated-tests: New file.
79487         * modules/unictype/property-diacritic-tests: New file.
79488         * modules/unictype/property-extender-tests: New file.
79489         * modules/unictype/property-format-control-tests: New file.
79490         * modules/unictype/property-grapheme-base-tests: New file.
79491         * modules/unictype/property-grapheme-extend-tests: New file.
79492         * modules/unictype/property-grapheme-link-tests: New file.
79493         * modules/unictype/property-hex-digit-tests: New file.
79494         * modules/unictype/property-hyphen-tests: New file.
79495         * modules/unictype/property-id-continue-tests: New file.
79496         * modules/unictype/property-id-start-tests: New file.
79497         * modules/unictype/property-ideographic-tests: New file.
79498         * modules/unictype/property-ids-binary-operator-tests: New file.
79499         * modules/unictype/property-ids-trinary-operator-tests: New file.
79500         * modules/unictype/property-ignorable-control-tests: New file.
79501         * modules/unictype/property-iso-control-tests: New file.
79502         * modules/unictype/property-join-control-tests: New file.
79503         * modules/unictype/property-left-of-pair-tests: New file.
79504         * modules/unictype/property-line-separator-tests: New file.
79505         * modules/unictype/property-logical-order-exception-tests: New file.
79506         * modules/unictype/property-lowercase-tests: New file.
79507         * modules/unictype/property-math-tests: New file.
79508         * modules/unictype/property-non-break-tests: New file.
79509         * modules/unictype/property-not-a-character-tests: New file.
79510         * modules/unictype/property-numeric-tests: New file.
79511         * modules/unictype/property-other-alphabetic-tests: New file.
79512         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
79513         * modules/unictype/property-other-grapheme-extend-tests: New file.
79514         * modules/unictype/property-other-id-continue-tests: New file.
79515         * modules/unictype/property-other-id-start-tests: New file.
79516         * modules/unictype/property-other-lowercase-tests: New file.
79517         * modules/unictype/property-other-math-tests: New file.
79518         * modules/unictype/property-other-uppercase-tests: New file.
79519         * modules/unictype/property-paired-punctuation-tests: New file.
79520         * modules/unictype/property-paragraph-separator-tests: New file.
79521         * modules/unictype/property-pattern-syntax-tests: New file.
79522         * modules/unictype/property-pattern-white-space-tests: New file.
79523         * modules/unictype/property-private-use-tests: New file.
79524         * modules/unictype/property-punctuation-tests: New file.
79525         * modules/unictype/property-quotation-mark-tests: New file.
79526         * modules/unictype/property-radical-tests: New file.
79527         * modules/unictype/property-sentence-terminal-tests: New file.
79528         * modules/unictype/property-soft-dotted-tests: New file.
79529         * modules/unictype/property-space-tests: New file.
79530         * modules/unictype/property-terminal-punctuation-tests: New file.
79531         * modules/unictype/property-test-tests: New file.
79532         * modules/unictype/property-titlecase-tests: New file.
79533         * modules/unictype/property-unassigned-code-value-tests: New file.
79534         * modules/unictype/property-unified-ideograph-tests: New file.
79535         * modules/unictype/property-uppercase-tests: New file.
79536         * modules/unictype/property-variation-selector-tests: New file.
79537         * modules/unictype/property-white-space-tests: New file.
79538         * modules/unictype/property-xid-continue-tests: New file.
79539         * modules/unictype/property-xid-start-tests: New file.
79540         * modules/unictype/property-zero-width-tests: New file.
79541         * modules/unictype/scripts-tests: New file.
79542         * modules/unictype/syntax-c-ident-tests: New file.
79543         * modules/unictype/syntax-c-whitespace-tests: New file.
79544         * modules/unictype/syntax-java-ident-tests: New file.
79545         * modules/unictype/syntax-java-whitespace-tests: New file.
79546         * tests/unictype/test-bidi_byname.c: New file.
79547         * tests/unictype/test-bidi_name.c: New file.
79548         * tests/unictype/test-bidi_of.c: New file.
79549         * tests/unictype/test-bidi_test.c: New file.
79550         * tests/unictype/test-block_list.c: New file.
79551         * tests/unictype/test-block_of.c: New file.
79552         * tests/unictype/test-block_test.c: New file.
79553         * tests/unictype/test-categ_and.c: New file.
79554         * tests/unictype/test-categ_and_not.c: New file.
79555         * tests/unictype/test-categ_byname.c: New file.
79556         * tests/unictype/test-categ_name.c: New file.
79557         * tests/unictype/test-categ_none.c: New file.
79558         * tests/unictype/test-categ_of.c: New file.
79559         * tests/unictype/test-categ_or.c: New file.
79560         * tests/unictype/test-categ_test_withtable.c: New file.
79561         * tests/unictype/test-combining.c: New file.
79562         * tests/unictype/test-decdigit.c: New file.
79563         * tests/unictype/test-digit.c: New file.
79564         * tests/unictype/test-mirror.c: New file.
79565         * tests/unictype/test-numeric.c: New file.
79566         * tests/unictype/test-pr_byname.c: New file.
79567         * tests/unictype/test-pr_test.c: New file.
79568         * tests/unictype/test-predicate-part1.h: New file.
79569         * tests/unictype/test-predicate-part2.h: New file.
79570         * tests/unictype/test-scripts.c: New file.
79571         * tests/unictype/test-sy_c_ident.c: New file.
79572         * tests/unictype/test-sy_java_ident.c: New file.
79574         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
79575         for Unicode 5.0.0.
79576         * tests/unictype/test-categ_Cc.c: Likewise.
79577         * tests/unictype/test-categ_Cf.c: Likewise.
79578         * tests/unictype/test-categ_Cn.c: Likewise.
79579         * tests/unictype/test-categ_Co.c: Likewise.
79580         * tests/unictype/test-categ_Cs.c: Likewise.
79581         * tests/unictype/test-categ_L.c: Likewise.
79582         * tests/unictype/test-categ_Ll.c: Likewise.
79583         * tests/unictype/test-categ_Lm.c: Likewise.
79584         * tests/unictype/test-categ_Lo.c: Likewise.
79585         * tests/unictype/test-categ_Lt.c: Likewise.
79586         * tests/unictype/test-categ_Lu.c: Likewise.
79587         * tests/unictype/test-categ_M.c: Likewise.
79588         * tests/unictype/test-categ_Mc.c: Likewise.
79589         * tests/unictype/test-categ_Me.c: Likewise.
79590         * tests/unictype/test-categ_Mn.c: Likewise.
79591         * tests/unictype/test-categ_N.c: Likewise.
79592         * tests/unictype/test-categ_Nd.c: Likewise.
79593         * tests/unictype/test-categ_Nl.c: Likewise.
79594         * tests/unictype/test-categ_No.c: Likewise.
79595         * tests/unictype/test-categ_P.c: Likewise.
79596         * tests/unictype/test-categ_Pc.c: Likewise.
79597         * tests/unictype/test-categ_Pd.c: Likewise.
79598         * tests/unictype/test-categ_Pe.c: Likewise.
79599         * tests/unictype/test-categ_Pf.c: Likewise.
79600         * tests/unictype/test-categ_Pi.c: Likewise.
79601         * tests/unictype/test-categ_Po.c: Likewise.
79602         * tests/unictype/test-categ_Ps.c: Likewise.
79603         * tests/unictype/test-categ_S.c: Likewise.
79604         * tests/unictype/test-categ_Sc.c: Likewise.
79605         * tests/unictype/test-categ_Sk.c: Likewise.
79606         * tests/unictype/test-categ_Sm.c: Likewise.
79607         * tests/unictype/test-categ_So.c: Likewise.
79608         * tests/unictype/test-categ_Z.c: Likewise.
79609         * tests/unictype/test-categ_Zl.c: Likewise.
79610         * tests/unictype/test-categ_Zp.c: Likewise.
79611         * tests/unictype/test-categ_Zs.c: Likewise.
79612         * tests/unictype/test-ctype_alnum.c: Likewise.
79613         * tests/unictype/test-ctype_alpha.c: Likewise.
79614         * tests/unictype/test-ctype_blank.c: Likewise.
79615         * tests/unictype/test-ctype_cntrl.c: Likewise.
79616         * tests/unictype/test-ctype_digit.c: Likewise.
79617         * tests/unictype/test-ctype_graph.c: Likewise.
79618         * tests/unictype/test-ctype_lower.c: Likewise.
79619         * tests/unictype/test-ctype_print.c: Likewise.
79620         * tests/unictype/test-ctype_punct.c: Likewise.
79621         * tests/unictype/test-ctype_space.c: Likewise.
79622         * tests/unictype/test-ctype_upper.c: Likewise.
79623         * tests/unictype/test-ctype_xdigit.c: Likewise.
79624         * tests/unictype/test-decdigit.h: Likewise.
79625         * tests/unictype/test-digit.h: Likewise.
79626         * tests/unictype/test-numeric.h: Likewise.
79627         * tests/unictype/test-pr_alphabetic.c: Likewise.
79628         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
79629         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
79630         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
79631         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
79632         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
79633         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
79634         * tests/unictype/test-pr_bidi_control.c: Likewise.
79635         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
79636         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
79637         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
79638         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
79639         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
79640         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
79641         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
79642         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
79643         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
79644         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
79645         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
79646         * tests/unictype/test-pr_combining.c: Likewise.
79647         * tests/unictype/test-pr_composite.c: Likewise.
79648         * tests/unictype/test-pr_currency_symbol.c: Likewise.
79649         * tests/unictype/test-pr_dash.c: Likewise.
79650         * tests/unictype/test-pr_decimal_digit.c: Likewise.
79651         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
79652         * tests/unictype/test-pr_deprecated.c: Likewise.
79653         * tests/unictype/test-pr_diacritic.c: Likewise.
79654         * tests/unictype/test-pr_extender.c: Likewise.
79655         * tests/unictype/test-pr_format_control.c: Likewise.
79656         * tests/unictype/test-pr_grapheme_base.c: Likewise.
79657         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
79658         * tests/unictype/test-pr_grapheme_link.c: Likewise.
79659         * tests/unictype/test-pr_hex_digit.c: Likewise.
79660         * tests/unictype/test-pr_hyphen.c: Likewise.
79661         * tests/unictype/test-pr_id_continue.c: Likewise.
79662         * tests/unictype/test-pr_id_start.c: Likewise.
79663         * tests/unictype/test-pr_ideographic.c: Likewise.
79664         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
79665         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
79666         * tests/unictype/test-pr_ignorable_control.c: Likewise.
79667         * tests/unictype/test-pr_iso_control.c: Likewise.
79668         * tests/unictype/test-pr_join_control.c: Likewise.
79669         * tests/unictype/test-pr_left_of_pair.c: Likewise.
79670         * tests/unictype/test-pr_line_separator.c: Likewise.
79671         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
79672         * tests/unictype/test-pr_lowercase.c: Likewise.
79673         * tests/unictype/test-pr_math.c: Likewise.
79674         * tests/unictype/test-pr_non_break.c: Likewise.
79675         * tests/unictype/test-pr_not_a_character.c: Likewise.
79676         * tests/unictype/test-pr_numeric.c: Likewise.
79677         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
79678         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
79679         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
79680         * tests/unictype/test-pr_other_id_continue.c: Likewise.
79681         * tests/unictype/test-pr_other_id_start.c: Likewise.
79682         * tests/unictype/test-pr_other_lowercase.c: Likewise.
79683         * tests/unictype/test-pr_other_math.c: Likewise.
79684         * tests/unictype/test-pr_other_uppercase.c: Likewise.
79685         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
79686         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
79687         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
79688         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
79689         * tests/unictype/test-pr_private_use.c: Likewise.
79690         * tests/unictype/test-pr_punctuation.c: Likewise.
79691         * tests/unictype/test-pr_quotation_mark.c: Likewise.
79692         * tests/unictype/test-pr_radical.c: Likewise.
79693         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
79694         * tests/unictype/test-pr_soft_dotted.c: Likewise.
79695         * tests/unictype/test-pr_space.c: Likewise.
79696         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
79697         * tests/unictype/test-pr_titlecase.c: Likewise.
79698         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
79699         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
79700         * tests/unictype/test-pr_uppercase.c: Likewise.
79701         * tests/unictype/test-pr_variation_selector.c: Likewise.
79702         * tests/unictype/test-pr_white_space.c: Likewise.
79703         * tests/unictype/test-pr_xid_continue.c: Likewise.
79704         * tests/unictype/test-pr_xid_start.c: Likewise.
79705         * tests/unictype/test-pr_zero_width.c: Likewise.
79706         * tests/unictype/test-sy_c_whitespace.c: Likewise.
79707         * tests/unictype/test-sy_java_whitespace.c: Likewise.
79709 2007-11-12  Bruno Haible  <bruno@clisp.org>
79711         Unicode character classification functions.
79712         * lib/unictype.h: New file.
79713         * modules/unictype/base: New file.
79714         * modules/unictype/category-L: New file.
79715         * modules/unictype/category-Lu: New file.
79716         * modules/unictype/category-Ll: New file.
79717         * modules/unictype/category-Lt: New file.
79718         * modules/unictype/category-Lm: New file.
79719         * modules/unictype/category-Lo: New file.
79720         * modules/unictype/category-M: New file.
79721         * modules/unictype/category-Mn: New file.
79722         * modules/unictype/category-Mc: New file.
79723         * modules/unictype/category-Me: New file.
79724         * modules/unictype/category-N: New file.
79725         * modules/unictype/category-Nd: New file.
79726         * modules/unictype/category-Nl: New file.
79727         * modules/unictype/category-No: New file.
79728         * modules/unictype/category-P: New file.
79729         * modules/unictype/category-Pc: New file.
79730         * modules/unictype/category-Pd: New file.
79731         * modules/unictype/category-Ps: New file.
79732         * modules/unictype/category-Pe: New file.
79733         * modules/unictype/category-Pi: New file.
79734         * modules/unictype/category-Pf: New file.
79735         * modules/unictype/category-Po: New file.
79736         * modules/unictype/category-S: New file.
79737         * modules/unictype/category-Sm: New file.
79738         * modules/unictype/category-Sc: New file.
79739         * modules/unictype/category-Sk: New file.
79740         * modules/unictype/category-So: New file.
79741         * modules/unictype/category-Z: New file.
79742         * modules/unictype/category-Zs: New file.
79743         * modules/unictype/category-Zl: New file.
79744         * modules/unictype/category-Zp: New file.
79745         * modules/unictype/category-C: New file.
79746         * modules/unictype/category-Cc: New file.
79747         * modules/unictype/category-Cf: New file.
79748         * modules/unictype/category-Cs: New file.
79749         * modules/unictype/category-Co: New file.
79750         * modules/unictype/category-Cn: New file.
79751         * modules/unictype/category-or: New file.
79752         * modules/unictype/category-of: New file.
79753         * modules/unictype/category-test: New file.
79754         * modules/unictype/category-test-withtable: New file.
79755         * modules/unictype/category-byname: New file.
79756         * modules/unictype/category-none: New file.
79757         * modules/unictype/category-and: New file.
79758         * modules/unictype/category-and-not: New file.
79759         * modules/unictype/category-name: New file.
79760         * modules/unictype/combining-class: New file.
79761         * modules/unictype/category-all: New file.
79762         * modules/unictype/bidicategory-all: New file.
79763         * modules/unictype/bidicategory-byname: New file.
79764         * modules/unictype/bidicategory-name: New file.
79765         * modules/unictype/bidicategory-of: New file.
79766         * modules/unictype/bidicategory-test: New file.
79767         * modules/unictype/decimal-digit: New file.
79768         * modules/unictype/digit: New file.
79769         * modules/unictype/numeric: New file.
79770         * modules/unictype/mirror: New file.
79771         * modules/unictype/property-white-space: New file.
79772         * modules/unictype/property-alphabetic: New file.
79773         * modules/unictype/property-other-alphabetic: New file.
79774         * modules/unictype/property-not-a-character: New file.
79775         * modules/unictype/property-default-ignorable-code-point: New file.
79776         * modules/unictype/property-other-default-ignorable-code-point: New
79777         file.
79778         * modules/unictype/property-deprecated: New file.
79779         * modules/unictype/property-logical-order-exception: New file.
79780         * modules/unictype/property-variation-selector: New file.
79781         * modules/unictype/property-private-use: New file.
79782         * modules/unictype/property-unassigned-code-value: New file.
79783         * modules/unictype/property-uppercase: New file.
79784         * modules/unictype/property-other-uppercase: New file.
79785         * modules/unictype/property-lowercase: New file.
79786         * modules/unictype/property-other-lowercase: New file.
79787         * modules/unictype/property-titlecase: New file.
79788         * modules/unictype/property-soft-dotted: New file.
79789         * modules/unictype/property-id-start: New file.
79790         * modules/unictype/property-other-id-start: New file.
79791         * modules/unictype/property-id-continue: New file.
79792         * modules/unictype/property-other-id-continue: New file.
79793         * modules/unictype/property-xid-start: New file.
79794         * modules/unictype/property-xid-continue: New file.
79795         * modules/unictype/property-pattern-white-space: New file.
79796         * modules/unictype/property-pattern-syntax: New file.
79797         * modules/unictype/property-join-control: New file.
79798         * modules/unictype/property-grapheme-base: New file.
79799         * modules/unictype/property-grapheme-extend: New file.
79800         * modules/unictype/property-other-grapheme-extend: New file.
79801         * modules/unictype/property-grapheme-link: New file.
79802         * modules/unictype/property-bidi-control: New file.
79803         * modules/unictype/property-bidi-left-to-right: New file.
79804         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
79805         * modules/unictype/property-bidi-arabic-right-to-left: New file.
79806         * modules/unictype/property-bidi-european-digit: New file.
79807         * modules/unictype/property-bidi-eur-num-separator: New file.
79808         * modules/unictype/property-bidi-eur-num-terminator: New file.
79809         * modules/unictype/property-bidi-arabic-digit: New file.
79810         * modules/unictype/property-bidi-common-separator: New file.
79811         * modules/unictype/property-bidi-block-separator: New file.
79812         * modules/unictype/property-bidi-segment-separator: New file.
79813         * modules/unictype/property-bidi-whitespace: New file.
79814         * modules/unictype/property-bidi-non-spacing-mark: New file.
79815         * modules/unictype/property-bidi-boundary-neutral: New file.
79816         * modules/unictype/property-bidi-pdf: New file.
79817         * modules/unictype/property-bidi-embedding-or-override: New file.
79818         * modules/unictype/property-bidi-other-neutral: New file.
79819         * modules/unictype/property-hex-digit: New file.
79820         * modules/unictype/property-ascii-hex-digit: New file.
79821         * modules/unictype/property-ideographic: New file.
79822         * modules/unictype/property-unified-ideograph: New file.
79823         * modules/unictype/property-radical: New file.
79824         * modules/unictype/property-ids-binary-operator: New file.
79825         * modules/unictype/property-ids-trinary-operator: New file.
79826         * modules/unictype/property-zero-width: New file.
79827         * modules/unictype/property-space: New file.
79828         * modules/unictype/property-non-break: New file.
79829         * modules/unictype/property-iso-control: New file.
79830         * modules/unictype/property-format-control: New file.
79831         * modules/unictype/property-dash: New file.
79832         * modules/unictype/property-hyphen: New file.
79833         * modules/unictype/property-punctuation: New file.
79834         * modules/unictype/property-line-separator: New file.
79835         * modules/unictype/property-paragraph-separator: New file.
79836         * modules/unictype/property-quotation-mark: New file.
79837         * modules/unictype/property-sentence-terminal: New file.
79838         * modules/unictype/property-terminal-punctuation: New file.
79839         * modules/unictype/property-currency-symbol: New file.
79840         * modules/unictype/property-math: New file.
79841         * modules/unictype/property-other-math: New file.
79842         * modules/unictype/property-paired-punctuation: New file.
79843         * modules/unictype/property-left-of-pair: New file.
79844         * modules/unictype/property-combining: New file.
79845         * modules/unictype/property-composite: New file.
79846         * modules/unictype/property-decimal-digit: New file.
79847         * modules/unictype/property-numeric: New file.
79848         * modules/unictype/property-diacritic: New file.
79849         * modules/unictype/property-extender: New file.
79850         * modules/unictype/property-ignorable-control: New file.
79851         * modules/unictype/property-test: New file.
79852         * modules/unictype/property-byname: New file.
79853         * modules/unictype/property-all: New file.
79854         * modules/unictype/scripts: New file.
79855         * modules/unictype/scripts-all: New file.
79856         * modules/unictype/block-of: New file.
79857         * modules/unictype/block-test: New file.
79858         * modules/unictype/block-list: New file.
79859         * modules/unictype/block-all: New file.
79860         * modules/unictype/syntax-c-whitespace: New file.
79861         * modules/unictype/syntax-java-whitespace: New file.
79862         * modules/unictype/syntax-c-ident: New file.
79863         * modules/unictype/syntax-java-ident: New file.
79864         * modules/unictype/ctype-alnum: New file.
79865         * modules/unictype/ctype-alpha: New file.
79866         * modules/unictype/ctype-cntrl: New file.
79867         * modules/unictype/ctype-digit: New file.
79868         * modules/unictype/ctype-graph: New file.
79869         * modules/unictype/ctype-lower: New file.
79870         * modules/unictype/ctype-print: New file.
79871         * modules/unictype/ctype-punct: New file.
79872         * modules/unictype/ctype-space: New file.
79873         * modules/unictype/ctype-upper: New file.
79874         * modules/unictype/ctype-xdigit: New file.
79875         * modules/unictype/ctype-blank: New file.
79876         * lib/unictype/bidi_byname.c: New file.
79877         * lib/unictype/bidi_name.c: New file.
79878         * lib/unictype/bidi_of.c: New file.
79879         * lib/unictype/bidi_test.c: New file.
79880         * lib/unictype/bitmap.h: New file.
79881         * lib/unictype/block_test.c: New file.
79882         * lib/unictype/blocks.c: New file.
79883         * lib/unictype/categ_C.c: New file.
79884         * lib/unictype/categ_Cc.c: New file.
79885         * lib/unictype/categ_Cf.c: New file.
79886         * lib/unictype/categ_Cn.c: New file.
79887         * lib/unictype/categ_Co.c: New file.
79888         * lib/unictype/categ_Cs.c: New file.
79889         * lib/unictype/categ_L.c: New file.
79890         * lib/unictype/categ_Ll.c: New file.
79891         * lib/unictype/categ_Lm.c: New file.
79892         * lib/unictype/categ_Lo.c: New file.
79893         * lib/unictype/categ_Lt.c: New file.
79894         * lib/unictype/categ_Lu.c: New file.
79895         * lib/unictype/categ_M.c: New file.
79896         * lib/unictype/categ_Mc.c: New file.
79897         * lib/unictype/categ_Me.c: New file.
79898         * lib/unictype/categ_Mn.c: New file.
79899         * lib/unictype/categ_N.c: New file.
79900         * lib/unictype/categ_Nd.c: New file.
79901         * lib/unictype/categ_Nl.c: New file.
79902         * lib/unictype/categ_No.c: New file.
79903         * lib/unictype/categ_P.c: New file.
79904         * lib/unictype/categ_Pc.c: New file.
79905         * lib/unictype/categ_Pd.c: New file.
79906         * lib/unictype/categ_Pe.c: New file.
79907         * lib/unictype/categ_Pf.c: New file.
79908         * lib/unictype/categ_Pi.c: New file.
79909         * lib/unictype/categ_Po.c: New file.
79910         * lib/unictype/categ_Ps.c: New file.
79911         * lib/unictype/categ_S.c: New file.
79912         * lib/unictype/categ_Sc.c: New file.
79913         * lib/unictype/categ_Sk.c: New file.
79914         * lib/unictype/categ_Sm.c: New file.
79915         * lib/unictype/categ_So.c: New file.
79916         * lib/unictype/categ_Z.c: New file.
79917         * lib/unictype/categ_Zl.c: New file.
79918         * lib/unictype/categ_Zp.c: New file.
79919         * lib/unictype/categ_Zs.c: New file.
79920         * lib/unictype/categ_and.c: New file.
79921         * lib/unictype/categ_and_not.c: New file.
79922         * lib/unictype/categ_byname.c: New file.
79923         * lib/unictype/categ_name.c: New file.
79924         * lib/unictype/categ_none.c: New file.
79925         * lib/unictype/categ_of.c: New file.
79926         * lib/unictype/categ_or.c: New file.
79927         * lib/unictype/categ_test.c: New file.
79928         * lib/unictype/combining.c: New file.
79929         * lib/unictype/ctype_alnum.c: New file.
79930         * lib/unictype/ctype_alpha.c: New file.
79931         * lib/unictype/ctype_blank.c: New file.
79932         * lib/unictype/ctype_cntrl.c: New file.
79933         * lib/unictype/ctype_digit.c: New file.
79934         * lib/unictype/ctype_graph.c: New file.
79935         * lib/unictype/ctype_lower.c: New file.
79936         * lib/unictype/ctype_print.c: New file.
79937         * lib/unictype/ctype_punct.c: New file.
79938         * lib/unictype/ctype_space.c: New file.
79939         * lib/unictype/ctype_upper.c: New file.
79940         * lib/unictype/ctype_xdigit.c: New file.
79941         * lib/unictype/decdigit.c: New file.
79942         * lib/unictype/digit.c: New file.
79943         * lib/unictype/identsyntaxmap.h: New file.
79944         * lib/unictype/mirror.c: New file.
79945         * lib/unictype/numeric.c: New file.
79946         * lib/unictype/pr_alphabetic.c: New file.
79947         * lib/unictype/pr_ascii_hex_digit.c: New file.
79948         * lib/unictype/pr_bidi_arabic_digit.c: New file.
79949         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
79950         * lib/unictype/pr_bidi_block_separator.c: New file.
79951         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
79952         * lib/unictype/pr_bidi_common_separator.c: New file.
79953         * lib/unictype/pr_bidi_control.c: New file.
79954         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
79955         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
79956         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
79957         * lib/unictype/pr_bidi_european_digit.c: New file.
79958         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
79959         * lib/unictype/pr_bidi_left_to_right.c: New file.
79960         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
79961         * lib/unictype/pr_bidi_other_neutral.c: New file.
79962         * lib/unictype/pr_bidi_pdf.c: New file.
79963         * lib/unictype/pr_bidi_segment_separator.c: New file.
79964         * lib/unictype/pr_bidi_whitespace.c: New file.
79965         * lib/unictype/pr_byname.c: New file.
79966         * lib/unictype/pr_byname.gperf: New file.
79967         * lib/unictype/pr_combining.c: New file.
79968         * lib/unictype/pr_composite.c: New file.
79969         * lib/unictype/pr_currency_symbol.c: New file.
79970         * lib/unictype/pr_dash.c: New file.
79971         * lib/unictype/pr_decimal_digit.c: New file.
79972         * lib/unictype/pr_default_ignorable_code_point.c: New file.
79973         * lib/unictype/pr_deprecated.c: New file.
79974         * lib/unictype/pr_diacritic.c: New file.
79975         * lib/unictype/pr_extender.c: New file.
79976         * lib/unictype/pr_format_control.c: New file.
79977         * lib/unictype/pr_grapheme_base.c: New file.
79978         * lib/unictype/pr_grapheme_extend.c: New file.
79979         * lib/unictype/pr_grapheme_link.c: New file.
79980         * lib/unictype/pr_hex_digit.c: New file.
79981         * lib/unictype/pr_hyphen.c: New file.
79982         * lib/unictype/pr_id_continue.c: New file.
79983         * lib/unictype/pr_id_start.c: New file.
79984         * lib/unictype/pr_ideographic.c: New file.
79985         * lib/unictype/pr_ids_binary_operator.c: New file.
79986         * lib/unictype/pr_ids_trinary_operator.c: New file.
79987         * lib/unictype/pr_ignorable_control.c: New file.
79988         * lib/unictype/pr_iso_control.c: New file.
79989         * lib/unictype/pr_join_control.c: New file.
79990         * lib/unictype/pr_left_of_pair.c: New file.
79991         * lib/unictype/pr_line_separator.c: New file.
79992         * lib/unictype/pr_logical_order_exception.c: New file.
79993         * lib/unictype/pr_lowercase.c: New file.
79994         * lib/unictype/pr_math.c: New file.
79995         * lib/unictype/pr_non_break.c: New file.
79996         * lib/unictype/pr_not_a_character.c: New file.
79997         * lib/unictype/pr_numeric.c: New file.
79998         * lib/unictype/pr_other_alphabetic.c: New file.
79999         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
80000         * lib/unictype/pr_other_grapheme_extend.c: New file.
80001         * lib/unictype/pr_other_id_continue.c: New file.
80002         * lib/unictype/pr_other_id_start.c: New file.
80003         * lib/unictype/pr_other_lowercase.c: New file.
80004         * lib/unictype/pr_other_math.c: New file.
80005         * lib/unictype/pr_other_uppercase.c: New file.
80006         * lib/unictype/pr_paired_punctuation.c: New file.
80007         * lib/unictype/pr_paragraph_separator.c: New file.
80008         * lib/unictype/pr_pattern_syntax.c: New file.
80009         * lib/unictype/pr_pattern_white_space.c: New file.
80010         * lib/unictype/pr_private_use.c: New file.
80011         * lib/unictype/pr_punctuation.c: New file.
80012         * lib/unictype/pr_quotation_mark.c: New file.
80013         * lib/unictype/pr_radical.c: New file.
80014         * lib/unictype/pr_sentence_terminal.c: New file.
80015         * lib/unictype/pr_soft_dotted.c: New file.
80016         * lib/unictype/pr_space.c: New file.
80017         * lib/unictype/pr_terminal_punctuation.c: New file.
80018         * lib/unictype/pr_test.c: New file.
80019         * lib/unictype/pr_titlecase.c: New file.
80020         * lib/unictype/pr_unassigned_code_value.c: New file.
80021         * lib/unictype/pr_unified_ideograph.c: New file.
80022         * lib/unictype/pr_uppercase.c: New file.
80023         * lib/unictype/pr_variation_selector.c: New file.
80024         * lib/unictype/pr_white_space.c: New file.
80025         * lib/unictype/pr_xid_continue.c: New file.
80026         * lib/unictype/pr_xid_start.c: New file.
80027         * lib/unictype/pr_zero_width.c: New file.
80028         * lib/unictype/scripts.c: New file.
80029         * lib/unictype/sy_c_ident.c: New file.
80030         * lib/unictype/sy_c_whitespace.c: New file.
80031         * lib/unictype/sy_java_ident.c: New file.
80032         * lib/unictype/sy_java_whitespace.c: New file.
80034         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
80035         Unicode 5.0.0.
80036         * lib/unictype/blocks.h: Likewise.
80037         * lib/unictype/categ_C.h: Likewise.
80038         * lib/unictype/categ_Cc.h: Likewise.
80039         * lib/unictype/categ_Cf.h: Likewise.
80040         * lib/unictype/categ_Cn.h: Likewise.
80041         * lib/unictype/categ_Co.h: Likewise.
80042         * lib/unictype/categ_Cs.h: Likewise.
80043         * lib/unictype/categ_L.h: Likewise.
80044         * lib/unictype/categ_Ll.h: Likewise.
80045         * lib/unictype/categ_Lm.h: Likewise.
80046         * lib/unictype/categ_Lo.h: Likewise.
80047         * lib/unictype/categ_Lt.h: Likewise.
80048         * lib/unictype/categ_Lu.h: Likewise.
80049         * lib/unictype/categ_M.h: Likewise.
80050         * lib/unictype/categ_Mc.h: Likewise.
80051         * lib/unictype/categ_Me.h: Likewise.
80052         * lib/unictype/categ_Mn.h: Likewise.
80053         * lib/unictype/categ_N.h: Likewise.
80054         * lib/unictype/categ_Nd.h: Likewise.
80055         * lib/unictype/categ_Nl.h: Likewise.
80056         * lib/unictype/categ_No.h: Likewise.
80057         * lib/unictype/categ_P.h: Likewise.
80058         * lib/unictype/categ_Pc.h: Likewise.
80059         * lib/unictype/categ_Pd.h: Likewise.
80060         * lib/unictype/categ_Pe.h: Likewise.
80061         * lib/unictype/categ_Pf.h: Likewise.
80062         * lib/unictype/categ_Pi.h: Likewise.
80063         * lib/unictype/categ_Po.h: Likewise.
80064         * lib/unictype/categ_Ps.h: Likewise.
80065         * lib/unictype/categ_S.h: Likewise.
80066         * lib/unictype/categ_Sc.h: Likewise.
80067         * lib/unictype/categ_Sk.h: Likewise.
80068         * lib/unictype/categ_Sm.h: Likewise.
80069         * lib/unictype/categ_So.h: Likewise.
80070         * lib/unictype/categ_Z.h: Likewise.
80071         * lib/unictype/categ_Zl.h: Likewise.
80072         * lib/unictype/categ_Zp.h: Likewise.
80073         * lib/unictype/categ_Zs.h: Likewise.
80074         * lib/unictype/categ_of.h: Likewise.
80075         * lib/unictype/combining.h: Likewise.
80076         * lib/unictype/ctype_alnum.h: Likewise.
80077         * lib/unictype/ctype_alpha.h: Likewise.
80078         * lib/unictype/ctype_blank.h: Likewise.
80079         * lib/unictype/ctype_cntrl.h: Likewise.
80080         * lib/unictype/ctype_digit.h: Likewise.
80081         * lib/unictype/ctype_graph.h: Likewise.
80082         * lib/unictype/ctype_lower.h: Likewise.
80083         * lib/unictype/ctype_print.h: Likewise.
80084         * lib/unictype/ctype_punct.h: Likewise.
80085         * lib/unictype/ctype_space.h: Likewise.
80086         * lib/unictype/ctype_upper.h: Likewise.
80087         * lib/unictype/ctype_xdigit.h: Likewise.
80088         * lib/unictype/decdigit.h: Likewise.
80089         * lib/unictype/digit.h: Likewise.
80090         * lib/unictype/mirror.h: Likewise.
80091         * lib/unictype/numeric.h: Likewise.
80092         * lib/unictype/pr_alphabetic.h: Likewise.
80093         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
80094         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
80095         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
80096         * lib/unictype/pr_bidi_block_separator.h: Likewise.
80097         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
80098         * lib/unictype/pr_bidi_common_separator.h: Likewise.
80099         * lib/unictype/pr_bidi_control.h: Likewise.
80100         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
80101         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
80102         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
80103         * lib/unictype/pr_bidi_european_digit.h: Likewise.
80104         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
80105         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
80106         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
80107         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
80108         * lib/unictype/pr_bidi_pdf.h: Likewise.
80109         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
80110         * lib/unictype/pr_bidi_whitespace.h: Likewise.
80111         * lib/unictype/pr_combining.h: Likewise.
80112         * lib/unictype/pr_composite.h: Likewise.
80113         * lib/unictype/pr_currency_symbol.h: Likewise.
80114         * lib/unictype/pr_dash.h: Likewise.
80115         * lib/unictype/pr_decimal_digit.h: Likewise.
80116         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
80117         * lib/unictype/pr_deprecated.h: Likewise.
80118         * lib/unictype/pr_diacritic.h: Likewise.
80119         * lib/unictype/pr_extender.h: Likewise.
80120         * lib/unictype/pr_format_control.h: Likewise.
80121         * lib/unictype/pr_grapheme_base.h: Likewise.
80122         * lib/unictype/pr_grapheme_extend.h: Likewise.
80123         * lib/unictype/pr_grapheme_link.h: Likewise.
80124         * lib/unictype/pr_hex_digit.h: Likewise.
80125         * lib/unictype/pr_hyphen.h: Likewise.
80126         * lib/unictype/pr_id_continue.h: Likewise.
80127         * lib/unictype/pr_id_start.h: Likewise.
80128         * lib/unictype/pr_ideographic.h: Likewise.
80129         * lib/unictype/pr_ids_binary_operator.h: Likewise.
80130         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
80131         * lib/unictype/pr_ignorable_control.h: Likewise.
80132         * lib/unictype/pr_iso_control.h: Likewise.
80133         * lib/unictype/pr_join_control.h: Likewise.
80134         * lib/unictype/pr_left_of_pair.h: Likewise.
80135         * lib/unictype/pr_line_separator.h: Likewise.
80136         * lib/unictype/pr_logical_order_exception.h: Likewise.
80137         * lib/unictype/pr_lowercase.h: Likewise.
80138         * lib/unictype/pr_math.h: Likewise.
80139         * lib/unictype/pr_non_break.h: Likewise.
80140         * lib/unictype/pr_not_a_character.h: Likewise.
80141         * lib/unictype/pr_numeric.h: Likewise.
80142         * lib/unictype/pr_other_alphabetic.h: Likewise.
80143         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
80144         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
80145         * lib/unictype/pr_other_id_continue.h: Likewise.
80146         * lib/unictype/pr_other_id_start.h: Likewise.
80147         * lib/unictype/pr_other_lowercase.h: Likewise.
80148         * lib/unictype/pr_other_math.h: Likewise.
80149         * lib/unictype/pr_other_uppercase.h: Likewise.
80150         * lib/unictype/pr_paired_punctuation.h: Likewise.
80151         * lib/unictype/pr_paragraph_separator.h: Likewise.
80152         * lib/unictype/pr_pattern_syntax.h: Likewise.
80153         * lib/unictype/pr_pattern_white_space.h: Likewise.
80154         * lib/unictype/pr_private_use.h: Likewise.
80155         * lib/unictype/pr_punctuation.h: Likewise.
80156         * lib/unictype/pr_quotation_mark.h: Likewise.
80157         * lib/unictype/pr_radical.h: Likewise.
80158         * lib/unictype/pr_sentence_terminal.h: Likewise.
80159         * lib/unictype/pr_soft_dotted.h: Likewise.
80160         * lib/unictype/pr_space.h: Likewise.
80161         * lib/unictype/pr_terminal_punctuation.h: Likewise.
80162         * lib/unictype/pr_titlecase.h: Likewise.
80163         * lib/unictype/pr_unassigned_code_value.h: Likewise.
80164         * lib/unictype/pr_unified_ideograph.h: Likewise.
80165         * lib/unictype/pr_uppercase.h: Likewise.
80166         * lib/unictype/pr_variation_selector.h: Likewise.
80167         * lib/unictype/pr_white_space.h: Likewise.
80168         * lib/unictype/pr_xid_continue.h: Likewise.
80169         * lib/unictype/pr_xid_start.h: Likewise.
80170         * lib/unictype/pr_zero_width.h: Likewise.
80171         * lib/unictype/scripts.h: Likewise.
80172         * lib/unictype/scripts_byname.gperf: Likewise.
80173         * lib/unictype/sy_c_ident.h: Likewise.
80174         * lib/unictype/sy_c_whitespace.h: Likewise.
80175         * lib/unictype/sy_java_ident.h: Likewise.
80176         * lib/unictype/sy_java_whitespace.h: Likewise.
80178         * lib/unictype/Makefile: New file.
80179         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
80180         glibc.
80181         * lib/unictype/3level.h: New file, copied from glibc.
80182         * lib/unictype/3levelbit.h: New file.
80184 2007-11-11  Bruno Haible  <bruno@clisp.org>
80186         * modules/gperf: New file.
80187         * modules/iconv_open (Depends-on): Add it.
80188         (Makefile.am): Remove the GPERF definition.
80190 2007-11-11  Bruno Haible  <bruno@clisp.org>
80192         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
80193         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
80195 2007-11-11  Bruno Haible  <bruno@clisp.org>
80197         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
80198         (usage): Remove function.
80200 2007-11-11  Bruno Haible  <bruno@clisp.org>
80202         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
80203         gl_FUNC_CEILF_LIBS.
80204         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
80205         gl_FUNC_CEIL_LIBS.
80206         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
80207         gl_FUNC_CEILL_LIBS.
80208         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
80209         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
80210         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
80212 2007-11-11  Bruno Haible  <bruno@clisp.org>
80214         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
80215         roundf were declared but do not exist on functions.
80216         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
80217         roundl were declared but do not exist on functions.
80218         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
80219         HAVE_FLOORL_AND_CEILL, respectively.
80220         Needed for Sun C on Solaris 10.
80222 2007-11-11  Bruno Haible  <bruno@clisp.org>
80224         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
80225         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
80226         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
80227         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
80228         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
80229         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
80230         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
80231         HAVE_DECL_ROUNDF.
80232         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
80233         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
80234         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
80235         of HAVE_DECL_ROUND*.
80236         * modules/math (Makefile.am): Update.
80238 2007-11-10  Bruno Haible  <bruno@clisp.org>
80240         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
80241         ptrdiff_t as m4/intl.m4.
80243 2007-11-10  Jim Meyering  <meyering@redhat.com>
80245         Avoid link failure for the argmatch test.
80246         * tests/test-argmatch.c (usage): Define function to avoid a link
80247         failure: argmatch_die requires a usage function.
80249 2007-11-09  Bruno Haible  <bruno@clisp.org>
80251         * doc/functions/snprintf.texi: Mention BeOS deficiency.
80252         * doc/functions/vsnprintf.texi: Likewise.
80253         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
80254         with a size argument < 2.
80256 2007-11-09  Bruno Haible  <bruno@clisp.org>
80258         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
80259         buffer. Fixes an inefficiency introduced on 2007-11-03.
80261 2007-11-09  Bruno Haible  <bruno@clisp.org>
80263         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
80264         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
80266 2007-11-08  Jim Meyering  <meyering@redhat.com>
80268         Change cache variable name prefix "jm_" to "gl_" everywhere.
80269         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
80270         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
80271         * m4/uptime.m4: s/gl_/jm_/
80273 2007-11-07  Bruno Haible  <bruno@clisp.org>
80275         Update to GNU gettext 0.17.
80276         * m4/intl.m4: Update to GNU gettext 0.17.
80277         * m4/po.m4: Likewise.
80278         * modules/gettext (Files): Remove m4/ulonglong.m4.
80279         (configure.ac): Require gettext infrastructure from version 0.17.
80281 2007-11-06  Bruno Haible  <bruno@clisp.org>
80283         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
80284         symbolic values are not defined in a public header.
80285         * lib/freadable.c (freadable) [QNX]: Likewise.
80286         * lib/freadahead.c (freadahead) [QNX]: Likewise.
80287         * lib/freading.c (freading) [QNX]: Likewise.
80288         * lib/fseterr.c (fseterr) [QNX]: Likewise.
80289         * lib/fwritable.c (fwritable) [QNX]: Likewise.
80290         * lib/fwriting.c (fwriting) [QNX]: Likewise.
80291         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
80292         Reported by Alain Magloire.
80294         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
80296 2007-11-05  Bruno Haible  <bruno@clisp.org>
80298         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
80299         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
80300         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
80301         Reported by Eric Blake.
80303 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80304             Bruno Haible  <bruno@clisp.org>
80306         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
80307         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
80308         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
80309         (malloc): Undefine also before including <stdlib.h>.
80310         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
80311         Needed on OSF/1 4.0.
80313 2007-11-05  Jim Meyering  <meyering@redhat.com>
80315         git-version-gen: sync from coreutils.
80316         * build-aux/git-version-gen: Add comments.
80317         Change the first '-' to '.' in the snapshot version string,
80318         e.g., 6.9-377-08144 -> 6.9.377-08144
80319         Remove first parameter.
80320         Don't declare a version "-dirty" merely because a time
80321         stamp has changed.
80323 2007-11-04  Bruno Haible  <bruno@clisp.org>
80325         * lib/lock.h: Protect all macro definitions containing an 'if'
80326         statement through a "do { ... } while (0)".
80327         * lib/tls.h: Likewise.
80329 2007-11-04  Bruno Haible  <bruno@clisp.org>
80331         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
80333 2007-11-04  Bruno Haible  <bruno@clisp.org>
80335         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
80336         * modules/fprintf-posix (Depends-on): Add nocrash.
80337         * modules/snprintf-posix (Depends-on): Likewise.
80338         * modules/sprintf-posix (Depends-on): Likewise.
80339         * modules/vasnprintf-posix (Depends-on): Likewise.
80340         * modules/vasprintf-posix (Depends-on): Likewise.
80341         * modules/vfprintf-posix (Depends-on): Likewise.
80342         * modules/vsnprintf-posix (Depends-on): Likewise.
80343         * modules/vsprintf-posix (Depends-on): Likewise.
80344         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
80345         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
80346         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
80347         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
80348         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
80349         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
80350         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
80352 2007-11-04  Bruno Haible  <bruno@clisp.org>
80354         * modules/nocrash: New file.
80355         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
80356         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
80358 2007-11-04  Bruno Haible  <bruno@clisp.org>
80360         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
80361         precision handling.
80362         * tests/test-vasprintf-posix.c (test_function): Likewise.
80363         * tests/test-snprintf-posix.h (test_function): Likewise.
80364         * tests/test-sprintf-posix.h (test_function): Likewise.
80366         Fix *printf behaviour for large precisions on mingw and BeOS.
80367         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
80368         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
80369         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
80370         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
80371         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80372         gl_PRINTF_PRECISION and test its result. Invoke
80373         gl_PREREQ_VASNPRINTF_PRECISION.
80374         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80375         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80376         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80377         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80378         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80379         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80380         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80381         * doc/functions/fprintf.texi: Update.
80382         * doc/functions/printf.texi: Update.
80383         * doc/functions/snprintf.texi: Update.
80384         * doc/functions/sprintf.texi: Update.
80385         * doc/functions/vfprintf.texi: Update.
80386         * doc/functions/vprintf.texi: Update.
80387         * doc/functions/vsnprintf.texi: Update.
80388         * doc/functions/vsprintf.texi: Update.
80390 2007-11-04  Bruno Haible  <bruno@clisp.org>
80392         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
80394 2007-11-04  Bruno Haible  <bruno@clisp.org>
80396         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
80397         Reported by Sylvain Beucler <beuc@gnu.org>.
80399 2007-11-03  Bruno Haible  <bruno@clisp.org>
80401         * tests/test-fprintf-posix2.sh: New file.
80402         * tests/test-fprintf-posix2.c: New file.
80403         * modules/fprintf-posix-tests (Files): Add them.
80404         (TESTS): Add test-fprintf-posix2.sh.
80405         (configure.ac): Check for getrlimit and setrlimit.
80406         (check_PROGRAMS): Add test-fprintf-posix2.
80408         * tests/test-printf-posix2.sh: New file.
80409         * tests/test-printf-posix2.c: New file.
80410         * modules/printf-posix-tests (Files): Add them.
80411         (TESTS): Add test-printf-posix2.sh.
80412         (configure.ac): Check for getrlimit and setrlimit.
80413         (check_PROGRAMS): Add test-printf-posix2.
80415         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
80416         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
80417         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
80418         (decode_double): New function, copied from decode_long_double.
80419         (scale10_round_decimal_decoded): New function, extracted from
80420         scale10_round_decimal_long_double.
80421         (scale10_round_decimal_long_double): Use it.
80422         (scale10_round_decimal_double): New function.
80423         (floorlog10): New function.
80424         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
80425         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
80426         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
80427         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80428         gl_PRINTF_ENOMEM and test its result. Invoke
80429         gl_PREREQ_VASNPRINTF_ENOMEM.
80430         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80431         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80432         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80433         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80434         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80435         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80436         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80437         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
80438         * modules/snprintf-posix (Depends-on): Likewise.
80439         * modules/sprintf-posix (Depends-on): Likewise.
80440         * modules/vasnprintf-posix (Depends-on): Likewise.
80441         * modules/vasprintf-posix (Depends-on): Likewise.
80442         * modules/vfprintf-posix (Depends-on): Likewise.
80443         * modules/vsnprintf-posix (Depends-on): Likewise.
80444         * modules/vsprintf-posix (Depends-on): Likewise.
80445         * doc/functions/fprintf.texi: Update.
80446         * doc/functions/printf.texi: Update.
80447         * doc/functions/snprintf.texi: Update.
80448         * doc/functions/sprintf.texi: Update.
80449         * doc/functions/vfprintf.texi: Update.
80450         * doc/functions/vprintf.texi: Update.
80451         * doc/functions/vsnprintf.texi: Update.
80452         * doc/functions/vsprintf.texi: Update.
80454 2007-11-03  Bruno Haible  <bruno@clisp.org>
80456         * modules/frexp-nolibm-tests: New file.
80458         * modules/frexp-nolibm: New file.
80459         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
80461 2007-11-03  Bruno Haible  <bruno@clisp.org>
80463         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
80464         value is C99 compliant.
80465         Needed for OSF/1 5.1.
80467 2007-11-03  Bruno Haible  <bruno@clisp.org>
80469         Fix out-of-memory handling of vasnprintf.
80470         * lib/printf-parse.c: Include <errno.h>.
80471         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
80472         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
80473         is already set.
80475 2007-11-02  Eric Blake  <ebb9@byu.net>
80477         Fix tests on cygwin.
80478         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
80480 2007-11-01  Bruno Haible  <bruno@clisp.org>
80482         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
80483         warning.
80484         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
80485         needed for POSIX compatibility.
80487 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80489         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
80490         for compatibility with GNU.
80492 2007-11-01  Bruno Haible  <bruno@clisp.org>
80494         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
80495         (putenv): Renamed from rpl_putenv. Change argument type from
80496         'const char *' to 'char *'.
80497         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
80498         of defining putenv in config.h, just set REPLACE_PUTENV.
80499         * modules/putenv (Depends-on): Add stdlib.
80500         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
80501         (Include): Use <stdlib.h>.
80502         * lib/stdlib.in.h (putenv): New declaration.
80503         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
80504         REPLACE_PUTENV.
80505         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
80506         REPLACE_PUTENV.
80507         Needed for MacOS X 10.5.0.
80508         Reported by Peter O'Gorman <peter@pogma.com>.
80510 2007-11-01  Jim Meyering  <meyering@redhat.com>
80512         Treat an empty date string exactly like "0".
80513         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
80514         if the remaining date string (to be parsed) is empty, use "0".
80515         Reported by Mischa Molhoek and discussed in this thread:
80516         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
80518 2007-10-31  Bruno Haible  <bruno@clisp.org>
80520         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
80521         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
80522         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
80523         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
80524         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
80525         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
80527 2007-10-31  Bruno Haible  <bruno@clisp.org>
80529         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
80530         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
80531         (AC_TYPE_LONG_LONG_INT): Use it.
80532         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
80533         it as well.
80534         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
80535         to m4/longlong.m4.
80536         * modules/stdint (Files): Remove m4/ulonglong.m4.
80537         * modules/strtoull (Files): Use m4/longlong.m4 instead of
80538         m4/ulonglong.m4.
80539         * modules/strtoumax (Files): Likewise.
80541 2007-10-30  Bruno Haible  <bruno@clisp.org>
80543         * modules/xvasprintf-posix: New file.
80544         Suggested by Eric Blake.
80546 2007-10-30  Bruno Haible  <bruno@clisp.org>
80548         * modules/xprintf-posix-tests: New file.
80549         * tests/test-xprintf-posix.sh: New file.
80550         * tests/test-xprintf-posix.c: New file.
80551         * tests/test-xfprintf-posix.c: New file.
80553         * modules/xprintf-posix: New file.
80555 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80557         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
80558         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
80559         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
80561 2007-10-29  Bruno Haible  <bruno@clisp.org>
80563         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
80564         contain the special marker '_cv_'.
80565         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
80566         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
80567         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
80568         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
80569         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
80570         Reported by Ralf Wildenhues.
80572 2007-10-29  Bruno Haible  <bruno@clisp.org>
80574         * gnulib-tool (func_import): When --lgpl is not specified, set
80575         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
80576         GPLv3.
80577         Reported by Simon Josefsson.
80579 2007-10-28  Bruno Haible  <bruno@clisp.org>
80581         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
80582         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
80583         HAVE_DECL_ISFINITE.
80584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
80585         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
80586         HAVE_DECL_ISFINITE.
80588 2007-10-28  Bruno Haible  <bruno@clisp.org>
80590         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
80591         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
80593 2007-10-28  Bruno Haible  <bruno@clisp.org>
80595         Fix link errors with Sun C 5.0 on Solaris 10.
80596         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
80597         function is declared but not present in the compiler's libm.
80598         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
80599         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
80600         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
80601         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
80602         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
80603         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
80604         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
80605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
80606         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
80607         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
80608         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
80609         HAVE_DECL_FLOORL.
80611 2007-10-28  Bruno Haible  <bruno@clisp.org>
80613         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
80614         gl_FUNC_FLOORL. Cache the result.
80615         (gl_FUNC_FLOORL): Use it.
80616         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
80617         gl_FUNC_CEILL. Cache the result.
80618         (gl_FUNC_CEILL): Use it.
80620         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
80621         gl_FUNC_FLOOR. Cache the result.
80622         (gl_FUNC_FLOOR): Use it.
80623         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
80624         gl_FUNC_CEIL. Cache the result.
80625         (gl_FUNC_CEIL): Use it.
80627         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
80628         gl_FUNC_FLOORF. Cache the result.
80629         (gl_FUNC_FLOORF): Use it.
80630         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
80631         gl_FUNC_CEILF. Cache the result.
80632         (gl_FUNC_CEILF): Use it.
80634 2007-10-28  Bruno Haible  <bruno@clisp.org>
80636         * gnulib-tool: Allow specifying the LGPL version number through
80637         --lgpl=2 or --lgpl=3.
80638         (func_usage): Document --lgpl with argument.
80639         Handle --lgpl=... arguments.
80640         (func_import): Recognize also gl_LGPL calls with an argument. When
80641         --lgpl=2 is used and the module's license is just LGPL, report an
80642         error. Set sed_transform_lib_file according to the lgpl variable. In
80643         the generated files, use --lgpl or gl_LGPL invocations with argument,
80644         if necessary.
80645         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
80646         an LGPv2+ license.
80647         * doc/gnulib-tool.texi (Modified imports): Update explanation of
80648         gl_LGPL macro.
80650 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80651             Bruno Haible  <bruno@clisp.org>
80653         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
80654         (u16_uctomb_aux): Likewise.
80655         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
80656         !HAVE_INLINE.
80657         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
80659 2007-10-28  Bruno Haible  <bruno@clisp.org>
80661         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
80662         Invoke AM_GETTEXT_OPTION if it exists.
80663         * modules/vasprintf: Likewise.
80664         * modules/verror: Likewise.
80665         * modules/xprintf: Likewise.
80666         * modules/xvasprintf: Likewise.
80668 2007-10-27  Ben Pfaff  <blp@gnu.org>
80670         * lib/math.in.h: Define isfinite macro and prototypes for
80671         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
80672         implementations.
80673         * m4/math_h.m4: New substitutions for isfinite module.
80674         * lib/isfinite.c: New file.
80675         * m4/isfinite.m4: New file.
80676         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
80677         * modules/isfinite: New file.
80678         * modules/isfinite-tests: New file.
80679         * tests/tests-isfinite.c: New file.
80680         * doc/functions/isfinite.texi: Mention isfinite module.
80681         * MODULES.html.sh: Mention new module.
80683 2007-10-27  Ben Pfaff  <blp@gnu.org>
80685         Ralf Wildenhues reported that Tru64 4.0D declares the round
80686         functions but does not have definitions.
80687         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
80688         cannot be found in any library, set the output variable to
80689         "missing" instead of "".
80690         * m4/round.m4: Also use our substitute if we cannot find round in
80691         any library, even if it is declared.
80692         * m4/roundf.m4: Likewise for roundf.
80693         * m4/roundl.m4: Likewise for roundl.
80694         * lib/math.in.h: Undefine roundf, round, roundl before defining
80695         their replacements, to allow for hypothetical systems where these
80696         may be defined as macros but not available in libraries.
80698 2007-10-27  Bruno Haible  <bruno@clisp.org>
80700         * doc/gnulib.texi: Invoke @firstparagraphindent.
80701         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
80702         changes in gnulib.
80703         (Source changes): New section.
80705 2007-10-26  Bruno Haible  <bruno@clisp.org>
80707         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
80708         borrowed from autoconf.
80710 2007-10-26  Bruno Haible  <bruno@clisp.org>
80712         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
80713         strerror returned the empty string. Needed on HP-UX 11.00.
80715 2007-10-24  Micah Cowan  <micah@cowan.name>
80717         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
80718         * build-aux/bootstrap: Remove support for now-unnecessary option,
80719         --cvs-user, and envvars CVS_USER, CVS_RSH.
80721 2007-10-24  Jim Meyering  <meyering@redhat.com>
80723         Avoid diagnostics from sha1sum when there is no cached checksum.
80724         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
80725         if the po.s1 file hasn't been created yet.
80727         * build-aux/bootstrap: Sync from coreutils:
80728         2007-10-24  Jim Meyering  <meyering@redhat.com>
80729         Get gnulib from the git repository, not from an obsolete cvs one.
80730         * build-aux/bootstrap: Suggestion from Micah Cowan.
80731         2007-10-04  Jim Meyering  <jim@meyering.net>
80732         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
80733         (update_po_files): Work also when there are no .po files in po/.
80735 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80737         * README: Append ".git" to git and cg examples.
80738         Problem reported by Benoit Sigoure.
80740 2007-10-23  Micah Cowan  <micah@cowan.name>
80742         * users.txt: Add wget.
80744 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80746         Fix linking of some unistdio tests on FreeBSD.
80747         * modules/unistdio/u16-vsnprintf-tests
80748         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
80749         * modules/unistdio/u16-vsprintf-tests
80750         (test_u16_vsnprintf1_LDADD): Likewise.
80751         * modules/unistdio/u32-vsnprintf-tests
80752         (test_u32_vsnprintf1_LDADD): Likewise.
80753         * modules/unistdio/u32-vsprintf-tests
80754         (test_u32_vsprintf1_LDADD): Likewise.
80755         * modules/unistdio/u8-vsnprintf-tests
80756         (test_u8_vsnprintf1_LDADD): Likewise.
80757         * modules/unistdio/u8-vsprintf-tests
80758         (test_u8_vsprintf1_LDADD): Likewise.
80759         * modules/unistdio/ulc-vsnprintf-tests
80760         (test_ulc_vsnprintf1_LDADD): Likewise.
80761         * modules/unistdio/ulc-vsprintf-tests
80762         (test_ulc_vsprintf1_LDADD): Likewise.
80764         Fix linking of some uniconv tests on FreeBSD.
80765         * modules/uniconv/u16-conv-from-enc-tests
80766         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
80767         * modules/uniconv/u16-conv-to-enc-tests
80768         (test_u16_conv_to_enc_LDADD): Likewise.
80769         * modules/uniconv/u16-strconv-from-enc-tests
80770         (test_u16_strconv_from_enc_LDADD): Likewise.
80771         * modules/uniconv/u16-strconv-to-enc-tests
80772         (test_u16_strconv_to_enc_LDADD): Likewise.
80773         * modules/uniconv/u32-conv-from-enc-tests
80774         (test_u32_conv_from_enc_LDADD): Likewise.
80775         * modules/uniconv/u32-conv-to-enc-tests
80776         (test_u32_conv_to_enc_LDADD): Likewise.
80777         * modules/uniconv/u32-strconv-from-enc-tests
80778         (test_u32_strconv_from_enc_LDADD): Likewise.
80779         * modules/uniconv/u32-strconv-to-enc-tests
80780         (test_u32_strconv_to_enc_LDADD): Likewise.
80781         * modules/uniconv/u8-conv-from-enc-tests
80782         (test_u8_conv_from_enc_LDADD): Likewise.
80783         * modules/uniconv/u8-conv-to-enc-tests
80784         (test_u8_conv_to_enc_LDADD): Likewise.
80785         * modules/uniconv/u8-strconv-from-enc-tests
80786         (test_u8_strconv_from_enc_LDADD): Likewise.
80787         * modules/uniconv/u8-strconv-to-enc-tests
80788         (test_u8_strconv_to_enc_LDADD): Likewise.
80790 2007-10-22  Bruno Haible  <bruno@clisp.org>
80792         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
80793         size.
80795 2007-10-22  Eric Blake  <ebb9@byu.net>
80797         Tweak x*printf documentation.
80798         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
80799         variable name and comments.
80800         Suggested by Bruno Haible.
80802 2007-10-22  Bruno Haible  <bruno@clisp.org>
80804         * lib/acl.c (copy_acl): Fix file name in comment.
80806 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80808         Fix Tru64 problem with stdbool.h.
80809         * lib/stdbool.in.h (false, true):
80810         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
80811         Don't declare as an enum in this situation; it runs afoul of Tru64.
80812         Problem reported by Steven M. Schweda in
80813         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
80815 2007-10-22  Eric Blake  <ebb9@byu.net>
80817         Also wrap vf?printf.
80818         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
80819         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
80820         (xvprintf, xvfprintf): New functions.
80822 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80824         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
80825         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
80827         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
80828         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
80830 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80832         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
80833         by Bruno Haible.
80835 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80837         * lib/getloadavg.c
80838         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
80839         Undef `sys' after including sys/table.h, for Tru64 4.0D.
80841         * tests/test-i-ring.c: Work for C89.
80843 2007-10-22  Bruno Haible  <bruno@clisp.org>
80845         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
80846         -1u, in preprocessor expression, so that we don't test for the bug
80847         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
80848         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
80850 2007-10-22  Eric Blake  <ebb9@byu.net>
80852         * tests/test-yesno.sh: Silence stderr during test.
80854 2007-10-22  Simon Josefsson  <simon@josefsson.org>
80856         * modules/crypto/gc-camellia: New file.
80858         * m4/gc-camellia.m4: New file.
80860         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
80862         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
80864 2007-10-22  Simon Josefsson  <simon@josefsson.org>
80866         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
80867         --help to stdout.  Reported by sms@antinode.org (Steven
80868         M. Schweda).
80870 2007-10-22  Simon Josefsson  <simon@josefsson.org>
80872         * users.txt: Fix link to libksba.
80874 2007-10-21  Ben Pfaff  <blp@gnu.org>
80876         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
80877         round.c roundf implementation that depends on floorf and ceilf to
80878         be tested unconditionally.
80880 2007-10-21  Ben Pfaff  <blp@gnu.org>
80882         * m4/check-libm-func.m4: Removed.
80883         * m4/check-math-lib.m4: New file.
80884         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
80885         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
80886         definition and lack of AC_LIBOBJ([roundf]).
80887         * m4/roundl.m4: Ditto, and similarly for roundl.
80888         * modules/round: Reference new m4 file.
80889         * modules/roundf: Ditto.
80890         * modules/roundl: Ditto.
80891         * tests/test-round2.c (main): Use ROUND instead of round.
80892         Bug report from Bruno Haible.
80894 2007-10-21  Bruno Haible  <bruno@clisp.org>
80896         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
80897         context.
80899 2007-10-21  Bruno Haible  <bruno@clisp.org>
80901         * tests/test-wcwidth.c (main): Allow negative result for some control
80902         characters.
80904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
80905         Needed on OSF/1 5.1.
80907 2007-10-21  Bruno Haible  <bruno@clisp.org>
80909         * tests/test-floorf1.c: Include isnanf.h.
80910         (main): Use isnanf() instead of isnan().
80911         * tests/test-ceilf1.c: Include isnanf.h.
80912         (main): Use isnanf() instead of isnan().
80913         * tests/test-truncf1.c: Include isnanf.h.
80914         (main): Use isnanf() instead of isnan().
80915         * tests/test-roundf1.c: Include isnanf.h.
80916         (main): Use isnanf() instead of isnan().
80918 2007-10-21  Eric Blake  <ebb9@byu.net>
80920         * users.txt: Update URL for m4.
80922 2007-10-21  Bruno Haible  <bruno@clisp.org>
80924         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
80926 2007-10-21  Bruno Haible  <bruno@clisp.org>
80928         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
80929         Git's management files if the CVS files are not present.
80931 2007-10-20  Bruno Haible  <bruno@clisp.org>
80933         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
80934         gcc-3.4.x.
80936 2007-10-20  Ben Pfaff  <blp@gnu.org>
80938         * lib/math.in.h: Declare round, roundf, roundl if we are providing
80939         implementations.
80940         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
80941         * lib/round.c: New file.
80942         * lib/roundf.c: New file.
80943         * lib/roundl.c: New file.
80944         * m4/round.m4: New file.
80945         * m4/roundf.m4: New file.
80946         * m4/roundl.m4: New file.
80947         * m4/check-libm-func-m4: New file.
80948         * modules/math: Replace round, roundf, roundl related @VARS@ in
80949         math.in.h.
80950         * modules/round: New file.
80951         * modules/round-tests: New file.
80952         * modules/roundf: New file.
80953         * modules/roundf-tests: New file.
80954         * modules/roundl: New file.
80955         * modules/roundl-tests: New file.
80956         * tests/test-round1.c: New file.
80957         * tests/test-round2.c: New file.
80958         * tests/test-roundf1.c: New file.
80959         * tests/test-roundf2.c: New file.
80960         * tests/test-roundl.c: New file.
80961         * doc/functions/round.texi: Mention round module.
80962         * doc/functions/roundf.texi: Mention roundf module.
80963         * doc/functions/roundl.texi: Mention roundl module.
80964         * MODULES.html.sh: Mention new modules.
80965         Thanks to Bruno Haible for suggestions.
80967 2007-10-20  Jim Meyering  <meyering@redhat.com>
80969         * lib/xprintf.c: Include <config.h> unconditionally.
80971         Change xprintf's license to GPL.
80972         * modules/xprintf (License): s/LGPL/GPL/, since this module
80973         depends on modules (exit and exitfail) which are GPL.
80974         Suggestion from Bruno Haible.
80976         xprintf fixes.
80977         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
80978         Use a clearer diagnostic.
80979         Patch from Bruno Haible.
80981 2007-10-20  Bruno Haible  <bruno@clisp.org>
80983         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
80984         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
80985         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80987 2007-10-20  Bruno Haible  <bruno@clisp.org>
80989         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
80990         precision in the comparison result > x - 1 or similar.
80991         * tests/test-ceilf2.c (correct_result_p): Likewise.
80992         * tests/test-truncf2.c (correct_result_p): Likewise.
80993         * tests/test-trunc2.c (correct_result_p): Likewise.
80994         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80996 2007-10-20  Bruno Haible  <bruno@clisp.org>
80998         * modules/ceil: New file.
80999         * m4/ceil.m4: New file.
81000         * doc/functions/ceil.texi: Mention the 'ceil' module.
81002 2007-10-20  Bruno Haible  <bruno@clisp.org>
81004         * modules/floor: New file.
81005         * m4/floor.m4: New file.
81006         * doc/functions/floor.texi: Mention the 'floor' module.
81008 2007-10-20  Bruno Haible  <bruno@clisp.org>
81010         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
81011         of %a.
81012         * modules/floorf-tests (Depends-on): Likewise.
81013         * modules/truncf-tests (Depends-on): Likewise.
81014         * modules/trunc-tests (Depends-on): Likewise.
81015         Reported by Ben Pfaff.
81017 2007-10-19  Jim Meyering  <meyering@redhat.com>
81019         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
81020         Don't bother testing specific errno values.  Just test ferror.
81022         New module: xprintf
81023         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
81025 2007-10-19  Bruno Haible  <bruno@clisp.org>
81027         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
81028         syntax.
81029         * modules/javaexec (Makefile.am): Likewise.
81030         * modules/relocatable-prog (Makefile.am): Likewise.
81031         Suggested by Jim Meyering.
81033 2007-10-18  Bruno Haible  <bruno@clisp.org>
81035         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
81036         Reported by Jim Meyering.
81038 2007-10-18  Eric Blake  <ebb9@byu.net>
81040         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
81042 2007-10-18  Bruno Haible  <bruno@clisp.org>
81044         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
81045         the format string into writable memory. Needed in Fortify conditions.
81047 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
81048             Bruno Haible  <bruno@clisp.org>
81050         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
81051         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
81052         * modules/trim (Depends-on): Add mbchar.
81053         (configure.ac): Add gl_FUNC_MBRTOWC.
81054         (Makefile.am): Augment lib_SOURCES.
81056 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81058         Modify glob.c to use fstatat and dirfd, to simplify it.
81059         Suggested by Eric Blake.
81060         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
81061         Don't include <stdbool.h>; not used.
81062         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
81063         (link_exists_p): Simplify implementation, since we can now assume
81064         dirfd and fstatat.
81065         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
81067 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81069         * gnulib-tool (func_get_dependencies): Fix sed script to
81070         match only tests.
81072 2007-10-17  Bruno Haible  <bruno@clisp.org>
81074         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
81075         allow locale names without encoding suffix.
81076         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
81077         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
81079 2007-10-16  Bruno Haible  <bruno@clisp.org>
81081         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
81082         * lib/getgroups.c (getgroups): Likewise.
81083         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
81085 2007-10-16  Bruno Haible  <bruno@clisp.org>
81087         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
81088         * modules/malloc-posix (License): Likewise.
81089         * modules/realloc-posix (License): Likewise.
81090         * modules/calloc-posix (License): Likewise.
81091         * modules/intprops (License): Change from GPL to LGPL, with
81092         Paul Eggert's approval.
81094 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
81096         Merge glibc changes into lib/glob.c.
81098         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
81099         2007-10-15 04:59:03 UTC.  Here are the changes:
81101         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
81103         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
81105         * lib/glob.c: Add some branch prediction throughout.
81107         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
81109         [BZ #5103]
81110         * lib/glob.c (glob): Recognize patterns starting \/.
81112         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
81114         [BZ #3996]
81115         * lib/glob.c (attribute_hidden): Define if not defined.
81116         (glob): Unescape dirname, filename or username when needed and not
81117         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
81118         is NULL.  Handle unescaped [ in pattern without closing ].
81119         Don't pass GLOB_CHECK down to recursive glob for directories.
81120         (__glob_pattern_type): New function.
81121         (__glob_pattern_p): Implement using __glob_pattern_type.
81122         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
81123         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
81124         Remove unreachable code.
81126         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
81128         * lib/glob.c (glob_in_dir): Add some comments and asserts to
81129         explain why there are no leaks.
81131         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
81133         [BZ #3253]
81134         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
81135         time, rather allocate increasingly bigger arrays of pointers, if
81136         possible with alloca, if too large with malloc.
81138 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
81140         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
81141         Problem reported by H.Merijn Brand in
81142         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
81143         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
81144         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81146 2007-10-15  Bruno Haible  <bruno@clisp.org>
81148         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
81149         with explicit rpl_ prefix.
81150         * lib/fopen.c (fopen): Likewise.
81151         * lib/freopen.c (freopen): Likewise.
81152         * lib/iconv.c (iconv): Likewise.
81153         * lib/iconv_close.c (iconv_close): Likewise.
81155 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81157         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
81159 2007-10-15  Bruno Haible  <bruno@clisp.org>
81161         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
81162         <stddef.h> instead of <stdlib.h> since we only need NULL.
81163         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81165 2007-10-15  Bruno Haible  <bruno@clisp.org>
81167         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
81168         Replace paragraph talking about LIBOBJS.
81169         Reported by Colin Watson <cjwatson@debian.org>.
81171 2007-10-15  Bruno Haible  <bruno@clisp.org>
81173         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
81174         <stdlib.h> before using NULL.
81176 2007-10-15  Simon Josefsson  <simon@josefsson.org>
81178         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
81179         Reported by Albert Chin <china@thewrittenword.com>.
81181 2007-10-14  Bruno Haible  <bruno@clisp.org>
81183         * modules/iconv_open-utf-tests: New file.
81184         * tests/test-iconv-utf.c: New file.
81186         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
81187         * modules/iconv_open-utf: New file.
81188         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
81189         (iconv, iconv_close): New declarations.
81190         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
81191         be defined.
81192         (iconv_open): Add special handling of conversion between UTF-8 and
81193         UTF-{16,32}{BE,LE}.
81194         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
81195         * lib/iconv_close.c: New file.
81196         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
81197         gl_FUNC_ICONV_OPEN.
81198         (gl_FUNC_ICONV_OPEN): Use it.
81199         (gl_FUNC_ICONV_OPEN_UTF): New macro.
81200         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
81201         and REPLACE_ICONV_UTF.
81202         * modules/iconv_open (Depends-on): Add c-strcase.
81203         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
81204         ICONV_CONST.
81205         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
81207 2007-10-13  Albert Chin  <china@thewrittenword.com>
81208             Bruno Haible  <bruno@clisp.org>
81210         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
81211         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
81213 2007-10-13  Bruno Haible  <bruno@clisp.org>
81215         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
81216         defined, use the ISO C99 inline semantics.
81217         * lib/argp.h (ARGP_EI): Likewise.
81219 2007-10-13  Bruno Haible  <bruno@clisp.org>
81221         Handle 'inline' change in gcc 4.3.0.
81222         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
81223         argp_fmtstream_write, argp_fmtstream_set_lmargin,
81224         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
81225         argp_fmtstream_point): Disable 'extern' declaration if the function
81226         definition is going to be provided inline.
81227         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
81228         semantics, not the ISO C99 inline semantics.
81229         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
81230         'extern' declaration if the function definition is going to be provided
81231         inline.
81232         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
81233         the GNU C inline semantics, not the ISO C99 inline semantics. With
81234         GCC 4.2, avoid a warning.
81236 2007-10-13  Bruno Haible  <bruno@clisp.org>
81238         * lib/freading.h (freading): Enable the use of __freading for
81239         glibc >= 2.7.
81240         * lib/freading.c (freading): Likewise.
81242 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
81244         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
81245         "warning: C99 inline functions are not supported; using GNU89".
81247 2007-10-12  Bruno Haible  <bruno@clisp.org>
81249         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
81250         of 2.
81251         * tests/test-ceilf2.c: New file.
81252         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
81254         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
81255         * modules/ceilf-tests: Update.
81257 2007-10-12  Bruno Haible  <bruno@clisp.org>
81259         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
81260         of 2.
81261         * tests/test-floorf2.c: New file.
81262         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
81264         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
81265         * modules/floorf-tests: Update.
81267 2007-10-12  Bruno Haible  <bruno@clisp.org>
81269         * tests/test-trunc2.c: New file.
81270         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
81272         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
81273         * modules/trunc-tests: Update.
81275 2007-10-12  Bruno Haible  <bruno@clisp.org>
81277         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
81278         of 2.
81279         * tests/test-truncf2.c: New file.
81280         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
81282         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
81283         * modules/truncf-tests: Update.
81285 2007-10-11  Eric Blake  <ebb9@byu.net>
81287         Don't claim strerror is broken on Interix.
81288         * doc/functions/strerror.texi (strerror): Known broken systems are
81289         now Solaris 8, and not Interix.
81290         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
81291         Interix on cross-compile.
81292         Reported by Martin Koeppe in
81293         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
81295 2007-10-11  Bruno Haible  <bruno@clisp.org>
81297         * modules/i-ring-tests: New file.
81298         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
81299         instead of assert.
81301 2007-10-11  Bruno Haible  <bruno@clisp.org>
81303         * modules/filenamecat-tests: New file.
81304         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
81305         * lib/filenamecat.c: Remove test code.
81307 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
81309         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
81311         * lib/strerror.c: Include <string.h> always, to test interface,
81312         and to remove the need for the dummy.
81313         Include intprops.h to compute width instead of doing it ourselves
81314         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
81315         (strerror): Define it to return NULL if there's no system strerror.
81316         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
81317         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
81318         ancient pre-strerror Unix systems well any more.  Saying "unknown
81319         system error" is enough.
81320         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
81321         simpler strerror.c implementation.
81322         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
81323         Simplify the tests to reflect the simpler strerror implementation.
81324         * modules/strerror (Depends-on): Add intprops.
81326 2007-10-09  Eric Blake  <ebb9@byu.net>
81328         Silence test-fpending.
81329         * modules/fpending-tests (Files): Add wrapper script.
81330         * tests/test-fpending.sh: New file.
81332 2007-10-09  Bruno Haible  <bruno@clisp.org>
81334         * MODULES.html.sh (func_module): Don't create a hyperlink for
81335         function names like 'printf_frexp'.
81336         (Misc): Add crc, memxor.
81337         (Characteristics of floating types): New section.
81338         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
81339         isnanf-nolibm, signbit, trunc, truncf, truncl.
81340         (Enhancements for ISO C 99 functions): New subsection Input/output.
81341         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
81342         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
81343         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
81344         (Compatibility checks for POSIX:2001 functions): Add clock-time.
81345         (Enhancements for POSIX:2001 functions): Add chdir-long.
81346         (File system functions): Add areadlink, chdir-safer, read-file.
81347         Remove cycle-check.
81348         (File system as inode set): New section.
81349         (Date and time): Add gethrxtime.
81350         (Multithreading): Add openmp.
81351         (Internationalization functions): Add localename.
81352         (Unicode string functions): Add unistr/u*-mbsnlen.
81353         (Support for maintaining and releasing projects): Add git-version-gen.
81354         (Lone files): Remove directories.
81356 2007-10-08  Ben Pfaff  <blp@gnu.org>
81358         * lib/xmalloca.h: Fix typo in comment.
81360 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
81362         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
81363         when avoiding problems with integer overflow.  Use a portable test
81364         instead.
81366 2007-10-08  Simon Josefsson  <simon@josefsson.org>
81368         * modules/dummy (License): Change to LGPLv2+.
81369         * modules/float (License): Likewise
81370         * modules/realloc (License): Likewise
81371         * modules/stdlib (License): Likewise
81373 2007-10-07  Bruno Haible  <bruno@clisp.org>
81375         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
81376         * floor.c (TWO_MANT_DIG): Likewise.
81377         * ceil.c (TWO_MANT_DIG): Likewise.
81378         Reported by Ben Pfaff.
81380 2007-10-07  Bruno Haible  <bruno@clisp.org>
81382         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
81383         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
81384         * lib/frexp.c (FUNC): Likewise.
81385         * lib/printf-frexp.h (printf_frexp): Likewise.
81386         * lib/printf-frexpl.h (printf_frexpl): Likewise.
81387         * lib/printf-frexp.c (FUNC): Likewise.
81388         Suggested by Jim Meyering.
81390 2007-10-07  Jim Meyering  <meyering@redhat.com>
81392         Make xnanosleep's integer overflow test more robust.
81393         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
81394         so that gcc-4.3.0 doesn't optimize away this test for overflow.
81396 2007-10-07  Bruno Haible  <bruno@clisp.org>
81398         * NEWS: Mention the license change.
81400         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
81401         abbreviations in the modules files.
81403         Change copyright notice from GPLv2+ to GPLv3+.
81404         * README: Change copyright notice.
81405         * MODULES.html.sh: Likewise.
81406         * build-aux/bootstrap.conf: Likewise.
81407         * build-aux/config.libpath: Likewise.
81408         * build-aux/csharpcomp.sh.in: Likewise.
81409         * build-aux/csharpexec.sh.in: Likewise.
81410         * build-aux/install-reloc: Likewise.
81411         * build-aux/javacomp.sh.in: Likewise.
81412         * build-aux/javaexec.sh.in: Likewise.
81413         * build-aux/ldd.sh.in: Likewise.
81414         * build-aux/reloc-ldflags: Likewise.
81415         * build-aux/relocatable.sh.in: Likewise.
81416         * build-aux/x-to-1.in: Likewise.
81417         * check-module: Likewise.
81418         * config/srclistvars.sh: Likewise.
81419         * gnulib-tool: Likewise.
81420         * lib/acl-internal.h: Likewise.
81421         * lib/acl.c: Likewise.
81422         * lib/acl.h: Likewise.
81423         * lib/acl_entries.c: Likewise.
81424         * lib/areadlink-with-size.c: Likewise.
81425         * lib/areadlink.c: Likewise.
81426         * lib/areadlink.h: Likewise.
81427         * lib/argmatch.c: Likewise.
81428         * lib/argmatch.h: Likewise.
81429         * lib/argp-ba.c: Likewise.
81430         * lib/argp-eexst.c: Likewise.
81431         * lib/argp-fmtstream.c: Likewise.
81432         * lib/argp-fmtstream.h: Likewise.
81433         * lib/argp-fs-xinl.c: Likewise.
81434         * lib/argp-help.c: Likewise.
81435         * lib/argp-namefrob.h: Likewise.
81436         * lib/argp-parse.c: Likewise.
81437         * lib/argp-pin.c: Likewise.
81438         * lib/argp-pv.c: Likewise.
81439         * lib/argp-pvh.c: Likewise.
81440         * lib/argp-xinl.c: Likewise.
81441         * lib/argp.h: Likewise.
81442         * lib/at-func.c: Likewise.
81443         * lib/atanl.c: Likewise.
81444         * lib/backupfile.c: Likewise.
81445         * lib/backupfile.h: Likewise.
81446         * lib/basename.c: Likewise.
81447         * lib/binary-io.h: Likewise.
81448         * lib/byteswap.in.h: Likewise.
81449         * lib/c-stack.c: Likewise.
81450         * lib/c-stack.h: Likewise.
81451         * lib/c-strcasestr.c: Likewise.
81452         * lib/c-strcasestr.h: Likewise.
81453         * lib/c-strstr.c: Likewise.
81454         * lib/c-strstr.h: Likewise.
81455         * lib/c-strtod.c: Likewise.
81456         * lib/calloc.c: Likewise.
81457         * lib/canon-host.c: Likewise.
81458         * lib/canon-host.h: Likewise.
81459         * lib/canonicalize-lgpl.c: Likewise.
81460         * lib/canonicalize.c: Likewise.
81461         * lib/canonicalize.h: Likewise.
81462         * lib/ceil.c: Likewise.
81463         * lib/ceilf.c: Likewise.
81464         * lib/ceill.c: Likewise.
81465         * lib/chdir-long.c: Likewise.
81466         * lib/chdir-long.h: Likewise.
81467         * lib/chdir-safer.c: Likewise.
81468         * lib/chdir-safer.h: Likewise.
81469         * lib/chown.c: Likewise.
81470         * lib/classpath.c: Likewise.
81471         * lib/classpath.h: Likewise.
81472         * lib/clean-temp.c: Likewise.
81473         * lib/clean-temp.h: Likewise.
81474         * lib/cloexec.c: Likewise.
81475         * lib/close-stream.c: Likewise.
81476         * lib/closein.c: Likewise.
81477         * lib/closein.h: Likewise.
81478         * lib/closeout.c: Likewise.
81479         * lib/closeout.h: Likewise.
81480         * lib/concat-filename.c: Likewise.
81481         * lib/copy-file.c: Likewise.
81482         * lib/copy-file.h: Likewise.
81483         * lib/count-one-bits.h: Likewise.
81484         * lib/crc.c: Likewise.
81485         * lib/crc.h: Likewise.
81486         * lib/creat-safer.c: Likewise.
81487         * lib/csharpcomp.c: Likewise.
81488         * lib/csharpcomp.h: Likewise.
81489         * lib/csharpexec.c: Likewise.
81490         * lib/csharpexec.h: Likewise.
81491         * lib/cycle-check.c: Likewise.
81492         * lib/cycle-check.h: Likewise.
81493         * lib/diacrit.c: Likewise.
81494         * lib/diacrit.h: Likewise.
81495         * lib/diffseq.h: Likewise.
81496         * lib/dirchownmod.c: Likewise.
81497         * lib/dirent.in.h: Likewise.
81498         * lib/dirfd.c: Likewise.
81499         * lib/dirfd.h: Likewise.
81500         * lib/dirname.c: Likewise.
81501         * lib/dirname.h: Likewise.
81502         * lib/dummy.c: Likewise.
81503         * lib/dup-safer.c: Likewise.
81504         * lib/dup2.c: Likewise.
81505         * lib/eealloc.h: Likewise.
81506         * lib/error.c: Likewise.
81507         * lib/error.h: Likewise.
81508         * lib/euidaccess.c: Likewise.
81509         * lib/exclude.c: Likewise.
81510         * lib/exclude.h: Likewise.
81511         * lib/execute.c: Likewise.
81512         * lib/execute.h: Likewise.
81513         * lib/exitfail.c: Likewise.
81514         * lib/exitfail.h: Likewise.
81515         * lib/expl.c: Likewise.
81516         * lib/fatal-signal.c: Likewise.
81517         * lib/fatal-signal.h: Likewise.
81518         * lib/fbufmode.c: Likewise.
81519         * lib/fbufmode.h: Likewise.
81520         * lib/fchdir.c: Likewise.
81521         * lib/fchmodat.c: Likewise.
81522         * lib/fchownat.c: Likewise.
81523         * lib/fcntl--.h: Likewise.
81524         * lib/fcntl-safer.h: Likewise.
81525         * lib/fcntl.in.h: Likewise.
81526         * lib/fd-safer.c: Likewise.
81527         * lib/fflush.c: Likewise.
81528         * lib/file-has-acl.c: Likewise.
81529         * lib/file-set.c: Likewise.
81530         * lib/file-type.c: Likewise.
81531         * lib/file-type.h: Likewise.
81532         * lib/fileblocks.c: Likewise.
81533         * lib/filemode.c: Likewise.
81534         * lib/filemode.h: Likewise.
81535         * lib/filename.h: Likewise.
81536         * lib/filenamecat.c: Likewise.
81537         * lib/filenamecat.h: Likewise.
81538         * lib/findprog.c: Likewise.
81539         * lib/findprog.h: Likewise.
81540         * lib/float.in.h: Likewise.
81541         * lib/floor.c: Likewise.
81542         * lib/floorf.c: Likewise.
81543         * lib/floorl.c: Likewise.
81544         * lib/fopen-safer.c: Likewise.
81545         * lib/fopen.c: Likewise.
81546         * lib/fpending.c: Likewise.
81547         * lib/fpending.h: Likewise.
81548         * lib/fprintf.c: Likewise.
81549         * lib/fprintftime.h: Likewise.
81550         * lib/fpucw.h: Likewise.
81551         * lib/fpurge.c: Likewise.
81552         * lib/fpurge.h: Likewise.
81553         * lib/freadable.c: Likewise.
81554         * lib/freadable.h: Likewise.
81555         * lib/freadahead.c: Likewise.
81556         * lib/freadahead.h: Likewise.
81557         * lib/freading.c: Likewise.
81558         * lib/freading.h: Likewise.
81559         * lib/free.c: Likewise.
81560         * lib/freopen.c: Likewise.
81561         * lib/frexp.c: Likewise.
81562         * lib/frexpl.c: Likewise.
81563         * lib/fseek.c: Likewise.
81564         * lib/fseterr.c: Likewise.
81565         * lib/fseterr.h: Likewise.
81566         * lib/fstatat.c: Likewise.
81567         * lib/fstrcmp.c: Likewise.
81568         * lib/fstrcmp.h: Likewise.
81569         * lib/fsusage.c: Likewise.
81570         * lib/fsusage.h: Likewise.
81571         * lib/ftell.c: Likewise.
81572         * lib/ftello.c: Likewise.
81573         * lib/fts-cycle.c: Likewise.
81574         * lib/fts.c: Likewise.
81575         * lib/fts_.h: Likewise.
81576         * lib/full-read.c: Likewise.
81577         * lib/full-read.h: Likewise.
81578         * lib/full-write.c: Likewise.
81579         * lib/full-write.h: Likewise.
81580         * lib/fwritable.c: Likewise.
81581         * lib/fwritable.h: Likewise.
81582         * lib/fwriteerror.c: Likewise.
81583         * lib/fwriteerror.h: Likewise.
81584         * lib/fwriting.c: Likewise.
81585         * lib/fwriting.h: Likewise.
81586         * lib/gcd.c: Likewise.
81587         * lib/gcd.h: Likewise.
81588         * lib/getcwd.c: Likewise.
81589         * lib/getdate.h: Likewise.
81590         * lib/getdate.y: Likewise.
81591         * lib/getdomainname.c: Likewise.
81592         * lib/getdomainname.h: Likewise.
81593         * lib/getgroups.c: Likewise.
81594         * lib/gethostname.c: Likewise.
81595         * lib/gethrxtime.c: Likewise.
81596         * lib/gethrxtime.h: Likewise.
81597         * lib/getloadavg.c: Likewise.
81598         * lib/getndelim2.c: Likewise.
81599         * lib/getndelim2.h: Likewise.
81600         * lib/getnline.c: Likewise.
81601         * lib/getnline.h: Likewise.
81602         * lib/getopt.c: Likewise.
81603         * lib/getopt.in.h: Likewise.
81604         * lib/getopt1.c: Likewise.
81605         * lib/getopt_int.h: Likewise.
81606         * lib/getpagesize.h: Likewise.
81607         * lib/getsubopt.c: Likewise.
81608         * lib/gettime.c: Likewise.
81609         * lib/getugroups.c: Likewise.
81610         * lib/getugroups.h: Likewise.
81611         * lib/getusershell.c: Likewise.
81612         * lib/gl_anyavltree_list1.h: Likewise.
81613         * lib/gl_anyavltree_list2.h: Likewise.
81614         * lib/gl_anyhash_list1.h: Likewise.
81615         * lib/gl_anyhash_list2.h: Likewise.
81616         * lib/gl_anylinked_list1.h: Likewise.
81617         * lib/gl_anylinked_list2.h: Likewise.
81618         * lib/gl_anyrbtree_list1.h: Likewise.
81619         * lib/gl_anyrbtree_list2.h: Likewise.
81620         * lib/gl_anytree_list1.h: Likewise.
81621         * lib/gl_anytree_list2.h: Likewise.
81622         * lib/gl_anytree_oset.h: Likewise.
81623         * lib/gl_anytreehash_list1.h: Likewise.
81624         * lib/gl_anytreehash_list2.h: Likewise.
81625         * lib/gl_array_list.c: Likewise.
81626         * lib/gl_array_list.h: Likewise.
81627         * lib/gl_array_oset.c: Likewise.
81628         * lib/gl_array_oset.h: Likewise.
81629         * lib/gl_avltree_list.c: Likewise.
81630         * lib/gl_avltree_list.h: Likewise.
81631         * lib/gl_avltree_oset.c: Likewise.
81632         * lib/gl_avltree_oset.h: Likewise.
81633         * lib/gl_avltreehash_list.c: Likewise.
81634         * lib/gl_avltreehash_list.h: Likewise.
81635         * lib/gl_carray_list.c: Likewise.
81636         * lib/gl_carray_list.h: Likewise.
81637         * lib/gl_linked_list.c: Likewise.
81638         * lib/gl_linked_list.h: Likewise.
81639         * lib/gl_linkedhash_list.c: Likewise.
81640         * lib/gl_linkedhash_list.h: Likewise.
81641         * lib/gl_list.c: Likewise.
81642         * lib/gl_list.h: Likewise.
81643         * lib/gl_oset.c: Likewise.
81644         * lib/gl_oset.h: Likewise.
81645         * lib/gl_rbtree_list.c: Likewise.
81646         * lib/gl_rbtree_list.h: Likewise.
81647         * lib/gl_rbtree_oset.c: Likewise.
81648         * lib/gl_rbtree_oset.h: Likewise.
81649         * lib/gl_rbtreehash_list.c: Likewise.
81650         * lib/gl_rbtreehash_list.h: Likewise.
81651         * lib/gl_sublist.c: Likewise.
81652         * lib/gl_sublist.h: Likewise.
81653         * lib/group-member.c: Likewise.
81654         * lib/group-member.h: Likewise.
81655         * lib/hard-locale.c: Likewise.
81656         * lib/hard-locale.h: Likewise.
81657         * lib/hash-pjw.c: Likewise.
81658         * lib/hash-pjw.h: Likewise.
81659         * lib/hash-triple.c: Likewise.
81660         * lib/hash.c: Likewise.
81661         * lib/hash.h: Likewise.
81662         * lib/human.c: Likewise.
81663         * lib/human.h: Likewise.
81664         * lib/i-ring.c: Likewise.
81665         * lib/i-ring.h: Likewise.
81666         * lib/idcache.c: Likewise.
81667         * lib/imaxabs.c: Likewise.
81668         * lib/imaxdiv.c: Likewise.
81669         * lib/inet_pton.c: Likewise.
81670         * lib/inet_pton.h: Likewise.
81671         * lib/intprops.h: Likewise.
81672         * lib/inttostr.c: Likewise.
81673         * lib/inttostr.h: Likewise.
81674         * lib/inttypes.in.h: Likewise.
81675         * lib/isapipe.c: Likewise.
81676         * lib/isdir.c: Likewise.
81677         * lib/isnan.c: Likewise.
81678         * lib/isnan.h: Likewise.
81679         * lib/isnanf.c: Likewise.
81680         * lib/isnanf.h: Likewise.
81681         * lib/isnanl-nolibm.h: Likewise.
81682         * lib/isnanl.c: Likewise.
81683         * lib/isnanl.h: Likewise.
81684         * lib/javacomp.c: Likewise.
81685         * lib/javacomp.h: Likewise.
81686         * lib/javaexec.c: Likewise.
81687         * lib/javaexec.h: Likewise.
81688         * lib/javaversion.c: Likewise.
81689         * lib/javaversion.h: Likewise.
81690         * lib/javaversion.java: Likewise.
81691         * lib/lbrkprop.h: Likewise.
81692         * lib/lchmod.h: Likewise.
81693         * lib/lchown.c: Likewise.
81694         * lib/ldexpl.c: Likewise.
81695         * lib/linebreak.c: Likewise.
81696         * lib/linebreak.h: Likewise.
81697         * lib/linebuffer.c: Likewise.
81698         * lib/linebuffer.h: Likewise.
81699         * lib/locale.in.h: Likewise.
81700         * lib/logl.c: Likewise.
81701         * lib/long-options.c: Likewise.
81702         * lib/long-options.h: Likewise.
81703         * lib/lstat.c: Likewise.
81704         * lib/lstat.h: Likewise.
81705         * lib/math.in.h: Likewise.
81706         * lib/mbchar.c: Likewise.
81707         * lib/mbchar.h: Likewise.
81708         * lib/mbfile.h: Likewise.
81709         * lib/mbiter.h: Likewise.
81710         * lib/mbscasecmp.c: Likewise.
81711         * lib/mbscasestr.c: Likewise.
81712         * lib/mbschr.c: Likewise.
81713         * lib/mbscspn.c: Likewise.
81714         * lib/mbslen.c: Likewise.
81715         * lib/mbsncasecmp.c: Likewise.
81716         * lib/mbsnlen.c: Likewise.
81717         * lib/mbspbrk.c: Likewise.
81718         * lib/mbspcasecmp.c: Likewise.
81719         * lib/mbsrchr.c: Likewise.
81720         * lib/mbssep.c: Likewise.
81721         * lib/mbsspn.c: Likewise.
81722         * lib/mbsstr.c: Likewise.
81723         * lib/mbstok_r.c: Likewise.
81724         * lib/mbswidth.c: Likewise.
81725         * lib/mbswidth.h: Likewise.
81726         * lib/mbuiter.h: Likewise.
81727         * lib/memcasecmp.c: Likewise.
81728         * lib/memcasecmp.h: Likewise.
81729         * lib/memchr.c: Likewise.
81730         * lib/memcmp.c: Likewise.
81731         * lib/memcoll.c: Likewise.
81732         * lib/memcoll.h: Likewise.
81733         * lib/memcpy.c: Likewise.
81734         * lib/memrchr.c: Likewise.
81735         * lib/mkancesdirs.c: Likewise.
81736         * lib/mkdir-p.c: Likewise.
81737         * lib/mkdir-p.h: Likewise.
81738         * lib/mkdir.c: Likewise.
81739         * lib/mkdirat.c: Likewise.
81740         * lib/mkdtemp.c: Likewise.
81741         * lib/mkstemp-safer.c: Likewise.
81742         * lib/mkstemp.c: Likewise.
81743         * lib/modechange.c: Likewise.
81744         * lib/modechange.h: Likewise.
81745         * lib/mountlist.c: Likewise.
81746         * lib/mountlist.h: Likewise.
81747         * lib/mpsort.c: Likewise.
81748         * lib/nanosleep.c: Likewise.
81749         * lib/obstack.c: Likewise.
81750         * lib/obstack.h: Likewise.
81751         * lib/open-safer.c: Likewise.
81752         * lib/open.c: Likewise.
81753         * lib/openat-die.c: Likewise.
81754         * lib/openat-priv.h: Likewise.
81755         * lib/openat-proc.c: Likewise.
81756         * lib/openat.c: Likewise.
81757         * lib/openat.h: Likewise.
81758         * lib/pagealign_alloc.c: Likewise.
81759         * lib/pagealign_alloc.h: Likewise.
81760         * lib/physmem.c: Likewise.
81761         * lib/physmem.h: Likewise.
81762         * lib/pipe-safer.c: Likewise.
81763         * lib/pipe.c: Likewise.
81764         * lib/pipe.h: Likewise.
81765         * lib/posixtm.c: Likewise.
81766         * lib/posixtm.h: Likewise.
81767         * lib/posixver.c: Likewise.
81768         * lib/printf-frexp.c: Likewise.
81769         * lib/printf-frexp.h: Likewise.
81770         * lib/printf-frexpl.c: Likewise.
81771         * lib/printf-frexpl.h: Likewise.
81772         * lib/printf.c: Likewise.
81773         * lib/progname.c: Likewise.
81774         * lib/progname.h: Likewise.
81775         * lib/progreloc.c: Likewise.
81776         * lib/putenv.c: Likewise.
81777         * lib/quote.c: Likewise.
81778         * lib/quote.h: Likewise.
81779         * lib/quotearg.c: Likewise.
81780         * lib/quotearg.h: Likewise.
81781         * lib/raise.c: Likewise.
81782         * lib/readline.c: Likewise.
81783         * lib/readline.h: Likewise.
81784         * lib/readlink.c: Likewise.
81785         * lib/readtokens.c: Likewise.
81786         * lib/readtokens.h: Likewise.
81787         * lib/readtokens0.c: Likewise.
81788         * lib/readtokens0.h: Likewise.
81789         * lib/readutmp.c: Likewise.
81790         * lib/readutmp.h: Likewise.
81791         * lib/realloc.c: Likewise.
81792         * lib/relocwrapper.c: Likewise.
81793         * lib/rename-dest-slash.c: Likewise.
81794         * lib/rename.c: Likewise.
81795         * lib/rmdir.c: Likewise.
81796         * lib/rpmatch.c: Likewise.
81797         * lib/safe-read.c: Likewise.
81798         * lib/safe-read.h: Likewise.
81799         * lib/safe-write.c: Likewise.
81800         * lib/safe-write.h: Likewise.
81801         * lib/same-inode.h: Likewise.
81802         * lib/same.c: Likewise.
81803         * lib/same.h: Likewise.
81804         * lib/save-cwd.c: Likewise.
81805         * lib/save-cwd.h: Likewise.
81806         * lib/savedir.c: Likewise.
81807         * lib/savedir.h: Likewise.
81808         * lib/savewd.c: Likewise.
81809         * lib/savewd.h: Likewise.
81810         * lib/search.in.h: Likewise.
81811         * lib/setenv.c: Likewise.
81812         * lib/setenv.h: Likewise.
81813         * lib/settime.c: Likewise.
81814         * lib/sh-quote.c: Likewise.
81815         * lib/sh-quote.h: Likewise.
81816         * lib/sig2str.c: Likewise.
81817         * lib/sig2str.h: Likewise.
81818         * lib/signal.in.h: Likewise.
81819         * lib/signbitd.c: Likewise.
81820         * lib/signbitf.c: Likewise.
81821         * lib/signbitl.c: Likewise.
81822         * lib/sigprocmask.c: Likewise.
81823         * lib/sincosl.c: Likewise.
81824         * lib/sleep.c: Likewise.
81825         * lib/sprintf.c: Likewise.
81826         * lib/sqrtl.c: Likewise.
81827         * lib/stat-time.h: Likewise.
81828         * lib/stdio--.h: Likewise.
81829         * lib/stdio-safer.h: Likewise.
81830         * lib/stdlib--.h: Likewise.
81831         * lib/stdlib-safer.h: Likewise.
81832         * lib/stdlib.in.h: Likewise.
81833         * lib/stpcpy.c: Likewise.
81834         * lib/stpncpy.c: Likewise.
81835         * lib/strchrnul.c: Likewise.
81836         * lib/strcspn.c: Likewise.
81837         * lib/strerror.c: Likewise.
81838         * lib/strftime.c: Likewise.
81839         * lib/strftime.h: Likewise.
81840         * lib/striconveh.c: Likewise.
81841         * lib/striconveh.h: Likewise.
81842         * lib/striconveha.c: Likewise.
81843         * lib/striconveha.h: Likewise.
81844         * lib/stripslash.c: Likewise.
81845         * lib/strnlen1.c: Likewise.
81846         * lib/strnlen1.h: Likewise.
81847         * lib/strtod.c: Likewise.
81848         * lib/strtoimax.c: Likewise.
81849         * lib/strtok_r.c: Likewise.
81850         * lib/strtol.c: Likewise.
81851         * lib/strtoll.c: Likewise.
81852         * lib/strtoul.c: Likewise.
81853         * lib/strtoull.c: Likewise.
81854         * lib/sysexits.in.h: Likewise.
81855         * lib/tempname.c: Likewise.
81856         * lib/tempname.h: Likewise.
81857         * lib/timespec.h: Likewise.
81858         * lib/tls.c: Likewise.
81859         * lib/tls.h: Likewise.
81860         * lib/tmpdir.c: Likewise.
81861         * lib/tmpdir.h: Likewise.
81862         * lib/tmpfile-safer.c: Likewise.
81863         * lib/tmpfile.c: Likewise.
81864         * lib/trigl.c: Likewise.
81865         * lib/trigl.h: Likewise.
81866         * lib/trim.c: Likewise.
81867         * lib/trim.h: Likewise.
81868         * lib/trunc.c: Likewise.
81869         * lib/truncf.c: Likewise.
81870         * lib/truncl.c: Likewise.
81871         * lib/tsearch.c: Likewise.
81872         * lib/unicodeio.c: Likewise.
81873         * lib/unicodeio.h: Likewise.
81874         * lib/unistd--.h: Likewise.
81875         * lib/unistd-safer.h: Likewise.
81876         * lib/unistdio/ulc-fprintf.c: Likewise.
81877         * lib/unistdio/ulc-vfprintf.c: Likewise.
81878         * lib/unlinkdir.c: Likewise.
81879         * lib/unlinkdir.h: Likewise.
81880         * lib/unlocked-io.h: Likewise.
81881         * lib/unsetenv.c: Likewise.
81882         * lib/userspec.c: Likewise.
81883         * lib/utime.c: Likewise.
81884         * lib/utimecmp.c: Likewise.
81885         * lib/utimecmp.h: Likewise.
81886         * lib/utimens.c: Likewise.
81887         * lib/verify.h: Likewise.
81888         * lib/verror.c: Likewise.
81889         * lib/verror.h: Likewise.
81890         * lib/version-etc-fsf.c: Likewise.
81891         * lib/version-etc.c: Likewise.
81892         * lib/version-etc.h: Likewise.
81893         * lib/vfprintf.c: Likewise.
81894         * lib/vprintf.c: Likewise.
81895         * lib/vsprintf.c: Likewise.
81896         * lib/w32spawn.h: Likewise.
81897         * lib/wait-process.c: Likewise.
81898         * lib/wait-process.h: Likewise.
81899         * lib/wcwidth.c: Likewise.
81900         * lib/write-any-file.c: Likewise.
81901         * lib/xalloc-die.c: Likewise.
81902         * lib/xalloc.h: Likewise.
81903         * lib/xasprintf.c: Likewise.
81904         * lib/xgetcwd.c: Likewise.
81905         * lib/xgetcwd.h: Likewise.
81906         * lib/xgetdomainname.c: Likewise.
81907         * lib/xgetdomainname.h: Likewise.
81908         * lib/xgethostname.c: Likewise.
81909         * lib/xmalloc.c: Likewise.
81910         * lib/xmalloca.c: Likewise.
81911         * lib/xmalloca.h: Likewise.
81912         * lib/xmemcoll.c: Likewise.
81913         * lib/xnanosleep.c: Likewise.
81914         * lib/xreadlink.c: Likewise.
81915         * lib/xreadlink.h: Likewise.
81916         * lib/xsetenv.c: Likewise.
81917         * lib/xsetenv.h: Likewise.
81918         * lib/xstriconv.c: Likewise.
81919         * lib/xstriconv.h: Likewise.
81920         * lib/xstrndup.c: Likewise.
81921         * lib/xstrndup.h: Likewise.
81922         * lib/xstrtod.c: Likewise.
81923         * lib/xstrtod.h: Likewise.
81924         * lib/xstrtol-error.c: Likewise.
81925         * lib/xstrtol.c: Likewise.
81926         * lib/xstrtol.h: Likewise.
81927         * lib/xtime.h: Likewise.
81928         * lib/xvasprintf.c: Likewise.
81929         * lib/xvasprintf.h: Likewise.
81930         * lib/yesno.c: Likewise.
81931         * lib/yesno.h: Likewise.
81932         * posix-modules: Likewise.
81933         * tests/test-alloca-opt.c: Likewise.
81934         * tests/test-arcfour.c: Likewise.
81935         * tests/test-arctwo.c: Likewise.
81936         * tests/test-argmatch.c: Likewise.
81937         * tests/test-argp-2.sh: Likewise.
81938         * tests/test-argp.c: Likewise.
81939         * tests/test-arpa_inet.c: Likewise.
81940         * tests/test-array_list.c: Likewise.
81941         * tests/test-array_oset.c: Likewise.
81942         * tests/test-atexit.c: Likewise.
81943         * tests/test-avltree_list.c: Likewise.
81944         * tests/test-avltree_oset.c: Likewise.
81945         * tests/test-avltreehash_list.c: Likewise.
81946         * tests/test-base64.c: Likewise.
81947         * tests/test-binary-io.c: Likewise.
81948         * tests/test-byteswap.c: Likewise.
81949         * tests/test-c-ctype.c: Likewise.
81950         * tests/test-c-strcasecmp.c: Likewise.
81951         * tests/test-c-strcasestr.c: Likewise.
81952         * tests/test-c-strncasecmp.c: Likewise.
81953         * tests/test-c-strstr.c: Likewise.
81954         * tests/test-canonicalize-lgpl.c: Likewise.
81955         * tests/test-canonicalize.c: Likewise.
81956         * tests/test-carray_list.c: Likewise.
81957         * tests/test-ceilf.c: Likewise.
81958         * tests/test-ceill.c: Likewise.
81959         * tests/test-count-one-bits.c: Likewise.
81960         * tests/test-crc.c: Likewise.
81961         * tests/test-dirname.c: Likewise.
81962         * tests/test-fbufmode.c: Likewise.
81963         * tests/test-fcntl.c: Likewise.
81964         * tests/test-fflush.c: Likewise.
81965         * tests/test-floorf.c: Likewise.
81966         * tests/test-floorl.c: Likewise.
81967         * tests/test-fopen.c: Likewise.
81968         * tests/test-fprintf-posix.c: Likewise.
81969         * tests/test-fprintf-posix.h: Likewise.
81970         * tests/test-fpurge.c: Likewise.
81971         * tests/test-freadable.c: Likewise.
81972         * tests/test-freadahead.c: Likewise.
81973         * tests/test-freading.c: Likewise.
81974         * tests/test-freopen.c: Likewise.
81975         * tests/test-frexp.c: Likewise.
81976         * tests/test-frexpl.c: Likewise.
81977         * tests/test-fseek.c: Likewise.
81978         * tests/test-fseeko.c: Likewise.
81979         * tests/test-fseterr.c: Likewise.
81980         * tests/test-fstrcmp.c: Likewise.
81981         * tests/test-ftell.c: Likewise.
81982         * tests/test-ftello.c: Likewise.
81983         * tests/test-fwritable.c: Likewise.
81984         * tests/test-fwriting.c: Likewise.
81985         * tests/test-getaddrinfo.c: Likewise.
81986         * tests/test-getpass.c: Likewise.
81987         * tests/test-gettimeofday.c: Likewise.
81988         * tests/test-hmac-md5.c: Likewise.
81989         * tests/test-hmac-sha1.c: Likewise.
81990         * tests/test-iconv.c: Likewise.
81991         * tests/test-iconvme.c: Likewise.
81992         * tests/test-inttypes.c: Likewise.
81993         * tests/test-isnan.c: Likewise.
81994         * tests/test-isnanf.c: Likewise.
81995         * tests/test-isnanl-nolibm.c: Likewise.
81996         * tests/test-isnanl.c: Likewise.
81997         * tests/test-isnanl.h: Likewise.
81998         * tests/test-ldexpl.c: Likewise.
81999         * tests/test-linked_list.c: Likewise.
82000         * tests/test-linkedhash_list.c: Likewise.
82001         * tests/test-locale.c: Likewise.
82002         * tests/test-localename.c: Likewise.
82003         * tests/test-lock.c: Likewise.
82004         * tests/test-lseek.c: Likewise.
82005         * tests/test-malloca.c: Likewise.
82006         * tests/test-math.c: Likewise.
82007         * tests/test-mbscasecmp.c: Likewise.
82008         * tests/test-mbscasestr1.c: Likewise.
82009         * tests/test-mbscasestr2.c: Likewise.
82010         * tests/test-mbscasestr3.c: Likewise.
82011         * tests/test-mbscasestr4.c: Likewise.
82012         * tests/test-mbschr.c: Likewise.
82013         * tests/test-mbscspn.c: Likewise.
82014         * tests/test-mbsncasecmp.c: Likewise.
82015         * tests/test-mbspbrk.c: Likewise.
82016         * tests/test-mbspcasecmp.c: Likewise.
82017         * tests/test-mbsrchr.c: Likewise.
82018         * tests/test-mbsspn.c: Likewise.
82019         * tests/test-mbsstr1.c: Likewise.
82020         * tests/test-mbsstr2.c: Likewise.
82021         * tests/test-mbsstr3.c: Likewise.
82022         * tests/test-md5.c: Likewise.
82023         * tests/test-memmem.c: Likewise.
82024         * tests/test-netinet_in.c: Likewise.
82025         * tests/test-open.c: Likewise.
82026         * tests/test-printf-frexp.c: Likewise.
82027         * tests/test-printf-frexpl.c: Likewise.
82028         * tests/test-printf-posix.c: Likewise.
82029         * tests/test-printf-posix.h: Likewise.
82030         * tests/test-rbtree_list.c: Likewise.
82031         * tests/test-rbtree_oset.c: Likewise.
82032         * tests/test-rbtreehash_list.c: Likewise.
82033         * tests/test-read-file.c: Likewise.
82034         * tests/test-rijndael.c: Likewise.
82035         * tests/test-search.c: Likewise.
82036         * tests/test-signbit.c: Likewise.
82037         * tests/test-sleep.c: Likewise.
82038         * tests/test-snprintf-posix.c: Likewise.
82039         * tests/test-snprintf-posix.h: Likewise.
82040         * tests/test-snprintf.c: Likewise.
82041         * tests/test-sprintf-posix.c: Likewise.
82042         * tests/test-sprintf-posix.h: Likewise.
82043         * tests/test-stat-time.c: Likewise.
82044         * tests/test-stdbool.c: Likewise.
82045         * tests/test-stdint.c: Likewise.
82046         * tests/test-stdio.c: Likewise.
82047         * tests/test-stdlib.c: Likewise.
82048         * tests/test-stpncpy.c: Likewise.
82049         * tests/test-strcasestr.c: Likewise.
82050         * tests/test-striconv.c: Likewise.
82051         * tests/test-striconveh.c: Likewise.
82052         * tests/test-striconveha.c: Likewise.
82053         * tests/test-string.c: Likewise.
82054         * tests/test-sys_select.c: Likewise.
82055         * tests/test-sys_socket.c: Likewise.
82056         * tests/test-sys_stat.c: Likewise.
82057         * tests/test-sys_time.c: Likewise.
82058         * tests/test-sysexits.c: Likewise.
82059         * tests/test-time.c: Likewise.
82060         * tests/test-tls.c: Likewise.
82061         * tests/test-trunc.c: Likewise.
82062         * tests/test-truncf.c: Likewise.
82063         * tests/test-truncl.c: Likewise.
82064         * tests/test-unistd.c: Likewise.
82065         * tests/test-vasnprintf-posix.c: Likewise.
82066         * tests/test-vasnprintf-posix2.c: Likewise.
82067         * tests/test-vasnprintf.c: Likewise.
82068         * tests/test-vasprintf-posix.c: Likewise.
82069         * tests/test-vasprintf.c: Likewise.
82070         * tests/test-verify.c: Likewise.
82071         * tests/test-vfprintf-posix.c: Likewise.
82072         * tests/test-vprintf-posix.c: Likewise.
82073         * tests/test-vsnprintf-posix.c: Likewise.
82074         * tests/test-vsnprintf.c: Likewise.
82075         * tests/test-vsprintf-posix.c: Likewise.
82076         * tests/test-wchar.c: Likewise.
82077         * tests/test-wctype.c: Likewise.
82078         * tests/test-wcwidth.c: Likewise.
82079         * tests/test-xstrtol.c: Likewise.
82080         * tests/test-xvasprintf.c: Likewise.
82081         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
82082         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
82083         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
82084         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
82085         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
82086         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
82087         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
82088         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
82089         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
82090         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
82091         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
82092         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
82093         * tests/uniname/test-uninames.c: Likewise.
82094         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
82095         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
82096         * tests/unistdio/test-u16-printf1.h: Likewise.
82097         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
82098         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
82099         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
82100         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
82101         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
82102         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
82103         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
82104         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
82105         * tests/unistdio/test-u32-printf1.h: Likewise.
82106         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
82107         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
82108         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
82109         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
82110         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
82111         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
82112         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
82113         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
82114         * tests/unistdio/test-u8-printf1.h: Likewise.
82115         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
82116         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
82117         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
82118         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
82119         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
82120         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
82121         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
82122         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
82123         * tests/unistdio/test-ulc-printf1.h: Likewise.
82124         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
82125         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
82126         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
82127         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
82128         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
82129         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
82130         * tests/uniwidth/test-u16-strwidth.c: Likewise.
82131         * tests/uniwidth/test-u16-width.c: Likewise.
82132         * tests/uniwidth/test-u32-strwidth.c: Likewise.
82133         * tests/uniwidth/test-u32-width.c: Likewise.
82134         * tests/uniwidth/test-u8-strwidth.c: Likewise.
82135         * tests/uniwidth/test-u8-width.c: Likewise.
82136         * tests/uniwidth/test-uc_width.c: Likewise.
82137         * config/srclist-update: Likewise.
82138         (fixlicense): Update to GPLv3+.
82140         Change copyright notice from LGPLv2.1+ to LGPLv3+.
82141         * tests/test-tsearch.c: Change copyright notice.
82143         Change copyright notice from LGPLv2.0+ to LGPLv3+.
82144         * lib/c-strcaseeq.h: Change copyright notice.
82145         * lib/streq.h: Likewise.
82146         * lib/uniconv.h: Likewise.
82147         * lib/uniconv/u-conv-from-enc.h: Likewise.
82148         * lib/uniconv/u-conv-to-enc.h: Likewise.
82149         * lib/uniconv/u-strconv-from-enc.h: Likewise.
82150         * lib/uniconv/u-strconv-to-enc.h: Likewise.
82151         * lib/uniconv/u16-conv-from-enc.c: Likewise.
82152         * lib/uniconv/u16-conv-to-enc.c: Likewise.
82153         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
82154         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
82155         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
82156         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
82157         * lib/uniconv/u32-conv-from-enc.c: Likewise.
82158         * lib/uniconv/u32-conv-to-enc.c: Likewise.
82159         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
82160         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
82161         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
82162         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
82163         * lib/uniconv/u8-conv-from-enc.c: Likewise.
82164         * lib/uniconv/u8-conv-to-enc.c: Likewise.
82165         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
82166         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
82167         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
82168         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
82169         * lib/uniname.h: Likewise.
82170         * lib/uniname/uniname.c: Likewise.
82171         * lib/unistdio.h: Likewise.
82172         * lib/unistdio/u-asnprintf.h: Likewise.
82173         * lib/unistdio/u-asprintf.h: Likewise.
82174         * lib/unistdio/u-printf-args.c: Likewise.
82175         * lib/unistdio/u-printf-args.h: Likewise.
82176         * lib/unistdio/u-printf-parse.h: Likewise.
82177         * lib/unistdio/u-snprintf.h: Likewise.
82178         * lib/unistdio/u-sprintf.h: Likewise.
82179         * lib/unistdio/u-vasprintf.h: Likewise.
82180         * lib/unistdio/u-vsnprintf.h: Likewise.
82181         * lib/unistdio/u-vsprintf.h: Likewise.
82182         * lib/unistdio/u16-asnprintf.c: Likewise.
82183         * lib/unistdio/u16-asprintf.c: Likewise.
82184         * lib/unistdio/u16-printf-parse.c: Likewise.
82185         * lib/unistdio/u16-snprintf.c: Likewise.
82186         * lib/unistdio/u16-sprintf.c: Likewise.
82187         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
82188         * lib/unistdio/u16-u16-asprintf.c: Likewise.
82189         * lib/unistdio/u16-u16-snprintf.c: Likewise.
82190         * lib/unistdio/u16-u16-sprintf.c: Likewise.
82191         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
82192         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
82193         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
82194         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
82195         * lib/unistdio/u16-vasnprintf.c: Likewise.
82196         * lib/unistdio/u16-vasprintf.c: Likewise.
82197         * lib/unistdio/u16-vsnprintf.c: Likewise.
82198         * lib/unistdio/u16-vsprintf.c: Likewise.
82199         * lib/unistdio/u32-asnprintf.c: Likewise.
82200         * lib/unistdio/u32-asprintf.c: Likewise.
82201         * lib/unistdio/u32-printf-parse.c: Likewise.
82202         * lib/unistdio/u32-snprintf.c: Likewise.
82203         * lib/unistdio/u32-sprintf.c: Likewise.
82204         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
82205         * lib/unistdio/u32-u32-asprintf.c: Likewise.
82206         * lib/unistdio/u32-u32-snprintf.c: Likewise.
82207         * lib/unistdio/u32-u32-sprintf.c: Likewise.
82208         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
82209         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
82210         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
82211         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
82212         * lib/unistdio/u32-vasnprintf.c: Likewise.
82213         * lib/unistdio/u32-vasprintf.c: Likewise.
82214         * lib/unistdio/u32-vsnprintf.c: Likewise.
82215         * lib/unistdio/u32-vsprintf.c: Likewise.
82216         * lib/unistdio/u8-asnprintf.c: Likewise.
82217         * lib/unistdio/u8-asprintf.c: Likewise.
82218         * lib/unistdio/u8-printf-parse.c: Likewise.
82219         * lib/unistdio/u8-snprintf.c: Likewise.
82220         * lib/unistdio/u8-sprintf.c: Likewise.
82221         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
82222         * lib/unistdio/u8-u8-asprintf.c: Likewise.
82223         * lib/unistdio/u8-u8-snprintf.c: Likewise.
82224         * lib/unistdio/u8-u8-sprintf.c: Likewise.
82225         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
82226         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
82227         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
82228         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
82229         * lib/unistdio/u8-vasnprintf.c: Likewise.
82230         * lib/unistdio/u8-vasprintf.c: Likewise.
82231         * lib/unistdio/u8-vsnprintf.c: Likewise.
82232         * lib/unistdio/u8-vsprintf.c: Likewise.
82233         * lib/unistdio/ulc-asnprintf.c: Likewise.
82234         * lib/unistdio/ulc-asprintf.c: Likewise.
82235         * lib/unistdio/ulc-printf-parse.c: Likewise.
82236         * lib/unistdio/ulc-snprintf.c: Likewise.
82237         * lib/unistdio/ulc-sprintf.c: Likewise.
82238         * lib/unistdio/ulc-vasnprintf.c: Likewise.
82239         * lib/unistdio/ulc-vasprintf.c: Likewise.
82240         * lib/unistdio/ulc-vsnprintf.c: Likewise.
82241         * lib/unistdio/ulc-vsprintf.c: Likewise.
82242         * lib/unistr.h: Likewise.
82243         * lib/unistr/u-cpy-alloc.h: Likewise.
82244         * lib/unistr/u-cpy.h: Likewise.
82245         * lib/unistr/u-endswith.h: Likewise.
82246         * lib/unistr/u-move.h: Likewise.
82247         * lib/unistr/u-set.h: Likewise.
82248         * lib/unistr/u-startswith.h: Likewise.
82249         * lib/unistr/u-stpcpy.h: Likewise.
82250         * lib/unistr/u-stpncpy.h: Likewise.
82251         * lib/unistr/u-strcat.h: Likewise.
82252         * lib/unistr/u-strcpy.h: Likewise.
82253         * lib/unistr/u-strcspn.h: Likewise.
82254         * lib/unistr/u-strdup.h: Likewise.
82255         * lib/unistr/u-strlen.h: Likewise.
82256         * lib/unistr/u-strncat.h: Likewise.
82257         * lib/unistr/u-strncpy.h: Likewise.
82258         * lib/unistr/u-strnlen.h: Likewise.
82259         * lib/unistr/u-strpbrk.h: Likewise.
82260         * lib/unistr/u-strspn.h: Likewise.
82261         * lib/unistr/u-strstr.h: Likewise.
82262         * lib/unistr/u-strtok.h: Likewise.
82263         * lib/unistr/u16-check.c: Likewise.
82264         * lib/unistr/u16-chr.c: Likewise.
82265         * lib/unistr/u16-cmp.c: Likewise.
82266         * lib/unistr/u16-cpy-alloc.c: Likewise.
82267         * lib/unistr/u16-cpy.c: Likewise.
82268         * lib/unistr/u16-endswith.c: Likewise.
82269         * lib/unistr/u16-mblen.c: Likewise.
82270         * lib/unistr/u16-mbsnlen.c: Likewise.
82271         * lib/unistr/u16-mbtouc-aux.c: Likewise.
82272         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
82273         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
82274         * lib/unistr/u16-mbtouc.c: Likewise.
82275         * lib/unistr/u16-mbtoucr.c: Likewise.
82276         * lib/unistr/u16-move.c: Likewise.
82277         * lib/unistr/u16-next.c: Likewise.
82278         * lib/unistr/u16-prev.c: Likewise.
82279         * lib/unistr/u16-set.c: Likewise.
82280         * lib/unistr/u16-startswith.c: Likewise.
82281         * lib/unistr/u16-stpcpy.c: Likewise.
82282         * lib/unistr/u16-stpncpy.c: Likewise.
82283         * lib/unistr/u16-strcat.c: Likewise.
82284         * lib/unistr/u16-strchr.c: Likewise.
82285         * lib/unistr/u16-strcmp.c: Likewise.
82286         * lib/unistr/u16-strcpy.c: Likewise.
82287         * lib/unistr/u16-strcspn.c: Likewise.
82288         * lib/unistr/u16-strdup.c: Likewise.
82289         * lib/unistr/u16-strlen.c: Likewise.
82290         * lib/unistr/u16-strmblen.c: Likewise.
82291         * lib/unistr/u16-strmbtouc.c: Likewise.
82292         * lib/unistr/u16-strncat.c: Likewise.
82293         * lib/unistr/u16-strncmp.c: Likewise.
82294         * lib/unistr/u16-strncpy.c: Likewise.
82295         * lib/unistr/u16-strnlen.c: Likewise.
82296         * lib/unistr/u16-strpbrk.c: Likewise.
82297         * lib/unistr/u16-strrchr.c: Likewise.
82298         * lib/unistr/u16-strspn.c: Likewise.
82299         * lib/unistr/u16-strstr.c: Likewise.
82300         * lib/unistr/u16-strtok.c: Likewise.
82301         * lib/unistr/u16-to-u32.c: Likewise.
82302         * lib/unistr/u16-to-u8.c: Likewise.
82303         * lib/unistr/u16-uctomb-aux.c: Likewise.
82304         * lib/unistr/u16-uctomb.c: Likewise.
82305         * lib/unistr/u32-check.c: Likewise.
82306         * lib/unistr/u32-chr.c: Likewise.
82307         * lib/unistr/u32-cmp.c: Likewise.
82308         * lib/unistr/u32-cpy-alloc.c: Likewise.
82309         * lib/unistr/u32-cpy.c: Likewise.
82310         * lib/unistr/u32-endswith.c: Likewise.
82311         * lib/unistr/u32-mblen.c: Likewise.
82312         * lib/unistr/u32-mbsnlen.c: Likewise.
82313         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
82314         * lib/unistr/u32-mbtouc.c: Likewise.
82315         * lib/unistr/u32-mbtoucr.c: Likewise.
82316         * lib/unistr/u32-move.c: Likewise.
82317         * lib/unistr/u32-next.c: Likewise.
82318         * lib/unistr/u32-prev.c: Likewise.
82319         * lib/unistr/u32-set.c: Likewise.
82320         * lib/unistr/u32-startswith.c: Likewise.
82321         * lib/unistr/u32-stpcpy.c: Likewise.
82322         * lib/unistr/u32-stpncpy.c: Likewise.
82323         * lib/unistr/u32-strcat.c: Likewise.
82324         * lib/unistr/u32-strchr.c: Likewise.
82325         * lib/unistr/u32-strcmp.c: Likewise.
82326         * lib/unistr/u32-strcpy.c: Likewise.
82327         * lib/unistr/u32-strcspn.c: Likewise.
82328         * lib/unistr/u32-strdup.c: Likewise.
82329         * lib/unistr/u32-strlen.c: Likewise.
82330         * lib/unistr/u32-strmblen.c: Likewise.
82331         * lib/unistr/u32-strmbtouc.c: Likewise.
82332         * lib/unistr/u32-strncat.c: Likewise.
82333         * lib/unistr/u32-strncmp.c: Likewise.
82334         * lib/unistr/u32-strncpy.c: Likewise.
82335         * lib/unistr/u32-strnlen.c: Likewise.
82336         * lib/unistr/u32-strpbrk.c: Likewise.
82337         * lib/unistr/u32-strrchr.c: Likewise.
82338         * lib/unistr/u32-strspn.c: Likewise.
82339         * lib/unistr/u32-strstr.c: Likewise.
82340         * lib/unistr/u32-strtok.c: Likewise.
82341         * lib/unistr/u32-to-u16.c: Likewise.
82342         * lib/unistr/u32-to-u8.c: Likewise.
82343         * lib/unistr/u32-uctomb.c: Likewise.
82344         * lib/unistr/u8-check.c: Likewise.
82345         * lib/unistr/u8-chr.c: Likewise.
82346         * lib/unistr/u8-cmp.c: Likewise.
82347         * lib/unistr/u8-cpy-alloc.c: Likewise.
82348         * lib/unistr/u8-cpy.c: Likewise.
82349         * lib/unistr/u8-endswith.c: Likewise.
82350         * lib/unistr/u8-mblen.c: Likewise.
82351         * lib/unistr/u8-mbsnlen.c: Likewise.
82352         * lib/unistr/u8-mbtouc-aux.c: Likewise.
82353         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
82354         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
82355         * lib/unistr/u8-mbtouc.c: Likewise.
82356         * lib/unistr/u8-mbtoucr.c: Likewise.
82357         * lib/unistr/u8-move.c: Likewise.
82358         * lib/unistr/u8-next.c: Likewise.
82359         * lib/unistr/u8-prev.c: Likewise.
82360         * lib/unistr/u8-set.c: Likewise.
82361         * lib/unistr/u8-startswith.c: Likewise.
82362         * lib/unistr/u8-stpcpy.c: Likewise.
82363         * lib/unistr/u8-stpncpy.c: Likewise.
82364         * lib/unistr/u8-strcat.c: Likewise.
82365         * lib/unistr/u8-strchr.c: Likewise.
82366         * lib/unistr/u8-strcmp.c: Likewise.
82367         * lib/unistr/u8-strcpy.c: Likewise.
82368         * lib/unistr/u8-strcspn.c: Likewise.
82369         * lib/unistr/u8-strdup.c: Likewise.
82370         * lib/unistr/u8-strlen.c: Likewise.
82371         * lib/unistr/u8-strmblen.c: Likewise.
82372         * lib/unistr/u8-strmbtouc.c: Likewise.
82373         * lib/unistr/u8-strncat.c: Likewise.
82374         * lib/unistr/u8-strncmp.c: Likewise.
82375         * lib/unistr/u8-strncpy.c: Likewise.
82376         * lib/unistr/u8-strnlen.c: Likewise.
82377         * lib/unistr/u8-strpbrk.c: Likewise.
82378         * lib/unistr/u8-strrchr.c: Likewise.
82379         * lib/unistr/u8-strspn.c: Likewise.
82380         * lib/unistr/u8-strstr.c: Likewise.
82381         * lib/unistr/u8-strtok.c: Likewise.
82382         * lib/unistr/u8-to-u16.c: Likewise.
82383         * lib/unistr/u8-to-u32.c: Likewise.
82384         * lib/unistr/u8-uctomb-aux.c: Likewise.
82385         * lib/unistr/u8-uctomb.c: Likewise.
82386         * lib/unitypes.h: Likewise.
82387         * lib/uniwidth.h: Likewise.
82388         * lib/uniwidth/cjk.h: Likewise.
82389         * lib/uniwidth/u16-strwidth.c: Likewise.
82390         * lib/uniwidth/u16-width.c: Likewise.
82391         * lib/uniwidth/u32-strwidth.c: Likewise.
82392         * lib/uniwidth/u32-width.c: Likewise.
82393         * lib/uniwidth/u8-strwidth.c: Likewise.
82394         * lib/uniwidth/u8-width.c: Likewise.
82395         * lib/uniwidth/width.c: Likewise.
82397 2007-10-07  Bruno Haible  <bruno@clisp.org>
82399         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
82400         The file is still under LGPL (see modules/inttypes).
82402 2007-10-06  Bruno Haible  <bruno@clisp.org>
82404         * modules/trunc (Dependencies): Add 'extensions'.
82405         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
82406         Reported by Ben Pfaff <blp@gnu.org>.
82408 2007-10-06  Bruno Haible  <bruno@clisp.org>
82410         * modules/freopen-tests: New file.
82411         * tests/test-freopen.c: New file.
82413         * modules/fopen-tests: New file.
82414         * tests/test-fopen.c: New file.
82416         * modules/fopen: New file.
82417         * lib/fopen.c: New file.
82418         * m4/fopen.m4: New file.
82419         * modules/freopen: New file.
82420         * lib/freopen.c: New file.
82421         * m4/freopen.m4: New file.
82422         * lib/stdio.in.h (fopen, freopen): New declarations.
82423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
82424         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
82425         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
82426         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
82427         * doc/functions/fopen.texi: Mention the 'fopen' module.
82428         * doc/functions/freopen.texi: Mention the 'freopen' module.
82430 2007-10-06  Bruno Haible  <bruno@clisp.org>
82432         * modules/open-tests: New file.
82433         * tests/test-open.c: New file.
82435         * modules/open: New file.
82436         * lib/open.c: New file.
82437         * m4/open.m4: New file.
82438         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
82439         lib/open.c does.
82440         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
82441         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
82442         macros.
82443         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
82444         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
82445         REPLACE_OPEN.
82446         * doc/functions/open.texi: Mention the 'open' module.
82448 2007-10-04  Bruno Haible  <bruno@clisp.org>
82450         * modules/ceill-tests: New file.
82451         * tests/test-ceill.c: New file.
82453         * modules/ceill: New file.
82454         * lib/ceill.c: Replace entire file.
82455         * m4/ceill.m4: New file.
82456         * lib/math.in.h (ceill): Replace declaration.
82457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
82458         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
82459         * doc/functions/ceill.texi: Mention the 'ceill' module.
82460         * modules/mathl (Files): Remove lib/ceill.c.
82461         (Depends-on): Add ceill.
82463 2007-10-04  Bruno Haible  <bruno@clisp.org>
82465         * modules/ceilf-tests: New file.
82466         * tests/test-ceilf.c: New file.
82468         * modules/ceilf: New file.
82469         * lib/ceil.c: New file.
82470         * lib/ceilf.c: New file.
82471         * m4/ceilf.m4: New file.
82472         * lib/math.in.h (ceilf): New declaration.
82473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
82474         HAVE_DECL_CEILF.
82475         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
82476         HAVE_DECL_CEILF.
82477         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
82479 2007-10-04  Bruno Haible  <bruno@clisp.org>
82481         * modules/floorl-tests: New file.
82482         * tests/test-floorl.c: New file.
82484         * modules/floorl: New file.
82485         * lib/floorl.c: Replace entire file.
82486         * m4/floorl.m4: New file.
82487         * lib/math.in.h (floorl): Replace declaration.
82488         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
82489         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
82490         * doc/functions/floorl.texi: Mention the 'floorl' module.
82491         * modules/mathl (Files): Remove lib/floorl.c.
82492         (Depends-on): Add floorl.
82494 2007-10-04  Bruno Haible  <bruno@clisp.org>
82496         * modules/floorf-tests: New file.
82497         * tests/test-floorf.c: New file.
82499         * modules/floorf: New file.
82500         * lib/floor.c: New file.
82501         * lib/floorf.c: New file.
82502         * m4/floorf.m4: New file.
82503         * lib/math.in.h (floorf): New declaration.
82504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
82505         HAVE_DECL_FLOORF.
82506         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
82507         HAVE_DECL_FLOORF.
82508         * doc/functions/floorf.texi: Mention the 'floorf' module.
82510 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
82511             Bruno Haible  <bruno@clisp.org>
82513         Advertise for the Git server instead of the CVS server.
82514         * doc/gnulib-intro.texi (Steady Development): Mention the Git
82515         repository instead of the CVS one.
82516         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
82517         about all VCS systems generically.
82518         * doc/gnulib.texi (Introduction): Capitalize `Git'.
82520 2007-10-04  Bruno Haible  <bruno@clisp.org>
82522         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
82523         means.
82524         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
82526 2007-10-04  Bruno Haible  <bruno@clisp.org>
82528         * modules/truncl-tests: New file.
82529         * tests/test-truncl.c: New file.
82531         * modules/truncl: New file.
82532         * lib/truncl.c: New file.
82533         * m4/truncl.m4: New file.
82534         * lib/math.in.h (truncl): New declaration.
82535         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
82536         HAVE_DECL_TRUNCL.
82537         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
82538         HAVE_DECL_TRUNCL.
82539         * doc/functions/truncl.texi: Mention the 'truncl' module.
82541 2007-10-04  Bruno Haible  <bruno@clisp.org>
82543         * modules/truncf-tests: New file.
82544         * tests/test-truncf.c: New file.
82546         * modules/truncf: New file.
82547         * lib/trunc.c: Make paramerizable through USE_* macros.
82548         * lib/truncf.c: New file.
82549         * m4/truncf.m4: New file.
82550         * lib/math.in.h (truncf): New declaration.
82551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
82552         HAVE_DECL_TRUNCF.
82553         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
82554         HAVE_DECL_TRUNCF.
82555         * doc/functions/truncf.texi: Mention the 'truncf' module.
82557 2007-10-03  Bruno Haible  <bruno@clisp.org>
82559         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
82560         augmentation also for tests modules.
82561         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
82562         * modules/atexit-tests (Makefile.am): Likewise.
82563         * modules/binary-io-tests (Makefile.am): Likewise.
82564         * modules/c-strcase-tests (Makefile.am): Likewise.
82565         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
82566         * modules/canonicalize-tests (Makefile.am): Likewise.
82567         * modules/closein-tests (Makefile.am): Likewise.
82568         * modules/fprintf-posix-tests (Makefile.am): Likewise.
82569         * modules/freadahead-tests (Makefile.am): Likewise.
82570         * modules/fseek-tests (Makefile.am): Likewise.
82571         * modules/fseeko-tests (Makefile.am): Likewise.
82572         * modules/ftell-tests (Makefile.am): Likewise.
82573         * modules/ftello-tests (Makefile.am): Likewise.
82574         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
82575         * modules/isnanl-tests (Makefile.am): Likewise.
82576         * modules/lseek-tests (Makefile.am): Likewise.
82577         * modules/mbscasecmp-tests (Makefile.am): Likewise.
82578         * modules/mbscasestr-tests (Makefile.am): Likewise.
82579         * modules/mbschr-tests (Makefile.am): Likewise.
82580         * modules/mbscspn-tests (Makefile.am): Likewise.
82581         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
82582         * modules/mbspbrk-tests (Makefile.am): Likewise.
82583         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
82584         * modules/mbsrchr-tests (Makefile.am): Likewise.
82585         * modules/mbsspn-tests (Makefile.am): Likewise.
82586         * modules/mbsstr-tests (Makefile.am): Likewise.
82587         * modules/printf-posix-tests (Makefile.am): Likewise.
82588         * modules/snprintf-posix-tests (Makefile.am): Likewise.
82589         * modules/sprintf-posix-tests (Makefile.am): Likewise.
82590         * modules/tsearch-tests (Makefile.am): Likewise.
82591         * modules/uniname/uniname-tests (Makefile.am): Likewise.
82592         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
82593         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
82594         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
82595         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
82596         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
82597         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
82598         * modules/vprintf-posix-tests (Makefile.am): Likewise.
82599         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
82600         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
82601         * modules/xstrtoimax-tests (Makefile.am): Likewise.
82602         * modules/xstrtol-tests (Makefile.am): Likewise.
82603         * modules/xstrtoumax-tests (Makefile.am): Likewise.
82604         * modules/yesno-tests (Makefile.am): Likewise.
82606 2007-10-03  Bruno Haible  <bruno@clisp.org>
82608         * modules/trunc-tests: New file.
82609         * tests/test-trunc.c: New file.
82611         * modules/trunc: New file.
82612         * lib/trunc.c: New file.
82613         * m4/trunc.m4: New file.
82614         * lib/math.in.h (trunc): New declaration.
82615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
82616         HAVE_DECL_TRUNC.
82617         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
82618         HAVE_DECL_TRUNC.
82619         * doc/functions/trunc.texi: Mention the 'trunc' module.
82621 2007-10-03  Bruno Haible  <bruno@clisp.org>
82623         * tests/test-fpending.c: New file, mostly copied
82624         from coreutils/lib/t-fpending.c.
82625         * modules/fpending-tests: New file.
82627 2007-10-03  Bruno Haible  <bruno@clisp.org>
82629         Port the stdio extensions to QNX (untested).
82630         * lib/fseterr.c (fseterr): Add support for QNX.
82631         * lib/fbufmode.c (fbufmode): Likewise.
82632         * lib/freadable.c (freadable): Likewise.
82633         * lib/fwritable.c (fwritable): Likewise.
82634         * lib/freading.c (freading): Likewise.
82635         * lib/fwriting.c (fwriting): Likewise.
82636         * lib/freadahead.c (freadahed): Likewise.
82637         * lib/fpurge.c (fpurge): Likewise.
82638         * lib/fseeko.c (rpl_fseeko): Likewise.
82640 2007-10-03  Bruno Haible  <bruno@clisp.org>
82641             Jim Meyering  <jim@meyering.net>
82642             Eric Blake  <ebb9@byu.net>
82644         * doc/relocatable.texi: Use @command instead of @program.
82646 2007-10-02  Jim Meyering  <jim@meyering.net>
82648         Perform one more "_.h" -> ".in.h" substitution.
82649         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
82650         instead of unistd_.h here, too.
82652 2007-10-01  Bruno Haible  <bruno@clisp.org>
82654         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
82655         Needed for the alloca-opt module.
82657 2007-09-30  Bruno Haible  <bruno@clisp.org>
82659         * lib/alloca.in.h: Renamed from lib/alloca_.h.
82660         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
82661         alloca_.h.
82662         * lib/argz.in.h: Renamed from lib/argz_.h.
82663         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
82664         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
82665         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
82666         byteswap_.h.
82667         * lib/dirent.in.h: Renamed from lib/dirent_.h.
82668         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
82669         dirent_.h.
82670         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
82671         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
82672         fcntl_.h.
82673         * lib/float.in.h: Renamed from lib/float_.h.
82674         * modules/float (Files, Makefile.am): Use float.in.h instead of
82675         float_.h.
82676         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
82677         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
82678         fnmatch_.h.
82679         * lib/getopt.in.h: Renamed from lib/getopt_.h.
82680         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
82681         getopt_.h.
82682         * lib/glob.in.h: Renamed from lib/glob_.h.
82683         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
82684         * lib/iconv.in.h: Renamed from lib/iconv_.h.
82685         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
82686         iconv_.h.
82687         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
82688         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
82689         inttypes_.h.
82690         * lib/locale.in.h: Renamed from lib/locale_.h.
82691         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
82692         locale_.h.
82693         * lib/math.in.h: Renamed from lib/math_.h.
82694         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
82695         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
82696         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
82697         of netinet_in_.h. Add dependency.
82698         * lib/poll.in.h: Renamed from lib/poll_.h.
82699         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
82700         * lib/search.in.h: Renamed from lib/search_.h.
82701         * modules/search (Files, Makefile.am): Use search.in.h instead of
82702         search_.h.
82703         * lib/signal.in.h: Renamed from lib/signal_.h.
82704         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
82705         _signal.h.
82706         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
82707         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
82708         stdbool_.h.
82709         * lib/stdint.in.h: Renamed from lib/stdint_.h.
82710         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
82711         stdint_.h.
82712         * lib/stdio.in.h: Renamed from lib/stdio_.h.
82713         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
82714         stdio_.h.
82715         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
82716         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
82717         stdlib_.h.
82718         * lib/string.in.h: Renamed from lib/string_.h.
82719         * modules/string (Files, Makefile.am): Use string.in.h instead of
82720         string_.h.
82721         * doc/gnulib-tool.texi (Initial import): Update.
82722         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
82723         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
82724         of sys_select_.h. Add dependency.
82725         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
82726         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
82727         of sys_socket_.h.
82728         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
82729         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
82730         sys_stat_.h.
82731         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
82732         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
82733         sys_time_.h.
82734         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
82735         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
82736         sysexits_.h.
82737         * lib/time.in.h: Renamed from lib/time_.h.
82738         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
82739         * lib/unistd.in.h: Renamed from lib/unistd_.h.
82740         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
82741         unistd_.h.
82742         * lib/wchar.in.h: Renamed from lib/wchar_.h.
82743         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
82744         wchar_.h.
82745         * lib/wctype.in.h: Renamed from lib/wctype_.h.
82746         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
82747         wctype_.h.
82748         * build-aux/bootstrap (slurp): Update.
82749         * lib/.cppi-disable: Update.
82751 2007-09-30  Bruno Haible  <bruno@clisp.org>
82753         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
82754         Needed on BeOS.
82756 2007-09-30  Bruno Haible  <bruno@clisp.org>
82758         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
82760 2007-09-29  Bruno Haible  <bruno@clisp.org>
82762         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
82764 2007-09-29  Bruno Haible  <bruno@clisp.org>
82766         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
82767         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
82768         * build-aux/install-reloc: Compile also areadlink.c.
82769         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
82771 2007-09-29  Bruno Haible  <bruno@clisp.org>
82773         * gnulib-tool (func_emit_initmacro_done): Indentation.
82775 2007-09-29  Bruno Haible  <bruno@clisp.org>
82777         * README: Add CVS checkout update instructions.
82778         Info from Bob Proulx <bob@proulx.com>.
82780 2007-09-28  Eric Blake  <ebb9@byu.net>
82782         Provide move-if-change.
82783         * build-aux/move-if-change: New file, based on best practice
82784         rather than any canonical upstream location.
82786 2007-09-28  Jim Meyering  <jim@meyering.net>
82788         Fix canonicalize loop-detection corner case.
82789         Do not attempt to stat the symlink values stored via seen_triple.
82790         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
82791         on linux-2.6.18, (but not 2.6.22).
82792         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
82793         triple_compare.  The former compares dev,ino,filename, while the latter
82794         would actually stat dirname(filename) when dev and ino were equal.
82795         * lib/hash-triple.c: Install <string.h>.
82796         (STREQ): Define.
82797         (triple_compare_ino_str): New function.
82798         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
82800 2007-09-28  Eric Blake  <ebb9@byu.net>
82802         Enforce that AC_REPLACE_FUNCS files exist.
82803         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
82804         override check for typos.
82806         Fix test-closein on Solaris 10.
82807         * tests/test-closein.c (main): Don't assume stdin can be inherited
82808         closed on all systems.
82809         * tests/test-closein.sh: Likewise.
82810         Reported by Piotr Tarnowski.
82812 2007-09-28  Jim Meyering  <jim@meyering.net>
82814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
82816 2007-09-27  Jim Meyering  <jim@meyering.net>
82818         canonicalize: Avoid a false-positive cycle failure.
82819         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
82820         Sort.  Remove cycle-check.
82821         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
82822         not cycle-check.h.
82823         (seen_triple): New function.
82824         (canonicalize_filename_mode): Use it instead of cycle-check.
82825         * tests/test-canonicalize.c: Add a test for this bug.
82826         * tests/test-canonicalize.sh: Set up and run the test.
82828         New module, file-set, from coreutils.
82829         * modules/file-set: Define it.
82830         * lib/file-set.c, lib/file-set.h: Implement.
82832         New module, hash-triple, from coreutils.
82833         * modules/hash-triple: Define it.
82834         * lib/hash-triple.c, lib/hash-triple.h: Implement.
82836 2007-09-25  Eric Blake  <ebb9@byu.net>
82838         Fix strerror on Interix.
82839         * lib/string_.h (strerror): Declare replacement.
82840         * doc/functions/strerror.texi (strerror): Document the Interix
82841         shortcoming.
82842         * modules/string (Makefile.am): Support new hooks.
82843         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
82844         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
82845         gl_FUNC_STRERROR_SEPARATE.
82846         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
82847         * lib/strerror.c (rpl_strerror): Provide replacement.
82848         * modules/strerror (Depends-on): Add string.
82849         (configure.ac): Detect use of module.
82850         * tests/test-strerror.c: New file.
82851         * modules/strerror-tests: New test module.
82852         * modules/argp (Depends-on): Add strerror.
82853         * modules/error (Depends-on): Likewise.
82854         Reported by Martin Koeppe.
82856 2007-09-24  Bruno Haible  <bruno@clisp.org>
82858         * README: Update git instructions.
82860 2007-09-24  Eric Blake  <ebb9@byu.net>
82862         Revert fpending breakage from 2007-09-08.
82863         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
82864         __fpending.c.
82866 2007-09-24  Jim Meyering  <jim@meyering.net>
82868         filenamecat.c: Add a test.
82869         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
82870         showing how the function works when DIR is the empty string.
82872 2007-09-21  Simon Josefsson  <simon@josefsson.org>
82874         * tests/test-canonicalize.sh: Turn on executable bit.
82876 2007-09-19  Eric Blake  <ebb9@byu.net>
82878         * README: Update CVS instructions.
82880 2007-09-18  Bruno Haible  <bruno@clisp.org>
82882         * modules/areadlink: New file.
82883         * lib/areadlink.h (areadlink): New declaration.
82884         * lib/areadlink.c: New file, based on lib/xreadlink.c.
82886 2007-09-17  Jim Meyering  <jim@meyering.net>
82888         * lib/savewd.c (ESTALE) [!defined]: Define.
82889         Reported to be required on Interix by Martin Koeppe.
82891 2007-09-17  Bruno Haible  <bruno@clisp.org>
82893         * gnulib-tool (func_version): Use $version.
82895 2007-09-16  Bruno Haible  <bruno@clisp.org>
82897         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
82898         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
82899         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
82900         Reported by Greg Schafer <gschafer@zip.com.au>.
82902 2007-09-15  Bruno Haible  <bruno@clisp.org>
82904         * gnulib-tool (sed): Try a little harder to make bash understand the
82905         alias.
82906         Reported by Bruce Korb <bruce.korb@gmail.com>.
82908 2007-09-13  Eric Blake  <ebb9@byu.net>
82910         * ChangeLog: Remove conflict markers.
82912 2007-09-13  Simon Josefsson  <simon@josefsson.org>
82914         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
82915         Reported by Bruno Haible <bruno@clisp.org>.
82917 2007-09-12  Bruno Haible  <bruno@clisp.org>
82919         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
82920         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
82921         is not defined.
82923 2007-09-12  Eric Blake  <ebb9@byu.net>
82925         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
82926         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
82927         Autoconf definition.
82928         * modules/euidaccess (Depends-on): Add extensions, for
82929         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
82930         * modules/fnmatch (Depends-on): Likewise.
82931         * modules/getaddrinfo (Depends-on): Likewise.
82932         * modules/getdelim (Depends-on): Likewise.
82933         * modules/getline (Depends-on): Likewise.
82934         * modules/getsubopt (Depends-on): Likewise.
82935         * modules/gettext (Depends-on): Likewise.
82936         * modules/group-member (Depends-on): Likewise.
82937         * modules/mbchar (Depends-on): Likewise.
82938         * modules/memmem (Depends-on): Likewise.
82939         * modules/mempcpy (Depends-on): Likewise.
82940         * modules/memrchr (Depends-on): Likewise.
82941         * modules/pagealign_alloc (Depends-on): Likewise.
82942         * modules/readutmp (Depends-on): Likewise.
82943         * modules/stpcpy (Depends-on): Likewise.
82944         * modules/stpncpy (Depends-on): Likewise.
82945         * modules/strchrnul (Depends-on): Likewise.
82946         * modules/strndup (Depends-on): Likewise.
82947         * modules/strsep (Depends-on): Likewise.
82948         * modules/strverscmp (Depends-on): Likewise.
82949         * modules/vasprintf (Depends-on): Likewise.
82950         * modules/wcwidth (Depends-on): Likewise.
82951         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
82952         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
82953         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
82954         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
82955         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
82956         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
82957         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
82958         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
82959         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
82960         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
82961         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
82962         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
82963         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
82964         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
82965         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
82966         * m4/readutmp.m4 (gl_READUTMP): Likewise.
82967         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
82968         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
82969         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
82970         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
82971         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
82972         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
82973         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
82974         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
82975         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
82976         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
82977         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
82978         so that lock.m4 can be used in gettext without extensions module.
82980 2007-09-11  Bruno Haible  <bruno@clisp.org>
82982         * m4/isc-posix.m4: Remove file.
82983         Suggested by Eric Blake.
82985 2007-09-11  Eric Blake  <ebb9@byu.net>
82987         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
82989 2007-09-10  Bruno Haible  <bruno@clisp.org>
82991         * posix-modules: Fix typo in error message.
82992         Reported by Matt <mkraai@beckman.com>.
82994 2007-09-09  Bruno Haible  <bruno@clisp.org>
82996         * doc/functions/getdelim.texi: Update list of platforms lacking the
82997         function.
82998         * doc/functions/getline.texi: Likewise.
83000 2007-09-09  Jim Meyering  <jim@meyering.net>
83002         * lib/hash.c (hash_initialize): Detect calloc failure.
83003         Reported by Bruno Haible.
83005 2007-09-09  Bruno Haible  <bruno@clisp.org>
83007         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
83008         malloc or realloc fails.
83010 2007-09-09  Bruno Haible  <bruno@clisp.org>
83012         * modules/getcwd (Depends-on): Add malloc-posix.
83013         * modules/glob (Depends-on): Likewise.
83014         * modules/putenv (Depends-on): Likewise.
83015         * modules/strdup (Depends-on): Likewise.
83016         * modules/getdelim (Depends-on): Add realloc-posix.
83017         * modules/read-file (Depends-on): Likewise.
83019 2007-09-09  Bruno Haible  <bruno@clisp.org>
83021         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
83022         (gl_FUNC_MALLOC_POSIX): Require it.
83023         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
83024         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
83025         * modules/realloc (Files): Add m4/malloc.m4.
83026         * modules/calloc (Files): Likewise.
83028 2007-09-09  Bruno Haible  <bruno@clisp.org>
83030         * modules/malloc-posix: New file.
83031         * modules/malloc (Depends-on): Add malloc-posix.
83032         * lib/malloc.c: Include errno.h.
83033         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
83034         and a POSIX-compatible malloc into a single function. Set ENOMEM
83035         when returning NULL.
83036         * m4/malloc.m4: New file.
83037         * doc/functions/malloc.texi: Mention the malloc-posix module.
83038         * lib/stdlib_.h (malloc): New declaration.
83039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83040         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
83041         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
83042         and HAVE_MALLOC_POSIX.
83044 2007-09-09  Bruno Haible  <bruno@clisp.org>
83046         * modules/realloc-posix: New file.
83047         * modules/realloc (Depends-on): Add realloc-posix.
83048         * lib/realloc.c: Include errno.h.
83049         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
83050         and a POSIX-compatible realloc into a single function. Set ENOMEM
83051         when returning NULL.
83052         * m4/realloc.m4: New file.
83053         * doc/functions/realloc.texi: Mention the realloc-posix module.
83054         * lib/stdlib_.h (realloc): New declaration.
83055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83056         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
83057         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
83058         and HAVE_REALLOC_POSIX.
83060 2007-09-09  Bruno Haible  <bruno@clisp.org>
83062         * modules/calloc-posix: New file.
83063         * modules/calloc (Depends-on): Add calloc-posix.
83064         * lib/calloc.c: Include errno.h.
83065         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
83066         and a POSIX-compatible calloc into a single function. Set ENOMEM
83067         when returning NULL.
83068         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
83069         * doc/functions/calloc.texi: Mention the calloc-posix module.
83070         * lib/stdlib_.h (calloc): New declaration.
83071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83072         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
83073         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
83074         and HAVE_CALLOC_POSIX.
83076 2007-09-09  Bruno Haible  <bruno@clisp.org>
83078         Allow for modules to show an arbitrary notice.
83079         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
83080         * gnulib-tool: New option --extract-notice.
83081         (func_usage): Document it.
83082         (sed_extract_prog): Update.
83083         (func_get_notice): New function.
83084         (func_modules_notice): New function.
83085         (func_import, func_create_testdir): Invoke it.
83086         Suggested by Jim Meyering.
83088 2007-09-09  Bruno Haible  <bruno@clisp.org>
83090         * gnulib-tool: New options --verbose, --quiet.
83091         (func_usage): Document them.
83092         (verbose): New variable.
83093         (func_execute_command): New function.
83094         (func_import): Don't show the module list and the file list if
83095         $verbose < 0.
83096         (func_create_testdir): Likewise. Use func_execute_command.
83097         (func_create_megatestdir): Use func_execute_command.
83099 2007-09-08  Bruno Haible  <bruno@clisp.org>
83101         * gnulib-tool (func_import): Prefer rsync over wget when available,
83102         for fetching the PO files.
83104 2007-09-08  Bruno Haible  <bruno@clisp.org>
83106         * posix-modules: New file. Portions copied from gnulib-tool.
83107         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
83109 2007-09-08  Jim Meyering  <jim@meyering.net>
83111         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
83112         * lib/fpending.h: Rename from __fpending.h.
83113         * lib/fpending.c: Rename from __fpending.c.
83114         Include "fpending.h", not "__fpending.h".
83115         * lib/__fpending.h, lib/__fpending.c: Remove files.
83116         * modules/fpending (Files): Reflect new file names.
83117         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
83119 2007-09-08  Bruno Haible  <bruno@clisp.org>
83121         * m4/inttypes-h.m4: Remove stub file.
83123 2007-09-07  Simon Josefsson  <simon@josefsson.org>
83125         * doc/headers/stdint.texi: Discuss #include_next issue.
83127 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83129         * build-aux/bootstrap: Remove obsolete comment about wget --help.
83131 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83133         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
83134         in variable name.
83136 2007-09-03  Jim Meyering  <jim@meyering.net>
83138         New module: git-version-gen.
83139         * modules/git-version-gen: New file.
83141         Import changes from coreutils for bootstrap script.
83143         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
83145         bootstrap: uses rsync to download the .po files
83146         * build-aux/bootstrap (po_download_command_format): New global.
83147         (download_po_files): Use rsync.
83148         (update_po_files): Don't remove .po files after download,
83149         so future rsync runs can take advantage of the copies.
83151         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
83153         Solve the unnecessary-.po-file-regeneration problem once and for all.
83154         * build-aux/bootstrap (download_po_files): New function, renamed from
83155         get_translations.  Now, downloads, but doesn't update LINGUAS.
83156         (update_po_files): New function.
83158         bootstrap: Ignore more.
83159         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
83160         uniwidth to e.g., lib/.gitignore.
83161         (slurp): Handle the sys_stat_.h -> sys mapping, too.
83163         * build-aux/bootstrap: New setting: vc_ignore.
83164         (insert_sorted_if_absent): Create $file if absent.
83165         Adapt to new, possibly empty, list: $vc_ignore.
83167         bootstrap: generate more ignorable names
83168         * build-aux/bootstrap (slurp): When generating ignorable names,
83169         also map .sin to .sed, .gperf to .c, and .y to .c.
83171 2007-09-03  Jim Meyering  <jim@meyering.net>
83173         * build-aux/git-version-gen: New file, from coreutils.  For details, see
83174         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
83176 2007-09-02  Bruno Haible  <bruno@clisp.org>
83178         Fix mis-recognition of 'mcs' on QNX 6.
83179         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
83180         output contains the string "Mono".
83181         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
83182         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
83184 2007-09-01  Bruno Haible  <bruno@clisp.org>
83186         Fix collision between uniwidth/* and linebreak modules.
83187         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
83188         u32_width): Remove declarations.
83189         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
83190         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
83191         streq3, streq2, streq1, streq0): Remove functions.
83192         (STREQ): Remove macro.
83193         (is_cjk_encoding): Remove function.
83194         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
83195         (uc_width, u8_width, u16_width, u32_width): Remove functions.
83196         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
83197         * NEWS: Document the change.
83199 2007-09-01  Bruno Haible  <bruno@clisp.org>
83201         * lib/streq.h: Add double-inclusion guard.
83203 2007-09-01  Karl Berry  <karl@gnu.org>
83205         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
83207 2007-08-28  Jim Meyering  <jim@meyering.net>
83209         Rename mreadlink_with_size to areadlink_with_size.
83210         * NEWS: Document the change.
83211         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
83212         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
83213         * lib/mreadlink.h: Rename this to...
83214         * lib/areadlink.h: ...this.
83215         * modules/mreadlink-with-size: Rename this to...
83216         * modules/areadlink-with-size: ...this.
83217         * lib/canonicalize.c: Reflect the renaming.
83218         * modules/canonicalize: Likewise.
83220 2007-08-26  Bruno Haible  <bruno@clisp.org>
83222         * gnulib-tool (func_import): When deciding which files to remove,
83223         consider also dangling symbolic links.
83224         Reported by Eric Blake.
83226 2007-08-26  Bruno Haible  <bruno@clisp.org>
83228         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
83230 2007-08-23  Simon Josefsson  <simon@josefsson.org>
83232         * lib/readline.c: Don't include getline.h, the prototype is now
83233         found in stdio.h.
83235 2007-08-23  Jim Meyering  <jim@meyering.net>
83237         Getdelim touchup.
83238         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
83239         around the funlockfile call, since funlockfile never sets errno.
83240         Don't set errno upon failed realloc.
83242 2007-08-22  Eric Blake  <ebb9@byu.net>
83244         Getline touchups.
83245         * lib/getdelim.c (getdelim): Revert regression that required *n to
83246         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
83247         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
83248         getdelim, rather than whether implementation is missing.
83249         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
83250         * lib/stdio_.h (getline): Also declare if replacement is
83251         required.
83252         * doc/functions/getdelim.texi: New file.
83253         * doc/functions/getline.texi: Likewise.
83254         * doc/gnulib.texi (Function Substitutes): Add new files.
83255         Reported by Bruno Haible.
83257 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
83259         * users.txt: Add Guile.
83261 2007-08-22  Eric Blake  <ebb9@byu.net>
83263         * tests/test-getdelim.c (main): Use remove, not unlink.
83264         * tests/test-getline.c (main): Likewise.
83266         Move getline and getdelim into stdio.h, per POSIX 200x.
83267         * modules/getline (Files): Remove getline.h.
83268         (Depends-on): Add stdio.
83269         (configure.ac): Add module indicator.
83270         * modules/getdelim (Files): Remove getdelim.h.
83271         (Depends-on): Add stdio.
83272         (configure.ac): Add module indicator.
83273         * modules/stdio (Makefile.am): Work with new indicators.
83274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
83275         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
83276         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
83277         * lib/getdelim.h: Delete.
83278         * lib/getline.h: Delete.
83279         * lib/stdio_.h (getdelim, getline): Declare.
83280         * modules/getdelim-tests: New module.
83281         * modules/getline-tests: Likewise.
83282         * tests/test-getdelim.c: New file.
83283         * tests/test-getline.c: Likewise.
83284         * NEWS: Document the change.
83285         * lib/getline.c: Update choice of header.
83286         * lib/csharpcomp.c: Likewise.
83287         * lib/getpass.c: Likewise.
83288         * lib/javacomp.c: Likewise.
83289         * lib/javaversion.c: Likewise.
83290         * lib/yesno.c: Likewise.
83291         * lib/getdelim.c: Likewise.
83292         (getdelim): Set errno on failure, and avoid memory leak.
83294 2007-08-19  Bruno Haible  <bruno@clisp.org>
83296         * modules/closein (Depends-on): Add freadahead.
83297         * lib/closein.c: Include freadahead.h.
83298         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
83299         is zero.
83301 2007-08-19  Bruno Haible  <bruno@clisp.org>
83303         * modules/freadahead-tests: New file.
83304         * tests/test-freadahead.sh: New file.
83305         * tests/test-freadahead.c: New file.
83307         * modules/freadahead: New file.
83308         * lib/freadahead.h: New file.
83309         * lib/freadahead.c: New file.
83310         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
83311         fbufmode, fpurge, freadable, fwritable.
83313 2007-08-19  Eric Blake  <ebb9@byu.net>
83315         Test yesno in combination with closein.
83316         * lib/yesno.c (yesno): Document use of stdin.
83317         * modules/yesno-tests (Files): New module.
83318         * tests/test-yesno.c (main): New file.
83319         * tests/test-yesno.sh: Likewise.
83321 2007-08-19  Bruno Haible  <bruno@clisp.org>
83323         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
83324         * lib/fseeko.c (rpl_fseeko): Likewise.
83325         * lib/fseterr.c (fseterr): Likewise.
83327 2007-08-19  Bruno Haible  <bruno@clisp.org>
83329         * tests/test-lseek.c (main): Disable a test for BeOS.
83330         * doc/functions/lseek.texi: Document the BeOS bug.
83332 2007-08-19  Bruno Haible  <bruno@clisp.org>
83333             Eric Blake  <ebb9@byu.net>
83335         * lib/lseek.c: Include <sys/stat.h>.
83336         (rpl_lseek): Add workaround code also for Unix platforms.
83337         Needed for BeOS.
83338         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
83339         * doc/functions/lseek.texi: Document BeOS definiency.
83341 2007-08-18  Bruno Haible  <bruno@clisp.org>
83343         * modules/fstrcmp-tests: New file.
83344         * tests/test-fstrcmp.c: New file.
83346 2007-08-18  Bruno Haible  <bruno@clisp.org>
83348         * modules/fstrcmp: New file, from GNU gettext with modifications.
83349         * lib/fstrcmp.h: New file, from GNU gettext.
83350         * lib/fstrcmp.c: New file, from GNU gettext.
83351         * MODULES.html.sh (String handling): Add fstrcmp.
83353 2007-08-18  Bruno Haible  <bruno@clisp.org>
83355         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
83356         'bool'.
83357         (diag, compareseq): Remove const from the ctxt argument.
83358         (USE_HEURISTIC): Undefine at the end.
83360 2007-08-18  Jim Meyering  <jim@meyering.net>
83362         New file: lib/idcache.h
83363         * NEWS: Mention the addition.
83364         * modules/idcache (Files): Add lib/idcache.h
83365         * lib/idcache.c: Include "idcache.h".
83366         Don't include <sys/types.h>.
83367         Add a FIXME comment.
83368         Move file-scoped "static" declarations to the top.
83369         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
83371 2007-08-17  Bruno Haible  <bruno@clisp.org>
83372         and Paul Eggert  <eggert@cs.ucla.edu>
83374         * MODULES.html.sh: Add diffseq.
83375         * modules/diffseq: New file.
83376         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
83377         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
83379 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83381         Import changes from coreutils for bootstrap script.
83383         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
83385         * build-aux/bootstrap (slurp): Work even in environments where
83386         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
83387         current code does not slurp files whose names start with ".", and
83388         this looks like it might be a troublesome area.
83390         2007-07-11  Jim Meyering  <jim@meyering.net>
83392         If there's a GPL vN copyright comment, require that N == 3.
83394         2007-07-08  Jim Meyering  <jim@meyering.net>
83396         Run the coreutils-specific code only if tests/Makefile.am.in exists.
83397         * build-aux/bootstrap (mam_template): Move definition out of loop.
83399         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
83401         * build-aux/bootstrap (symlink_to_dir): Rename function from
83402         symlink_to_gnulib.  Add a directory parameter.  Update all
83403         callers.
83404         (cp_mark_as_generated): Also check for -- and link to -- files in
83405         gl/.
83407         2007-07-08  Jim Meyering  <jim@meyering.net>
83409         Adapt to deeper hierarchy in gnulib.
83410         * build-aux/bootstrap (symlink_to_dir): If the destination
83411         directory doesn't exist, create it. This is required at least for
83412         "lib/uniwidth/cjk.h".
83414         2007-05-15  Jim Meyering  <jim@meyering.net>
83416         * build-aux/bootstrap: Now that generated Makefile.am files
83417         are no longer under version control, they must be created at
83418         bootstrap time.
83420 2007-08-14  Ben Pfaff  <blp@gnu.org>
83422         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
83424 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
83426         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
83427         given the changes below.
83428         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
83429         even on hosts that have padding bits beyond the supported 64.
83431 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
83433         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
83434         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
83435         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
83436         depends on it.
83437         (xstrtol_error): Remove.
83438         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
83439         but with a different signature.
83440         (ATTRIBUTE_NORETURN, __attribute__): New macros.
83441         * lib/xstrtol-error.c: Include exitfail.h.
83442         (xstrtol_fatal): New function, with a different signature from the
83443         old xstrtol_error, so that the caller need not worry about passing
83444         in an exit status, or about storage management of the option argument.
83445         (xstrtol_error): Now a static function.  Redo signature to
83446         implement xstrtol_fatal.  Output the correct number of hyphens in
83447         front of the option so that the caller need not worry about
83448         storage management.
83449         (N_): New macro.
83450         (_): Remove; not used now.
83451         * modules/xstrtol: Depend on getopt.
83452         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
83453         of old STRTOL_FATAL_ERROR macro.
83454         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
83455         of test program.
83456         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
83457         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
83459 2007-08-08  Eric Blake  <ebb9@byu.net>
83461         * lib/xstrtol-error.c: Add missing include.
83463         Move xstrtol messages into gnulib domain, when --pobase is used.
83464         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
83465         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
83466         * modules/xstrtol (Files): Distribute new file.
83467         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
83468         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
83469         * tests/test-xstrtol.c: ...into new file.
83470         * tests/test-xstrtoul.c: Also test xstrtoul.
83471         * tests/test-xstrtoimax.c: Also test xstrtoimax.
83472         * tests/test-xstrtoumax.c: Also test xstrtoumax.
83473         * tests/test-xstrtol.sh: Drive the tests.
83474         * tests/test-xstrtoimax.sh: Likewise.
83475         * tests/test-xstrtoumax.sh: Likewise.
83476         * modules/xstrtol-tests: New module.
83477         * modules/xstrtoimax-tests: Likewise.
83478         * modules/xstrtoumax-tests: Likewise.
83480 2007-08-08  Jim Meyering  <jim@meyering.net>
83482         New function: mfile_name_concat.
83483         * lib/filenamecat.c (mfile_name_concat): New function, just like
83484         file_name_concat, but return NULL upon failure rather than exiting
83485         with a diagnostic.
83486         * lib/filenamecat.h: Declare it.
83488 2007-08-07  Bruno Haible  <bruno@clisp.org>
83490         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
83491         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
83492         warning from gcc.
83493         Reported by Eric Blake.
83495 2007-08-07  Simon Josefsson  <simon@josefsson.org>
83497         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
83498         * modules/crypto/arcfour (License): Likewise.
83499         * modules/crypto/des-tests (License): Likewise.
83500         * modules/crypto/gc-arctwo-tests (License): Likewise.
83501         * modules/crypto/gc-des-tests (License): Likewise.
83502         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
83503         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
83504         * modules/crypto/gc-md2-tests (License): Likewise.
83505         * modules/crypto/gc-md4-tests (License): Likewise.
83506         * modules/crypto/gc-md5-tests (License): Likewise.
83507         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
83508         * modules/crypto/gc-rijndael-tests (License): Likewise.
83509         * modules/crypto/gc-sha1-tests (License): Likewise.
83510         * modules/crypto/gc-tests (License): Likewise.
83511         * modules/crypto/hmac-md5 (License): Likewise.
83512         * modules/crypto/hmac-sha1 (License): Likewise.
83513         * modules/crypto/md2-tests (License): Likewise.
83514         * modules/crypto/md4-tests (License): Likewise.
83515         * modules/crypto/md5 (License): Likewise.
83516         * modules/crypto/rijndael (License): Likewise.
83517         * modules/crypto/sha1 (License): Likewise.
83518         * modules/memxor (License): Likewise.
83520 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
83521         and Bruno Haible  <bruno@clisp.org>
83523         * NEWS: Describe interface changes to human, xstrtol.
83524         * lib/human.h: Include <xstrtol.h>.
83525         (human_options): Return enum strtol_error, not int.  Remove
83526         bool arg; take int * instead.
83527         * lib/human.c: Don't include "gettext.h".
83528         (_): Remove; no longer used.
83529         Don't include <xstrtol.h>, since human.h does it.
83530         (human_options): Adjust to abovementioned interface changes.
83531         Do not report error to stderr; that's now the caller's
83532         responsibility.
83533         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
83534         interface change.
83535         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
83536         Str, Argument_type_string.  All uses changed.  Put " argument"
83537         in diagnostics to make them clearer.  Change wording of suffix
83538         message for clarity.
83539         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
83540         Argument_type_string.
83541         (STRTOL_FATAL_WARN): Remove; no longer used.
83542         * modules/human (Depends-on): Remove gettext-h.
83544 2007-08-06  Simon Josefsson  <simon@josefsson.org>
83546         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
83548 2007-07-31  Bruno Haible  <bruno@clisp.org>
83550         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
83551         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
83552         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
83554 2007-07-31  Bruno Haible  <bruno@clisp.org>
83556         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
83557         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
83559 2007-07-30  Bruno Haible  <bruno@clisp.org>
83561         * modules/base64 (License): Use the synonymous term "LGPLv2+".
83562         * modules/c-ctype (License): Likewise.
83563         * modules/c-strcase (License): Likewise.
83564         * modules/check-version (License): Likewise.
83565         * modules/iconv (License): Likewise.
83566         * modules/iconv_open (License): Likewise.
83567         * modules/read-file (License): Likewise.
83568         * modules/striconv (License): Likewise.
83569         * modules/strverscmp (License): Likewise.
83570         * modules/vasprintf (License): Likewise.
83571         * modules/crypto/des (License): Likewise.
83572         * modules/crypto/gc (License): Likewise.
83573         * modules/crypto/gc-arcfour (License): Likewise.
83574         * modules/crypto/gc-arctwo (License): Likewise.
83575         * modules/crypto/gc-des (License): Likewise.
83576         * modules/crypto/gc-hmac-md5 (License): Likewise.
83577         * modules/crypto/gc-hmac-sha1 (License): Likewise.
83578         * modules/crypto/gc-md2 (License): Likewise.
83579         * modules/crypto/gc-md4 (License): Likewise.
83580         * modules/crypto/gc-md5 (License): Likewise.
83581         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
83582         * modules/crypto/gc-random (License): Likewise.
83583         * modules/crypto/gc-rijndael (License): Likewise.
83584         * modules/crypto/gc-sha1 (License): Likewise.
83585         * modules/crypto/md2 (License): Likewise.
83586         * modules/crypto/md4 (License): Likewise.
83588 2007-07-30  Jim Meyering  <jim@meyering.net>
83590         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
83591         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
83592         it has valid stat data.  This bug would cause du not to count the
83593         sizes of inaccessible directories.
83594         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
83595         in <http://bugzilla.redhat.com/250077>.
83597 2007-07-25  Peter O'Gorman  <peter@pogma.com>
83598             Bruno Haible  <bruno@clisp.org>
83600         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
83601         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
83602         #include_next, gives a diagnostic about it, but reports no error in
83603         the exit code.
83604         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
83606 2007-07-24  Ben Pfaff  <blp@gnu.org>
83608         Improve name: "count-one-bits" is better than "popcount".
83609         * MODULES.html.sh: Update name.
83610         * lib/popcount.h: Renamed lib/count-one-bits.h.
83611         (popcount): Renamed count_one_bits.
83612         (popcountl): Renamed count_one_bits_l.
83613         (popcountll): Renamed count_one_bits_ll.
83614         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
83615         * modules/popcount: Renamed module/count-one-bits.
83616         * modules/popcount-tests: Renamed module/count-one-bits-tests.
83617         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
83619 2007-07-23  Ben Pfaff  <blp@gnu.org>
83621         * lib/popcount.h (popcount32): Reduce size of constants, to allow
83622         better code generation, and add U to large constants to avoid
83623         warnings, in non-GCC case.
83624         Suggested by Bruno Haible.
83626 2007-07-23  Ben Pfaff  <blp@gnu.org>
83628         * lib/popcount.h: Use verify_true instead of if...abort.
83629         * modules/popcount: Depend on verify module.
83630         Suggested by Jim Meyering.
83632 2007-07-23  Bruno Haible  <bruno@clisp.org>
83634         * gnulib-tool (func_import): Create a .cvsignore file also when the
83635         directory is not yet in CVS but the toplevel directory is. When
83636         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
83637         Reported by Karl Berry.
83639 2007-07-22  Ben Pfaff  <blp@gnu.org>
83641         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
83642         case.
83643         Suggested by Eric Blake.
83645 2007-07-22  Ben Pfaff  <blp@gnu.org>
83647         New module: popcount.
83648         * MODULES.html.sh: Add popcount.
83649         * modules/popcount: New file.
83650         * modules/popcount-tests: New file.
83651         * tests/test-popcount.c: New file.
83652         * lib/popcount.h: New file.
83653         * m4/popcount.m4: New file.
83655 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
83657         * build-aux/announce-gen: Update to GPLv3.
83659         * build-aux/config.guess: Update from config.
83661 2007-07-21  Bruno Haible  <bruno@clisp.org>
83663         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
83664         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
83666 2007-07-20  Jim Meyering  <jim@meyering.net>
83668         * check-module: Diagnose a self-dependency.
83670 2007-07-19  Bruno Haible  <bruno@clisp.org>
83672         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
83673         empty.
83674         Reported by Eric Blake.
83676 2007-07-18  Bruno Haible  <bruno@clisp.org>
83678         * gnulib-tool: New options --po-base, --po-domain.
83679         (func_usage): Document them.
83680         (pobase, po_domain): New variables.
83681         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
83682         DEFAULT_TEXT_DOMAIN.
83683         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
83684         (func_import): Consider pobase and po_domain. Create a po/ directory.
83685         (func_create_testdir): Set pobase and po_domain to empty.
83686         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
83687         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
83689 2007-07-18  Bruno Haible  <bruno@clisp.org>
83691         * gnulib-tool (func_get_automake_snippet): Synthesize also an
83692         EXTRA_DIST augmentation for files in build-aux/.
83694 2007-07-16  Bruno Haible  <bruno@clisp.org>
83696         * modules/lseek (License): Use the synonymous term "LGPLv2+".
83697         * modules/getdelim (License): Likewise.
83699 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83701         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
83702         * modules/d-type (License): Likewise.
83703         * modules/extensions (License): Likewise.
83704         * modules/fnmatch (License): Likewise.
83705         * modules/fseeko (License): Likewise.
83706         * modules/getaddrinfo (License): Likewise.
83707         * modules/getline (License): Likewise.
83708         * modules/getlogin_r (License): Likewise.
83709         * modules/getpass (License): Likewise.
83710         * modules/gettimeofday (License): Likewise.
83711         * modules/glob (License): Likewise.
83712         * modules/inet_ntop (License): Likewise.
83713         * modules/malloc (License): Likewise.
83714         * modules/malloca (License): Likewise.
83715         * modules/memmem (License): Likewise.
83716         * modules/mempcpy (License): Likewise.
83717         * modules/memset (License): Likewise.
83718         * modules/minmax (License): Likewise.
83719         * modules/mktime (License): Likewise.
83720         * modules/netinet_in (License): Likewise.
83721         * modules/pathmax (License): Likewise.
83722         * modules/poll (License): Likewise.
83723         * modules/regex (License): Likewise.
83724         * modules/snprintf (License): Likewise.
83725         * modules/stdbool (License): Likewise.
83726         * modules/stdint (License): Likewise.
83727         * modules/stdio (License): Likewise.
83728         * modules/strcase (License): Likewise.
83729         * modules/strcasestr (License): Likewise.
83730         * modules/strdup (License): Likewise.
83731         * modules/string (License): Likewise.
83732         * modules/strndup (License): Likewise.
83733         * modules/strnlen (License): Likewise.
83734         * modules/strpbrk (License): Likewise.
83735         * modules/strptime (License): Likewise.
83736         * modules/strsep (License): Likewise.
83737         * modules/sys_select (License): Likewise.
83738         * modules/sys_socket (License): Likewise.
83739         * modules/sys_stat (License): Likewise.
83740         * modules/sys_time (License): Likewise.
83741         * modules/time (License): Likewise.
83742         * modules/time_r (License): Likewise.
83743         * modules/timegm (License): Likewise.
83744         * modules/unistd (License): Likewise.
83745         * modules/vsnprintf (License): Likewise.
83746         * modules/wctype (License): Likewise.
83748 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83750         * modules/argz (License): LGPLv2+.
83752 2007-07-15  Karl Berry  <karl@gnu.org>
83754         * doc/gnulib.texi: revise node structure per new fdl.texi.
83756 2007-07-14  Bruno Haible  <bruno@clisp.org>
83758         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
83759         the output file.
83760         * lib/uniname/uninames.h: Regenerated.
83762 2007-07-14  Karl Berry  <karl@gnu.org>
83764         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
83765         omitting sectioning and index commands.
83767 2007-07-13  Bruno Haible  <bruno@clisp.org>
83769         New gnulib-tool option --more-symlinks.
83770         * gnulib-tool (func_usage): Document --more-symlinks.
83771         (do_copyrights): New variable.
83772         Recognize option --more-symlinks.
83773         (func_import): Don't add a copyright notice transform to
83774         sed_transform_lib_file if do_copyrights is empty.
83776 2007-07-13  Bruno Haible  <bruno@clisp.org>
83778         * lib/vasnprintf.c (decimal_point_char): Define also if
83779         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
83780         && !NEED_PRINTF_DIRECTIVE_A.
83781         Reported by Clemens Koller <clemens.koller@anagramm.de> via
83782         Gary V. Vaughan <gary@gnu.org>.
83784 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
83786         * lib/inttypes_.h: Undo previous change, since it was fixed
83787         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
83789 2007-07-13  Bruno Haible  <bruno@clisp.org>
83791         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
83792         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
83794 2007-07-13  Jim Meyering  <jim@meyering.net>
83796         df: Don't fail for Tru64's "file-on-file mount".
83797         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
83798         so we fall through and use statfs instead.  Details here:
83799         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
83800         Reported by Albert Chin.
83802 2007-07-13  Bruno Haible  <bruno@clisp.org>
83804         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
83805         * modules/configmake (License): Likewise.
83806         * modules/gettext (License): Likewise.
83807         * modules/gettext-h (License): Likewise.
83808         * modules/include_next (License): Likewise.
83809         * modules/link-warning (License): Likewise.
83810         * modules/localcharset (License): Likewise.
83811         * modules/localename (License): Likewise.
83812         * modules/lock (License): Likewise.
83813         * modules/relocatable-lib-lgpl (License): Likewise.
83814         * modules/size_max (License): Likewise.
83815         * modules/vasnprintf (License): Likewise.
83816         * modules/wchar (License): Likewise.
83817         * modules/xsize (License): Likewise.
83819 2007-07-13  Bruno Haible  <bruno@clisp.org>
83821         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
83822         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
83824 2007-07-12  Bruno Haible  <bruno@clisp.org>
83826         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
83827         in the modules files.
83829 2007-07-11  Karl Berry  <karl@gnu.org>
83831         * MODULES.html.sh (func_module): use
83832          sed -e '\|^'"${includefile}"'$|d'
83833          instead of /.../d, to avoid errors on $includefile's containing /.
83835 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83837         * gnulib-tool (func_import): Avoid duplication of --avoid
83838         statements
83839         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
83840         names to `_' in variable names.
83842 2007-07-10  Eric Blake  <ebb9@byu.net>
83844         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
83845         * NEWS: Document this change.
83847 2007-07-08  Bruno Haible  <bruno@clisp.org>
83849         Update to Unicode 5.0.
83850         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
83851         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
83852         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
83853         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
83854         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
83855         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
83856         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
83857         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
83858         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
83859         U+10A3F, U+1D242..U+1D244.
83860         (nonspacing_table_ind): Update.
83861         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
83862         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
83864 2007-07-08  Bruno Haible  <bruno@clisp.org>
83866         Update to Unicode 5.0.
83867         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
83868         code transform. Extend the name index field of unicode_name_to_code and
83869         unicode_code_to_name from 16 to 24 bits.
83870         * lib/uniname/uniname.c (unicode_character_name,
83871         unicode_name_character): Add the range 0x12xxx to the code transform.
83872         * lib/uniname/uninames.h: Regenerated.
83873         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
83875 2007-07-07  Bruno Haible  <bruno@clisp.org>
83877         * modules/wcwidth-tests: New file.
83878         * tests/test-wcwidth.c: New file.
83880         Work around MacOS X wcwidth() bug.
83881         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
83882         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
83883         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
83884         original wcwidth in non-UTF-8 locales.
83885         * modules/wcwidth (Depends-on): Add localcharset, streq,
83886         uniwidth/width.
83887         * doc/functions/wcwidth.texi: Update.
83889 2007-07-07  Bruno Haible  <bruno@clisp.org>
83891         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
83892         (wcwidth): New declaration.
83893         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
83894         macros.
83895         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
83896         here. Prepare for creating <wchar.h> unconditionally.
83897         * modules/wchar (Depends-on): Add link-warning.
83898         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
83899         REPLACE_WCWIDTH, and GL_LINK_WARNING.
83900         * lib/wcwidth.h: Remove file.
83901         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
83902         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
83903         * modules/wcwidth (Files): Remove lib/wcwidth.h.
83904         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
83905         (Include): Replace wcwidth.h with <wchar.h>.
83906         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
83907         * lib/mbchar.h: Don't include wcwidth.h.
83908         * lib/mbswidth.c: Likewise.
83909         * NEWS: Mention the change.
83911 2007-07-07  Bruno Haible  <bruno@clisp.org>
83913         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
83914         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
83915         definition with an external declaration.
83916         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
83917         defined as a function. Remove AC_C_INLINE requirement.
83918         * modules/wcwidth (Files): Add lib/wcwidth.c.
83919         (Makefile.am): Remove redundant statement.
83921 2007-07-07  Bruno Haible  <bruno@clisp.org>
83923         * MODULES.html.sh (Unicode string functions): Add the new modules.
83925         * tests/uniwidth/test-u32-strwidth.c: New file.
83926         * modules/uniwidth/u32-strwidth-tests: New file.
83928         * lib/uniwidth/u32-strwidth.c: New file.
83929         * modules/uniwidth/u32-strwidth: New file.
83931         * tests/uniwidth/test-u16-strwidth.c: New file.
83932         * modules/uniwidth/u16-strwidth-tests: New file.
83934         * lib/uniwidth/u16-strwidth.c: New file.
83935         * modules/uniwidth/u16-strwidth: New file.
83937         * tests/uniwidth/test-u8-strwidth.c: New file.
83938         * modules/uniwidth/u8-strwidth-tests: New file.
83940         * lib/uniwidth/u8-strwidth.c: New file.
83941         * modules/uniwidth/u8-strwidth: New file.
83943         * tests/uniwidth/test-u32-width.c: New file.
83944         * modules/uniwidth/u32-width-tests: New file.
83946         * lib/uniwidth/u32-width.c: New file.
83947         * modules/uniwidth/u32-width: New file.
83949         * tests/uniwidth/test-u16-width.c: New file.
83950         * modules/uniwidth/u16-width-tests: New file.
83952         * lib/uniwidth/u16-width.c: New file.
83953         * modules/uniwidth/u16-width: New file.
83955         * tests/uniwidth/test-u8-width.c: New file.
83956         * modules/uniwidth/u8-width-tests: New file.
83958         * lib/uniwidth/u8-width.c: New file.
83959         * modules/uniwidth/u8-width: New file.
83961         * tests/uniwidth/test-uc_width.c: New file.
83962         * modules/uniwidth/width-tests: New file.
83964         * lib/uniwidth/width.c: New file, from GNU libiconv.
83965         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
83966         * modules/uniwidth/width: New file.
83968         * lib/uniwidth.h: New file, from GNU libiconv.
83969         * modules/uniwidth/base: New file.
83971 2007-07-07  Bruno Haible  <bruno@clisp.org>
83973         * lib/uniname.h: New file, from GNU gettext.
83974         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
83975         * lib/uniname/uninames.h: New file, from GNU gettext.
83976         * lib/uniname/uniname.c: New file, from GNU gettext.
83977         * tests/uniname/test-uninames.sh: New file.
83978         * tests/uniname/test-uninames.c: New file, from GNU gettext.
83979         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
83980         * modules/uniname/base: New file.
83981         * modules/uniname/uniname: New file.
83982         * modules/uniname/uniname-tests: New file.
83983         * MODULES.html.sh (Unicode string functions): Add the new modules.
83985 2007-07-06  Bruno Haible  <bruno@clisp.org>
83987         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
83989 2007-07-06  Bruno Haible  <bruno@clisp.org>
83991         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
83992         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
83993         includes <cygwin/sys_time.h> which includes <sys/select.h> which
83994         include <sys/time.h>.
83995         Reported by Eric Blake.
83997 2007-07-06  Eric Blake  <ebb9@byu.net>
83999         Fix testing canonicalize on cygwin.
84000         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
84001         Revert patch from 2007-06-19.
84002         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
84003         canonicalize module is also in use.
84004         * tests/test-canonicalize.c: New file.
84005         * tests/test-canonicalize.sh: Likewise.
84006         * modules/canonicalize-tests: Likewise.
84008 2007-07-06  Jim Meyering  <jim@meyering.net>
84010         * lib/getugroups.c (getugroups): Detect getgrent failure.
84011         Adjust comment to reflect reality: this function may return -1.
84013 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
84015         * build-aux/bootstrap (TP_URL,get_translations): Update to use
84016         the new TP address.
84017         (usage): Fix typo
84018         (gnulib_mk): New variable.
84020 2007-07-05  Jim Meyering  <jim@meyering.net>
84022         Don't let endgrent clobber errno, no matter how improbable.
84023         * lib/getugroups.c (getugroups): Save and restore errno around
84024         endgrent call.
84026         Close the group DB even when failing with 2^31 or more members.
84027         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
84029 2007-07-04  Jim Meyering  <jim@meyering.net>
84031         * lib/getugroups.h: New file.
84032         * lib/getugroups.c: Include "getugroups.h".
84033         Remove uses of "register" keyword.
84034         Move local variable, "cp", down into scope where used.
84035         Give "username" parameter the "const" attribute.
84036         * modules/getugroups (Files): Add lib/getugroups.h
84038 2007-07-04  Karl Berry  <karl@gnu.org>
84040         * MODULES.html.sh (func_all_modules): Complete rename of
84041         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
84043 2007-07-02  Bruno Haible  <bruno@clisp.org>
84045         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
84046         mode, when inttypes.h comes from gnulib.
84047         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
84049 2007-07-02  Simon Josefsson  <simon@josefsson.org>
84051         * NEWS: Mention lgpl module name change.
84053         * modules/lgpl-2.1: Renamed from lgpl.
84055         * NEWS: Mention gpl module name change.
84057         * modules/gpl-3.0: New file, based on gpl-2.0.
84059         * modules/gpl-2.0: Renamed from gpl.
84061         * modules/gpl: Fix filename, doc/gpl.texi is now found at
84062         doc/gpl-2.0.texi.
84064 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
84066         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
84067         #define __STDC_LIMIT_MACROS temporarily while including
84068         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
84069         Problem reported by Joel E. Denny in
84070         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
84072 2007-07-01  Bruno Haible  <bruno@clisp.org>
84074         * lib/unistdio.h: New file.
84075         * lib/unistdio/u-asnprintf.h: New file.
84076         * lib/unistdio/u-asprintf.h: New file.
84077         * lib/unistdio/u-printf-args.c: New file.
84078         * lib/unistdio/u-printf-args.h: New file.
84079         * lib/unistdio/u-printf-parse.h: New file.
84080         * lib/unistdio/u-snprintf.h: New file.
84081         * lib/unistdio/u-sprintf.h: New file.
84082         * lib/unistdio/u-vasprintf.h: New file.
84083         * lib/unistdio/u-vsnprintf.h: New file.
84084         * lib/unistdio/u-vsprintf.h: New file.
84085         * lib/unistdio/ulc-asnprintf.c: New file.
84086         * lib/unistdio/ulc-asprintf.c: New file.
84087         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
84088         * lib/unistdio/ulc-printf-parse.c: New file.
84089         * lib/unistdio/ulc-snprintf.c: New file.
84090         * lib/unistdio/ulc-sprintf.c: New file.
84091         * lib/unistdio/ulc-vasnprintf.c: New file.
84092         * lib/unistdio/ulc-vasprintf.c: New file.
84093         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
84094         * lib/unistdio/ulc-vsnprintf.c: New file.
84095         * lib/unistdio/ulc-vsprintf.c: New file.
84096         * lib/unistdio/u8-asnprintf.c: New file.
84097         * lib/unistdio/u8-asprintf.c: New file.
84098         * lib/unistdio/u8-printf-parse.c: New file.
84099         * lib/unistdio/u8-snprintf.c: New file.
84100         * lib/unistdio/u8-sprintf.c: New file.
84101         * lib/unistdio/u8-vasnprintf.c: New file.
84102         * lib/unistdio/u8-vasprintf.c: New file.
84103         * lib/unistdio/u8-vsnprintf.c: New file.
84104         * lib/unistdio/u8-vsprintf.c: New file.
84105         * lib/unistdio/u8-u8-asnprintf.c: New file.
84106         * lib/unistdio/u8-u8-asprintf.c: New file.
84107         * lib/unistdio/u8-u8-snprintf.c: New file.
84108         * lib/unistdio/u8-u8-sprintf.c: New file.
84109         * lib/unistdio/u8-u8-vasnprintf.c: New file.
84110         * lib/unistdio/u8-u8-vasprintf.c: New file.
84111         * lib/unistdio/u8-u8-vsnprintf.c: New file.
84112         * lib/unistdio/u8-u8-vsprintf.c: New file.
84113         * lib/unistdio/u16-asnprintf.c: New file.
84114         * lib/unistdio/u16-asprintf.c: New file.
84115         * lib/unistdio/u16-printf-parse.c: New file.
84116         * lib/unistdio/u16-snprintf.c: New file.
84117         * lib/unistdio/u16-sprintf.c: New file.
84118         * lib/unistdio/u16-vasnprintf.c: New file.
84119         * lib/unistdio/u16-vasprintf.c: New file.
84120         * lib/unistdio/u16-vsnprintf.c: New file.
84121         * lib/unistdio/u16-vsprintf.c: New file.
84122         * lib/unistdio/u16-u16-asnprintf.c: New file.
84123         * lib/unistdio/u16-u16-asprintf.c: New file.
84124         * lib/unistdio/u16-u16-snprintf.c: New file.
84125         * lib/unistdio/u16-u16-sprintf.c: New file.
84126         * lib/unistdio/u16-u16-vasnprintf.c: New file.
84127         * lib/unistdio/u16-u16-vasprintf.c: New file.
84128         * lib/unistdio/u16-u16-vsnprintf.c: New file.
84129         * lib/unistdio/u16-u16-vsprintf.c: New file.
84130         * lib/unistdio/u32-asnprintf.c: New file.
84131         * lib/unistdio/u32-asprintf.c: New file.
84132         * lib/unistdio/u32-printf-parse.c: New file.
84133         * lib/unistdio/u32-snprintf.c: New file.
84134         * lib/unistdio/u32-sprintf.c: New file.
84135         * lib/unistdio/u32-vasnprintf.c: New file.
84136         * lib/unistdio/u32-vasprintf.c: New file.
84137         * lib/unistdio/u32-vsnprintf.c: New file.
84138         * lib/unistdio/u32-vsprintf.c: New file.
84139         * lib/unistdio/u32-u32-asnprintf.c: New file.
84140         * lib/unistdio/u32-u32-asprintf.c: New file.
84141         * lib/unistdio/u32-u32-snprintf.c: New file.
84142         * lib/unistdio/u32-u32-sprintf.c: New file.
84143         * lib/unistdio/u32-u32-vasnprintf.c: New file.
84144         * lib/unistdio/u32-u32-vasprintf.c: New file.
84145         * lib/unistdio/u32-u32-vsnprintf.c: New file.
84146         * lib/unistdio/u32-u32-vsprintf.c: New file.
84147         * tests/unistdio/test-ulc-asnprintf1.c: New file.
84148         * tests/unistdio/test-ulc-asnprintf1.h: New file.
84149         * tests/unistdio/test-ulc-printf1.h: New file.
84150         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
84151         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
84152         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
84153         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
84154         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
84155         * tests/unistdio/test-ulc-vasprintf1.c: New file.
84156         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
84157         * tests/unistdio/test-ulc-vsprintf1.c: New file.
84158         * tests/unistdio/test-u8-asnprintf1.c: New file.
84159         * tests/unistdio/test-u8-asnprintf1.h: New file.
84160         * tests/unistdio/test-u8-printf1.h: New file.
84161         * tests/unistdio/test-u8-vasnprintf1.c: New file.
84162         * tests/unistdio/test-u8-vasnprintf2.c: New file.
84163         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
84164         * tests/unistdio/test-u8-vasnprintf3.c: New file.
84165         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
84166         * tests/unistdio/test-u8-vasprintf1.c: New file.
84167         * tests/unistdio/test-u8-vsnprintf1.c: New file.
84168         * tests/unistdio/test-u8-vsprintf1.c: New file.
84169         * tests/unistdio/test-u16-asnprintf1.c: New file.
84170         * tests/unistdio/test-u16-asnprintf1.h: New file.
84171         * tests/unistdio/test-u16-printf1.h: New file.
84172         * tests/unistdio/test-u16-vasnprintf1.c: New file.
84173         * tests/unistdio/test-u16-vasnprintf2.c: New file.
84174         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
84175         * tests/unistdio/test-u16-vasnprintf3.c: New file.
84176         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
84177         * tests/unistdio/test-u16-vasprintf1.c: New file.
84178         * tests/unistdio/test-u16-vsnprintf1.c: New file.
84179         * tests/unistdio/test-u16-vsprintf1.c: New file.
84180         * tests/unistdio/test-u32-asnprintf1.c: New file.
84181         * tests/unistdio/test-u32-asnprintf1.h: New file.
84182         * tests/unistdio/test-u32-printf1.h: New file.
84183         * tests/unistdio/test-u32-vasnprintf1.c: New file.
84184         * tests/unistdio/test-u32-vasnprintf2.c: New file.
84185         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
84186         * tests/unistdio/test-u32-vasnprintf3.c: New file.
84187         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
84188         * tests/unistdio/test-u32-vasprintf1.c: New file.
84189         * tests/unistdio/test-u32-vsnprintf1.c: New file.
84190         * tests/unistdio/test-u32-vsprintf1.c: New file.
84191         * modules/unistdio/base: New file.
84192         * modules/unistdio/u-printf-args: New file.
84193         * modules/unistdio/ulc-asnprintf: New file.
84194         * modules/unistdio/ulc-asprintf: New file.
84195         * modules/unistdio/ulc-fprintf: New file.
84196         * modules/unistdio/ulc-printf-parse: New file.
84197         * modules/unistdio/ulc-snprintf: New file.
84198         * modules/unistdio/ulc-sprintf: New file.
84199         * modules/unistdio/ulc-vasnprintf: New file.
84200         * modules/unistdio/ulc-vasprintf: New file.
84201         * modules/unistdio/ulc-vfprintf: New file.
84202         * modules/unistdio/ulc-vsnprintf: New file.
84203         * modules/unistdio/ulc-vsprintf: New file.
84204         * modules/unistdio/u8-asnprintf: New file.
84205         * modules/unistdio/u8-asprintf: New file.
84206         * modules/unistdio/u8-printf-parse: New file.
84207         * modules/unistdio/u8-snprintf: New file.
84208         * modules/unistdio/u8-sprintf: New file.
84209         * modules/unistdio/u8-vasnprintf: New file.
84210         * modules/unistdio/u8-vasprintf: New file.
84211         * modules/unistdio/u8-vsnprintf: New file.
84212         * modules/unistdio/u8-vsprintf: New file.
84213         * modules/unistdio/u8-u8-asnprintf: New file.
84214         * modules/unistdio/u8-u8-asprintf: New file.
84215         * modules/unistdio/u8-u8-snprintf: New file.
84216         * modules/unistdio/u8-u8-sprintf: New file.
84217         * modules/unistdio/u8-u8-vasnprintf: New file.
84218         * modules/unistdio/u8-u8-vasprintf: New file.
84219         * modules/unistdio/u8-u8-vsnprintf: New file.
84220         * modules/unistdio/u8-u8-vsprintf: New file.
84221         * modules/unistdio/u16-asnprintf: New file.
84222         * modules/unistdio/u16-asprintf: New file.
84223         * modules/unistdio/u16-printf-parse: New file.
84224         * modules/unistdio/u16-snprintf: New file.
84225         * modules/unistdio/u16-sprintf: New file.
84226         * modules/unistdio/u16-vasnprintf: New file.
84227         * modules/unistdio/u16-vasprintf: New file.
84228         * modules/unistdio/u16-vsnprintf: New file.
84229         * modules/unistdio/u16-vsprintf: New file.
84230         * modules/unistdio/u16-u16-asnprintf: New file.
84231         * modules/unistdio/u16-u16-asprintf: New file.
84232         * modules/unistdio/u16-u16-snprintf: New file.
84233         * modules/unistdio/u16-u16-sprintf: New file.
84234         * modules/unistdio/u16-u16-vasnprintf: New file.
84235         * modules/unistdio/u16-u16-vasprintf: New file.
84236         * modules/unistdio/u16-u16-vsnprintf: New file.
84237         * modules/unistdio/u16-u16-vsprintf: New file.
84238         * modules/unistdio/u32-asnprintf: New file.
84239         * modules/unistdio/u32-asprintf: New file.
84240         * modules/unistdio/u32-printf-parse: New file.
84241         * modules/unistdio/u32-snprintf: New file.
84242         * modules/unistdio/u32-sprintf: New file.
84243         * modules/unistdio/u32-vasnprintf: New file.
84244         * modules/unistdio/u32-vasprintf: New file.
84245         * modules/unistdio/u32-vsnprintf: New file.
84246         * modules/unistdio/u32-vsprintf: New file.
84247         * modules/unistdio/u32-u32-asnprintf: New file.
84248         * modules/unistdio/u32-u32-asprintf: New file.
84249         * modules/unistdio/u32-u32-snprintf: New file.
84250         * modules/unistdio/u32-u32-sprintf: New file.
84251         * modules/unistdio/u32-u32-vasnprintf: New file.
84252         * modules/unistdio/u32-u32-vasprintf: New file.
84253         * modules/unistdio/u32-u32-vsnprintf: New file.
84254         * modules/unistdio/u32-u32-vsprintf: New file.
84255         * modules/unistdio/ulc-asnprintf-tests: New file.
84256         * modules/unistdio/ulc-vasnprintf-tests: New file.
84257         * modules/unistdio/ulc-vasprintf-tests: New file.
84258         * modules/unistdio/ulc-vsnprintf-tests: New file.
84259         * modules/unistdio/ulc-vsprintf-tests: New file.
84260         * modules/unistdio/u8-asnprintf-tests: New file.
84261         * modules/unistdio/u8-vasnprintf-tests: New file.
84262         * modules/unistdio/u8-vasprintf-tests: New file.
84263         * modules/unistdio/u8-vsnprintf-tests: New file.
84264         * modules/unistdio/u8-vsprintf-tests: New file.
84265         * modules/unistdio/u16-asnprintf-tests: New file.
84266         * modules/unistdio/u16-vasnprintf-tests: New file.
84267         * modules/unistdio/u16-vasprintf-tests: New file.
84268         * modules/unistdio/u16-vsnprintf-tests: New file.
84269         * modules/unistdio/u16-vsprintf-tests: New file.
84270         * modules/unistdio/u32-asnprintf-tests: New file.
84271         * modules/unistdio/u32-vasnprintf-tests: New file.
84272         * modules/unistdio/u32-vasprintf-tests: New file.
84273         * modules/unistdio/u32-vsnprintf-tests: New file.
84274         * modules/unistdio/u32-vsprintf-tests: New file.
84275         * MODULES.html.sh (Unicode string functions): Add the new modules.
84277 2007-07-01  Bruno Haible  <bruno@clisp.org>
84279         * lib/sprintf.c (sprintf): Limit the available length estimation,
84280         to avoid address wraparound.
84281         * lib/vsprintf.c (vsprintf): Likewise.
84282         * modules/sprintf-posix (Dependencies): Add stdint.
84283         * modules/vsprintf-posix (Dependencies): Likewise.
84285 2007-07-01  Bruno Haible  <bruno@clisp.org>
84287         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
84288         Windows PATH as well. Conservative double-quoting. Comments.
84290 2007-07-01  Bruno Haible  <bruno@clisp.org>
84291             Eric Blake  <ebb9@byu.net>
84292             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84294         * gnulib-tool (self_abspathname): Fix algorithm to cope with
84295         empty components in $PATH, denoting '.'.
84297 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84299         * gnulib-tool: Fix indentation.
84300         (func_create_megatestdir): Likewise.
84301         Report by Bruno Haible.
84303 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84305         Sync from Automake.
84306         * build-aux/gnupload: Fix shell portability issues with for loops.
84307         Report by Karl Berry.
84309 2007-06-29  Simon Josefsson  <simon@josefsson.org>
84311         * build-aux/maint.mk (POURL): Use translationproject.org.
84313 2007-06-27  Simon Josefsson  <simon@josefsson.org>
84314             Bruno Haible  <bruno@clisp.org>
84316         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
84317         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
84318         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
84319         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
84320         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
84322 2007-06-27  Bruno Haible  <bruno@clisp.org>
84324         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
84325         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
84327 2007-06-26  Karl Berry  <karl@gnu.org>
84329         * MODULES.html.sh: remove xreadlink-with-size.
84331 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84333         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
84334         method that I hope also handles the double-include problem noted
84335         by Bruno Haible in
84336         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
84338 2007-06-23  Bruno Haible  <bruno@clisp.org>
84340         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
84341         Don't let the 'mostlyclean' target fail if the last subdirectory could
84342         not be removed.
84343         Reported by Karl Berry.
84345 2007-06-23  Bruno Haible  <bruno@clisp.org>
84347         * gnulib-tool (echo): Add a speedier workaround for ksh.
84348         * tests/test-echo.sh: Likewise.
84350 2007-06-23  Bruno Haible  <bruno@clisp.org>
84352         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
84353         * tests/test-echo.sh: Likewise.
84355 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84357         * gnulib-tool (IFS): Initialize early, so we don't set it to
84358         empty later.
84359         (self_abspathname): Rewrite algorithm to set it, reindent.
84360         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
84361         (func_create_megatestdir): Merge some sed scripts.
84363 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84365         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
84366         exposed by Sun Studio 11 cc on Solaris 8.
84368 2007-06-22  Bruno Haible  <bruno@clisp.org>
84370         * gnulib-tool (echo): Ensure the echo primitive does not interpret
84371         backslashes.
84372         * tests/test-echo.sh: New file.
84374 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84376         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
84377         simplify `sed_replace_build_aux' scripts, they are portable but
84378         echoing them with `echo' is not.
84379         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
84381 2007-06-21  Karl Berry  <karl@gnu.org>
84383         * config/srclist.txt: guess we can't handle the licenses via
84384         srclist at the moment.
84386 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
84388         * MODULES.html.sh: Add include_next.
84389         * modules/include_next: New file.
84391 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
84393         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
84394         INCLUDE_NEXT.
84395         (gl_CHECK_NEXT_HEADERS): New macro.
84396         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
84397         the obsolescent gl_ABSOLUTE_HEADER.
84398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
84399         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
84400         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
84401         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
84402         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
84403         * m4/math_h.m4 (gl_MATH_H): Likewise.
84404         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
84405         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
84406         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
84407         * m4/stdint.m4 (gl_STDINT_H): Likewise.
84408         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
84409         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
84410         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
84411         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
84412         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
84413         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
84414         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
84415         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
84416         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
84417         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
84418         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
84419         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
84420         * m4/inttypes.m4 (gl_INTTYPES_H): Define
84421         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
84422         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
84423         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
84424         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
84425         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
84426         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
84427         * lib/float_.h: Likewise.
84428         * lib/inttypes_.h: Likewise.
84429         * lib/math_.h: Likewise.
84430         * lib/search_.h: Likewise.
84431         * lib/signal_.h: Likewise.
84432         * lib/stdint_.h: Likewise.
84433         * lib/stdio_.h: Likewise.
84434         * lib/stdlib_.h: Likewise.
84435         * lib/string_.h: Likewise.
84436         * lib/sys_stat_.h: Likewise.
84437         * lib/sys_time_.h: Likewise.
84438         * lib/time_.h: Likewise.
84439         * lib/unistd_.h: Likewise.
84440         * lib/wchar_.h: Likewise.
84441         * lib/wctype_.h: Likewise.
84442         * lib/dirent_.h: Likewise.
84443         * lib/iconv_.h: Likewise.
84444         * lib/locale_.h: Likewise.
84445         * lib/netinet_in_.h: Likewise.
84446         * lib/sys_select_.h: Likewise.
84447         * lib/sys_socket_.h: Likewise.
84448         * lib/sysexits_.h: Likewise.
84449         * modules/fcntl (Depends-on): Depend on include_next, not
84450         absolute_header.
84451         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
84452         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
84453         * modules/fchdir: Likewise.
84454         * modules/float: Likewise.
84455         * modules/iconv_open: Likewise.
84456         * modules/inttypes: Likewise.
84457         * modules/locale: Likewise.
84458         * modules/math: Likewise.
84459         * modules/netinet_in: Likewise.
84460         * modules/search: Likewise.
84461         * modules/signal: Likewise.
84462         * modules/stdint: Likewise.
84463         * modules/stdio: Likewise.
84464         * modules/stdlib: Likewise.
84465         * modules/string: Likewise.
84466         * modules/sys_select: Likewise.
84467         * modules/sys_socket: Likewise.
84468         * modules/sys_stat: Likewise.
84469         * modules/sys_time: Likewise.
84470         * modules/sysexits: Likewise.
84471         * modules/time: Likewise.
84472         * modules/unistd: Likewise.
84473         * modules/wchar: Likewise.
84474         * modules/wctype: Likewise.
84475         * modules/sys_stat: Change maintainer to "all".
84476         * modules/unistd: Likewise.
84478 2007-06-20  Karl Berry  <karl@gnu.org>
84480         * config/srclist.txt: track www changes in license files.
84482 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
84484         * build-aux/bootstrap: Remove stray dot.
84485         Make sure build_aux settings are honored when linking
84486         gnulib_extra_files.
84488 2007-06-19  Eric Blake  <ebb9@byu.net>
84490         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
84491         Allow compilation on cygwin.
84493 2007-06-19  Jim Meyering  <jim@meyering.net>
84495         xreadlink-with-size: Remove module.  No longer used.
84496         Ex-callers now use xreadlink or mreadlink-with-size.
84497         * modules/xreadlink-with-size: Remove module.
84498         * lib/xreadlink-with-size.c: Remove file.
84499         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
84500         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
84501         just before the function definition *is* accurate.
84503         Eliminate one way canonicalize_filename_mode could exit.
84504         * lib/canonicalize.c (canonicalize_filename_mode):
84505         Use mreadlink_with_size, not xreadlink_with_size.
84507 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
84509         Detect porting problems to FreeBSD/arm, which has time_t wider than
84510         long int.  Original problem reported for GNU diff by Xin Li in
84511         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
84512         * modules/getdate (Depends-on): Add intprops, verify.
84513         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
84514         is an integer type no wider than long int.
84516 2007-06-18  Jim Meyering  <jim@meyering.net>
84518         New module: mreadlink-with-size.
84519         * MODULES.html.sh: Add mreadlink-with-size.
84520         * modules/mreadlink-with-size: New module
84521         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
84522         not xreadlink-with-size.
84523         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
84525 2007-06-16  Bruno Haible  <bruno@clisp.org>
84527         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
84528         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
84529         Reported by Gary V. Vaughan <gary@gnu.org>.
84531 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
84533         Revamp lchown so that it lives in unistd.h where it belongs.
84534         * lib/lchown.h: Remove.
84535         * lib/dirchownmod.c: Don't include lib/lchown.h.
84536         * lib/fchownat.c: Likewise.
84537         * lib/openat.c: Likewise.
84538         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
84539         does not follow symlinks.
84540         (EOPNOTSUPP): Define if not defined.
84541         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
84542         is defined to 0.
84543         (lchown): New decl.
84544         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
84545         Do not check for lchown decl.
84546         Set REPLACE_LCHOWN.
84547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
84548         REPLACE_LCHOWN.
84549         * modules/chown: Make it clear it follows symlinks.
84550         * modules/lchown: Make it clear it doesn't follow symlinks.
84551         (Files): Remove lib/lchown.h
84552         (Depends-on): Add unistd.
84553         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
84554         (Include): Include <unistd.h>, not "lchown.h".
84555         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
84556         REPLACE_LCHOWN.
84558 2007-06-15  Jim Meyering  <jim@meyering.net>
84560         Change license (GPL to LGPL) of fsusage and dependents.
84561         * modules/fsusage (License): Change to LGPL.
84562         * modules/full-read (License): Likewise.
84563         * modules/full-write (License): Likewise.
84564         * modules/safe-read (License): Likewise.
84565         * modules/safe-write (License): Likewise.
84567 2007-06-14  Ben Pfaff  <blp@gnu.org>
84569         Missing part of allocsa -> malloca transition.
84570         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
84571         gl_MALLOCA.
84573 2007-06-12  Bruno Haible  <bruno@clisp.org>
84575         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
84576         to ia64, x86_64, i386.
84577         Reported by Eric Blake.
84579 2007-06-12  Bruno Haible  <bruno@clisp.org>
84581         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
84582         cross-compiling to x86_64.
84584 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
84586         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
84587         glitch reported by Ralf Wildenhues in
84588         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
84590         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
84591         Vin Shelton.
84593 2007-06-11  Bruno Haible  <bruno@clisp.org>
84595         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
84596         replacement string.
84597         Reported by Eric Blake.
84599 2007-06-10  Bruno Haible  <bruno@clisp.org>
84601         Prepare vasnprintf code for use with Unicode strings.
84602         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
84603         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
84604         TYPE_U32_STRING.
84605         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
84606         a_u32_string variants.
84607         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
84608         * lib/printf-args.c: Don't include config.h and the specification
84609         header if PRINTF_FETCHARGS is already defined.
84610         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
84611         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
84612         TYPE_U16_STRING, TYPE_U32_STRING.
84613         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
84614         u16_directive, u16_directives, u32_directive, u32_directives): New
84615         types.
84616         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
84617         New declarations.
84618         * lib/printf-parse.c: Don't include config.h and the specification
84619         header if PRINTF_PARSE is already defined. Eliminate the set of
84620         parameters for WIDE_CHAR_VERSION; the user of this file must provide
84621         them now. Include c-ctype.h.
84622         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
84623         directive and CHAR_T_ONLY_ASCII.
84624         * lib/vasnprintf.c: Don't include config.h and the specification header
84625         if VASNPRINTF is already defined.
84626         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
84627         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
84628         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
84629         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
84630         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
84631         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
84632         code accordingly.
84633         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
84634         pad_ourselves also in this case, with the 'c' and 's' directives, and
84635         with a different notion of "width".
84636         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
84638 2007-06-10  Bruno Haible  <bruno@clisp.org>
84640         * modules/unistr/u32-mbsnlen: New file.
84641         * lib/unistr/u32-mbsnlen.c: New file.
84643         * modules/unistr/u16-mbsnlen: New file.
84644         * lib/unistr/u16-mbsnlen.c: New file.
84646         * modules/unistr/u8-mbsnlen: New file.
84647         * lib/unistr/u8-mbsnlen.c: New file.
84649         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
84650         declarations.
84652 2007-06-10  Bruno Haible  <bruno@clisp.org>
84654         * lib/string_.h (mbsnlen): New declaration.
84655         * lib/mbsnlen.c: New file.
84656         * m4/mbsnlen.m4: New file.
84657         * modules/mbsnlen: New file.
84658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
84659         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
84660         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
84662 2007-06-10  Bruno Haible  <bruno@clisp.org>
84664         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
84666 2007-06-10  Bruno Haible  <bruno@clisp.org>
84668         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
84669         * lib/mbuiter.h: Likewise.
84671 2007-06-10  Bruno Haible  <bruno@clisp.org>
84673         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
84674         declaration.
84676 2007-06-10  Karl Berry  <karl@gnu.org>
84678         * config/srclist.txt: remove gettext entries, Bruno prefers
84679         to update individually.
84681 2007-06-10  Bruno Haible  <bruno@clisp.org>
84683         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
84684         'maxlen'. Ensure only length + width bytes are allocated, not
84685         length + 1 + width.
84687 2007-06-09  Bruno Haible  <bruno@clisp.org>
84689         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
84690         (CHAR_T): Remove macro.
84691         (VASNPRINTF): Update.
84693 2007-06-09  Bruno Haible  <bruno@clisp.org>
84695         * MODULES.html.sh (Unicode string functions): Add the new modules.
84697         * modules/uniconv/u32-conv-to-enc: New file.
84698         * lib/uniconv/u32-conv-to-enc.c: New file.
84699         * modules/uniconv/u32-conv-to-enc-tests: New file.
84700         * tests/uniconv/test-u32-conv-to-enc.c: New file.
84702         * modules/uniconv/u16-conv-to-enc: New file.
84703         * lib/uniconv/u16-conv-to-enc.c: New file.
84704         * lib/uniconv/u-conv-to-enc.h: New file.
84705         * modules/uniconv/u16-conv-to-enc-tests: New file.
84706         * tests/uniconv/test-u16-conv-to-enc.c: New file.
84708         * modules/uniconv/u8-conv-to-enc: New file.
84709         * lib/uniconv/u8-conv-to-enc.c: New file.
84710         * modules/uniconv/u8-conv-to-enc-tests: New file.
84711         * tests/uniconv/test-u8-conv-to-enc.c: New file.
84713         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
84714         u32_conv_to_encoding): New declarations.
84716 2007-06-09  Bruno Haible  <bruno@clisp.org>
84718         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
84720 2007-06-09  Bruno Haible  <bruno@clisp.org>
84722         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
84723         * modules/malloca: Renamed from modules/allocsa, updated.
84724         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
84725         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
84726         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
84727         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
84728         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
84729         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
84730         * modules/xmalloca: Renamed from modules/xallocsa, updated.
84731         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
84732         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
84733         * modules/c-strcasestr (Depends-on): Update.
84734         * lib/c-strcasestr.c: Update.
84735         * modules/c-strstr (Depends-on): Update.
84736         * lib/c-strstr.c: Update.
84737         * modules/canonicalize-lgpl (Depends-on): Update.
84738         * lib/canonicalize-lgpl.c: Update.
84739         * modules/clean-temp (Depends-on): Update.
84740         * lib/clean-temp.c: Update.
84741         * modules/csharpcomp (Depends-on): Update.
84742         * lib/csharpcomp.c: Update.
84743         * modules/csharpexec (Depends-on): Update.
84744         * lib/csharpexec.c: Update.
84745         * modules/javacomp (Depends-on): Update.
84746         * lib/javacomp.c: Update.
84747         * modules/javaexec (Depends-on): Update.
84748         * lib/javaexec.c: Update.
84749         * modules/mbscasestr (Depends-on): Update.
84750         * lib/mbscasestr.c: Update.
84751         * modules/mbsstr (Depends-on): Update.
84752         * lib/mbsstr.c: Update.
84753         * modules/setenv (Depends-on): Update.
84754         * lib/setenv.c: Update.
84755         * modules/strcasestr (Depends-on): Update.
84756         * lib/strcasestr.c: Update.
84757         * modules/striconveha (Depends-on): Update.
84758         * lib/striconveha.c: Update.
84759         * modules/relocatable-prog-wrapper (Files): Update.
84760         * lib/relocwrapper.c: Update.
84761         * build-aux/install-reloc: Update.
84762         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
84764 2007-06-08  Bruno Haible  <bruno@clisp.org>
84766         Port to uClibc.
84767         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
84768         * lib/fpurge.c (fpurge): Likewise.
84769         * lib/freading.c (freading): Likewise.
84770         * lib/fseeko.c (rpl_fseeko): Likewise.
84771         * lib/fseterr.c (fseterr): Likewise.
84772         * lib/fwriting.c (fwriting): Likewise.
84773         * tests/test-fflush.c (main): Avoid a failure on uClibc.
84775 2007-06-08  Bruno Haible  <bruno@clisp.org>
84777         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
84778         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
84779         * modules/gettext (Files): Add m4/intlmacosx.m4.
84781 2007-06-07  Bruno Haible  <bruno@clisp.org>
84783         * modules/localename-tests: New file.
84784         * tests/test-localename.c: New file.
84786         New module 'localename'.
84787         * lib/localename.h: New file.
84788         * lib/localename.c: New file, from GNU gettext.
84789         * m4/localename.m4: New file.
84790         * modules/localename: New file.
84792 2007-06-07  Bruno Haible  <bruno@clisp.org>
84794         Work around the lack of <wchar.h> on some builds of uClibc.
84795         * doc/headers/wchar.texi: Update.
84796         * lib/wchar_.h: Include <wchar.h> only if it exists.
84797         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
84798         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
84799         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
84800         doesn't exist.
84801         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
84802         * modules/mbfile (Depends-on): Add wchar.
84803         * modules/mbiter (Depends-on): Likewise.
84804         * modules/mbuiter (Depends-on): Likewise.
84805         Reported by Simon Josefsson.
84807 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
84809         Work around problem reported by Steven M. Schweda in
84810         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
84811         Tru64 5.1B with the Compaq compiler environment installed declares
84812         an 'isblank' function but does not define it in the C library.
84813         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
84814         * lib/regex_internal.h (isblank): Likewise.
84815         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
84816         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
84818 2007-06-05  Bruno Haible  <bruno@clisp.org>
84820         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
84821         ia64.
84822         * modules/printf-safe: New file.
84823         * modules/fprintf-posix (Depends-on): Add printf-safe.
84824         * modules/printf-posix (Depends-on): Likewise.
84825         * modules/snprintf-posix (Depends-on): Likewise.
84826         * modules/sprintf-posix (Depends-on): Likewise.
84827         * modules/vasnprintf-posix (Depends-on): Likewise.
84828         * modules/vasprintf-posix (Depends-on): Likewise.
84829         * modules/vfprintf-posix (Depends-on): Likewise.
84830         * modules/vprintf-posix (Depends-on): Likewise.
84831         * modules/vsnprintf-posix (Depends-on): Likewise.
84832         * modules/vsprintf-posix (Depends-on): Likewise.
84833         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
84834         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
84835         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
84836         "no" on i386, x86_64, ia64.
84837         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
84838         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
84839         on i386, x86_64, ia64.
84840         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
84841         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
84842         on i386, x86_64, ia64.
84843         * tests/test-vasnprintf-posix.c: Include float.h.
84844         (LDBL80_WORDS): New macro.
84845         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
84846         on i386, x86_64, ia64.
84847         * tests/test-vasprintf-posix.c: Include float.h.
84848         (LDBL80_WORDS): New macro.
84849         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
84850         on i386, x86_64, ia64.
84851         * tests/test-snprintf-posix.c: Include float.h.
84852         * tests/test-sprintf-posix.c: Likewise.
84853         * tests/test-vsnprintf-posix.c: Likewise.
84854         * tests/test-vsprintf-posix.c: Likewise.
84856 2007-06-05  Bruno Haible  <bruno@clisp.org>
84858         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
84859         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
84860         non-IEEE numbers on i386, x86_64, ia64.
84861         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
84862         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
84863         * tests/test-isnanl.h: Include float.h.
84864         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
84866 2007-06-05  Bruno Haible  <bruno@clisp.org>
84868         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
84869         also the %a / %A. Handle the %a / %A code before this extra handling.
84871 2007-06-05  Bruno Haible  <bruno@clisp.org>
84873         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
84874         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
84876 2007-06-05  Bruno Haible  <bruno@clisp.org>
84878         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
84879         typo in variable name.
84881 2007-06-05  Eric Blake  <ebb9@byu.net>
84883         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
84884         Reported by Simon Josefsson.
84886 2007-06-04  Bruno Haible  <bruno@clisp.org>
84888         Avoid test failures on some PowerPC platforms.
84889         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
84890         Define differently for PowerPC.
84891         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
84892         Reported by Gary V. Vaughan <gary@gnu.org>.
84894 2007-06-02  Bruno Haible  <bruno@clisp.org>
84896         Fix test-stdint failure on FreeBSD/ia64.
84897         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
84898         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
84899         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
84900         * doc/headers/stdint.texi: Update.
84902 2007-06-01  Bruno Haible  <bruno@clisp.org>
84904         * tests/test-binary-io.c (main): Pass a third argument to open().
84905         Reported by Gary V. Vaughan <gary@gnu.org>.
84907 2007-06-01  Bruno Haible  <bruno@clisp.org>
84909         * doc/functions/frexpl.texi: Update for mingw.
84911 2007-06-01  Bruno Haible  <bruno@clisp.org>
84913         * tests/test-lseek.c (main): Disable test of errno for invalid third
84914         argument.
84915         * doc/functions/lseek.texi: Update.
84916         Reported by Gary V. Vaughan <gary@gnu.org>.
84918 2007-05-28  Bruno Haible  <bruno@clisp.org>
84920         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
84922 2007-05-31  Eric Blake  <ebb9@byu.net>
84924         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
84925         cross compiling.
84927 2007-05-30  Eric Blake  <ebb9@byu.net>
84928         and Bruno Haible  <bruno@clisp.org>
84930         Work around mingw test failures exposed by m4-1.4.9b.
84931         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
84932         * tests/test-unistd.c: Disable uid_t and git_t tests for the
84933         moment.
84935 2007-05-30  Bruno Haible  <bruno@clisp.org>
84937         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
84938         assuming that they are closed. Needed on HP-UX 11.
84940 2007-05-29  Bruno Haible  <bruno@clisp.org>
84942         Fix a problem with #include_next.
84943         * lib/dirent_.h: Split the double-inclusion guard.
84944         * lib/fcntl_.h: Likewise.
84945         * lib/float_.h: Likewise.
84946         * lib/iconv_.h: Likewise.
84947         * lib/inttypes_.h: Likewise.
84948         * lib/locale_.h: Likewise.
84949         * lib/math_.h: Likewise.
84950         * lib/netinet_in_.h: Likewise.
84951         * lib/search_.h: Likewise.
84952         * lib/signal_.h: Likewise.
84953         * lib/stdint_.h: Likewise.
84954         * lib/stdio_.h: Likewise.
84955         * lib/stdlib_.h: Likewise.
84956         * lib/string_.h: Likewise.
84957         * lib/sys_select_.h: Likewise.
84958         * lib/sys_socket_.h: Likewise.
84959         * lib/sys_stat_.h: Likewise.
84960         * lib/sys_time_.h: Likewise.
84961         * lib/sysexits_.h: Likewise.
84962         * lib/time_.h: Likewise.
84963         * lib/unistd_.h: Likewise.
84964         * lib/wchar_.h: Likewise.
84965         * lib/wctype_.h: Likewise.
84967 2007-05-29  Bruno Haible  <bruno@clisp.org>
84969         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
84970         for the moment.
84972 2007-05-29  Bruno Haible  <bruno@clisp.org>
84974         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
84975         invocation.
84976         Reported by Eric Blake.
84978 2007-05-29  Bruno Haible  <bruno@clisp.org>
84980         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
84981         compiling case.
84983 2007-05-29  Eric Blake  <ebb9@byu.net>
84984             Bruno Haible  <bruno@clisp.org>
84986         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
84987         cross compiles.
84989 2007-05-28  Eric Blake  <ebb9@byu.net>
84991         * modules/closein-tests (test_closein_LDADD): Support test on
84992         cygwin with libtool.
84994 2007-05-28  Bruno Haible  <bruno@clisp.org>
84996         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
84997         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
84998         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
84999         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
85000         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
85001         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
85002         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
85003         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
85004         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
85006 2007-05-28  Eric Blake  <ebb9@byu.net>
85008         Unconditionally include <config.h> in unit tests.
85009         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
85010         * tests/test-allocsa.c, tests/test-arcfour.c,
85011         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
85012         tests/test-array_list.c, tests/test-array_oset.c,
85013         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
85014         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
85015         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
85016         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
85017         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
85018         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
85019         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
85020         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
85021         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
85022         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
85023         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
85024         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
85025         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
85026         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
85027         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
85028         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
85029         test-md5.c, test-memmem.c, test-printf-posix.c,
85030         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
85031         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
85032         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
85033         test-strcasestr.c, test-striconv.c, test-striconveh.c,
85034         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
85035         test-vasnprintf-posix2.c, test-vasnprintf.c,
85036         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
85037         test-vfprintf-posix.c, test-vprintf-posix.c,
85038         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
85039         test-xvasprintf.c: Likewise.
85041 2007-05-28  Bruno Haible  <bruno@clisp.org>
85043         * gnulib-tool (func_import): Remember the --with-tests command-line
85044         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
85045         Reported by Eric Blake.
85047 2007-05-28  Bruno Haible  <bruno@clisp.org>
85049         * modules/ftell-tests: New file.
85050         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
85051         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
85053         * lib/ftell.c: New file.
85054         * modules/ftell: New file.
85055         * m4/ftell.m4: New file.
85056         * doc/functions/ftell.texi: Update.
85057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
85058         REPLACE_FTELL.
85059         * lib/stdio_.h (rpl_ftell): New declaration.
85060         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
85061         REPLACE_FTELL.
85063 2007-05-28  Eric Blake  <ebb9@byu.net>
85065         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
85067 2007-05-28  Bruno Haible  <bruno@clisp.org>
85069         * modules/fseek-tests: New file.
85070         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
85071         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
85073         * lib/fseek.c: New file.
85074         * modules/fseek: New file.
85075         * m4/fseek.m4: New file.
85076         * doc/functions/fseek.texi: Update.
85077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
85078         REPLACE_FSEEK.
85079         * lib/stdio_.h (rpl_fseek): New declaration.
85080         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
85081         REPLACE_FSEEK.
85083 2007-05-28  Bruno Haible  <bruno@clisp.org>
85085         * lib/stdio_.h (fflush): More comments.
85087 2007-05-28  Bruno Haible  <bruno@clisp.org>
85089         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
85090         runtime test.
85092 2007-05-28  Eric Blake  <ebb9@byu.net>
85094         Improve lseek module.
85095         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
85096         * lib/unistd_.h (lseek): Scale back link warning message.
85097         * tests/test-lseek.c: Beef up test.
85098         * tests/test-lseek.sh: Exercise more facets of lseek.
85099         Reported by Bruno Haible.
85101 2007-05-28  Bruno Haible  <bruno@clisp.org>
85103         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
85104         to define.
85106 2007-05-27  Bruno Haible  <bruno@clisp.org>
85108         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
85110 2007-05-27  Bruno Haible  <bruno@clisp.org>
85112         * modules/openmp: New file.
85113         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
85114         Noah Misch.
85116 2007-05-26  Bruno Haible  <bruno@clisp.org>
85118         * modules/chdir-long (Depends-on): Add fchdir.
85119         * modules/chdir-safer (Depends-on): Likewise.
85120         * modules/fts (Depends-on): Likewise.
85121         * modules/fts-lgpl (Depends-on): Likewise.
85122         * modules/openat (Depends-on): Likewise.
85123         * modules/savewd (Depends-on): Likewise.
85125 2007-05-24  Eric Blake  <ebb9@byu.net>
85127         Fix lseek on mingw.
85128         * modules/lseek: New module.
85129         * m4/lseek.m4: New file.
85130         * lib/lseek.c: New file.
85131         * modules/lseek-tests: New file.
85132         * tests/test-lseek.c: New file.
85133         * tests/test-lseek.sh: New file.
85134         * MODULES.html.sh: Document lseek module.
85135         * modules/fflush (Depends-on): Add lseek, fseeko.
85136         * modules/fseeko (Depends-on): Likewise.
85137         * modules/ftello (Depends-on): Likewise.
85138         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
85139         broken.
85140         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
85141         broken.
85142         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
85143         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
85144         * lib/ftello.c (rpl_ftello): Likewise.
85145         * tests/test-fseeko.c (main): Test this.
85146         * tests/test-fseeko.sh: Likewise.
85147         * tests/test-ftello.c (main): Likewise.
85148         * tests/test-ftello.sh: Likewise.
85149         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
85150         implies replacing fseek.
85151         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
85152         HAVE_FTELLO.
85153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
85154         * modules/unistd (Makefile.am): Likewise.
85155         * lib/unistd_.h (lseek): Declare a replacement.
85156         * doc/functions/lseek.texi (lseek): Document this fix.
85157         * doc/functions/fseek.texi (fseek): Likewise.
85158         * doc/functions/ftell.texi (ftell): Likewise.
85160 2007-05-24  Bruno Haible  <bruno@clisp.org>
85162         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
85163         in the printed representation of a NaN.
85164         * tests/test-vasprintf-posix.c (test_function): Likewise.
85165         * tests/test-snprintf-posix.h (test_function): Likewise.
85166         * tests/test-sprintf-posix.h (test_function): Likewise.
85167         Reported by Eric Blake.
85169 2007-05-23  Eric Blake  <ebb9@byu.net>
85171         Fix fseeko/ftello on cygwin 1.5.24.
85172         * doc/functions/fseeko.texi (fseeko): Document the fix.
85173         * doc/functions/ftello.texi (ftello): Document the fix.
85174         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
85175         * doc/functions/stdout.text (stdout): New file.
85176         * doc/functions/stderr.text (stderr): New file.
85177         * doc/gnulib.texi (Function Substitutes): Use new files.
85178         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
85179         prior to 1.7.0.
85180         * tests/test-ftello.c (main): Likewise for ftello.
85181         * tests/test-fseeko.sh: New file.
85182         * tests/test-ftello.sh: New file.
85183         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
85184         with seekable stdin.
85185         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
85186         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
85187         (gl_REPLACE_FSEEKO): New macro.
85188         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
85189         * modules/fseeko (Files): Distribute fseeko.c.
85190         * modules/ftello (Files): Distribute ftello.c.
85191         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
85192         mode.
85193         * lib/ftello.c (rpl_ftello): New file.
85194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
85195         fseeko, ftello.
85196         (gl_STDIN_LARGE_OFFSET): New macro.
85197         * modules/stdio (Makefile.am): Perform the replacement.
85198         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
85200 2007-05-23  Bruno Haible  <bruno@clisp.org>
85202         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
85203         GNULIB_POSIXCHECK is defined.
85205 2007-05-21  Bruno Haible  <bruno@clisp.org>
85207         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
85208         Check also the output for NaN arguments. When cross-compiling, guess
85209         no on IRIX.
85210         * lib/vasnprintf.c: Update comments.
85211         * tests/test-vasnprintf-posix.c (strisnan): New function.
85212         (test_function): Use it.
85213         * tests/test-vasprintf-posix.c (strisnan): New function.
85214         (test_function): Use it.
85215         * tests/test-snprintf-posix.h (strisnan): New function.
85216         (test_function): Use it.
85217         * tests/test-sprintf-posix.h (strisnan): New function.
85218         (test_function): Use it.
85219         Reported by Eric Blake.
85221 2007-05-20  Bruno Haible  <bruno@clisp.org>
85223         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
85224         numbers that fails on BeOS.
85225         * doc/functions/frexpl.texi: Update.
85227 2007-05-20  Jim Meyering  <jim@meyering.net>
85229         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
85230         forced upon us by glibc-2.6.
85232 2007-05-20  Bruno Haible  <bruno@clisp.org>
85234         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
85235         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
85236         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
85237         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
85238         NEED_PRINTF_INFINITE.
85239         (is_infinitel): New function.
85240         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
85241         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
85242         gl_PREREQ_VASNPRINTF_INFINITE.
85243         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
85244         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85245         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
85246         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
85247         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
85248         gl_PREREQ_VASNPRINTF_INFINITE.
85249         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85250         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85251         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85252         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85253         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85254         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85255         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85256         * doc/functions/fprintf.texi: Update.
85257         * doc/functions/printf.texi: Update.
85258         * doc/functions/snprintf.texi: Update.
85259         * doc/functions/sprintf.texi: Update.
85260         * doc/functions/vfprintf.texi: Update.
85261         * doc/functions/vprintf.texi: Update.
85262         * doc/functions/vsnprintf.texi: Update.
85263         * doc/functions/vsprintf.texi: Update.
85265 2007-05-20  Bruno Haible  <bruno@clisp.org>
85267         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
85268         was not found in libc.
85269         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
85271 2007-05-20  Bruno Haible  <bruno@clisp.org>
85273         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
85274         printed as "-nan" instead of "nan".
85275         * tests/test-vasprintf-posix.c (test_function): Likewise.
85276         * tests/test-snprintf-posix.h (test_function): Likewise.
85277         * tests/test-sprintf-posix.h (test_function): Likewise.
85278         Needed for HP-UX 11.
85280 2007-05-20  Jim Meyering  <jim@meyering.net>
85282         Fix buggy test for the fchownat-deref bug.
85283         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
85284         symlink required for the run-test.  Without it, this test would
85285         always declare that fchownat doesn't work, and client code would
85286         unnecessarily use the replacement function with fixed libc.
85287         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
85288         Reported by Greg Schafer.
85290 2007-05-19  Bruno Haible  <bruno@clisp.org>
85292         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
85293         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
85294         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
85295         Needed for IRIX 6.5 and Solaris 2.5.1.
85297 2007-05-19  Bruno Haible  <bruno@clisp.org>
85299         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
85300         (test_function): Skip tests involving -0.0 on platforms where
85301         -0.0 = 0.0.
85302         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
85303         (test_function): Skip tests involving -0.0 on platforms where
85304         -0.0 = 0.0.
85305         * tests/test-snprintf-posix.h (have_minus_zero): New function.
85306         (test_function): Skip tests involving -0.0 on platforms where
85307         -0.0 = 0.0.
85308         * tests/test-sprintf-posix.h (have_minus_zero): New function.
85309         (test_function): Skip tests involving -0.0 on platforms where
85310         -0.0 = 0.0.
85311         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
85312         tests.
85313         * tests/test-printf-posix.h (test_function): Likewise.
85314         * tests/test-printf-posix.output: Remove all -0.0 related results.
85315         Needed for IRIX 6.5.
85317 2007-05-19  Bruno Haible  <bruno@clisp.org>
85319         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
85320         printed as "nan0x7fffffff" instead of "nan".
85321         * tests/test-vasprintf-posix.c (test_function): Likewise.
85322         * tests/test-snprintf-posix.h (test_function): Likewise.
85323         * tests/test-sprintf-posix.h (test_function): Likewise.
85324         * tests/test-fprintf-posix.h (NaN): Remove macro.
85325         (test_function): Remove all NaN related tests.
85326         * tests/test-printf-posix.h (NaN): Remove macro.
85327         (test_function): Remove all NaN related tests.
85328         * tests/test-printf-posix.output: Remove all NaN related results.
85329         Needed for IRIX 6.5.
85331 2007-05-19  Bruno Haible  <bruno@clisp.org>
85333         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
85334         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
85336 2007-05-19  Bruno Haible  <bruno@clisp.org>
85338         * lib/float_.h: New file.
85339         * m4/float_h.m4: New file.
85340         * modules/float: New file.
85341         * modules/isnanl (Dependencies): Add float.
85342         * modules/isnanl-nolibm (Dependencies): Likewise.
85343         * modules/mathl (Dependencies): Likewise.
85344         * modules/printf-frexpl (Dependencies): Likewise.
85345         * modules/signbit (Dependencies): Likewise.
85346         * modules/vasnprintf (Dependencies): Likewise.
85347         * doc/headers/float.texi: Update.
85349 2007-05-19  Jim Meyering  <jim@meyering.net>
85351         * lib/utimens.c (gl_futimens): Rename from futimens,
85352         now that glibc-2.6 declares futimens.
85353         * lib/utimens.h: Likewise.
85355 2007-05-19  Bruno Haible  <bruno@clisp.org>
85357         Avoid test failures on mingw.
85358         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
85359         * tests/test-printf-posix.sh: Likewise.
85360         * tests/test-vfprintf-posix.sh: Likewise.
85361         * tests/test-vprintf-posix.sh: Likewise.
85363 2007-05-19  Bruno Haible  <bruno@clisp.org>
85365         Fix *printf result for NaN, Inf, -0.0 on mingw.
85366         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
85367         * lib/vasnprintf.c: Include math.h and isnan.h.
85368         (is_infinite_or_zero): New function.
85369         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
85370         values in the %f, %F, %e, %E, %g, %G directives.
85371         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
85372         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85373         gl_PRINTF_INFINITE and test its result. Invoke
85374         gl_PREREQ_VASNPRINTF_INFINITE.
85375         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85376         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85377         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85378         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85379         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85380         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85381         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85382         * doc/functions/fprintf.texi: Update.
85383         * doc/functions/printf.texi: Update.
85384         * doc/functions/snprintf.texi: Update.
85385         * doc/functions/sprintf.texi: Update.
85386         * doc/functions/vfprintf.texi: Update.
85387         * doc/functions/vprintf.texi: Update.
85388         * doc/functions/vsnprintf.texi: Update.
85389         * doc/functions/vsprintf.texi: Update.
85391 2007-05-19  Bruno Haible  <bruno@clisp.org>
85393         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
85394         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
85395         Instead of multiplying with 10^k, set extra_zeroes to k.
85396         (scale10_round_long_double): Remove function.
85398 2007-05-18  Bruno Haible  <bruno@clisp.org>
85400         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
85401         introduced on 2007-05-06.
85403 2007-05-18  Bruno Haible  <bruno@clisp.org>
85405         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
85406         %g directives.
85407         * tests/test-vasprintf-posix.c (test_function): Likewise.
85408         * tests/test-snprintf-posix.h (test_function): Likewise.
85409         * tests/test-sprintf-posix.h (test_function): Likewise.
85411 2007-05-18  Bruno Haible  <bruno@clisp.org>
85413         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
85414         (strmatch): New function.
85415         (test_function): Test the %f directive on numbers of various exponents.
85416         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
85417         (strmatch): New function.
85418         (test_function): Test the %f directive on numbers of various exponents.
85419         * tests/test-snprintf-posix.h (strmatch): New function.
85420         (test_function): Test the %f directive on numbers of various exponents.
85421         * tests/test-sprintf-posix.h (strmatch): New function.
85422         (test_function): Test the %f directive on numbers of various exponents.
85423         * tests/test-snprintf-posix.c (SIZEOF): New macro.
85424         * tests/test-sprintf-posix.c (SIZEOF): New macro.
85425         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
85426         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
85428 2007-05-18  Bruno Haible  <bruno@clisp.org>
85430         Add support for 'long double' number output.
85431         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
85432         * lib/vasnprintf.c: Include math.h and float+.h.
85433         (mp_limb_t): New type.
85434         (GMP_LIMB_BITS): New macro.
85435         (mp_twolimb_t): New type.
85436         (GMP_TWOLIMB_BITS): New macro.
85437         (mpn_t): New type.
85438         (multiply, divide, convert_to_decimal, decode_long_double,
85439         scale10_round_long_double, scale10_round_decimal_long_double,
85440         floorlog10l): New functions.
85441         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
85442         for the %f, %F, %e, %E, %g, %G directives.
85443         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
85444         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85445         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
85446         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
85447         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85448         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85449         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85450         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85451         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85452         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85453         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85454         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
85455         * modules/snprintf-posix (Depends-on): Likewise.
85456         * modules/sprintf-posix (Depends-on): Likewise.
85457         * modules/vasnprintf-posix (Depends-on): Likewise.
85458         * modules/vasprintf-posix (Depends-on): Likewise.
85459         * modules/vfprintf-posix (Depends-on): Likewise.
85460         * modules/vsnprintf-posix (Depends-on): Likewise.
85461         * modules/vsprintf-posix (Depends-on): Likewise.
85462         * modules/vasnprintf (Files): Add lib/float+.h.
85463         * doc/functions/fprintf.texi: Update.
85464         * doc/functions/printf.texi: Update.
85465         * doc/functions/snprintf.texi: Update.
85466         * doc/functions/sprintf.texi: Update.
85467         * doc/functions/vfprintf.texi: Update.
85468         * doc/functions/vprintf.texi: Update.
85469         * doc/functions/vsnprintf.texi: Update.
85470         * doc/functions/vsprintf.texi: Update.
85472 2007-05-18  Bruno Haible  <bruno@clisp.org>
85474         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
85476 2007-05-18  Bruno Haible  <bruno@clisp.org>
85478         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
85479         for printing 64-bit integers. Needed for mingw.
85481 2007-05-18  Bruno Haible  <bruno@clisp.org>
85483         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
85484         gl_FUNC_FREXPL_WORKS.
85485         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
85487 2007-05-18  Bruno Haible  <bruno@clisp.org>
85489         * modules/frexpl-nolibm-tests: New file.
85491         * modules/frexpl-nolibm: New file.
85492         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
85494 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85496         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
85497         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
85498         GCC 4.2, which otherwise issues a lot of warnings.
85499         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
85500         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
85501         Likewise.
85502         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
85503         * modules/iconv_open (iconv.h): Likewise.
85504         * modules/locale (locale.h): Likewise.
85505         * modules/netinet_in (netinet/in.h): Likewise.
85506         * modules/sys_select (sys_select.h): Likewise.
85507         * modules/sys_socket (sys/socket.h): Likewise.
85508         * modules/sys_stat (sys/stat.h): Likewise.
85509         * modules/sysexits (sysexits.h): Likewise.
85510         * modules/unistd (unistd.h): Likewise.
85512 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85514         * modules/closein-tests (Makefile.am): Distribute
85515         `test-closein.sh'.
85517 2007-05-17  Bruno Haible  <bruno@clisp.org>
85519         * tests/test-printf-posix.output: Renamed from
85520         tests/test-fprintf-posix.out.
85521         * modules/fprintf-posix-tests: Update.
85522         * modules/printf-posix-tests: Update.
85523         * modules/vfprintf-posix-tests: Update.
85524         * modules/vprintf-posix-tests: Update.
85525         * tests/test-fprintf-posix.sh: Update.
85526         * tests/test-printf-posix.sh: Update.
85527         * tests/test-vfprintf-posix.sh: Update.
85528         * tests/test-vprintf-posix.sh: Update.
85529         Reported by Ralf Wildenhues.
85531 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85533         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
85534         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
85535         GCC 4.2, which otherwise issues a lot of warnings.
85536         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
85537         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
85538         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
85539         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
85540         it should no longer be needed.
85541         * lib/string_.h: Likewise.
85542         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
85543         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
85544         * modules/inttypes (inttypes.h): Likewise.
85545         * modules/math (math.h): Likewise.
85546         * modules/search (search.h): Likewise.
85547         * modules/signal (signal.h): Likewise.
85548         * modules/stdint (stdint.h): Likewise.
85549         * modules/stdio (stdio.h): Likewise.
85550         * modules/stdlib (stdlib.h): Likewise.
85551         * modules/string (string.h): Likewise.
85552         * modules/sys_time (sys/time.h): Likewise.
85553         * modules/time (time.h): Likewise.
85554         * modules/wchar (wchar.h): Likewise.
85555         * modules/wctype (wtype.h): Likewise.
85557 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
85559         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
85561 2007-05-13  Bruno Haible  <bruno@clisp.org>
85563         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
85564         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
85565         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
85566         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
85567         (gl_PREREQ_STRTOK_R): Don't require it here.
85569 2007-05-13  Bruno Haible  <bruno@clisp.org>
85571         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
85572         when used in C++ mode.
85574 2007-05-12  Bruno Haible  <bruno@clisp.org>
85576         * lib/linebuffer.h: Tweak doc.
85577         * lib/linebuffer.c: Likewise.
85579 2007-05-12  James Youngman  <jay@gnu.org>
85581         * lib/linebuffer.c (readlinebuffer_delim): New function,
85582         like readlinebuffer, but use a caller-specified delimiter.
85583         (readlinebuffer): Just call readlinebuffer_delim with '\n'
85584         as the delimiter.
85585         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
85587 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
85589         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
85590         * modules/openat (Files): Remove openat-die.c.
85591         (Depends-on): Add openat-die.
85592         * modules/openat-die: New module.
85594 2007-05-06  Bruno Haible  <bruno@clisp.org>
85596         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
85597         Update with info about Cygwin.
85598         * doc/functions/fprintf.texi: Update.
85599         * doc/functions/printf.texi: Update.
85600         * doc/functions/snprintf.texi: Update.
85601         * doc/functions/sprintf.texi: Update.
85602         * doc/functions/vfprintf.texi: Update.
85603         * doc/functions/vprintf.texi: Update.
85604         * doc/functions/vsnprintf.texi: Update.
85605         * doc/functions/vsprintf.texi: Update.
85606         Reported by Eric Blake.
85608 2007-05-06  Bruno Haible  <bruno@clisp.org>
85610         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
85611         padding ourselves for the floating-point directives.
85612         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
85613         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
85614         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85615         gl_PRINTF_FLAG_ZERO and test its result. Invoke
85616         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
85617         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85618         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
85619         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85620         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85621         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85622         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85623         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85624         * tests/test-snprintf-posix.h (test_function): Also check the width
85625         and some flags in the %f directive.
85626         * tests/test-sprintf-posix.h (test_function): Likewise.
85627         * tests/test-vasnprintf-posix.c (test_function): Likewise.
85628         * tests/test-vasprintf-posix.c (test_function): Likewise.
85629         * doc/functions/fprintf.texi: Update.
85630         * doc/functions/printf.texi: Update.
85631         * doc/functions/snprintf.texi: Update.
85632         * doc/functions/sprintf.texi: Update.
85633         * doc/functions/vfprintf.texi: Update.
85634         * doc/functions/vprintf.texi: Update.
85635         * doc/functions/vsnprintf.texi: Update.
85636         * doc/functions/vsprintf.texi: Update.
85638 2007-05-06  Bruno Haible  <bruno@clisp.org>
85640         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
85641         pass the ' flag character to sprintf or snprintf.
85642         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
85643         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
85644         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85645         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
85646         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
85647         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85648         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
85649         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85650         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85651         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85652         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85653         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85654         * tests/test-snprintf-posix.h (test_function): Also check the grouping
85655         flag.
85656         * tests/test-sprintf-posix.h (test_function): Likewise.
85657         * tests/test-vasnprintf-posix.c (test_function): Likewise.
85658         * tests/test-vasprintf-posix.c (test_function): Likewise.
85659         * doc/functions/fprintf.texi: Update.
85660         * doc/functions/printf.texi: Update.
85661         * doc/functions/snprintf.texi: Update.
85662         * doc/functions/sprintf.texi: Update.
85663         * doc/functions/vfprintf.texi: Update.
85664         * doc/functions/vprintf.texi: Update.
85665         * doc/functions/vsnprintf.texi: Update.
85666         * doc/functions/vsprintf.texi: Update.
85668 2007-05-01  Bruno Haible  <bruno@clisp.org>
85670         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
85672 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
85674         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
85675         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
85677 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
85679         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
85680         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
85681         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
85683 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
85685         * lib/argp-help.c (struct hol_entry): New member `ord'.
85686         (HOL_ENTRY_PTRCMP): Use ord for comparison
85687         (hol_sort): Initialize ord.
85689 2007-05-01  Bruno Haible  <bruno@clisp.org>
85691         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
85692         Reported by Eric Blake.
85693         * doc/gnulib.texi (Function Substitutes): Update.
85695 2007-05-01  Bruno Haible  <bruno@clisp.org>
85697         * doc/functions.texi: Remove file, now redundant through
85698         doc/functions/*.texi.
85700 2007-05-01  Bruno Haible  <bruno@clisp.org>
85702         * modules/argp (Depends-on): Add sleep.
85704 2007-05-01  Bruno Haible  <bruno@clisp.org>
85706         * modules/sleep-tests: New file.
85707         * tests/test-sleep.c: New file.
85709         * modules/sleep: New file.
85710         * lib/sleep.c: New file.
85711         * m4/sleep.m4: New file.
85712         * lib/unistd_.h (sleep): New declaration.
85713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
85714         HAVE_SLEEP.
85715         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
85716         * doc/functions/sleep.texi: Document the sleep module.
85718 2007-05-01  Bruno Haible  <bruno@clisp.org>
85720         * lib/sigprocmask.h: Remove file.
85721         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
85722         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
85723         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
85724         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
85725         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
85726         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
85727         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
85728         HAVE_SIGSET_T as a shell variable.
85729         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
85730         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
85731         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
85732         (Depends-on): Add signal. Remove verify.
85733         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
85734         (Include): Mention <signal.h> instead of sigprocmask.h.
85735         * NEWS: Mention the change.
85736         * lib/fatal-signal.c: Don't include sigprocmask.h.
85738 2007-05-01  Bruno Haible  <bruno@clisp.org>
85740         * modules/signal: New file.
85741         * lib/signal_.h: New file.
85742         * m4/signal_h.m4: New file.
85744 2007-05-01  Bruno Haible  <bruno@clisp.org>
85746         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
85747         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
85748         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
85749         HAVE_WCTYPE_CTMP_BUG into wctype.h.
85751 2007-05-01  Bruno Haible  <bruno@clisp.org>
85753         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
85754         configure time.
85755         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
85756         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
85757         * modules/sys_stat (Makefile.am): Substitute their values into
85758         sys/stat.h.
85760 2007-05-01  Bruno Haible  <bruno@clisp.org>
85762         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
85763         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
85764         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
85766 2007-05-01  Bruno Haible  <bruno@clisp.org>
85768         * doc/header/assert.texi: Undo last change: don't mention the gnulib
85769         'assert' module here.
85771 2007-05-01  Bruno Haible  <bruno@clisp.org>
85773         * doc/functions/*.texi: New files.
85774         * doc/functions/google-ranking.txt: New file.
85775         * doc/gnulib.texi (Function Substitutes): New chapter.
85776         (ctime, inet_ntoa): Remove sections.
85777         * doc/ctime.texi: Remove file.
85778         * doc/inet_ntoa.texi: Remove file.
85779         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
85780         dependencies.
85781         (%.info): New rule, specifying a --reference-limit.
85783 2007-05-01  Bruno Haible  <bruno@clisp.org>
85785         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
85787 2007-05-01  Bruno Haible  <bruno@clisp.org>
85789         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
85790         the portability of 'mkdir' to mingw systems.
85792 2007-05-01  Bruno Haible  <bruno@clisp.org>
85794         * doc/headers/google-ranking.txt: New file.
85796 2007-04-30  Eric Blake  <ebb9@byu.net>
85798         Prefer fseeko to fseek.
85799         * modules/getpass (Depends-on): Add fseeko.
85800         * lib/getpass.c (getpass): Use fseeko, not fseek.
85802 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
85804         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
85805         assumes the sorting is stable, while most qsort implementations
85806         are not.  Use argument addresses to ensure they never compare as
85807         equal.
85809         * tests/test-argp-2.sh (usage-indent test): Fix output
85810         (func_compare): Restore diff options
85811         * tests/test-argp.c: Restore #include "progname.h"
85813 2007-04-29  Bruno Haible  <bruno@clisp.org>
85815         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
85816         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85817         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
85818         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85819         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
85820         (configure.ac): Define CHECK_SNPRINTF_POSIX.
85821         (TESTS, check_PROGRAMS): Add test-snprintf.
85822         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
85823         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
85824         (TESTS, check_PROGRAMS): Add test-vsnprintf.
85825         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
85826         assertions that fail on HP-UX, OSF/1, or IRIX.
85827         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
85829 2007-04-29  Bruno Haible  <bruno@clisp.org>
85831         * MODULES.html.sh (posix_functions): Remove 'contents'.
85833 2007-04-29  Karl Berry  <karl@gnu.org>
85835         * config/srclist.txt (gendocs_template_min): new entry.
85837 2007-04-29  Bruno Haible  <bruno@clisp.org>
85839         Work around fpurge bug on BSD systems.
85840         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
85841         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
85842         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
85843         fpurge to rpl_fpurge if the system already has this function.
85844         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
85845         the case where the system already has this function. Correct invariants
85846         on BSD systems.
85847         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
85848         BSD systems.
85850 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
85852         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
85853         proposed by Sven Verdoolaege.
85855         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
85856         options.
85857         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
85858         (usage and help tests): Update
85860 2007-04-29  Bruno Haible  <bruno@clisp.org>
85862         * tests/test-fflush.c (main): Use a file of size 17, not 10.
85863         Print more information in case of failure. Disable a test on BeOS.
85865 2007-04-29  Bruno Haible  <bruno@clisp.org>
85867         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
85868         This helps debugging on systems on which no gdb is available.
85870 2007-04-29  Bruno Haible  <bruno@clisp.org>
85872         * lib/freading.h: Improve comments.
85873         * lib/fwriting.h: Likewise.
85874         * tests/test-freading.c (main): Don't check freading immediately after
85875         repositioning. Needed for glibc.
85877 2007-04-29  Bruno Haible  <bruno@clisp.org>
85879         * lib/freading.c (freading): Trivial simplification.
85881 2007-04-28  Bruno Haible  <bruno@clisp.org>
85883         * tests/test-fwriting.c (main): Also test the interaction between
85884         fflush and fwriting.
85885         * modules/fwriting-tests (Depends-on): Add fflush.
85887         * tests/test-freading.c (main): Also test the interaction between
85888         fflush and freading.
85889         * modules/freading-tests (Depends-on): Add fflush.
85891 2007-04-28  Bruno Haible  <bruno@clisp.org>
85893         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
85894         fseeko and ftello.
85895         Suggested by Eric Blake.
85897 2007-04-28  Jim Meyering  <jim@meyering.net>
85899         Avoid false-negative in gl_STDINT_H's C99 conformance test.
85900         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
85901         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
85903 2007-04-27  Eric Blake  <ebb9@byu.net>
85905         * doc/headers/assert.texi (assert.h): Document assert module use.
85907 2007-04-27  Bruno Haible  <bruno@clisp.org>
85909         * doc/headers/*.texi: New files.
85910         * doc/gnulib.texi (Header File Substitutes): New chapter.
85911         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
85912         dependencies.
85913         (standards.info ,standards.html, standards.dvi): Update dependencies.
85914         (mostlyclean, clean): New targets.
85916 2007-04-27  Bruno Haible  <bruno@clisp.org>
85918         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
85919         * modules/sysexits (Files, Makefile.am): Update.
85921         * lib/sys_socket_.h: Renamed from lib/socket_.h.
85922         * modules/sys_socket (Files, Makefile.am): Update.
85924         * lib/sys_stat_.h: Renamed from lib/stat_.h.
85925         * modules/sys_stat (Files, Makefile.am): Update.
85927 2007-04-27  Eric Blake  <ebb9@byu.net>
85929         * lib/freading.h: Improve comments.
85930         * lib/fwriting.h: Likewise.
85931         * lib/fflush.c: Likewise.
85933         Fix closein for mingw.
85934         * modules/closein-tests: Add tests for closein.
85935         * tests/test-closein.c: New file.
85936         * tests/test-closein.sh: Likewise.
85937         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
85938         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
85940 2007-04-27  Bruno Haible  <bruno@clisp.org>
85942         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
85943         version is < 6.
85944         * lib/math_.h [__DECC]: Likewise.
85945         * lib/stdio_.h [__DECC]: Likewise.
85946         * lib/stdlib_.h [__DECC]: Likewise.
85947         * lib/string_.h [__DECC]: Likewise.
85948         * lib/time_.h [__DECC]: Likewise.
85949         * lib/wchar_.h [__DECC]: Likewise.
85950         * lib/wctype_.h [__DECC]: Likewise.
85952 2007-04-27  Bruno Haible  <bruno@clisp.org>
85954         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
85956 2007-04-27  Bruno Haible  <bruno@clisp.org>
85958         * lib/fflush.c: Add comments.
85959         * modules/fpurge-tests (Depends-on): Add fflush.
85960         * modules/freadable-tests (Depends-on): Likewise.
85961         * modules/fwritable-tests (Depends-on): Likewise.
85963 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
85965         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
85966         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
85967         Report by Bruno Haible <bruno@clisp.org>.
85969 2007-04-26  Eric Blake  <ebb9@byu.net>
85971         Fix fflush on mingw.
85972         * modules/fflush (Depends-on): Add freading.
85973         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
85974         but unread data.
85976 2007-04-26  Eric Blake  <ebb9@byu.net>
85977         and Bruno Haible  <bruno@clisp.org>
85979         Implement freading and fwriting.
85980         * lib/freading.c: New file.
85981         * lib/freading.h: Likewise.
85982         * m4/freading.m4: Likewise.
85983         * modules/freading: Likewise.
85984         * modules/freading-tests: Likewise.
85985         * tests/test-freading.c: Likewise.
85986         * lib/fwriting.c: New file.
85987         * lib/fwriting.h: Likewise.
85988         * m4/fwriting.m4: Likewise.
85989         * modules/fwriting: Likewise.
85990         * modules/fwriting-tests: Likewise.
85991         * tests/test-fwriting.c: Likewise.
85992         * MODULES.html.sh (File stream based Input/Output): Mention them.
85994 2007-04-26  Bruno Haible  <bruno@clisp.org>
85996         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
85997         'long' when we assume it.
85998         Suggested by Eric Blake.
86000 2007-04-26  Bruno Haible  <bruno@clisp.org>
86002         Ensure fseeko, ftello are declared on glibc systems.
86003         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
86004         * modules/fseeko (configure.ac-early): Likewise.
86005         * modules/ftello (configure.ac-early): Likewise.
86006         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
86007         AC_FUNC_FSEEKO for this.
86008         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
86009         (gl_CHECK_FSEEKO): Remove macro.
86011 2007-04-26  Bruno Haible  <bruno@clisp.org>
86013         * tests/test-fflush.c (main): Also check the ftell result after
86014         fflush and fseek/fseeko.
86015         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
86016         file descriptor position cache in the stream.
86017         * lib/fseeko.c (rpl_fseeko): Likewise.
86019 2007-04-26  Bruno Haible  <bruno@clisp.org>
86021         * modules/fflush-tests (Depends-on): Add fseeko.
86023 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
86024             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86026         * lib/argz_.h: ensure error_t definition is obtained in same
86027         mechanism system argz.h would have.
86028         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
86029         argz facilities are known bad.  Err on the side of caution if
86030         cross-compiling.
86032 2007-04-25  Eric Blake  <ebb9@byu.net>
86034         * lib/fpurge.c (includes): Use stdlib.h for free.
86035         * tests/test-fflush.c (main): Also test fflush-fseeko.
86037 2007-04-25  Bruno Haible  <bruno@clisp.org>
86039         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
86040         * lib/fseeko.c: New file.
86041         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
86042         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
86043         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
86044         gl_FUNC_FSEEKO.
86045         (gl_FUNC_FSEEKO): Invoke it.
86046         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
86047         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
86048         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
86050 2007-04-25  Bruno Haible  <bruno@clisp.org>
86052         * modules/fflush (Depends-on): Add ftello.
86054 2007-04-25  Bruno Haible  <bruno@clisp.org>
86056         * modules/ftello-tests: New file.
86057         * tests/test-ftello.c: New file.
86059         * modules/ftello: New file.
86060         * m4/ftello.m4: New file.
86061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
86062         HAVE_FTELLO.
86063         * lib/stdio_.h (ftello): New declaration.
86064         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
86065         HAVE_FTELLO.
86067 2007-04-25  Bruno Haible  <bruno@clisp.org>
86069         * modules/fseeko-tests: New file.
86070         * tests/test-fseeko.c: New file.
86072         * modules/fseeko: New file.
86073         * m4/fseeko.m4: New file.
86074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
86075         HAVE_FSEEKO.
86076         * lib/stdio_.h (fseeko): New declaration.
86077         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
86078         HAVE_FSEEKO.
86080 2007-04-25  Bruno Haible  <bruno@clisp.org>
86082         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
86084 2007-04-25  Bruno Haible  <bruno@clisp.org>
86086         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
86087         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
86088         * tests/test-unistd.c: Likewise.
86089         * tests/test-fcntl.c: Likewise.
86091 2007-04-23  Eric Blake  <ebb9@byu.net>
86093         * lib/fflush.c: Fix missing include.
86094         Reported by Bruno Haible.
86096 2007-04-23  Bruno Haible  <bruno@clisp.org>
86098         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
86099         Reported by Eric Blake.
86101 2007-04-23  Bruno Haible  <bruno@clisp.org>
86103         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
86105 2007-04-23  Bruno Haible  <bruno@clisp.org>
86107         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
86109 2007-04-23  Bruno Haible  <bruno@clisp.org>
86111         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
86112         Needed on HP-UX 11.
86114 2007-04-16  Eric Blake  <ebb9@byu.net>
86116         Make fflush rely on fpurge.
86117         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
86118         open coding all variants.
86119         * modules/fflush (Depends-on): Add fpurge and unistd.
86120         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
86121         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
86123         Fix --with-tests compilation on cygwin.
86124         * modules/argmatch-tests (Makefile.am): List gnulib library first
86125         in LDADD.
86126         * modules/argp-tests (Makefile.am): Likewise.
86127         * modules/array-list-tests (Makefile.am): Likewise.
86128         * modules/array-oset-tests (Makefile.am): Likewise.
86129         * modules/avltree-list-tests (Makefile.am): Likewise.
86130         * modules/avltree-oset-tests (Makefile.am): Likewise.
86131         * modules/avltreehash-list-tests (Makefile.am): Likewise.
86132         * modules/carray-list-tests (Makefile.am): Likewise.
86133         * modules/dirname-tests (Makefile.am): Likewise.
86134         * modules/frexp-tests (Makefile.am): Likewise.
86135         * modules/isnanl-tests (Makefile.am): Likewise.
86136         * modules/linked-list-tests (Makefile.am): Likewise.
86137         * modules/linkedhash-list-tests (Makefile.am): Likewise.
86138         * modules/lock-tests (Makefile.am): Likewise.
86139         * modules/rbtree-list-tests (Makefile.am): Likewise.
86140         * modules/rbtree-oset-tests (Makefile.am): Likewise.
86141         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
86142         * modules/tls-tests (Makefile.am): Likewise.
86143         * modules/tsearch-tests (Makefile.am): Likewise.
86144         * modules/xvasprintf-tests (Makefile.am): Likewise.
86146         Fix fpurge for cygwin.
86147         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
86148         value.
86149         * modules/fpurge-tests (Depends-on): Clean up trash.
86151 2007-04-16  Simon Josefsson  <simon@josefsson.org>
86153         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
86155         * m4/autobuild.m4: Re-indent.
86157 2007-04-13  Bruno Haible  <bruno@clisp.org>
86159         * modules/fpurge-tests: New file.
86160         * tests/test-fpurge.c: New file.
86162         * modules/fpurge: New file.
86163         * lib/fpurge.h: New file.
86164         * lib/fpurge.c: New file.
86165         * m4/fpurge.m4: New file.
86167 2007-04-13  Bruno Haible  <bruno@clisp.org>
86169         * modules/fbufmode-tests: New file.
86170         * tests/test-fbufmode.c: New file.
86172         * modules/fbufmode: New file.
86173         * lib/fbufmode.h: New file.
86174         * lib/fbufmode.c: New file.
86175         * m4/fbufmode.m4: New file.
86177 2007-04-13  Bruno Haible  <bruno@clisp.org>
86179         * modules/fwritable-tests: New file.
86180         * tests/test-fwritable.c: New file.
86182         * modules/fwritable: New file.
86183         * lib/fwritable.h: New file.
86184         * lib/fwritable.c: New file.
86185         * m4/fwritable.m4: New file.
86187 2007-04-13  Bruno Haible  <bruno@clisp.org>
86189         * modules/freadable-tests: New file.
86190         * tests/test-freadable.c: New file.
86192         * modules/freadable: New file.
86193         * lib/freadable.h: New file.
86194         * lib/freadable.c: New file.
86195         * m4/freadable.m4: New file.
86197 2007-04-13  Bruno Haible  <bruno@clisp.org>
86199         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
86200         MOSTLYCLEANFILES.
86202 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86204         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
86205         gzip bootstrap.conf to avoid dragging in i18n machinery.
86206         (gnulib_tool_option): Use it.
86208 2007-04-13  Bruno Haible  <bruno@clisp.org>
86210         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
86211         %F directives.
86212         * tests/test-vasprintf-posix.c (test_function): Likewise.
86213         * tests/test-snprintf-posix.h (test_function): Likewise.
86214         * tests/test-sprintf-posix.h (test_function): Likewise.
86215         * tests/test-fprintf-posix.h (test_function): Likewise.
86216         * tests/test-printf-posix.h (test_function): Likewise.
86217         * tests/test-fprintf-posix.out: Likewise.
86219 2007-04-13  Bruno Haible  <bruno@clisp.org>
86221         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
86222         * modules/tls-tests (configure.ac): Likewise.
86223         Reported by Arto C. Nirkko <anirkko@insel.ch>.
86225 2007-04-13  Bruno Haible  <bruno@clisp.org>
86227         * lib/tls.c (glthread_tls_get): Fix return type.
86228         Patch by Arto C. Nirkko <anirkko@insel.ch>.
86230 2007-04-12  Eric Blake  <ebb9@byu.net>
86232         * modules/gettime (Depends-on): Remove gettime.
86233         Reported by Dmitry V. Levin.
86235 2007-04-12  Bruno Haible  <bruno@clisp.org>
86237         * modules/fflush (Include): Mention <stdio.h>.
86238         * modules/strtoimax (Include): Mention <inttypes.h>.
86239         * modules/strtoumax (Include): Likewise.
86241 2007-04-12  Eric Blake  <ebb9@byu.net>
86243         * .cvsignore: New file.
86244         * .gitignore: Likewise.
86246 2007-04-12  Bruno Haible  <bruno@clisp.org>
86248         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
86249         not before, since $(LDADD) often contains libgnu.a.
86250         * modules/striconv-tests (test_striconv_LDADD): Likewise.
86251         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
86252         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
86253         Needed on Cygwin.
86255 2007-04-12  Eric Blake  <ebb9@byu.net>
86257         Work around glibc's failure to flush stdin on fclose.
86258         * lib/closein.c (close_stdin): Flush stdin before closing.
86260         Work around glibc's failure to reset seekable stdin on exit.
86261         * modules/closein: New module.
86262         * lib/closein.c: New file.
86263         * lib/closein.h: Likewise.
86264         * m4/closein.m4: Likewise.
86265         * MODULES.html.sh (File stream based Input/Output): Document it.
86267 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86269         * gnulib-tool: Rename generated 'autobuild' script to
86270         'do-autobuild' in --create-megatestdir output.
86272         * doc/gnulib.texi (Build robot for gnulib): Fix.
86274 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86276         * modules/sysexits (Depends-on): Add absolute-header.
86278 2007-04-12  Eric Blake  <ebb9@byu.net>
86280         No need to preserve errno on success.
86281         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
86282         Reported by Bruno Haible.
86284 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86286         * MODULES.html.sh (Support for maintaining and releasing
86287         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
86289 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86291         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
86293 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86295         * modules/autobuild: New module.
86297         * m4/autobuild.m4: New file.
86299 2007-04-11  Bruno Haible  <bruno@clisp.org>
86301         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
86302         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
86303         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
86304         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
86305         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86306         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86307         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86308         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86309         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86310         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86311         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
86312         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86313         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86314         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
86315         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86316         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86317         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
86318         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86319         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86320         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
86321         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86322         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86323         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
86324         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86325         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86326         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
86327         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86328         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86329         Reported by Eric Blake.
86331 2007-04-11  Bruno Haible  <bruno@clisp.org>
86333         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
86335 2007-04-10  Bruno Haible  <bruno@clisp.org>
86337         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
86338         for NaN and Infinity. Needed on FreeBSD 6.1.
86339         * tests/test-vasnprintf-posix.c (test_function): Undo last change
86340         regarding results for "%010a" of Infinity and NaN.
86341         * tests/test-vasprintf-posix.c (test_function): Likewise.
86342         * tests/test-snprintf-posix.h (test_function): Likewise.
86343         * tests/test-sprintf-posix.h (test_function): Likewise.
86344         * tests/test-fprintf-posix.h (test_function): Likewise.
86345         * tests/test-printf-posix.h (test_function): Likewise.
86346         * tests/test-fprintf-posix.out: Likewise.
86348 2007-04-10  Bruno Haible  <bruno@clisp.org>
86350         * modules/locale-tests: New file.
86351         * tests/test-locale.c: New file.
86353         * modules/locale: New file.
86354         * lib/locale_.h: New file.
86355         * m4/locale_h.m4: New file.
86357 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
86358             Bruno Haible  <bruno@clisp.org>
86360         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
86361         be determined, test for availability of the copysignf, copysign,
86362         copysignl functions.
86363         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
86364         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
86365         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
86367 2007-04-09  Eric Blake  <ebb9@byu.net>
86369         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
86370         * modules/stdio (Makefile.am): Support fflush.
86371         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
86372         * modules/fflush: New file.
86373         * lib/fflush.c: Likewise.
86374         * m4/fflush.m4: Likewise.
86375         * modules/fflush-tests: New test.
86376         * tests/test-fflush.c: Likewise.
86377         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
86379 2007-04-06  Bruno Haible  <bruno@clisp.org>
86381         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
86382         (VASNPRINTF): Use signbit for faster determination whether to print a
86383         minus sign.
86384         * modules/vasnprintf (Files): Remove lib/float+.h.
86385         * modules/fprintf-posix (Depends-on): Add signbit.
86386         * modules/snprintf-posix (Depends-on): Likewise.
86387         * modules/sprintf-posix (Depends-on): Likewise.
86388         * modules/vasnprintf-posix (Depends-on): Likewise.
86389         * modules/vasprintf-posix (Depends-on): Likewise.
86390         * modules/vfprintf-posix (Depends-on): Likewise.
86391         * modules/vsnprintf-posix (Depends-on): Likewise.
86392         * modules/vsprintf-posix (Depends-on): Likewise.
86394 2007-04-06  Bruno Haible  <bruno@clisp.org>
86396         * tests/test-frexp.c (main): Test also the sign bit of zero results.
86397         * tests/test-frexpl.c (main): Likewise.
86398         * tests/test-ldexpl.c (main): Likewise.
86399         * modules/frexp-tests (Depends-on): Add signbit.
86400         * modules/frexpl-tests (Depdends-on): Likewise.
86401         * modules/ldexpl-tests (Depdends-on): Likewise.
86403 2007-04-06  Bruno Haible  <bruno@clisp.org>
86405         * modules/signbit-tests: New file.
86406         * tests/test-signbit.c: New file.
86408         * modules/signbit: New file.
86409         * lib/signbitf.c: New file.
86410         * lib/signbitd.c: New file.
86411         * lib/signbitl.c: New file.
86412         * m4/signbit.m4: New file.
86413         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
86414         (signbit): New macro.
86415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
86416         REPLACE_SIGNBIT.
86417         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
86418         REPLACE_FREXPL into math.h.
86420 2007-04-06  Bruno Haible  <bruno@clisp.org>
86422         * modules/isnanf-nolibm-tests: New file.
86423         * tests/test-isnanf.c: New file.
86425         * modules/isnanf-nolibm: New file.
86426         * lib/isnanf.h: New file.
86427         * lib/isnanf.c: New file.
86428         * lib/isnan.c: Consider the USE_FLOAT macro.
86429         * m4/isnanf.m4: New file.
86431 2007-04-06  Bruno Haible  <bruno@clisp.org>
86433         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
86434         (Link): New section.
86436         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
86438 2007-04-06  Bruno Haible  <bruno@clisp.org>
86440         Assume the 'long double' type.
86441         * m4/longdouble.m4: Remove file.
86442         * config/srclist.txt: Don't mention longdouble.m4.
86443         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
86444         * lib/float+.h: Likewise.
86445         * lib/frexp.c: Likewise.
86446         * lib/printf-args.h: Likewise.
86447         * lib/printf-args.c: Likewise.
86448         * lib/printf-frexp.c: Likewise.
86449         * lib/printf-parse.c: Likewise.
86450         * lib/vasnprintf.c: Likewise.
86451         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
86452         * m4/intl.m4: Likewise.
86453         * m4/isnanl.m4: Likewise.
86454         * m4/printf.m4: Likewise.
86455         * m4/printf-frexpl.m4: Likewise.
86456         * m4/vasnprintf.m4: Likewise.
86457         * modules/allocsa (Files): Remove m4/longdouble.m4.
86458         * modules/gettext (Files): Likewise.
86459         * modules/relocatable-prog-wrapper (Files): Likewise.
86460         * modules/vasnprintf (Files): Likewise.
86461         * modules/isnanl (Files): Likewise.
86462         (Include): Simplify.
86463         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
86464         (Include): Simplify.
86465         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
86466         (Include): Simplify.
86467         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
86468         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86469         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
86470         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86471         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
86472         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86473         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
86474         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86475         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
86476         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86477         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
86478         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86479         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
86480         * tests/test-isnanl.c: Likewise.
86481         * tests/test-snprintf-posix.h: Likewise.
86482         * tests/test-sprintf-posix.h: Likewise.
86483         * tests/test-vasnprintf-posix.c: Likewise.
86484         * tests/test-vasnprintf-posix2.c: Likewise.
86485         * tests/test-vasprintf-posix.c: Likewise.
86487 2007-04-06  Bruno Haible  <bruno@clisp.org>
86489         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
86490         * lib/math_.h [__DECC]: Include the overridden include file through
86491         #include_next, outside the double-inclusion guard.
86492         * lib/stdio_.h [__DECC]: Likewise.
86493         * lib/stdlib_.h [__DECC]: Likewise.
86494         * lib/string_.h [__DECC]: Likewise.
86495         * lib/time_.h [__DECC]: Likewise.
86496         * lib/wchar_.h [__DECC]: Likewise.
86497         * lib/wctype_.h [__DECC]: Likewise.
86498         * lib/inttypes_.h [__DECC]: Likewise.
86499         Reported by Albert Chin <china@thewrittenword.com> in
86500         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
86502 2007-04-04  Eric Blake  <ebb9@byu.net>
86504         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
86505         1.5.x.
86507 2007-04-04  Bruno Haible  <bruno@clisp.org>
86509         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
86510         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
86512 2007-04-04  Bruno Haible  <bruno@clisp.org>
86514         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
86515         results for "%010a" of Infinity and NaN.
86516         * tests/test-vasprintf-posix.c (test_function): Likewise.
86517         * tests/test-snprintf-posix.h (test_function): Likewise.
86518         * tests/test-sprintf-posix.h (test_function): Likewise.
86519         * tests/test-fprintf-posix.h (test_function): Remove these tests.
86520         * tests/test-printf-posix.h (test_function): Likewise.
86521         * tests/test-fprintf-posix.out: Update.
86522         Needed for FreeBSD 6.1.
86524 2007-04-04  Bruno Haible  <bruno@clisp.org>
86526         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
86527         directly used by the gnulib modules nor by gnulib-tool.
86529 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86531         * DEPENDENCIES: Give overall description of version dependency
86532         desirability.  Use more-typical names for apps.
86533         Add shell, coreutils, diffutils, grep, tar, gzip.
86535 2007-04-04  Simon Josefsson  <simon@josefsson.org>
86537         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
86539 2007-04-04  Karl Berry  <karl@gnu.org>
86541         * MODULES.html.sh (func_module): missing '.
86543 2007-04-03  Bruno Haible  <bruno@clisp.org>
86545         * modules/argmatch-tests (Makefile.am): New variable
86546         test_argmatch_LDADD.
86547         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
86548         * modules/array-list-tests (Makefile.am): New variable
86549         test_array_list_LDADD.
86550         * modules/array-oset-tests (Makefile.am): New variable
86551         test_array_oset_LDADD.
86552         * modules/avltree-list-tests (Makefile.am): New variable
86553         test_avltree_list_LDADD.
86554         * modules/avltree-oset-tests (Makefile.am): New variable
86555         test_avltree_oset_LDADD.
86556         * modules/avltreehash-list-tests (Makefile.am): New variable
86557         test_avltreehash_list_LDADD.
86558         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
86559         test_canonicalize_lgpl_LDADD.
86560         * modules/carray-list-tests (Makefile.am): New variable
86561         test_carray_list_LDADD.
86562         * modules/dirname-tests (Makefile.am): New variable
86563         test_dirname_LDADD.
86564         * modules/linked-list-tests (Makefile.am): New variable
86565         test_linked_list_LDADD.
86566         * modules/linkedhash-list-tests (Makefile.am): New variable
86567         test_linkedhash_list_LDADD.
86568         * modules/rbtree-list-tests (Makefile.am): New variable
86569         test_rbtree_list_LDADD.
86570         * modules/rbtree-oset-tests (Makefile.am): New variable
86571         test_rbtree_oset_LDADD.
86572         * modules/rbtreehash-list-tests (Makefile.am): New variable
86573         test_rbtreehash_list_LDADD.
86574         * modules/xvasprintf-tests (Makefile.am): New variable
86575         test_xvasprintf_LDADD.
86576         Reported by Eric Blake.
86578 2007-04-03  Eric Blake  <ebb9@byu.net>
86580         * DEPENDENCIES: Weaken m4 requirements.
86582 2007-04-03  Bruno Haible  <bruno@clisp.org>
86584         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
86585         * modules/isnanl-tests (configure.ac): Likewise.
86587 2007-04-03  Ben Pfaff  <blp@gnu.org>
86589         * modules/iconv_open: Add $(srcdir)/ to source directory
86590         references in Makefile fragments that call gperf, to fix VPATH
86591         builds.
86593 2007-04-03  Bruno Haible  <bruno@clisp.org>
86595         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
86596         * lib/ldexpl.c: Undo last change.
86598 2007-04-03  Bruno Haible  <bruno@clisp.org>
86600         * modules/printf-frexpl (Depends-on): Undo last change.
86601         (Files): Add m4/ldexpl.m4.
86603 2007-04-03  Bruno Haible  <bruno@clisp.org>
86605         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
86606         * modules/isnanl (Link): New section.
86608         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
86609         * modules/frexp (Link): New section.
86611         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
86612         * modules/frexpl (Link): New section.
86614         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
86615         * modules/ldexpl (Link): New section.
86617 2007-04-03  Bruno Haible  <bruno@clisp.org>
86619         * modules/TEMPLATE-EXTENDED: New file.
86620         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
86622 2007-04-03  Bruno Haible  <bruno@clisp.org>
86624         * DEPENDENCIES: New file.
86625         Suggested by Simon Josefsson.
86627 2007-04-03  Bruno Haible  <bruno@clisp.org>
86629         * doc/gnulib.texi: Escape @.
86631 2007-04-03  James Youngman  <jay@gnu.org>
86632         and Paul Eggert  <eggert@cs.ucla.edu>
86634         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
86635         birthtime on all systems that have birthtime, not just those which
86636         use st_birthtimensec rather than st_birthtim.  Putting zero in
86637         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
86638         that the birth time is not available for files on an NFS mount.
86640 2007-04-03  Simon Josefsson  <simon@josefsson.org>
86642         * modules/memxor: Move back from crypto/, suggested by Bruno.
86643         * modules/crypto/hmac-sha1: Fix memxor dependency.
86645         * modules/crypto/gc: Moved from ../.
86647 2007-04-02  Eric Blake  <ebb9@byu.net>
86649         * lib/ldexpl.c (includes): Avoid libm.
86651         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
86653 2007-04-02  Bruno Haible  <bruno@clisp.org>
86655         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
86656         on IRIX.
86658 2007-04-02  Bruno Haible  <bruno@clisp.org>
86660         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
86661         x86 or x86_64 platforms running MacOS X.
86662         Reported by Ryan Schmidt <@ryandesign.com>.
86664 2007-04-02  Bruno Haible  <bruno@clisp.org>
86666         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
86667         i386.
86669 2007-04-01  Simon Josefsson  <simon@josefsson.org>
86671         * modules/crypto/arcfour: Moved from ../.
86672         * modules/crypto/arcfour-tests: Moved from ../.
86673         * modules/crypto/arctwo: Moved from ../.
86674         * modules/crypto/arctwo-tests: Moved from ../.
86675         * modules/crypto/des: Moved from ../.
86676         * modules/crypto/des-tests: Moved from ../.
86677         * modules/crypto/gc-arcfour: Moved from ../.
86678         * modules/crypto/gc-arcfour-tests: Moved from ../.
86679         * modules/crypto/gc-arctwo: Moved from ../.
86680         * modules/crypto/gc-arctwo-tests: Moved from ../.
86681         * modules/crypto/gc-des: Moved from ../.
86682         * modules/crypto/gc-des-tests: Moved from ../.
86683         * modules/crypto/gc-hmac-md5: Moved from ../.
86684         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
86685         * modules/crypto/gc-hmac-sha1: Moved from ../.
86686         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
86687         * modules/crypto/gc-md2: Moved from ../.
86688         * modules/crypto/gc-md2-tests: Moved from ../.
86689         * modules/crypto/gc-md4: Moved from ../.
86690         * modules/crypto/gc-md4-tests: Moved from ../.
86691         * modules/crypto/gc-md5: Moved from ../.
86692         * modules/crypto/gc-md5-tests: Moved from ../.
86693         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
86694         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
86695         * modules/crypto/gc-random: Moved from ../.
86696         * modules/crypto/gc-rijndael: Moved from ../.
86697         * modules/crypto/gc-rijndael-tests: Moved from ../.
86698         * modules/crypto/gc-sha1: Moved from ../.
86699         * modules/crypto/gc-sha1-tests: Moved from ../.
86700         * modules/crypto/gc-tests: Moved from ../.
86701         * modules/crypto/hmac-md5: Moved from ../.
86702         * modules/crypto/hmac-md5-tests: Moved from ../.
86703         * modules/crypto/hmac-sha1: Moved from ../.
86704         * modules/crypto/hmac-sha1-tests: Moved from ../.
86705         * modules/crypto/md2: Moved from ../.
86706         * modules/crypto/md2-tests: Moved from ../.
86707         * modules/crypto/md4: Moved from ../.
86708         * modules/crypto/md4-tests: Moved from ../.
86709         * modules/crypto/md5: Moved from ../.
86710         * modules/crypto/md5-tests: Moved from ../.
86711         * modules/crypto/memxor: Moved from ../.
86712         * modules/crypto/rijndael: Moved from ../.
86713         * modules/crypto/rijndael-tests: Moved from ../.
86714         * modules/crypto/sha1: Moved from ../.
86716 2007-03-30  James Youngman  <jay@gnu.org>
86718         * tests/test-stat-time.c (prepare_test): use chmod() rather than
86719         rename() to change the ctime of a file (because ctime is unaffected
86720         by rename on jfs2 on AIX 5.1).
86721         (main): Start by doing cleanup, in case a previous run failed leaving
86722         test files behind.
86724 2007-03-31  Bruno Haible  <bruno@clisp.org>
86726         Support old proprietary implementations of iconv.
86727         * modules/iconv_open: New file.
86728         * lib/iconv_.h: New file.
86729         * m4/iconv_h.m4: New file.
86730         * lib/iconv_open.c: New file.
86731         * lib/iconv_open-aix.gperf: New file.
86732         * lib/iconv_open-hpux.gperf: New file.
86733         * lib/iconv_open-irix.gperf: New file.
86734         * lib/iconv_open-osf.gperf: New file.
86735         * m4/iconv_open.m4: New file.
86736         * modules/linebreak (Depends-on): Add iconv_open.
86737         * modules/striconv (Depends-on): Likewise.
86738         * modules/striconveh (Depends-on): Likewise.
86739         * modules/unicodeio (Depends-on): Likewise.
86740         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
86741         (iconv_t)(-1).
86742         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
86743         conversion if cd is (iconv_t)(-1).
86744         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
86745         is not possible.
86747 2007-03-31  Bruno Haible  <bruno@clisp.org>
86749         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
86750         work on Solaris either. Protect also second use of "autodetect_jp".
86752 2007-03-31  Bruno Haible  <bruno@clisp.org>
86754         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
86755         the function is not present.
86757 2007-03-31  Bruno Haible  <bruno@clisp.org>
86759         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
86760         the function is not present.
86762 2007-03-31  Bruno Haible  <bruno@clisp.org>
86764         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
86765         a bug in HP-UX iconv_open().
86767 2007-03-31  Bruno Haible  <bruno@clisp.org>
86769         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
86770         (Mathematics <math.h>): New section, add fpieee.
86771         (Input/output <stdio.h>): Add fseterr.
86772         (Mathematics <math.h>): New section, add printf-frexp.
86773         (Container data structures): Add sublist.
86774         (Core language properties): Add fpucw, inline.
86775         (Functions for greatest-width integer types <inttypes.h>): Add
86776         imaxabs, imaxdiv, inttypes.
86777         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
86778         isnanl-nolibm, ldexp.
86779         (Mathematics <math.h>): New section, add printf-frexpl.
86780         (Support for systems lacking POSIX:2001): Add fprintf-posix,
86781         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
86782         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
86783         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
86784         (Unicode string functions): Add unistr/u*-mbtoucr.
86785         (Java): Add javacomp-script, javaexec-script.
86786         (C#): Add csharpcomp-script, csharpexec-script.
86787         (Support for building libraries and executables): Add havelib,
86788         relocatable-*.
86789         (Support for maintaining and releasing projects): Renamed from
86790         'Support for maintaining and release projects'. Add announce-gen.
86792 2007-03-31  Bruno Haible  <bruno@clisp.org>
86794         * README: Talk primarily about git.
86795         (git and CVS): Renamed from CVS.
86796         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
86797         gnulib is available through git.
86798         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
86800 2007-03-30  Bruno Haible  <bruno@clisp.org>
86802         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
86803         * lib/poll_.h: Likewise.
86804         * lib/stat_.h: Likewise.
86805         * lib/sys_time_.h: Likewise.
86806         * lib/sysexit_.h: Likewise.
86807         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
86808         * lib/stdbool_.h: Likewise.
86809         * lib/byteswap_.h: Add double-inclusion guard.
86811 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
86813         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
86815 2007-03-30  Karl Berry  <karl@gnu.org>
86817         * config/srclist-update: double space after USA in the license
86818         substitution, since that's how it's usually (?) written.
86820 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
86822         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
86823         reported by Bruno Haible.
86825 2007-03-29  Bruno Haible  <bruno@clisp.org>
86827         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
86828         a bug in AIX iconv().
86830 2007-03-29  Bruno Haible  <bruno@clisp.org>
86832         * modules/ldexpl-tests: New file.
86833         * tests/test-ldexpl.c: New file.
86835 2007-03-29  Bruno Haible  <bruno@clisp.org>
86837         * lib/ldexpl.c: Include fpucw.h.
86838         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
86839         multiplication.
86840         * modules/ldexpl (Depends-on): Add fpucw.
86842 2007-03-29  Bruno Haible  <bruno@clisp.org>
86844         * modules/ldexpl: New file.
86845         * m4/ldexpl.m4: New file.
86846         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
86847         set.
86848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
86849         REPLACE_LDEXPL.
86850         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
86851         REPLACE_LDEXPL.
86852         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
86853         gl_FUNC_LDEXPL_WORKS.
86854         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
86855         * modules/mathl (Files): Remove lib/ldexpl.c.
86856         (Depends-on): Add ldexpl.
86858 2007-03-29  Bruno Haible  <bruno@clisp.org>
86860         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
86862 2007-03-29  Bruno Haible  <bruno@clisp.org>
86864         * tests/test-striconveh.c (main): Don't assume that a direct conversion
86865         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
86866         and possibly also HP-UX.
86867         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
86868         work on AIX, IRIX, HP-UX, OSF/1.
86869         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
86870         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
86871         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
86872         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
86873         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
86874         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
86876 2007-03-29  Bruno Haible  <bruno@clisp.org>
86878         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
86880 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
86882         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
86883         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
86885 2007-03-29  Eric Blake  <ebb9@byu.net>
86887         * lib/acl-internal.h: Remove redundant include.
86888         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
86889         Cygwin when a file is locked.
86891 2007-03-29  Bruno Haible  <bruno@clisp.org>
86893         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
86894         file.
86895         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
86897 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
86899         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
86900         try to remove a parent directory if the child couldn't be removed
86901         (except for the first rmdir, which could fail because the child
86902         doesn't exist).  Problem reported by Jeff Blaine in
86903         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
86905 2007-03-28  Bruno Haible  <bruno@clisp.org>
86907         * lib/striconveh.c (utf8conv_carefully): New function.
86908         (mem_cd_iconveh_internal): Invoke it.
86910 2007-03-28  Bruno Haible  <bruno@clisp.org>
86912         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
86913         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
86914         input.
86915         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
86916         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
86917         unistr/u8-uctomb.
86919 2007-03-28  Bruno Haible  <bruno@clisp.org>
86921         * modules/unistr/u8-mbtoucr: New file.
86922         * lib/unistr/u8-mbtoucr.c: New file.
86923         * modules/unistr/u16-mbtoucr: New file.
86924         * lib/unistr/u16-mbtoucr.c: New file.
86925         * modules/unistr/u16-mbtoucr: New file.
86926         * lib/unistr/u16-mbtoucr.c: New file.
86927         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
86929 2007-03-27  Simon Josefsson  <simon@josefsson.org>
86930             Bruno Haible  <bruno@clisp.org>
86932         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
86933         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
86934         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
86936         * m4/stdio_h.m4: Add stubs for vasprintf too.
86938         * modules/stdio: Support vasprintf in sed command.
86940         * modules/vasprintf: Depend on stdio for prototypes.  Remove
86941         vasprintf.h.  Add stdio module indicator.
86943         * lib/stdio_.h: Declare asprintf and vasprintf, based on
86944         vasprintf.h.
86946         * lib/vasprintf.h: File removed.
86948         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
86949         * lib/vasprintf.c: Ditto.
86950         * lib/xvasprintf.c: Ditto.
86951         * tests/test-vasprintf-posix.c: Ditto.
86952         * tests/test-vasprintf.c: Ditto.
86954 2007-03-27  Bruno Haible  <bruno@clisp.org>
86956         Make vasnprintf multithread-safe.
86957         * lib/vasnprintf.c (decimal_point_char): New function.
86958         (VASNPRINTF): Use it.
86959         Suggested by Simon Josefsson.
86961 2007-03-27  Eric Blake  <ebb9@byu.net>
86963         Support sub-second birthtime on cygwin.
86964         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
86965         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
86966         (get_stat_birthtime): Also work with st_birthtim.
86968 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
86970         * lib/stat-time.h (USE_BIRTHTIME): Remove.
86971         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
86972         (get_stat_birthtime_ns): Do not try to use "spare" fields.
86973         (get_stat_birthtime_ns): Simplify compile-time tests.
86974         (get_stat_birthtime): Change the API to look like
86975         get_stat_mtime etc., except return a negative tv_nsec on error.
86976         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
86977         Don't check for "spare" fields.
86978         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
86979         or for struct stat.st_birthtime, as these tests aren't used.
86980         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
86982 2007-03-27  Bruno Haible  <bruno@clisp.org>
86984         * lib/stat-time.h: Include <sys/stat.h>.
86986 2007-03-27  James Youngman  <jay@gnu.org>
86988         * lib/stat-time.h (get_stat_birthtime): New function for
86989           retrieving st_birthtime as provided by UFS2 (hence *BSD).
86990         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
86991           and its variants.
86992         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
86993         * modules/stat-time-test: New file.
86994         * tests/test-stat-time.c: New test, devised by Bruno Haible.
86996 2007-03-26  Bruno Haible  <bruno@clisp.org>
86998         Better support of signalling NaNs.
86999         * lib/atanl.c: Include isnanl.h.
87000         (atanl): Perform test for NaN at the beginning of the function and
87001         through a call to isnanl.
87002         * lib/cosl.c: Include isnanl.h.
87003         (cosl): Perform test for NaN at the beginning of the function and
87004         through a call to isnanl.
87005         * lib/ldexpl.c: Include isnanl.h.
87006         (ldexpl): Perform test for NaN through a call to isnanl.
87007         * lib/logl.c: Include isnanl.h.
87008         (logl): Perform test for NaN at the beginning of the function and
87009         through a call to isnanl.
87010         * lib/sinl.c: Include isnanl.h.
87011         (sinl): Perform test for NaN at the beginning of the function and
87012         through a call to isnanl.
87013         * lib/sqrtl.c: Include isnanl.h.
87014         (sqrtl): Perform test for NaN at the beginning of the function and
87015         through a call to isnanl.
87016         * lib/tanl.c: Include isnanl.h.
87017         (tanl): Perform test for NaN at the beginning of the function and
87018         through a call to isnanl.
87019         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
87020         * modules/mathl (Depends-on): Add isnanl.
87022 2007-03-26  Eric Blake  <ebb9@byu.net>
87024         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
87025         regression in logic sense of previous patch.
87027 2007-03-26  Bruno Haible  <bruno@clisp.org>
87029         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
87030         unportable shell command "if ! ...".
87031         Reported by Ralf Wildenhues.
87033 2007-03-25  Bruno Haible  <bruno@clisp.org>
87035         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
87036         <sysexits.h> file, and only add EX_CONFIG.
87037         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
87038         absolute file name and whether it is sufficient. Substitute also
87039         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
87040         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
87041         ABSOLUTE_SYSEXITS_H into sysexits.h.
87043 2007-03-25  Bruno Haible  <bruno@clisp.org>
87045         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
87046         hints is NULL.
87048 2007-03-25  Bruno Haible  <bruno@clisp.org>
87050         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
87051         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
87053 2007-03-25  Bruno Haible  <bruno@clisp.org>
87055         * lib/vasnprintf.c: Include langinfo.h.
87056         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
87057         multithread-safe.
87058         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
87059         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
87060         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
87061         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87062         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87063         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87064         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
87065         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
87066         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87067         Reported by Simon Josefsson.
87069 2007-03-25  Bruno Haible  <bruno@clisp.org>
87071         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
87072         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
87073         * modules/vasnprintf (Depends-on): Add stdint.
87075 2007-03-25  Bruno Haible  <bruno@clisp.org>
87077         * modules/fpieee: New file.
87078         * m4/fpieee.m4: New file.
87079         * modules/isnan-nolibm (Depends-on): Add fpieee.
87080         * modules/isnanl-nolibm (Depends-on): Add fpieee.
87081         * modules/isnanl (Depends-on): Add fpieee.
87083 2007-03-25  Bruno Haible  <bruno@clisp.org>
87085         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
87087 2007-03-25  Bruno Haible  <bruno@clisp.org>
87089         Avoid test failures on IRIX 6.5.
87090         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
87091         (main): Use it.
87092         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
87093         macros.
87094         (main): Use them.
87096 2007-03-25  Bruno Haible  <bruno@clisp.org>
87098         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
87099         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
87100         exists but doesn't work.
87101         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
87102         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
87103         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
87104         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
87105         math.h.
87107 2007-03-25  Bruno Haible  <bruno@clisp.org>
87109         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
87110         returns inf. Needed on IRIX 6.5.
87112 2007-03-25  Bruno Haible  <bruno@clisp.org>
87114         * tests/test-frexpl.c: Include isnanl-nolibm.h.
87115         (main): Use isnanl instead of x != x idiom.
87116         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
87118         * tests/test-frexp.c: Include isnan.h.
87119         (main): Use isnan instead of x != x idiom.
87120         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
87122 2007-03-25  Bruno Haible  <bruno@clisp.org>
87124         * tests/test-frexp.c (NaN): New function/macro.
87125         (main): Use it instead of 0.0 / 0.0.
87126         * tests/test-isnan.c (NaN): New function/macro.
87127         (main): Use it instead of 0.0 / 0.0.
87128         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
87129         (test_function): Use it instead of 0.0 / 0.0.
87130         * tests/test-vasprintf-posix.c (NaN): New function/macro.
87131         (test_function): Use it instead of 0.0 / 0.0.
87132         * tests/test-snprintf-posix.h (NaN): New function/macro.
87133         (test_function): Use it instead of 0.0 / 0.0.
87134         * tests/test-sprintf-posix.h (NaN): New function/macro.
87135         (test_function): Use it instead of 0.0 / 0.0.
87136         * tests/test-fprintf-posix.h (NaN): New function/macro.
87137         (test_function): Use it instead of 0.0 / 0.0.
87138         * tests/test-printf-posix.h (NaN): New function/macro.
87139         (test_function): Use it instead of 0.0 / 0.0.
87141         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
87143 2007-03-25  Bruno Haible  <bruno@clisp.org>
87145         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
87147 2007-03-25  Bruno Haible  <bruno@clisp.org>
87149         * lib/regexec.c (merge_state_with_log): Make static.
87151 2007-03-25  Bruno Haible  <bruno@clisp.org>
87153         * lib/trigl.c (kernel_rem_pio2): Make static.
87155 2007-03-25  Bruno Haible  <bruno@clisp.org>
87157         * lib/sincosl.c (sincosl_table): Make static.
87159 2007-03-25  Bruno Haible  <bruno@clisp.org>
87161         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
87162         if the compiler does not support C99.
87164 2007-03-25  Bruno Haible  <bruno@clisp.org>
87166         * modules/time (Makefile.am): Ensure all rule action lines start with a
87167         tab.
87169 2007-03-24  Bruno Haible  <bruno@clisp.org>
87171         * modules/tsearch-tests: New file.
87172         * tests/test-tsearch.sh: New file.
87173         * tests/test-tsearch.c: New file, mostly copied from glibc.
87175         * modules/search-tests: New file.
87176         * tests/test-search.c: New file.
87178         * modules/search: New file.
87179         * lib/search_.h: New file, incorporating lib/tsearch.h.
87180         * m4/search_h.m4: New file.
87181         * lib/tsearch.h: Remove file.
87182         * lib/tsearch.c: Include search.h instead of tsearch.h.
87183         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
87184         HAVE_TSEARCH.
87185         * modules/tsearch (Files): Remove lib/tsearch.h.
87186         (Depends-on): Add search.
87187         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
87188         (Include): Change tsearch.h into search.h.
87190 2007-03-24  Bruno Haible  <bruno@clisp.org>
87192         * modules/fpucw: New file.
87193         * lib/fpucw.h: New file.
87194         * lib/frexp.c: Include fpucw.h.
87195         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
87196         (FUNC): Use them.
87197         * lib/printf-frexp.c: Include fpucw.h.
87198         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
87199         (FUNC): Use them.
87200         * lib/vasnprintf.c: Include fpucw.h.
87201         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
87202         'long double' calculations.
87203         * tests/test-frexpl.c: Include fpucw.h.
87204         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
87205         * tests/test-printf-frexpl.c: Include fpucw.h.
87206         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
87207         * modules/frexpl (Depends-on): Add fpucw.
87208         * modules/printf-frexpl (Depends-on): Likewise.
87209         * modules/fprintf-posix (Depends-on): Likewise.
87210         * modules/snprintf-posix (Depends-on): Likewise.
87211         * modules/sprintf-posix (Depends-on): Likewise.
87212         * modules/vasnprintf-posix (Depends-on): Likewise.
87213         * modules/vasprintf-posix (Depends-on): Likewise.
87214         * modules/vfprintf-posix (Depends-on): Likewise.
87215         * modules/vsnprintf-posix (Depends-on): Likewise.
87216         * modules/vsprintf-posix (Depends-on): Likewise.
87217         * modules/frexpl-tests (Depends-on): Likewise.
87218         * modules/printf-frexpl-tests (Depends-on): Likewise.
87220 2007-03-24  Bruno Haible  <bruno@clisp.org>
87222         * lib/float+.h: New file.
87223         * lib/isnan.c: Include float+.h.
87224         (SIZE): New macro.
87225         (FUNC): Compare only SIZE bytes of the value.
87226         * lib/vasnprintf.c: Include float+.h.
87227         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
87228         SIZEOF_LDBL or SIZEOF_DBL bytes.
87229         * modules/isnan-nolibm (Files): Add lib/float+.h.
87230         * modules/isnanl-nolibm (Files): Add lib/float+.h.
87231         * modules/isnanl (Files): Add lib/float+.h.
87232         * modules/vasnprintf (Files): Add lib/float+.h.
87234 2007-03-24  Bruno Haible  <bruno@clisp.org>
87236         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
87237         include isnanl-nolibm.h.
87239 2007-03-24  Bruno Haible  <bruno@clisp.org>
87241         * tests/test-read-file.c (main): Don't produce spurious output for
87242         expected situations. Make the test fail if it encountered unexpected
87243         results.
87245 2007-03-24  Bruno Haible  <bruno@clisp.org>
87247         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
87248         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
87250 2007-03-24  Bruno Haible  <bruno@clisp.org>
87252         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
87254 2007-03-24  Bruno Haible  <bruno@clisp.org>
87256         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
87257         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
87259         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
87260         * modules/utf8-ucs4: Turn into a symbolic link to module
87261         unistr/u8-mbtouc.
87263         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
87264         utf8-ucs4-unsafe.
87265         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
87266         unistr/u8-mbtouc-unsafe.
87268         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
87269         * modules/utf16-ucs4: Turn into a symbolic link to module
87270         unistr/u16-mbtouc.
87272         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
87273         utf16-ucs4-unsafe.
87274         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
87275         unistr/u16-mbtouc-unsafe.
87277         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
87278         * modules/ucs4-utf8: Turn into a symbolic link to module
87279         unistr/u8-ubtomb.
87281         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
87282         * modules/ucs4-utf16: Turn into a symbolic link to module
87283         unistr/u16-ubtomb.
87285 2007-03-24  Bruno Haible  <bruno@clisp.org>
87287         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
87288         Enable the function only if HAVE_INLINE.
87289         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
87290         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
87291         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
87292         Enable the function only if HAVE_INLINE.
87293         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
87294         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
87295         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
87296         Enable the function only if HAVE_INLINE.
87297         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
87298         Enable the function only if HAVE_INLINE.
87299         * modules/utf8-ucs4: Update.
87300         * modules/utf8-ucs4-unsafe: Update.
87301         * modules/utf16-ucs4: Update.
87302         * modules/utf16-ucs4-unsafe: Update.
87303         * modules/ucs4-utf8: Update.
87304         * modules/ucs4-utf16: Update.
87306 2007-03-24  Bruno Haible  <bruno@clisp.org>
87308         * lib/utf8-ucs4.h: Remove file.
87309         * lib/utf8-ucs4-unsafe.h: Remove file.
87310         * lib/utf16-ucs4.h: Remove file.
87311         * lib/utf16-ucs4-unsafe.h: Remove file.
87312         * lib/ucs4-utf8.h: Remove file.
87313         * lib/ucs4-utf16.h: Remove file.
87314         * lib/unistr.h: Include their previous contents.
87315         * m4/utf-ucs4.m4: Remove file.
87316         * m4/ucs4-utf.m4: Remove file.
87317         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
87318         (Depends-on): Add unistr/base.
87319         (configure.ac): Remove gl_UTF_UCS4.
87320         (Makefile.am): Update.
87321         (Include): Change to unistr.h.
87322         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
87323         (Depends-on): Add unistr/base.
87324         (configure.ac): Remove gl_UTF_UCS4.
87325         (Makefile.am): Update.
87326         (Include): Change to unistr.h.
87327         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
87328         (Depends-on): Add unistr/base.
87329         (configure.ac): Remove gl_UTF_UCS4.
87330         (Makefile.am): Update.
87331         (Include): Change to unistr.h.
87332         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
87333         (Depends-on): Add unistr/base.
87334         (configure.ac): Remove gl_UTF_UCS4.
87335         (Makefile.am): Update.
87336         (Include): Change to unistr.h.
87337         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
87338         (Depends-on): Add unistr/base.
87339         (configure.ac): Remove gl_UCS4_UTF.
87340         (Makefile.am): Update.
87341         (Include): Change to unistr.h.
87342         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
87343         (Depends-on): Add unistr/base.
87344         (configure.ac): Remove gl_UCS4_UTF.
87345         (Makefile.am): Update.
87346         (Include): Change to unistr.h.
87347         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
87348         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
87349         utf8-ucs4-unsafe.h.
87350         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
87351         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
87352         utf16-ucs4-unsafe.h.
87353         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
87354         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
87355         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
87356         * lib/unistr/u8-strchr.c: Likewise.
87357         * lib/unistr/u8-strrchr.c: Likewise.
87358         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
87359         * lib/unistr/u16-strchr.c: Likewise.
87360         * lib/unistr/u16-strrchr.c: Likewise.
87361         * lib/striconveh.c: Update.
87362         * lib/linebreak.c: Update.
87364 2007-03-24  Bruno Haible  <bruno@clisp.org>
87366         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
87367         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
87369 2007-03-22  Bruno Haible  <bruno@clisp.org>
87371         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
87373 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87375         * MODULES.html.sh (File system functions): New module write-any-file.
87376         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
87377         * m4/write-any-file.m4: New files.
87379 2007-03-23  Eric Blake  <ebb9@byu.net>
87381         * gnulib-tool: Rearrange space-tab sequences, since some editors
87382         like to eat them.
87384 2007-03-23  Eric Blake  <ebb9@byu.net>
87386         * lib/version-etc.c (version_etc_va): Update license wording to
87387         be more concise.  Recommended by Richard Stallman.
87389 2007-03-22  Bruno Haible  <bruno@clisp.org>
87391         * lib/poll.c (MSG_PEEK): New fallback definition.
87393 2007-03-22  Bruno Haible  <bruno@clisp.org>
87395         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
87396         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
87397         (main): Update.
87398         Fixes a compilation error on BeOS.
87400 2007-03-22  Bruno Haible  <bruno@clisp.org>
87402         * modules/frexpl-tests: New file.
87403         * tests/test-frexpl.c: New file.
87405         * modules/frexpl: New file.
87406         * m4/frexpl.m4: New file.
87407         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
87408         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
87409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
87410         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
87411         (Depends-on): Add frexpl. Remove isnanl-nolibm.
87412         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
87414 2007-03-22  Bruno Haible  <bruno@clisp.org>
87416         * lib/frexpl.c: Share code with lib/frexp.c.
87417         * modules/mathl (Files): Add lib/frexp.c.
87418         (Depends-on): Add isnanl-nolibm.
87420 2007-03-22  Bruno Haible  <bruno@clisp.org>
87422         * modules/printf-frexp (Files): Add m4/frexp.m4.
87423         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
87424         only if the found frexp function actually works.
87426 2007-03-22  Bruno Haible  <bruno@clisp.org>
87428         * lib/frexp.c: Remove older implementation that uses divisions.
87430 2007-03-21  Bruno Haible  <bruno@clisp.org>
87432         * modules/frexp-tests: New file.
87433         * tests/test-frexp.c: New file.
87435         * modules/frexp: New file.
87436         * lib/frexp.c: New file.
87437         * m4/frexp.m4: New file.
87438         * lib/math_.h (frexp): New declaration.
87439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
87440         REPLACE_FREXP.
87441         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
87443 2007-03-21  Bruno Haible  <bruno@clisp.org>
87445         * modules/isnanl-tests: New file.
87446         * tests/test-isnanl.c: New file.
87448         * modules/isnanl: New file.
87449         * lib/isnanl.h: New file.
87450         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
87451         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
87452         gl_FUNC_ISNANL_WORKS.
87453         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
87454         New macros.
87456 2007-03-21  Bruno Haible  <bruno@clisp.org>
87458         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
87459         lib/isnanl.h.
87460         (Include): Update.
87461         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
87462         * lib/vasnprintf.c: Update.
87463         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
87464         tests/test-isnanl.h, remove tests/test-isnanl.c.
87465         (Makefile.am): Update.
87466         * tests/test-isnanl-nolibm.c: New file.
87467         * tests/test-isnanl.h: New file.
87468         * tests/test-isnanl.c: Remove file.
87470 2007-03-21  Jim Meyering  <jim@meyering.net>
87472         When trying to open ".", treat ESTALE like EACCES.
87473         * lib/savewd.c (savewd_save): Resort to forking not just upon
87474         failure with EACCES, but also when errno is ESTALE.
87476 2007-03-20  Bruno Haible  <bruno@clisp.org>
87478         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
87479         Needed on AIX 5.1. Reported by Matthew Woehlke.
87481 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
87483         Suggestions by Bruno Haible:
87484         * lib/acl-internal.h: Include "gettext.h" rather than rolling
87485         our own.
87486         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
87487         * modules/acl (Depends-on): Add gettext.
87489 2007-03-19  Bruno Haible  <bruno@clisp.org>
87491         * modules/iconvme: Remove file.
87492         * lib/iconvme.h: Remove file.
87493         * lib/iconvme.c: Remove file.
87494         * m4/iconvme.m4: Remove file.
87496 2007-03-19  Bruno Haible  <bruno@clisp.org>
87498         * doc/relocatable-maint.texi: Break long shell script line.
87499         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
87501 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
87503         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
87504         handle file_has_acl.
87505         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
87506         * lib/acl.c: Move header inclusions and related macro defns into
87507         lib/acl-internal.h.
87508         (S_ISLNK): Remove defn, since that's now done for us.
87509         (file_has_acl): Move to lib/file-has-acl.c.
87510         Call acl_trivial if available.  This is the crucial part of the fix.
87511         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
87512         shared within the library.  Rewrite a bit, partly to make it compatible
87513         with the GNU coding style.
87514         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
87515         Remove unnecessary double-quotes.
87516         Don't test for acl_to_text; the build will catch that.
87517         Replace acl_entries if it doesn't exist and it is needed.
87518         Check for -lsec and acl_trivial (as used on Solaris 10).
87519         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
87520         lib/file-has-acl.c.
87521         (Depends-on): Add sys_stat, for S_ISLNK.
87523 2007-03-19  Ben Pfaff  <blp@gnu.org>
87525         * doc/gnulib.texi: Fix typos.
87526         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
87528 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
87530         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
87531         If size is zero here, buf must be zero.
87533 2007-03-19  Simon Josefsson  <simon@josefsson.org>
87535         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
87536         <bruno@clisp.org>.
87538 2007-03-18  Bruno Haible  <bruno@clisp.org>
87540         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
87541         Suggested by Eric Blake.
87543 2007-03-18  Ben Pfaff  <blp@gnu.org>
87545         * doc/relocatable.texi: Recommend using as prefix a directory
87546         that does not exist and will never be created.  Based on
87547         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
87548         and others.
87550 2007-03-17  Bruno Haible  <bruno@clisp.org>
87552         * lib/fchownat.c: Include lchown.h.
87554 2007-03-17  Bruno Haible  <bruno@clisp.org>
87556         Fix endless loop when the given allocated size was > INT_MAX.
87557         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
87558         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
87559         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
87560         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
87561         * lib/sprintf.c (sprintf): Likewise.
87563 2007-03-17  Bruno Haible  <bruno@clisp.org>
87565         * tests/test-argp-2.sh (func_compare): Output a context diff.
87567 2007-03-17  Bruno Haible  <bruno@clisp.org>
87569         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
87570         locale's decimal-point character.
87572 2007-03-17  Bruno Haible  <bruno@clisp.org>
87574         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
87575         before comparing it. Needed because on some platforms (e.g. x86) a
87576         'long double' occupies less bytes than sizeof (long double).
87578 2007-03-17  Bruno Haible  <bruno@clisp.org>
87580         * tests/test-crc.c (main): Make printf statements 64-bit clean.
87581         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
87582         * tests/test-getaddrinfo.c (simple): Likewise.
87583         * tests/test-read-file.c (main): Likewise.
87585 2007-03-17  Bruno Haible  <bruno@clisp.org>
87587         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
87589 2007-03-17  Bruno Haible  <bruno@clisp.org>
87591         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
87592         unused variable.
87594 2007-03-17  Bruno Haible  <bruno@clisp.org>
87596         * tests/test-c-strcasecmp.c: Include c-strcase.h.
87597         * tests/test-c-strncasecmp.c: Likewise.
87599 2007-03-17  Bruno Haible  <bruno@clisp.org>
87601         * modules/stdlib (Depends-on): Add unistd.
87602         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
87603         Needed for MacOS X 10.3.
87605 2007-03-17  Bruno Haible  <bruno@clisp.org>
87607         * lib/unistr/u-strdup.h: Include <stdlib.h>.
87609 2007-03-17  Bruno Haible  <bruno@clisp.org>
87611         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
87613 2007-03-17  Bruno Haible  <bruno@clisp.org>
87615         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
87616         to reflect files copied from gnulib (with or without modifications).
87617         Suggested by Jim Meyering.
87619 2007-03-17  Eric Blake  <ebb9@byu.net>
87621         * NEWS: Document stdlib change from 2007-02-18.
87623 2007-03-17  Jim Meyering  <jim@meyering.net>
87625         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
87626         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
87627         someone uses a name containing shell meta-characters.
87628         Reported by Alfred M. Szmidt.
87630         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
87632 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
87634         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
87635         and copy gettext configuration files only if configure.ac contains
87636         a use of AM_GNU_GETTEXT_VERSION.
87638 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
87640         * build-aux/bootstrap (gnulib_name): New variable.
87641         (gnulib_tool_options): Use it.
87643 2007-03-13  Simon Josefsson  <simon@josefsson.org>
87645         * tests/test-des.c: Use new namespace.
87647 2007-03-15  Bruno Haible  <bruno@clisp.org>
87649         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
87650         Reported by James Youngman <jay@gnu.org>.
87652 2007-03-15  Bruno Haible  <bruno@clisp.org>
87654         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
87655         declared prototype. Needed with cc on OSF/1 5.1.
87657 2007-03-15  Bruno Haible  <bruno@clisp.org>
87659         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
87660         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
87661         (struct gl_list_implementation): Add dispose_fn argument to the
87662         'create_empty', 'create' methods.
87663         (struct gl_list_impl_base): Add field 'dispose_fn'.
87664         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
87665         argument.
87666         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
87667         dispose_fn argument.
87668         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
87669         dispose_fn on the dropped values.
87670         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
87671         dispose_fn argument.
87672         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
87673         dropped values.
87674         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
87675         (gl_tree_remove_node): Call dispose_fn on the dropped value.
87676         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
87677         (gl_tree_remove_node): Call dispose_fn on the dropped value.
87678         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
87679         argument.
87680         (gl_tree_list_free): Call dispose_fn on the dropped values.
87681         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
87682         the dropped values.
87683         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
87684         Add dispose_fn argument.
87685         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
87686         Call dispose_fn on the dropped values.
87687         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
87688         Add dispose_fn argument.
87689         (gl_sublist_create): Initialize the 'dispose_fn' field.
87690         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
87691         * tests/test-array_list.c (main): Update.
87692         * tests/test-carray_list.c (main): Update.
87693         * tests/test-avltree_list.c (main): Update.
87694         * tests/test-rbtree_list.c (main): Update.
87695         * tests/test-avltreehash_list.c (main): Update.
87696         * tests/test-rbtreehash_list.c (main): Update.
87697         * tests/test-linked_list.c (main): Update.
87698         * tests/test-linkedhash_list.c (main): Update.
87699         * tests/test-array_oset.c (main): Update.
87701 2007-03-15  Bruno Haible  <bruno@clisp.org>
87703         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
87704         (gl_oset_create_empty): Add dispose_fn argument.
87705         (struct gl_oset_implementation): Add dispose_fn argument to
87706         'create_empty' method.
87707         (struct gl_oset_impl_base): Add dispose_fn field.
87708         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
87709         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
87710         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
87711         values.
87712         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
87713         (gl_tree_oset_free): Call dispose_fn on the dropped values.
87714         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
87715         dropped value.
87716         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
87717         dropped value.
87718         * tests/test-array_oset.c (main): Update.
87719         * tests/test-avltree_oset.c (main): Update.
87720         * tests/test-rbtree_oset.c (main): Update.
87721         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
87723 2007-03-13  Bruno Haible  <bruno@clisp.org>
87725         * tests/test-stdbool.c (i): Update after last patch.
87727 2007-03-12  Bruno Haible  <bruno@clisp.org>
87729         * lib/quotearg.c: Include <wctype.h> early, before the definition of
87730         the iswprint macro. Needed on Solaris 2.5.1.
87732 2007-03-12  Bruno Haible  <bruno@clisp.org>
87734         * tests/test-printf-frexp.c (main): Declare x as volatile.
87736 2007-03-12  Simon Josefsson  <simon@josefsson.org>
87738         * doc/gnulib.texi (Build robot for gnulib): New section.
87740 2007-03-12  Jim Meyering  <jim@meyering.net>
87742         * build-aux/bootstrap: New file.
87743         * build-aux/bootstrap.conf: New file, from coreutils.
87745 2007-03-11  Bruno Haible  <bruno@clisp.org>
87747         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
87749 2007-03-12  Simon Josefsson  <simon@josefsson.org>
87751         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
87752         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
87753         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
87755 2007-03-11  Bruno Haible  <bruno@clisp.org>
87757         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
87758         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
87760 2007-03-11  Bruno Haible  <bruno@clisp.org>
87762         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
87763         formula. Needed for SunPRO C 5.0.
87765 2007-03-11  Bruno Haible  <bruno@clisp.org>
87767         * modules/long-options (Depends-on): Add getopt.
87769 2007-03-11  Bruno Haible  <bruno@clisp.org>
87771         * modules/modechange (Depends-on): Add stdbool.
87773 2007-03-11  Bruno Haible  <bruno@clisp.org>
87775         * modules/i-ring (Depends-on): Add stdbool.
87777 2007-03-11  Bruno Haible  <bruno@clisp.org>
87779         * modules/gc-des (Depends-on): Add stdbool.
87781 2007-03-11  Bruno Haible  <bruno@clisp.org>
87783         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
87785 2007-03-11  Bruno Haible  <bruno@clisp.org>
87787         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
87789 2007-03-11  Bruno Haible  <bruno@clisp.org>
87791         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
87793 2007-03-11  Bruno Haible  <bruno@clisp.org>
87795         * lib/vasnprintf.c (sprintf): Undefine.
87797 2007-03-11  Bruno Haible  <bruno@clisp.org>
87799         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
87800         initializers in SunPRO C and Compaq C compilers.
87802 2007-03-11  Bruno Haible  <bruno@clisp.org>
87804         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
87805         decrementing code ANSI C compliant.
87807 2007-03-11  Bruno Haible  <bruno@clisp.org>
87809         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
87810         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
87812 2007-03-11  Bruno Haible  <bruno@clisp.org>
87814         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
87815         <stdbool.h> substitute doesn't pass.
87817 2007-03-11  Bruno Haible  <bruno@clisp.org>
87819         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
87821 2007-03-11  Bruno Haible  <bruno@clisp.org>
87823         * gnulib-tool (func_create_megatestdir): Create also an autobuild
87824         script, for submission to autobuild.josefsson.org.
87826 2007-03-10  Bruno Haible  <bruno@clisp.org>
87828         * modules/canonicalize-lgpl-tests: New file.
87829         * tests/test-canonicalize-lgpl.sh: New file.
87830         * tests/test-canonicalize-lgpl.c: New file.
87832         * modules/c-strcase-tests: New file.
87833         * tests/test-c-strcase.sh: New file.
87834         * tests/test-c-strcasecmp.c: New file.
87835         * tests/test-c-strncasecmp.c: New file.
87837         * modules/atexit-tests: New file.
87838         * tests/test-atexit.sh: New file.
87839         * tests/test-atexit.c: New file.
87841 2007-03-10  Bruno Haible  <bruno@clisp.org>
87843         * tests/test-binary-io.sh: Use temporary filenames that are not so
87844         likely to clash with those of other tests (in a parallel make).
87845         * tests/test-binary-io.c: Likewise.
87847 2007-03-10  Bruno Haible  <bruno@clisp.org>
87849         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
87850         fallback; use #error instead.
87851         Suggested by Simon Josefsson.
87853 2007-03-10  Bruno Haible  <bruno@clisp.org>
87855         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
87856         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
87857         first and the last.
87859 2007-03-10  Bruno Haible  <bruno@clisp.org>
87861         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
87863 2007-03-10  Bruno Haible  <bruno@clisp.org>
87865         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
87866         "make distcheck".
87867         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
87868         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
87869         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
87871 2007-03-10  Bruno Haible  <bruno@clisp.org>
87873         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
87874         variable.
87875         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
87876         variable.
87878 2007-03-09  Eric Blake  <ebb9@byu.net>
87879         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
87881         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
87882         types are not being provided by gnulib.
87883         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
87884         types are supported.
87886 2007-03-10  Bruno Haible  <bruno@clisp.org>
87888         * lib/stdio_.h (__attribute__): New macro.
87889         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
87890         vsprintf): Specify __attribute__ __format__ for GCC.
87891         Suggested by Eric Blake.
87893 2007-03-09  Bruno Haible  <bruno@clisp.org>
87895         * modules/printf-posix-tests: New file.
87896         * tests/test-printf-posix.sh: New file.
87897         * tests/test-printf-posix.c: New file.
87899         * modules/printf-posix: New file.
87900         * lib/printf.c: New file.
87901         * m4/printf-posix-rpl.m4: New file.
87902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
87903         REPLACE_PRINTF.
87904         * lib/stdio_.h (printf): New declaration.
87905         (format, __format__, ____printf____, ____scanf____, ____strftime____,
87906         ____strfmon____): New macros.
87907         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
87908         REPLACE_PRINTF.
87910 2007-03-09  Bruno Haible  <bruno@clisp.org>
87912         * tests/test-vasnprintf-posix2.sh: New file.
87913         * tests/test-vasnprintf-posix2.c: New file.
87914         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
87915         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
87916         (Makefile.am): Activate test-vasnprintf-posix2.sh.
87918         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
87919         a locale dependent decimal point, rather than always '.'.
87921 2007-03-09  Eric Blake  <ebb9@byu.net>
87923         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
87924         spite of platforms like Tandem/NSK that define it to -1.
87926 2007-03-08  Bruno Haible  <bruno@clisp.org>
87928         * modules/vprintf-posix-tests: New file.
87929         * tests/test-vprintf-posix.sh: New file.
87930         * tests/test-vprintf-posix.c: New file.
87931         * tests/test-printf-posix.h: New file.
87933         * modules/vprintf-posix: New file.
87934         * lib/vprintf.c: New file.
87935         * m4/vprintf-posix.m4: New file.
87936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
87937         REPLACE_VPRINTF.
87938         * lib/stdio_.h (vprintf): New declaration.
87939         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
87940         REPLACE_VPRINTF.
87942 2007-03-08  Bruno Haible  <bruno@clisp.org>
87944         * modules/fprintf-posix-tests: New file.
87945         * tests/test-fprintf-posix.sh: New file.
87946         * tests/test-fprintf-posix.c: New file.
87948         * modules/fprintf-posix: New file.
87949         * lib/fprintf.c: New file.
87950         * m4/fprintf-posix.m4: New file.
87951         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
87952         REPLACE_FPRINTF.
87953         * lib/stdio_.h (fprintf): New declaration.
87954         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
87955         REPLACE_FPRINTF.
87957 2007-03-08  Bruno Haible  <bruno@clisp.org>
87959         * modules/vfprintf-posix-tests: New file.
87960         * tests/test-vfprintf-posix.sh: New file.
87961         * tests/test-vfprintf-posix.c: New file.
87962         * tests/test-fprintf-posix.h: New file.
87963         * tests/test-fprintf-posix.out: New file.
87965         * modules/vfprintf-posix: New file.
87966         * lib/vfprintf.c: New file.
87967         * m4/vfprintf-posix.m4: New file.
87968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
87969         REPLACE_VFPRINTF.
87970         * lib/stdio_.h (vfprintf): New declaration.
87971         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
87972         REPLACE_VFPRINTF.
87974 2007-03-08  Bruno Haible  <bruno@clisp.org>
87976         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
87978 2007-03-08  Bruno Haible  <bruno@clisp.org>
87980         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
87981         instead of 'expr' invocations.
87982         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87983         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87984         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87985         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
87986         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87987         Suggested by Paul Eggert.
87989 2007-03-08  Bruno Haible  <bruno@clisp.org>
87991         * modules/fseterr-tests: New file.
87992         * tests/test-fseterr.c: New file.
87994         * modules/fseterr: New file.
87995         * lib/fseterr.h: New file.
87996         * lib/fseterr.c: New file.
87998 2007-03-08  Bruno Haible  <bruno@clisp.org>
88000         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
88001         * lib/getopt_.h: Likewise.
88002         * lib/mbswidth.h: Likewise.
88003         * lib/setenv.h: Likewise.
88004         * lib/vasnprintf.h: Likewise.
88005         * lib/vasprintf.h: Likewise.
88006         * lib/verror.h: Likewise.
88007         * lib/xsetenv.h: Likewise.
88008         * lib/xvasprintf.h: Likewise.
88010 2007-03-08  Jim Meyering  <jim@meyering.net>
88012         * users.txt: Add parted.
88014         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
88016 2007-03-07  Bruno Haible  <bruno@clisp.org>
88018         * m4/printf.m4: Make the shell script snippets copy&pastable.
88020 2007-03-02  Bruno Haible  <bruno@clisp.org>
88022         * lib/netinet_in_.h: New file.
88023         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
88024         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
88025         * modules/netinet_in (Files): Add lib/netinet_in_.h.
88026         (Depends-on): Add absolute-header.
88027         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
88028         into netinet/in.h.
88030 2007-03-03  Bruno Haible  <bruno@clisp.org>
88032         * lib/sys_select_.h: New file.
88033         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
88034         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
88035         * modules/sys_select (Files): Add lib/sys_select_.h.
88036         (Depends-on): Add absolute-header.
88037         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
88038         into sys/select.h.
88040 2007-03-02  Bruno Haible  <bruno@clisp.org>
88042         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
88043         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
88044         values.
88045         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
88046         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
88047         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
88048         * modules/sys_socket (Depends-on): Add absolute-header.
88049         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
88050         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
88051         (Include): Remove requirement of inclusion of <sys/types.h>.
88053 2007-03-02  Bruno Haible  <bruno@clisp.org>
88055         * lib/byteswap_.h (bswap_32): Fix formula.
88057 2007-03-06  Bruno Haible  <bruno@clisp.org>
88059         * modules/sprintf-posix-tests: New file.
88060         * tests/test-sprintf-posix.c: New file.
88062         * modules/sprintf-posix: New file.
88063         * lib/sprintf.c: New file.
88064         * m4/sprintf-posix.m4: New file.
88065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
88066         REPLACE_SPRINTF.
88067         * lib/stdio_.h (sprintf): New declaration.
88068         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
88069         REPLACE_SPRINTF.
88071 2007-03-06  Bruno Haible  <bruno@clisp.org>
88073         * modules/vsprintf-posix-tests: New file.
88074         * tests/test-vsprintf-posix.c: New file.
88075         * tests/test-sprintf-posix.h: New file.
88077         * modules/vsprintf-posix: New file.
88078         * lib/vsprintf.c: New file.
88079         * m4/vsprintf-posix.m4: New file.
88080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
88081         REPLACE_VSPRINTF.
88082         * lib/stdio_.h (vsprintf): New declaration.
88083         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
88084         REPLACE_VSPRINTF.
88086 2007-03-06  Bruno Haible  <bruno@clisp.org>
88088         * modules/vsnprintf (Depend-on): Remove minmax.
88090 2007-03-06  Bruno Haible  <bruno@clisp.org>
88092         * modules/snprintf-posix-tests: New file.
88093         * tests/test-snprintf-posix.c: New file.
88095         * modules/snprintf-posix: New file.
88096         * m4/snprintf-posix.m4: New file.
88097         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
88098         gl_FUNC_SNPRINTF.
88099         (gl_FUNC_SNPRINTF): Invoke it.
88100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
88101         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
88102         is set.
88103         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
88105 2007-03-06  Bruno Haible  <bruno@clisp.org>
88107         * modules/vsnprintf-posix-tests: New file.
88108         * tests/test-vsnprintf-posix.c: New file.
88109         * tests/test-snprintf-posix.h: New file.
88111         * modules/vsnprintf-posix: New file.
88112         * m4/vsnprintf-posix.m4: New file.
88113         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
88114         gl_FUNC_VSNPRINTF.
88115         (gl_FUNC_VSNPRINTF): Invoke it.
88116         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
88117         * lib/stdio_.h (vsnprintf): Define as a replacement if
88118         REPLACE_VSNPRINTF is set.
88119         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
88121 2007-03-06  Bruno Haible  <bruno@clisp.org>
88123         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
88124         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
88126 2007-03-06  Bruno Haible  <bruno@clisp.org>
88128         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
88129         (asinl): Declare also if HAVE_DECL_ASINL is set.
88130         (atanl): Declare also if HAVE_DECL_ATANL is set.
88131         (ceill): Declare also if HAVE_DECL_CEILL is set.
88132         (cosl): Declare also if HAVE_DECL_COSL is set.
88133         (expl): Declare also if HAVE_DECL_EXPL is set.
88134         (floorl): Declare also if HAVE_DECL_FLOORL is set.
88135         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
88136         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
88137         (logl): Declare also if HAVE_DECL_LOGL is set.
88138         (sinl): Declare also if HAVE_DECL_SINL is set.
88139         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
88140         (tanl): Declare also if HAVE_DECL_TANL is set.
88141         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
88142         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
88143         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
88144         declaration of frexpl, ldexpl.
88145         * modules/printf-frexpl (Depends-on): Add math.
88146         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
88148 2007-03-05  Bruno Haible  <bruno@clisp.org>
88150         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
88151         frexpl and ldexpl are declared.
88152         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
88154 2007-03-05  Bruno Haible  <bruno@clisp.org>
88156         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
88157         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
88159 2007-03-05  Bruno Haible  <bruno@clisp.org>
88161         * lib/stdio_.h: Include <stddef.h>.
88163 2007-03-05  Bruno Haible  <bruno@clisp.org>
88165         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
88167 2007-03-05  Bruno Haible  <bruno@clisp.org>
88169         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
88170         NetBSD 4, from Ralf Wildenhues.
88172 2007-03-04  Bruno Haible  <bruno@clisp.org>
88174         * lib/vasprintf.h: Update #if logic for the case when the functions
88175         exist but are overridden.
88177 2007-03-04  Bruno Haible  <bruno@clisp.org>
88179         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
88180         implementations: glibc-2.4 and MacOS X 10.3.
88181         * tests/test-vasnprintf-posix.c (test_function): Test also the case
88182         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
88183         * tests/test-vasprintf-posix.c (test_function): Likewise.
88185 2007-03-04  Bruno Haible  <bruno@clisp.org>
88187         * modules/vasprintf-posix-tests: New file.
88188         * tests/test-vasprintf-posix.c: New file.
88190         * modules/vasprintf-posix: New file.
88191         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
88192         defined.
88193         * m4/vasprintf-posix.m4: New file.
88194         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
88195         gl_FUNC_VASPRINTF.
88196         (gl_FUNC_VASPRINTF): Invoke it.
88197         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
88198         here.
88199         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
88201 2007-03-04  Bruno Haible  <bruno@clisp.org>
88203         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
88204         REPLACE_GETTIMEOFDAY.
88205         * modules/sys_time (Makefile.am): Likewise.
88206         * m4/sys_time_h.m4: Likewise.
88207         * m4/gettimeofday.m4: Likewise.
88209 2007-03-04  Bruno Haible  <bruno@clisp.org>
88211         * modules/vasnprintf-posix-tests: New file.
88212         * tests/test-vasnprintf-posix.c: New file.
88214         * modules/vasnprintf-posix: New file.
88215         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
88216         printf-frexpl.h.
88217         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
88218         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
88219         REPLACE_VASNPRINTF is defined.
88220         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
88221         gl_FUNC_VASNPRINTF.
88222         (gl_FUNC_VASNPRINTF): Invoke it.
88223         * m4/vasnprintf-posix.m4: New file.
88224         * m4/printf.m4: New file.
88226 2007-03-04  Bruno Haible  <bruno@clisp.org>
88228         Compile progreloc.c only if --enable-relocatable is specified.
88229         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
88230         if --enable-relocatable was specified.
88231         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
88232         lib_SOURCES.
88234 2007-03-04  Jim Meyering  <jim@meyering.net>
88236         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
88237         Use it consistently, rather than enumerating errno constants.
88239 2007-03-04  Bruno Haible  <bruno@clisp.org>
88241         * modules/xvasprintf-tests: New file.
88242         * tests/test-xvasprintf.c: New file.
88244         * modules/vasprintf-tests: New file.
88245         * tests/test-vasprintf.c: New file.
88247         * modules/vasnprintf-tests: New file.
88248         * tests/test-vasnprintf.c: New file.
88250         * modules/vsnprintf-tests: New file.
88251         * tests/test-vsnprintf.c: New file.
88253         * modules/snprintf-tests: New file.
88254         * tests/test-snprintf.c: New file.
88256 2007-03-04  Bruno Haible  <bruno@clisp.org>
88258         Compile relocatable.c only if --enable-relocatable is specified.
88259         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
88260         gl_RELOCATABLE_LIBRARY.
88261         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
88262         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
88263         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
88264         gl_RELOCATABLE_LIBRARY.
88265         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
88266         (Makefile.am): Remove lib_SOURCES.
88267         * modules/relocatable-lib-lgpl (configure.ac): Invoke
88268         gl_RELOCATABLE_LIBRARY.
88269         (Makefile.am): Remove lib_SOURCES.
88270         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
88271         always.
88272         * modules/relocatable-prog-wrapper (configure.ac): Invoke
88273         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
88275 2007-03-04  Bruno Haible  <bruno@clisp.org>
88277         * modules/argmatch-tests: New file.
88278         * tests/test-argmatch.c: New file.
88280         * tests/test-allocsa.c (main): Halve the number of loop runs.
88282         * modules/alloca-opt-tests: New file.
88283         * tests/test-alloca-opt.c: New file.
88285 2007-03-04  Jim Meyering  <jim@meyering.net>
88287         Work around difference between Linux ACLs and Solaris 10 ZFS.
88288         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
88289         for EINVAL.
88291 2007-03-03  Bruno Haible  <bruno@clisp.org>
88293         * modules/relocatable-prog (Depends-on): Add back progreloc's
88294         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
88296 2007-03-03  Bruno Haible  <bruno@clisp.org>
88298         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
88299         * modules/relocatable-lib: New file.
88301 2007-03-03  Bruno Haible  <bruno@clisp.org>
88303         * modules/relocatable-prog: Renamed from modules/relocatable.
88304         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
88306 2007-03-03  Bruno Haible  <bruno@clisp.org>
88308         * modules/relocatable-script (Files): Add doc/relocatable.texi,
88309         m4/relocatable-lib.m4.
88310         (Depends-on): Remove 'relocatable'.
88311         (configure.ac): Add gl_RELOCATABLE_NOP.
88313 2007-03-03  Bruno Haible  <bruno@clisp.org>
88315         * modules/relocatable-prog-wrapper: New file.
88316         * modules/relocatable (Depends-on): Add it. Remove all other
88317         dependencies except progname.
88318         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
88320         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
88321         (gl_FUNC_STRERROR): Nop.
88322         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
88324         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
88325         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
88327         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
88328         (gl_FUNC_READLINK): Update.
88330         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
88332 2007-03-03  Bruno Haible  <bruno@clisp.org>
88334         * lib/xreadlink.c: Include <unistd.h> unconditionally.
88335         * modules/xreadlink (Depends-on): Add unistd.
88336         * modules/xreadlink-with-size (Depends-on): Likewise.
88338 2007-03-03  Bruno Haible  <bruno@clisp.org>
88340         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
88341         extracted from gt_FUNC_SETENV.
88342         (gt_FUNC_SETENV): Remove macro.
88343         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
88344         remove gt_FUNC_SETENV.
88346 2007-03-03  Bruno Haible  <bruno@clisp.org>
88348         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
88349         ENABLE_RELOCATABLE here.
88350         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
88352 2007-03-03  Bruno Haible  <bruno@clisp.org>
88354         * modules/rbtreehash-list-tests (Depends-on): Add progname.
88355         * tests/test-rbtreehash_list.c: Include progname.h.
88356         (main): Call set_program_name.
88358         * modules/rbtree-oset-tests (Depends-on): Add progname.
88359         * tests/test-rbtree_oset.c: Include progname.h.
88360         (main): Call set_program_name.
88362         * modules/rbtree-list-tests (Depends-on): Add progname.
88363         * tests/test-rbtree_list.c: Include progname.h.
88364         (main): Call set_program_name.
88366         * modules/linked-list-tests (Depends-on): Add progname.
88367         * tests/test-linked_list.c: Include progname.h.
88368         (main): Call set_program_name.
88370 2007-03-03  Bruno Haible  <bruno@clisp.org>
88372         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
88373         All uses of __restrict changed to _Restrict_.
88374         * lib/glob_.h (__restrict): Remove macro.
88376 2007-03-02  Bruno Haible  <bruno@clisp.org>
88378         * modules/gettext (configure.ac): Require gettext infrastructure
88379         from version 0.16.1.
88381 2007-03-02  Bruno Haible  <bruno@clisp.org>
88383         * modules/linkedhash-list-tests (Depends-on): Add progname.
88384         * tests/test-linkedhash_list.c: Include progname.h.
88385         (main): Call set_program_name.
88387         * modules/carray-list-tests (Depends-on): Add progname.
88388         * tests/test-carray_list.c: Include progname.h.
88389         (main): Call set_program_name.
88391         * modules/avltreehash-list-tests (Depends-on): Add progname.
88392         * tests/test-avltreehash_list.c: Include progname.h.
88393         (main): Call set_program_name.
88395         * modules/avltree-oset-tests (Depends-on): Add progname.
88396         * tests/test-avltree_oset.c: Include progname.h.
88397         (main): Call set_program_name.
88399         * modules/avltree-list-tests (Depends-on): Add progname.
88400         * tests/test-avltree_list.c: Include progname.h.
88401         (main): Call set_program_name.
88403         * modules/array-oset-tests (Depends-on): Add progname.
88404         * tests/test-array_oset.c: Include progname.h.
88405         (main): Call set_program_name.
88407         * modules/array-list-tests (Depends-on): Add progname.
88408         * tests/test-array_list.c: Include progname.h.
88409         (main): Call set_program_name.
88411         * modules/argp-tests (Depends-on): Add progname.
88412         * tests/test-argp.c: Include argp.h first. Include progname.h.
88413         (main): Call set_program_name.
88415 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
88417         * doc/gnulib-tool.texi (Initial import): Reword description of
88418         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
88419         limited effect even if defined after the first system include.
88421 2007-03-01  Bruno Haible  <bruno@clisp.org>
88423         * build-aux/config.libpath: Update to libtool-1.5.22.
88424         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88426 2007-03-01  Bruno Haible  <bruno@clisp.org>
88428         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
88429         foo_CFLAGS.
88430         Reported by Ralf Wildenhues.
88432 2007-03-01  Bruno Haible  <bruno@clisp.org>
88434         * build-aux/install-reloc: Remove object files left over by some
88435         compilers.
88436         Reported by Ralf Wildenhues.
88438 2007-03-01  Bruno Haible  <bruno@clisp.org>
88440         * build-aux/install-reloc: Break long lines.
88442 2007-03-01  Bruno Haible  <bruno@clisp.org>
88444         * doc/relocatable.texi: Document that it may not work on OpenBSD.
88445         Reported by Ralf Wildenhues.
88447 2007-03-01  Bruno Haible  <bruno@clisp.org>
88449         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
88450         include ordering constraints.
88452 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88454         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
88455         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
88456         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
88457         as another example.
88458         * lib/time_.h: Fix misspelling.
88459         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
88460         Require gl_HEADER_TIME_H_DEFAULTS.
88461         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
88462         * m4/time_r.m4 (gl_TIME_R): Likewise.
88463         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
88465 2007-03-01  Bruno Haible  <bruno@clisp.org>
88467         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
88468         * m4/utimens.m4 (gl_UTIMENS): Likewise.
88470 2007-03-01  Jim Meyering  <jim@meyering.net>
88472         * modules/xreadlink (Maintainer): Add my name.
88473         * modules/xreadlink-with-size (Depends-on): Alphabetize.
88475 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
88476             Bruno Haible  <bruno@clisp.org>
88478         * build-aux/install-reloc: Compile also c-ctype.c.
88479         * build-aux/relocatable.sh.in: New file.
88480         * doc/relocatable.texi: New file.
88481         * doc/relocatable-maint.texi: New file.
88482         * doc/gnulib.texi: Include relocatable-maint.texi.
88483         * lib/progreloc.c: Include unistd.h unconditionally.
88484         * lib/relocwrapper.c: Include unistd.h unconditionally.
88485         Include c-ctype.h.
88486         (add_dotbin): Use c_tolower.
88487         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
88488         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
88489         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
88490         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
88491         to m4/relocatable-lib.m4.
88492         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
88493         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
88494         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
88495         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
88496         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
88497         * modules/relocatable: New file.
88498         * modules/relocatable-lib: New file.
88499         * modules/relocatable-script: New file.
88501 2007-02-28  Bruno Haible  <bruno@clisp.org>
88503         Import --enable-relocatable infrastructure.
88504         * build-aux/config.libpath: New file, from GNU gettext.
88505         * build-aux/install-reloc: New file, from GNU gettext.
88506         * build-aux/reloc-ldflags: New file, from GNU gettext.
88507         * lib/relocatable.h: New file, from GNU gettext.
88508         * lib/relocatable.c: New file, from GNU gettext.
88509         * lib/relocwrapper.c: New file, from GNU gettext.
88510         * m4/relocatable.m4: New file, from GNU gettext.
88512 2007-02-28  Bruno Haible  <bruno@clisp.org>
88514         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
88516         * modules/xreadlink: New file, from GNU gettext with modifications.
88517         * lib/xreadlink.c: New file, from GNU gettext.
88518         * lib/xreadlink.h: Add comments.
88519         (xreadlink): New declaration.
88521         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
88522         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
88523         lib/xreadlink-with-size.c.
88524         (configure.ac): Remove gl_XREADLINK invocation.
88525         (Makefile.am): Augment lib_SOURCES.
88526         * m4/xreadlink.m4: Remove file.
88527         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
88528         (xreadlink_with_size): Renamed from xreadink.
88529         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
88530         * modules/canonicalize (Depends-on): Replace xreadlink with
88531         xreadlink-with-size.
88532         * lib/canonicalize.c (canonicalize_filename_mode): Update.
88534 2007-02-25  Jim Meyering  <jim@meyering.net>
88536         * build-aux/announce-gen: When complaining about excess arguments,
88537         list them.
88539 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88541         * README: Document signed integer overflow situation more
88542         accurately.
88544 2007-02-25  Bruno Haible  <bruno@clisp.org>
88546         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
88547         'a' or 'A' conversion.
88549 2007-02-25  Bruno Haible  <bruno@clisp.org>
88551         * modules/filename: Renamed from modules/pathname.
88552         (Files): Replace lib/pathname.h with lib/filename.h. Replace
88553         lib/concatpath.c with lib/concat-filename.c.
88554         (Makefile.am): Update.
88555         (Include): Replace pathname.h with filename.h.
88556         * lib/filename.h: Renamed from lib/pathname.h.
88557         (concatenated_filename): Renamed from concatenated_pathname.
88558         * lib/concat-filename.c: Renamed from lib/concatpath.c.
88559         (concatenated_filename): Renamed from concatenated_pathname.
88560         * lib/findprog.c: Include filename.h instead of pathname.h.
88561         (find_in_path): Update.
88562         * lib/javacomp.c: Include filename.h instead of pathname.h.
88563         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
88564         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
88565         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
88566         is_oldgcj_14_13_usable, is_javac_usable): Update.
88567         * lib/javaexec.c: Include filename.h instead of pathname.h.
88568         (execute_java_class): Update.
88569         * modules/findprog: Update.
88570         * modules/javacomp: Update.
88571         * modules/javaexec: Update.
88572         * MODULES.html.sh (File system functions): Add 'filename', remove
88573         'pathname'.
88575 2007-02-25  Bruno Haible  <bruno@clisp.org>
88577         * modules/printf-frexpl-tests: New file.
88578         * tests/test-printf-frexpl.c: New file.
88580         * modules/printf-frexpl: New file.
88581         * lib/printf-frexpl.h: New file.
88582         * lib/printf-frexpl.c: New file.
88583         * m4/printf-frexpl.m4: New file.
88585 2007-02-25  Bruno Haible  <bruno@clisp.org>
88587         * modules/printf-frexp-tests: New file.
88588         * tests/test-printf-frexp.c: New file.
88590         * modules/printf-frexp: New file.
88591         * lib/printf-frexp.h: New file.
88592         * lib/printf-frexp.c: New file.
88593         * m4/printf-frexp.m4: New file.
88595 2007-02-25  Bruno Haible  <bruno@clisp.org>
88597         Assume automake >= 1.10 for the tests.
88598         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
88599         * modules/arctwo-tests: Likewise.
88600         * modules/argp-tests: Likewise.
88601         * modules/avltree-list-tests: Likewise.
88602         * modules/avltree-oset-tests: Likewise.
88603         * modules/avltreehash-list-tests: Likewise.
88604         * modules/carray-list-tests: Likewise.
88605         * modules/crc-tests: Likewise.
88606         * modules/des-tests: Likewise.
88607         * modules/gc-arcfour-tests: Likewise.
88608         * modules/gc-arctwo-tests: Likewise.
88609         * modules/gc-des-tests: Likewise.
88610         * modules/gc-hmac-md5-tests: Likewise.
88611         * modules/gc-hmac-sha1-tests: Likewise.
88612         * modules/gc-md2-tests: Likewise.
88613         * modules/gc-md4-tests: Likewise.
88614         * modules/gc-md5-tests: Likewise.
88615         * modules/gc-pbkdf2-sha1-tests: Likewise.
88616         * modules/gc-rijndael-tests: Likewise.
88617         * modules/gc-sha1-tests: Likewise.
88618         * modules/gc-tests: Likewise.
88619         * modules/getaddrinfo-tests: Likewise.
88620         * modules/hmac-md5-tests: Likewise.
88621         * modules/hmac-sha1-tests: Likewise.
88622         * modules/linked-list-tests: Likewise.
88623         * modules/linkedhash-list-tests: Likewise.
88624         * modules/lock-tests: Likewise.
88625         * modules/md2-tests: Likewise.
88626         * modules/md4-tests: Likewise.
88627         * modules/md5-tests: Likewise.
88628         * modules/rbtree-list-tests: Likewise.
88629         * modules/rbtree-oset-tests: Likewise.
88630         * modules/rbtreehash-list-tests: Likewise.
88631         * modules/read-file-tests: Likewise.
88632         * modules/rijndael-tests: Likewise.
88633         * modules/stdint-tests: Likewise.
88634         * modules/tls-tests: Likewise.
88636 2007-02-24  Bruno Haible  <bruno@clisp.org>
88638         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
88639         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
88640         function; instead check whether isnan with a double argument links.
88641         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
88642         function; instead check whether isnan with a 'long double' argument
88643         links.
88644         Reported by Eric Blake <ebb9@byu.net>.
88646 2007-02-24  Bruno Haible  <bruno@clisp.org>
88648         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
88649         defined.
88650         * lib/isnanl.c: Remove all code. Just include isnan.c.
88651         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
88653 2007-02-25  Jim Meyering  <jim@meyering.net>
88655         Avoid conflicting types for 'unsetenv' on FreeBSD.
88656         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
88657         conflicting with FreeBSD's (5.0 and 6.1) function declaration
88658         in stdlib.h.
88660 2007-02-24  Bruno Haible  <bruno@clisp.org>
88662         * modules/isnanl-nolibm-tests: New file.
88663         * tests/test-isnanl.c: New file.
88665         * modules/isnanl-nolibm: New file.
88666         * lib/isnanl.h: New file.
88667         * lib/isnanl.c: New file.
88668         * m4/isnanl.m4: New file.
88670 2007-02-24  Bruno Haible  <bruno@clisp.org>
88672         * modules/isnan-nolibm-tests: New file.
88673         * tests/test-isnan.c: New file.
88675         * modules/isnan-nolibm: New file.
88676         * lib/isnan.h: New file.
88677         * lib/isnan.c: New file.
88678         * m4/isnan.m4: New file.
88680 2007-02-24  Bruno Haible  <bruno@clisp.org>
88682         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
88683         assume that an exponent fits in 20 bits.
88685 2007-02-24  Jim Meyering  <jim@meyering.net>
88687         * m4/regex.m4: Update the description of the configure-time option,
88688         --without-included-regex, to state accurately what the defaults are,
88689         and perhaps to give people an idea why using this option is risky.
88691 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
88693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
88694         loops on small arguments.  This attempts to avoid the problem
88695         Bruno Haible reported for AIX 4.3.2 in
88696         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
88698 2007-02-23  Bruno Haible  <bruno@clisp.org>
88700         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
88701         Needed for help2man.
88703 2007-02-23  Karl Berry  <karl@gnu.org>
88705         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
88706         exists, foo.h should be cvs-ignored, not committed.
88708 2007-02-23  Eric Blake  <ebb9@byu.net>
88710         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
88711         * lib/stat-time.h (includes): Likewise.
88712         * lib/utimecmp.c (includes): Likewise.
88713         * lib/utimens.h (includes): Likewise.
88714         * lib/getdate.y (includes): Also include "timespec.h" for use
88715         internal to the module.
88716         * modules/utimens (Depends-on): Revert yesterday's patch.
88717         * modules/nanosleep (Depends-on): Add missing dependency.
88719 2007-02-22  Bruno Haible  <bruno@clisp.org>
88721         * lib/glob.c: Don't include getlogin_r.h.
88723 2007-02-22  Jim Meyering  <jim@meyering.net>
88725         * modules/utimens (Depends-on): Add timespec, required for
88726         utimens.h's inclusion of timespec.h.
88728 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
88730         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
88731         long unreadable paths in GNU/Linux.  Problem reported by Andreas
88732         Schwab in
88733         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
88734         I'll try to think of a better way to fix the Solaris problem.
88736         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
88737         like glibc; on Solaris 10, it fails with errno == EINVAL.
88738         POSIX says the behavior is unspecified if the first argument is NULL,
88739         so play it safe and never pass NULL to the system getcwd.
88741 2007-02-21  Jim Meyering  <jim@meyering.net>
88743         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
88744         of gettimeofday.  It would conflict with the one now always
88745         provided via sys_time_.h.  Reported by Matthew Woehlke, as
88746         an IRIX 6.5 build failure.
88748 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
88750         Minor fixups to port to Solaris 10 with Sun C 5.8.
88751         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
88752         * modules/getcwd (Depends-on): Add dirfd.
88753         * lib/putenv.c (putenv): #undef it.
88754         (rpl_putenv): New decl.
88755         (malloc, free): Include <stdlib.h> rather than prototyping separately.
88757 2007-02-20  Bruno Haible  <bruno@clisp.org>
88759         * modules/stdio-tests: New file.
88760         * tests/test-stdio.c: New file.
88762         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
88763         (Depends-on): Add stdio.
88764         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
88765         (Include): Use <stdio.h> instead of vsnprintf.h.
88766         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
88767         HAVE_DECL_VSNPRINTF.
88768         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
88770         * modules/snprintf (Files): Remove lib/snprintf.h.
88771         (Depends-on): Add stdio.
88772         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
88773         (Include): Use <stdio.h> instead of snprintf.h.
88774         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
88775         HAVE_DECL_SNPRINTF.
88776         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
88777         * lib/getaddrinfo.c: Likewise.
88779         * modules/stdio: New file.
88780         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
88781         * lib/snprintf.h: Remove file.
88782         * lib/vsnprintf.h: Remove file.
88783         * lib/.cppi-disable: Remove snprintf.h.
88784         * m4/stdio_h.m4: New file.
88785         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
88787 2007-02-20  Jim Meyering  <jim@meyering.net>
88789         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
88790         used by e.g., mingw.  From Bruno Haible.
88792 2007-02-19  Bruno Haible  <bruno@clisp.org>
88794         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
88795         warnings.
88796         Reported by Ben Pfaff <blp@cs.stanford.edu>.
88798 2007-02-19  Bruno Haible  <bruno@clisp.org>
88800         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
88801         from mingw users.
88803 2007-02-19  Bruno Haible  <bruno@clisp.org>
88805         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
88806         warnings.
88807         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
88809 2007-02-19  Jim Meyering  <jim@meyering.net>
88811         Don't use FD after a successful "fdopendir (fd)".
88812         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
88813         Reset it by calling dirfd on the just-obtained DIR*.
88815         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
88816         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
88818 2007-02-18  Bruno Haible  <bruno@clisp.org>
88820         * lib/readlink.c: Include <unistd.h>.
88821         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
88822         HAVE_READLINK.
88823         * modules/readlink (Depends-on): Add unistd.
88824         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88825         (Include): Add <unistd.h>.
88827         * lib/getlogin_r.h: Remove file.
88828         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
88829         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
88830         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
88831         HAVE_DECL_GETLOGIN_R.
88832         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
88833         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88834         (Include): Use <unistd.h> instead of getlogin_r.h.
88836         * lib/getcwd.h: Remove file.
88837         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
88838         * lib/xgetcwd.c: Likewise.
88839         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
88840         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
88841         * modules/getcwd (Files): Remove lib/getcwd.h.
88842         (Depends-on): Add unistd.
88843         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88844         (Include): Use <unistd.h> instad of getcwd.h.
88846         * lib/ftruncate.c: Include <unistd.h> first.
88847         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
88848         Set HAVE_FTRUNCATE.
88849         * modules/ftruncate (Depends-on): Add unistd.
88850         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88852         * lib/fchdir.c: Include <unistd.h> first.
88853         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
88854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
88855         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
88856         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88857         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
88859         * lib/dup2.c: Include <unistd.h> first.
88860         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
88861         HAVE_DUP2.
88862         * modules/dup2 (Depends-on): Add unistd.
88863         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88865         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
88866         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
88867         REPLACE_CHOWN. Don't define chown as a macro here.
88868         * modules/chown (Depends-on): Add unistd.
88869         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88871         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
88872         Add definition for GL_LINK_WARNING.
88873         (chown, dup2): New declarations.
88874         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
88875         link warning.
88876         (ftruncate): New declaration.
88877         (getcwd): New declaration, taken from old getcwd.h.
88878         (getlogin_r): New declaration, taken from old getlogin_r.h.
88879         (readlink): New declaration.
88880         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
88881         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
88882         (gl_PREREQ_UNISTD): Remove macro.
88883         (gl_UNISTD_MODULE_INDICATOR): New macro.
88884         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
88885         many new variables. Don't set UNISTD_H.
88886         * modules/unistd (Description): Change.
88887         (Depends-on): Add link-warning.
88888         (configure.ac): Update.
88889         (Makefile.am): Create unistd.h always. Substitute many new variables
88890         into it.
88892 2007-02-18  Bruno Haible  <bruno@clisp.org>
88894         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
88895         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
88896         HAVE_GETSUBOPT.
88897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
88898         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
88899         * lib/getsubopt.h: Remove file.
88900         * modules/getsubopt (Files): Remove lib/getsubopt.h.
88901         (Depends-on): Add stdlib.
88902         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88903         (Includes): Use <stdlib.h> instead of getsubopt.h.
88904         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
88905         Set HAVE_GETSUBOPT.
88906         * lib/getsubopt.c: Don't include getsubopt.h.
88908 2007-02-18  Bruno Haible  <bruno@clisp.org>
88910         * modules/fchdir (Depends-on): Add dup2.
88912 2007-02-18  Bruno Haible  <bruno@clisp.org>
88914         * lib/stdlib_.h: Handle glibc's special invocation convention
88915         specially.
88917 2007-02-18  Bruno Haible  <bruno@clisp.org>
88919         * modules/stdlib-tests: New file.
88920         * tests/test-stdlib.c: New file.
88922         * modules/mkstemp (Files): Remove lib/mkstemp.h.
88923         (Depends-on): Add stdlib.
88924         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88925         (Includes): Use <stdlib.h> instead of mkstemp.h.
88926         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
88927         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
88928         * lib/mkstemp.c: Don't include mkstemp.h.
88929         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
88930         * lib/stdlib--.h: Don't include mkstemp.h.
88932         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
88933         (Depends-on): Add stdlib.
88934         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88935         (Includes): Use <stdlib.h> instead of mkdtemp.h.
88936         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
88937         HAVE_MKDTEMP.
88938         * lib/mkdtemp.c: Don't include mkdtemp.h.
88939         * lib/clean-temp.c: Don't include mkdtemp.h.
88941         * modules/exit (Files): Remove lib/exit.h.
88942         (Depends-on): Add stdlib.
88943         (Makefile.am): Remove lib_SOURCES.
88944         (Include): Use <stdlib.h> instead of exit.h.
88945         * lib/argmatch.c: Don't include exit.h.
88946         * lib/execute.c: Likewise.
88947         * lib/pagealign_alloc.c: Likewise.
88948         * lib/pipe.c: Likewise.
88949         * lib/wait-process.c: Likewise.
88950         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
88951         * lib/exitfail.c: Likewise.
88952         * lib/savewd.c: Likewise.
88953         * lib/xsetenv.c: Likewise.
88955         * modules/stdlib: New file.
88956         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
88957         and extra comments about mkstemp().
88958         * lib/exit.h: Remove file.
88959         * lib/mkdtemp.h: Remove file.
88960         * lib/mkstemp.h: Remove file.
88961         * m4/stdlib_h.m4: New file.
88962         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
88964 2007-02-18  Bruno Haible  <bruno@clisp.org>
88966         * modules/math-tests: New file.
88967         * tests/test-math.c: New file.
88969         * modules/math: New file.
88970         * modules/mathl (Files): Remove lib/mathl.h.
88971         (Depends-on): Add math.
88972         (Makefile.am): Don't mention mathl.h.
88973         (Include): Use <math.h> instead of mathl.h.
88974         * lib/math_.h: New file.
88975         * lib/mathl.h: Remove file.
88976         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
88977         mathl.h.
88978         * lib/asinl.c: Likewise.
88979         * lib/atanl.c: Likewise.
88980         * lib/ceill.c: Likewise.
88981         * lib/cosl.c: Likewise.
88982         * lib/expl.c: Likewise.
88983         * lib/floorl.c: Likewise.
88984         * lib/frexpl.c: Likewise.
88985         * lib/ldexpl.c: Likewise.
88986         * lib/logl.c: Likewise.
88987         * lib/sincosl.c: Likewise.
88988         * lib/sinl.c: Likewise.
88989         * lib/sqrtl.c: Likewise.
88990         * lib/tanl.c: Likewise.
88991         * lib/trigl.c: Likewise.
88992         * m4/math_h.m4: New file.
88993         * MODULES.html.sh (Mathematics): Add math.
88995 2007-02-17  Bruno Haible  <bruno@clisp.org>
88997         * modules/wctype-tests: New file.
88998         * tests/test-wctype.c: New file.
89000         * modules/wchar-tests: New file.
89001         * tests/test-wchar.c: New file.
89003         * modules/unistd-tests: New file.
89004         * tests/test-unistd.c: New file.
89006         * modules/time-tests: New file.
89007         * tests/test-time.c: New file.
89009         * modules/sysexits-tests: New file.
89010         * tests/test-sysexits.c: New file.
89012         * modules/sys_time-tests: New file.
89013         * tests/test-sys_time.c: New file.
89015         * modules/sys_stat-tests: New file.
89016         * tests/test-sys_stat.c: New file.
89018         * modules/sys_socket-tests: New file.
89019         * tests/test-sys_socket.c: New file.
89021         * modules/sys_select-tests: New file.
89022         * tests/test-sys_select.c: New file.
89024         * modules/string-tests: New file.
89025         * tests/test-string.c: New file.
89027         * modules/stdbool-tests: New file.
89028         * tests/test-stdbool.c: New file.
89030         * modules/netinet_in-tests: New file.
89031         * tests/test-netinet_in.c: New file.
89033         * modules/inttypes-tests: New file.
89034         * tests/test-inttypes.c: New file.
89036         * modules/fcntl-tests: New file.
89037         * tests/test-fcntl.c: New file.
89039         * modules/byteswap-tests: New file.
89040         * tests/test-byteswap.c: New file.
89042         * modules/arpa_inet-tests: New file.
89043         * tests/test-arpa_inet.c: New file.
89045 2007-02-17  Bruno Haible  <bruno@clisp.org>
89047         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
89048         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
89049         if the corresponding module is not enabled. Emit link warnings if
89050         the function is used nevertheless.
89051         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
89052         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
89053         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
89054         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
89055         * modules/inttypes (Depends-on): Add link-warning.
89056         (Makefile.am): Copy the contents of build-aux/link-warning.h into
89057         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
89058         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
89059         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
89060         * modules/imaxdiv (configure.ac): Likewise.
89061         * modules/strtoimax (configure.ac): Likewise.
89062         * modules/strtoumax (configure.ac): Likewise.
89064 2007-02-17  Bruno Haible  <bruno@clisp.org>
89066         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
89067         gl_STRING_MODULE_INDICATOR_DEFAULTS.
89068         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
89069         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
89071 2007-02-17  Bruno Haible  <bruno@clisp.org>
89073         * modules/link-warning: New file.
89074         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
89075         * lib/string_.h (GL_LINK_WARNING): Remove definition.
89076         * modules/string (Depends-on): Add link-warning.
89077         (Makefile.am): Copy the contents of build-aux/link-warning.h into
89078         string.h.
89079         * MODULES.html.sh (Support for building libraries and executables): Add
89080         link-warning.
89082 2007-02-17  Bruno Haible  <bruno@clisp.org>
89084         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
89085         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
89086         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
89087         long lines.
89089 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
89090             Bruno Haible  <bruno@clisp.org>
89092         * modules/tmpfile: New file.
89093         * lib/tmpfile.c: New file.
89094         * m4/tmpfile.m4: New file.
89095         * MODULES.html.sh (func_all_modules): New section "Input/output".
89097 2007-02-15  Bruno Haible  <bruno@clisp.org>
89099         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
89100         (supports_delete_on_close): New function.
89101         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
89103 2007-02-14  Bruno Haible  <bruno@clisp.org>
89105         * modules/mbspcasecmp-tests: New file.
89106         * tests/test-mbspcasecmp.sh: New file.
89107         * tests/test-mbspcasecmp.c: New file.
89109         New module mbspcasecmp.
89110         * modules/mbspcasecmp: New file.
89111         * lib/mbspcasecmp.c: New file.
89112         * lib/string_.h (strncasecmp): Change warning message.
89113         (mbspcasecmp): New declaration.
89114         * m4/mbspcasecmp.m4: New file.
89115         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89116         GNULIB_MBSPCASECMP.
89117         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
89118         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
89120 2007-02-14  Bruno Haible  <bruno@clisp.org>
89122         * modules/mbsncasecmp-tests: New file.
89123         * tests/test-mbsncasecmp.sh: New file.
89124         * tests/test-mbsncasecmp.c: New file.
89126         New module mbsncasecmp.
89127         * modules/mbsncasecmp: New file.
89128         * lib/mbsncasecmp.c: New file.
89129         * lib/string_.h (mbsncasecmp): New declaration.
89130         * m4/mbsncasecmp.m4: New file.
89131         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89132         GNULIB_MBSNCASECMP.
89133         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
89134         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
89136 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
89138         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
89139         Verify that it doesn't overlap with our flags.
89140         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
89141         do not have the desired effect in multibyte locales; instead, use
89142         mbscasecmp.
89143         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
89144         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
89145         we don't require GNU fnmatch ourselves (if our users require it, they
89146         should do so explicitly).
89148         Fix regex code so it doesn't rely on strcasecmp.
89149         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
89150         Otherwise, include gnulib's langinfo.h.
89151         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
89152         undesirable behavior in non-C locales.  Instead, rely on localecharset.
89153         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
89154         * modules/regex (FILES): Remove m4/codeset.m4.
89155         (Depends-on): Add localcharset.  Remove strcase.
89157 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89159         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
89160         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
89162 2007-02-13  Bruno Haible  <bruno@clisp.org>
89164         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
89165         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89167 2007-02-12  Bruno Haible  <bruno@clisp.org>
89169         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
89170         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
89171         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
89172         time warning rather than a link error.
89174 2007-02-12  Bruno Haible  <bruno@clisp.org>
89176         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
89177         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
89178         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89180 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
89182         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
89183         args, not 2.
89185 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
89187         New module 'time', so that apps can include <time.h> as per
89188         POSIX and GNU instead of separate include files like time_r.h
89189         and timegm.h.  This implementation tries out a simpler approach
89190         for replacing decls in standard include files (as compared to
89191         the string module), somewhat as an experiment.
89193         * config/srclist.txt: Comment out mktime.c for now.
89194         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
89195         since it doesn't apply any more.  Use generic wording instead.
89196         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
89197         'time'.
89198         * lib/time_.h, m4/time_h.m4, modules/time: New files.
89199         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
89200         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
89201         Don't include <sys/types.h>; no longer needed since we assume C89.
89202         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
89203         * lib/strftime.c: Likewise.
89204         * lib/time_r.c: Likewise.
89205         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
89206         * lib/nanosleep.c: Include <time.h> first, to check interface.
89207         * lib/strptime.c: Likewise.
89208         * lib/time_r.c: Likewise.
89209         * lib/timegm.c: Likewise.
89210         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
89211         needed.
89212         * lib/timegm.c: Don't include timegm.h; no longer needed.
89213         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
89214         time.h now handles any problems in that area.
89215         (struct timespec, nanosleep): Remove; time.h now arranges for these.
89216         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
89217         that time.h defines struct timespec.
89218         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
89219         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
89220         handles that.
89221         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
89222         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
89223         needed.  Set REPLACE_LOCALTIME.
89224         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
89225         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
89226         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
89227         nanosleep; time_h.m4 now does that.  Don't require
89228         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
89229         module handles this now.
89230         * modules/getdate (Depends-on): Remove timespec.  Add time.
89231         * modules/nanosleep (Depends-on): Likewise.
89232         * modules/stat-time (Depends-on): Likewise.
89233         * modules/nanosleep (Include): Include time.h, not timespec.h.
89234         * modules/strptime (Files): Remove lib/strptime.h.
89235         (Depends-on): Add extensions, time.
89236         (Include): Include time.h, not strptime.h.
89237         * modules/time_r (Files): Remove lib/time_r.h.
89238         (Depends-on): Add time.
89239         (Include): Include time.h, not time_r.h.
89240         * modules/timegm: Likewise.
89241         * modules/timespec (Description): Now does timespec-related decls
89242         of our own, instead of struct timespec itself.
89243         (Depends-on): Add time; remove extensions.
89244         (Maintainer): Add self.
89245         * modules/utimecmp (Depends-on): Add time; remove timespec.
89246         * modules/utimens (Depends-on): Likewise.
89247         * modules/xnanosleep (Depends-on): Likewise.
89249 2007-02-11  Bruno Haible  <bruno@clisp.org>
89251         * lib/c-strstr.c: Include allocsa.h.
89252         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
89253         * lib/c-strcasestr.c: Include allocsa.h.
89254         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
89255         * lib/strcasestr.c: Include allocsa.h.
89256         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
89257         * lib/mbsstr.c: Include allocsa.h.
89258         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
89259         allocsa/freesa instead of malloc/free.
89260         * lib/mbscasestr.c: Include allocsa.h.
89261         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
89262         allocsa/freesa instead of malloc/free.
89263         * modules/c-strstr (Depends-on): Add allocsa.
89264         * modules/c-strcasestr (Depends-on): Likewise.
89265         * modules/strcasestr (Depends-on): Likewise.
89266         * modules/mbsstr (Depends-on): Likewise.
89267         * modules/mbscasestr (Depends-on): Likewise.
89269 2007-02-11  Bruno Haible  <bruno@clisp.org>
89271         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
89273         * modules/mbsspn-tests: New file.
89274         * tests/test-mbsspn.sh: New file.
89275         * tests/test-mbsspn.c: New file.
89277 2007-02-11  Bruno Haible  <bruno@clisp.org>
89279         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
89281         * modules/mbspbrk-tests: New file.
89282         * tests/test-mbspbrk.sh: New file.
89283         * tests/test-mbspbrk.c: New file.
89285 2007-02-11  Bruno Haible  <bruno@clisp.org>
89287         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
89288         unneeded cast.
89290         * modules/mbscspn-tests: New file.
89291         * tests/test-mbscspn.sh: New file.
89292         * tests/test-mbscspn.c: New file.
89294 2007-02-11  Bruno Haible  <bruno@clisp.org>
89296         * modules/mbscasecmp-tests: New file.
89297         * tests/test-mbscasecmp.sh: New file.
89298         * tests/test-mbscasecmp.c: New file.
89300 2007-02-11  Bruno Haible  <bruno@clisp.org>
89302         Ensure O(n) worst-case complexity of mbscasestr.
89303         * lib/mbscasestr.c: Include stdbool.h.
89304         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
89305         functions.
89306         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
89307         the bookkeeping indicates that it's worth it.
89308         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
89310         * modules/mbscasestr-tests: New file.
89311         * tests/test-mbscasestr1.c: New file.
89312         * tests/test-mbscasestr2.sh: New file.
89313         * tests/test-mbscasestr2.c: New file.
89314         * tests/test-mbscasestr3.sh: New file.
89315         * tests/test-mbscasestr3.c: New file.
89316         * tests/test-mbscasestr4.sh: New file.
89317         * tests/test-mbscasestr4.c: New file.
89318         * m4/locale-tr.m4: New file.
89320 2007-02-11  Bruno Haible  <bruno@clisp.org>
89322         Ensure O(n) worst-case complexity of mbsstr.
89323         * lib/mbsstr.c: Include stdbool.h.
89324         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
89325         functions.
89326         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
89327         bookkeeping indicates that it's worth it.
89328         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
89330         * modules/mbsstr-tests: New file.
89331         * tests/test-mbsstr1.c: New file.
89332         * tests/test-mbsstr2.sh: New file.
89333         * tests/test-mbsstr2.c: New file.
89334         * tests/test-mbsstr3.sh: New file.
89335         * tests/test-mbsstr3.c: New file.
89336         * m4/locale-fr.m4: New file.
89338 2007-02-11  Bruno Haible  <bruno@clisp.org>
89340         * lib/mbsrchr.c (mbsrchr): Fix bug.
89342         * modules/mbsrchr-tests: New file.
89343         * tests/test-mbsrchr.sh: New file.
89344         * tests/test-mbsrchr.c: New file.
89346 2007-02-11  Bruno Haible  <bruno@clisp.org>
89348         * lib/mbschr.c (mbschr): Fix bug.
89350         * modules/mbschr-tests: New file.
89351         * tests/test-mbschr.sh: New file.
89352         * tests/test-mbschr.c: New file.
89353         * m4/locale-zh.m4: New file.
89355 2007-02-11  Bruno Haible  <bruno@clisp.org>
89357         Support for copying multibyte string iterators.
89358         * lib/mbiter.h: Include <string.h>.
89359         (mbiter_multi_copy): New function.
89360         (mbi_copy): New macro.
89361         * lib/mbuiter.h: Include <string.h>.
89362         (mbuiter_multi_copy): New function.
89363         (mbui_copy): New macro.
89365 2007-02-11  Bruno Haible  <bruno@clisp.org>
89367         New module mbslen.
89368         * modules/mbslen: New file.
89369         * lib/mbslen.c: New file.
89370         * lib/string_.h (mbslen): New declaration.
89371         * m4/mbslen.m4: New file.
89372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89373         GNULIB_MBSLEN.
89374         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
89375         * MODULES.html.sh (Internationalization functions): Add mbslen.
89377 2007-02-11  Bruno Haible  <bruno@clisp.org>
89379         Ensure O(n) worst-case complexity of strcasestr substitute.
89380         * lib/strcasestr.c: Include stdbool.h.
89381         (knuth_morris_pratt): New function.
89382         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
89383         bookkeeping indicates that it's worth it.
89384         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
89386         * modules/strcasestr-tests: New file.
89387         * tests/test-strcasestr.c: New file.
89389 2007-02-11  Bruno Haible  <bruno@clisp.org>
89391         Ensure O(n) worst-case complexity of c_strcasestr.
89392         * lib/c-strcasestr.c: Include stdbool.h, string.h.
89393         (knuth_morris_pratt): New function.
89394         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
89395         the bookkeeping indicates that it's worth it.
89396         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
89398         * modules/c-strcasestr-tests: New file.
89399         * tests/test-c-strcasestr.c: New file.
89401 2007-02-11  Bruno Haible  <bruno@clisp.org>
89403         Ensure O(n) worst-case complexity of c_strstr.
89404         * lib/c-strstr.c: Include stdbool.h, string.h.
89405         (knuth_morris_pratt): New function.
89406         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
89407         bookkeeping indicates that it's worth it.
89408         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
89410         * lib/c-strstr.c: Complete rewrite for maintainability.
89412         * modules/c-strstr-tests: New file.
89413         * tests/test-c-strstr.c: New file.
89415 2007-02-11  Bruno Haible  <bruno@clisp.org>
89417         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
89418         5.2.1 and earlier, whereby \055 was treated just like the range
89419         delimiter '-'.
89420         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
89422 2007-02-08  Bruno Haible  <bruno@clisp.org>
89424         * modules/regex (Depends-on): Add stdbool.
89425         Reported by Dalibor Topic <robilad@kaffe.org>.
89427 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
89429         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
89430         Prefer returning from main to exiting from it.
89431         Remove unnecessary parens after sizeof.
89433 2007-02-05  Bruno Haible  <bruno@clisp.org>
89435         New module mbssep.
89436         * modules/mbssep: New file.
89437         * lib/mbssep.c: New file.
89438         * lib/string_.h (strsep): Add a conditional link warning.
89439         (mbssep): New declaration.
89440         * m4/mbssep.m4: New file.
89441         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89442         GNULIB_MBSSEP.
89443         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
89444         * MODULES.html.sh (Internationalization functions): Add mbssep.
89446 2007-02-05  Bruno Haible  <bruno@clisp.org>
89448         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
89449         Optimize search in case of 1 delimiter.
89451 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
89453         * lib/acl.h: Include sys/types.h before sys/acl.h.
89455 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
89457         Merge upstream fix for glibc bugzilla #3957:
89459         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
89461         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
89462         bit for RE_HAT_LISTS_NOT_NEWLINE.
89463         (build_charclass_op): Remove bogus comment.
89465 2007-02-05  Simon Josefsson  <simon@josefsson.org>
89467         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
89469 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
89471         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
89472         * lib/memmem.c [!defined _LIBC]: Include config.h.
89474 2007-02-04  Bruno Haible  <bruno@clisp.org>
89476         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
89477         warning message.
89479 2007-02-04  Bruno Haible  <bruno@clisp.org>
89481         New module mbstok_r.
89482         * modules/mbstok_r: New file.
89483         * lib/mbstok_r.c: New file.
89484         * lib/string_.h (strtok_r): Change argument names to match the
89485         comments. Add a conditional link warning.
89486         (mbstok_r): New declaration.
89487         * m4/mbstok_r.m4: New file.
89488         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89489         GNULIB_MBSTOK_R.
89490         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
89491         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
89493 2007-02-04  Bruno Haible  <bruno@clisp.org>
89495         New module mbsspn.
89496         * modules/mbsspn: New file.
89497         * lib/mbsspn.c: New file.
89498         * lib/string_.h (strspn): Add a conditional link warning.
89499         (mbsspn): New declaration.
89500         * m4/mbsspn.m4: New file.
89501         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89502         GNULIB_MBSSPN.
89503         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
89504         * MODULES.html.sh (Internationalization functions): Add mbsspn.
89506 2007-02-04  Bruno Haible  <bruno@clisp.org>
89508         New module mbspbrk.
89509         * modules/mbspbrk: New file.
89510         * lib/mbspbrk.c: New file.
89511         * lib/string_.h (strpbrk): Add a conditional link warning.
89512         (mbspbrk): New declaration.
89513         * m4/mbspbrk.m4: New file.
89514         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89515         GNULIB_MBSPBRK.
89516         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
89517         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
89519 2007-02-04  Bruno Haible  <bruno@clisp.org>
89521         New module mbscspn.
89522         * modules/mbscspn: New file.
89523         * lib/mbscspn.c: New file.
89524         * lib/string_.h (strcspn): Add a conditional link warning.
89525         (mbscspn): New declaration.
89526         * m4/mbscspn.m4: New file.
89527         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89528         GNULIB_MBSCSPN.
89529         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
89530         * MODULES.html.sh (Internationalization functions): Add mbscspn.
89532 2007-02-04  Bruno Haible  <bruno@clisp.org>
89534         New module mbscasestr, reduced goal of strcasestr.
89535         * modules/mbscasestr: New file.
89536         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
89537         (mbscasestr): Renamed from strcasestr.
89538         * lib/strcasestr.c: Don't include mbuiter.h.
89539         (strcasestr): Remove support for multibyte locales.
89540         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
89541         Change the conditional link warning.
89542         (mbscasestr): New declaration.
89543         * m4/mbscasestr.m4: New file.
89544         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
89545         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
89546         REPLACE_STRCASESTR.
89547         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
89548         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
89549         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
89550         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
89551         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
89552         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
89553         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
89554         (Depends-on): Remove mbuiter.
89555         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
89557 2007-02-04  Bruno Haible  <bruno@clisp.org>
89559         Simplify handling of strncasecmp.
89560         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
89561         the conditional link warning.
89562         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
89563         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
89564         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
89565         * modules/strcase (configure.ac): Don't invoke
89566         gl_STRING_MODULE_INDICATOR.
89567         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
89569 2007-02-04  Bruno Haible  <bruno@clisp.org>
89571         New module mbscasecmp, reduced goal of strcasecmp.
89572         * modules/mbscasecmp: New file.
89573         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
89574         (mbscasecmp): Renamed from strcasecmp.
89575         * lib/strcasecmp.c: Don't include mbuiter.h.
89576         (strcasecmp): Remove support for multibyte locales.
89577         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
89578         Change the conditional link warning.
89579         (mbscasecmp): New declaration.
89580         * m4/mbscasecmp.m4: New file.
89581         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
89582         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
89583         REPLACE_STRCASECMP.
89584         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
89585         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89586         GNULIB_MBSCASECMP.
89587         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
89588         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
89589         * modules/strcase (Files): Remove m4/mbrtowc.m4.
89590         (Depends-on): Remove mbuiter.
89591         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
89593 2007-02-04  Bruno Haible  <bruno@clisp.org>
89595         New module mbsstr. Remove module strstr.
89596         * modules/mbsstr: New file.
89597         * modules/strstr: Remove file.
89598         * lib/mbsstr.c: Renamed from lib/strstr.c.
89599         (mbsstr): Renamed from strstr.
89600         * lib/string_.h (strstr): Remove declaration. Change the conditional
89601         link warning.
89602         (mbsstr): New declaration.
89603         * m4/mbsstr.m4: New file.
89604         * m4/strstr.m4: Remove file.
89605         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
89606         REPLACE_STRSTR.
89607         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
89608         Don't initialize GNULIB_STRSTR.
89609         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
89610         substitute GNULIB_STRSTR and REPLACE_STRSTR.
89611         * MODULES.html.sh (Internationalization functions): Add mbsstr.
89612         (Support for systems lacking ANSI C 89): Remove strstr.
89614 2007-02-04  Bruno Haible  <bruno@clisp.org>
89616         New module mbsrchr.
89617         * modules/mbsrchr: New file.
89618         * lib/mbsrchr.c: New file.
89619         * lib/string_.h (strrchr): Add a conditional link warning.
89620         (mbsrchr): New declaration.
89621         * m4/mbsrchr.m4: New file.
89622         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89623         GNULIB_MBSRCHR.
89624         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
89625         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
89627 2007-02-04  Bruno Haible  <bruno@clisp.org>
89629         New module mbschr.
89630         * modules/mbschr: New file.
89631         * lib/mbschr.c: New file.
89632         * lib/string_.h (strchr): Add a conditional link warning.
89633         (mbschr): New declaration.
89634         * m4/mbschr.m4: New file.
89635         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89636         GNULIB_MBSCHR.
89637         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
89638         * MODULES.html.sh (Internationalization functions): Add mbschr.
89640 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
89642         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
89644         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
89646 2007-02-04  Bruno Haible  <bruno@clisp.org>
89648         New module description section 'configure.ac-early'.
89649         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
89650         (func_get_autoconf_early_snippet): New function.
89651         (func_import, func_create_testdir): Use it. Remove special cases for
89652         modules 'extensions' and 'lock'.
89653         * modules/extensions (configure.ac-early): Require
89654         gl_USE_SYSTEM_EXTENSIONS.
89655         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
89657 2007-02-04  Bruno Haible  <bruno@clisp.org>
89659         Make use of gcj-4.3's -fsource and -ftarget option.
89660         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
89661         and if so try the options -fsource and -ftarget.
89662         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
89663         source_version, ftarget_option, target_version arguments.
89664         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
89665         (is_envjavac_oldgcj_14_14_usable): Renamed from
89666         is_envjavac_gcj_14_14_usable.
89667         (is_envjavac_oldgcj_14_13_usable): Renamed from
89668         is_envjavac_gcj_14_13_usable.
89669         (is_gcj_present): Update.
89670         (is_gcj_43, is_gcj43_usable): New functions.
89671         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
89672         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
89673         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
89674         try the options -fsource and -ftarget.
89676 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89678         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
89679         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
89680         larger value.
89682 2007-02-03  Jim Meyering  <jim@meyering.net>
89684         Give tools a better chance to allocate space for very large buffers.
89685         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
89687         Make pwd and readlink work also when run with an unreadable parent dir
89688         on systems with openat support.
89689         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
89690         provided getcwd function, even when we have openat support.
89691         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
89693 2007-02-02  Bruno Haible  <bruno@clisp.org>
89695         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
89696         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
89697         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
89698         portability problems if one of these functions is only used on specific
89699         platforms.
89700         Reported by Paul Eggert.
89702 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
89704         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
89705         is causing more trouble than it's curing.
89706         * lib/regex_internal.h (__mempcpy): Remove.
89707         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
89708         (and make the code a tad smaller to boot).
89709         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
89711 2007-02-02  Jim Meyering  <jim@meyering.net>
89713         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
89714         section, not in the Makefile.am: one.
89716 2007-02-02  Eric Blake  <ebb9@byu.net>
89718         * lib/strchrnul.c: Always include config.h first.
89720         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
89721         gnulib strstr is not necessary here.
89723 2007-02-02  Simon Josefsson  <simon@josefsson.org>
89725         * m4/socklen.m4: Fix typo.
89727 2007-02-02  Eric Blake  <ebb9@byu.net>
89729         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
89730         * modules/netinet_in (Makefile.am): Likewise.
89732 2007-02-01  Bruno Haible  <bruno@clisp.org>
89734         * lib/string_.h (GL_LINK_WARNING): New macro.
89735         (strcasecmp, strstr, strcasestr): If provided by the system,
89736         conditionally define as a macro that leads to a warning instead of to
89737         an error.
89738         (strncasecmp): Conditionally define as a macro that leads to a warning.
89740 2007-02-01  Karl Berry  <karl@gnu.org>
89742         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
89744 2007-02-01  Bruno Haible  <bruno@clisp.org>
89746         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
89747         renamings.
89749 2007-02-01  Eric Blake  <ebb9@byu.net>
89751         * modules/regex (Depends-on): Revert dependence on mempcpy.
89752         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
89753         module's definition of mempcpy.
89754         Reported by Paul Eggert.
89756 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
89758         * lib/string_.h: If the gnulib module XYZ is not present, undefine
89759         the symbol XYZ before redefining it.  This fixes a problem with
89760         programs that don't use XYZ, when compiled on systems that define
89761         XYZ to something else.
89763 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
89765         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
89766         occurs when "mkdir -m foo" creates a setgid directory that is (1)
89767         writeable to group or other and (2) is intended to have a special
89768         mode bit that is set or cleared.  In such a case, the directory
89769         should be neither group- nor other-writeable until the special
89770         mode bits are right.
89772 2007-01-31  Eric Blake  <ebb9@byu.net>
89774         * modules/mountlist (Depends-on): Add strstr.
89776         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
89777         bug.
89778         * modules/string (Makefile.am): Remove redundant replacement.
89779         * modules/regex (Depends-on): Add mempcpy.
89781 2007-01-31  Bruno Haible  <bruno@clisp.org>
89783         New module description field 'Link'.
89784         * gnulib-tool (func_usage): Document --extract-link-directive.
89785         (sed_extract_prog): Recognize 'Link' directive.
89786         (func_get_link_directive): New function.
89787         (func_import): Show summary of link directives.
89788         Handle --extract-link-directive option.
89789         * modules/acl (Link): New section.
89790         * modules/clock-time (Link): New section.
89791         * modules/euidaccess (Link): New section.
89792         * modules/gettext (Link): New section.
89793         * modules/iconv (Link): New section.
89794         * modules/lock (Link): New section.
89795         * modules/nanosleep (Link): New section.
89796         * modules/readline (Link): New section.
89798 2007-01-27  Bruno Haible  <bruno@clisp.org>
89800         Enforce the use of gnulib modules for unportable <string.h> functions.
89801         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
89802         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
89803         (gl_HEADER_STRING_H_BODY): Require it.
89804         * lib/string_.h: If the gnulib module XYZ is not present, redefine
89805         the symbol XYZ to one that gives a link error.
89806         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
89807         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
89808         * modules/mempcpy (configure.ac): Likewise.
89809         * modules/memrchr (configure.ac): Likewise.
89810         * modules/stpcpy (configure.ac): Likewise.
89811         * modules/stpncpy (configure.ac): Likewise.
89812         * modules/strcase (configure.ac): Likewise.
89813         * modules/strcasestr (configure.ac): Likewise.
89814         * modules/strchrnul (configure.ac): Likewise.
89815         * modules/strdup (configure.ac): Likewise.
89816         * modules/strndup (configure.ac): Likewise.
89817         * modules/strnlen (configure.ac): Likewise.
89818         * modules/strpbrk (configure.ac): Likewise.
89819         * modules/strsep (configure.ac): Likewise.
89820         * modules/strstr (configure.ac): Likewise.
89821         * modules/strtok_r (configure.ac): Likewise.
89823 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
89825         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
89827 2007-01-30  Jim Meyering  <jim@meyering.net>
89829         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
89831 2007-01-29  Bruno Haible  <bruno@clisp.org>
89833         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
89834         * lib/execute.c: Likewise.
89835         * lib/pipe.c: Likewise.
89836         * lib/printf-args.h: Likewise.
89837         * lib/printf-args.c: Likewise.
89838         * lib/printf-parse.c: Likewise.
89839         * lib/vasnprintf.c: Likewise.
89841 2007-01-29  Eric Blake  <ebb9@byu.net>
89843         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
89844         declaration.
89846 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
89848         * lib/strptime.h (strptime): Use 'restrict' for args where
89849         POSIX requires this.
89850         * lib/strptime.c (strptime): Likewise.
89851         Change license notice from LGPL to GPL, since gnulib-tool will
89852         change this as needed.
89853         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
89854         defined.
89855         Include "strptime.h" first, to check interface.
89856         Do not #undef _LIBC and _NL_CURRENT.
89857         Do not include <stdlib.h>; no longer needed.
89858         Include "time_r.h" and declare ptime_locale_status
89859         only if _LIBC is not defined.
89860         (__P): Remove unused macro.
89861         (match_string): Bring back glibc version, but use it only if _LIBC
89862         is defined.
89863         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
89864         Remove unnecessary assertion and abort() call.
89865         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
89866         * m4/strptime.m4: Fix serial number comment.
89867         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
89868         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
89869         (Depends-on): Add time_r.
89871 2007-01-29  Bruno Haible  <bruno@clisp.org>
89873         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89874         strptime.
89875         * modules/strptime (Depends-on): Add stdbool.
89876         * lib/strptime.h: Include <time.h> always. Add comments.
89878 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89880         * modules/strptime: New file.
89881         * lib/strptime.h: New file.
89882         * lib/strptime.c: New file.
89883         * m4/strptime.m4: New file.
89885 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89887         * MODULES.html.sh: New module mpsort.
89888         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
89890         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
89891         a circularity problem with HP-UX ia64 reported by Bob Proulx in
89892         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
89893         All uses changed.
89894         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
89895         All uses changed.
89896         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
89897         to _Restrict_.
89898         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
89899         the parameter matches the prototype.
89901 2007-01-28  Jim Meyering  <jim@meyering.net>
89903         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
89904         sys/time.h here, reverting that part of the previous patch:
89905         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
89907 2007-01-28  Bruno Haible  <bruno@clisp.org>
89909         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
89910         value of $(SYS_TIME_H).
89911         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
89912         remove it conditionally, too. [added by Jim Meyering]
89913         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
89914         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
89915         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
89916         GETTIMEOFDAY_REPLACEMENT to 1.
89918 2007-01-28  Bruno Haible  <bruno@clisp.org>
89920         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
89921         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
89922         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
89923         Set UNISTD_H instead of UNISTD_H2.
89924         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
89926 2007-01-28  Bruno Haible  <bruno@clisp.org>
89928         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
89929         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
89931 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89933         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
89934         (func_create_testdir): Ensure C locale for `grep' and `tr'
89935         character ranges.
89936         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
89937         ACLOCAL_AMFLAGS parsing state machine.
89939 2007-01-27  Bruno Haible  <bruno@clisp.org>
89941         * modules/unistr/base: Update.
89943 2007-01-27  Bruno Haible  <bruno@clisp.org>
89945         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
89946         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
89947         * modules/unistr/u32-mbtouc-unsafe: Renamed from
89948         modules/unistr/u32-mbtouc.
89949         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
89950         * lib/unistr.h: Update.
89951         * lib/linebreak.c: Update.
89952         * modules/unistr/u32-mbtouc: Renamed from
89953         modules/unistr/u32-mbtouc-safe.
89954         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
89955         * lib/unistr.h: Update.
89956         * lib/unistr/u32-to-u8.c: Update.
89957         * lib/unistr/u32-to-u16.c: Update.
89959 2007-01-27  Bruno Haible  <bruno@clisp.org>
89961         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
89962         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
89963         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
89964         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
89965         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
89966         * modules/unistr/u16-mbtouc-unsafe: Renamed from
89967         modules/unistr/u16-mbtouc.
89968         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
89969         * lib/unistr.h: Update.
89970         * lib/linebreak.c: Update.
89971         * modules/linebreak: Update.
89972         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
89973         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
89974         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
89975         * modules/unistr/u16-mbtouc: Renamed from
89976         modules/unistr/u16-mbtouc-safe.
89977         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
89978         * lib/unistr.h: Update.
89979         * lib/unistr/u16-to-u8.c: Update.
89980         * modules/unistr/u16-to-u8: Update.
89981         * lib/unistr/u16-to-u32.c: Update.
89982         * modules/unistr/u16-to-u32: Update.
89984 2007-01-27  Bruno Haible  <bruno@clisp.org>
89986         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
89987         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
89988         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
89989         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
89990         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
89991         * modules/unistr/u8-mbtouc-unsafe: Renamed from
89992         modules/unistr/u8-mbtouc.
89993         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
89994         * lib/unistr.h: Update.
89995         * lib/striconveh.c: Update.
89996         * modules/striconveh: Update.
89997         * lib/linebreak.c: Update.
89998         * modules/linebreak: Update.
89999         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
90000         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
90001         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
90002         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
90003         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
90004         * lib/unistr.h: Update.
90005         * lib/striconveh.c: Update.
90006         * modules/striconveh: Update.
90007         * lib/unistr/u8-to-u16.c: Update.
90008         * modules/unistr/u8-to-u16: Update.
90009         * lib/unistr/u8-to-u32.c: Update.
90010         * modules/unistr/u8-to-u32: Update.
90012 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90014         Sync from Libtool.
90015         * lib/argz.c: Do not include strings.h nor memory.h, include
90016         string.h unconditionally.  Patch by Simon Josefsson.
90018 2007-01-27  Bruno Haible  <bruno@clisp.org>
90020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
90021         from gl_HEADER_STRING_H_BODY.
90022         (gl_HEADER_STRING_H_BODY): Require it.
90023         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
90024         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
90025         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
90026         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
90027         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
90028         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
90029         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90030         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
90031         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
90032         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
90033         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
90034         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
90035         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
90036         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90037         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
90039 2007-01-27  Bruno Haible  <bruno@clisp.org>
90041         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
90042         check_PROGRAMS into noinst_PROGRAMS.
90043         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
90044         check_PROGRAMS in this case.
90045         (func_import): Set for_test to false.
90046         (func_create_testdir): Set for_test to true.
90048 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90049             Bruno Haible  <bruno@clisp.org>
90051         * modules/strcasestr (Files): Remove lib/strcasestr.h.
90052         (Depends-on): Add string.
90053         (Includes): Use <string.h> instead of strcasestr.h.
90054         * modules/string (Makefile.am): Also substitute the value of
90055         REPLACE_STRCASESTR.
90056         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
90057         assume strcasestr is declared in <string.h> not <strings.h>. Also
90058         set REPLACE_STRCASESTR.
90059         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
90060         REPLACE_STRCASESTR.
90061         * lib/strcasestr.h: Remove file.
90062         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
90063         * lib/string_.h (strcasestr): New declaration.
90065 2007-01-27  Bruno Haible  <bruno@clisp.org>
90067         * lib/string_.h: Use 'extern'.
90069 2007-01-27  Jim Meyering  <jim@meyering.net>
90071         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
90072         of set-but-not-used local, "q".
90074         * lib/mempcpy.c: Include <config.h> before <string.h>.
90075         This fixes a compilation error on HP-UX, due to the system's
90076         "restrict"-using mempcpy prototype.
90078 2007-01-26  Bruno Haible  <bruno@clisp.org>
90080         Small optimization.
90081         * lib/javacomp.c: Include c-strstr.h.
90082          (is_envjavac_gcj): Use c_strstr instead of strstr.
90083         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
90085 2007-01-26  Bruno Haible  <bruno@clisp.org>
90087         * MODULES.html.sh (Unicode string functions): Add the new modules.
90089         * modules/uniconv/u32-strconv-to-locale: New file.
90090         * lib/uniconv/u32-strconv-to-locale.c: New file.
90092         * modules/uniconv/u16-strconv-to-locale: New file.
90093         * lib/uniconv/u16-strconv-to-locale.c: New file.
90095         * modules/uniconv/u8-strconv-to-locale: New file.
90096         * lib/uniconv/u8-strconv-to-locale.c: New file.
90098         * modules/uniconv/u32-strconv-from-locale: New file.
90099         * lib/uniconv/u32-strconv-from-locale.c: New file.
90101         * modules/uniconv/u16-strconv-from-locale: New file.
90102         * lib/uniconv/u16-strconv-from-locale.c: New file.
90104         * modules/uniconv/u8-strconv-from-locale: New file.
90105         * lib/uniconv/u8-strconv-from-locale.c: New file.
90107         * modules/uniconv/u32-strconv-to-enc: New file.
90108         * lib/uniconv/u32-strconv-to-enc.c: New file.
90109         * modules/uniconv/u32-strconv-to-enc-tests: New file.
90110         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
90112         * modules/uniconv/u16-strconv-to-enc: New file.
90113         * lib/uniconv/u16-strconv-to-enc.c: New file.
90114         * lib/uniconv/u-strconv-to-enc.h: New file.
90115         * modules/uniconv/u16-strconv-to-enc-tests: New file.
90116         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
90118         * modules/uniconv/u8-strconv-to-enc: New file.
90119         * lib/uniconv/u8-strconv-to-enc.c: New file.
90120         * modules/uniconv/u8-strconv-to-enc-tests: New file.
90121         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
90123         * modules/uniconv/u32-strconv-from-enc: New file.
90124         * lib/uniconv/u32-strconv-from-enc.c: New file.
90125         * modules/uniconv/u32-strconv-from-enc-tests: New file.
90126         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
90128         * modules/uniconv/u16-strconv-from-enc: New file.
90129         * lib/uniconv/u16-strconv-from-enc.c: New file.
90130         * modules/uniconv/u16-strconv-from-enc-tests: New file.
90131         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
90133         * modules/uniconv/u8-strconv-from-enc: New file.
90134         * lib/uniconv/u8-strconv-from-enc.c: New file.
90135         * lib/uniconv/u-strconv-from-enc.h: New file.
90136         * modules/uniconv/u8-strconv-from-enc-tests: New file.
90137         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
90139         * modules/uniconv/u32-conv-from-enc: New file.
90140         * lib/uniconv/u32-conv-from-enc.c: New file.
90141         * modules/uniconv/u32-conv-from-enc-tests: New file.
90142         * tests/uniconv/test-u32-conv-from-enc.c: New file.
90144         * modules/uniconv/u16-conv-from-enc: New file.
90145         * lib/uniconv/u16-conv-from-enc.c: New file.
90146         * lib/uniconv/u-conv-from-enc.h: New file.
90147         * modules/uniconv/u16-conv-from-enc-tests: New file.
90148         * tests/uniconv/test-u16-conv-from-enc.c: New file.
90150         * modules/uniconv/u8-conv-from-enc: New file.
90151         * lib/uniconv/u8-conv-from-enc.c: New file.
90152         * modules/uniconv/u8-conv-from-enc-tests: New file.
90153         * tests/uniconv/test-u8-conv-from-enc.c: New file.
90155         * modules/uniconv/base: New file.
90156         * lib/uniconv.h: New file.
90158 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
90160         * doc/gnulib-tool.texi (Initial import): Update to match current
90161         behavior with strdup module.
90162         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
90163         * lib/memmem.h: Remove; all uses removed.  This is now done
90164         by <string.h>.
90165         * lib/mempcpy.h: Likewise.
90166         * lib/memrchr.h: Likewise.
90167         * lib/stpcpy.h: Likewise.
90168         * lib/stpncpy.h: Likewise.
90169         * lib/strcase.h: Likewise.
90170         * lib/strchrnul.h: Likewise.
90171         * lib/strdup.h: Likewise.
90172         * lib/strndup.h: Likewise.
90173         * lib/strnlen.h: Likewise.
90174         * lib/strpbrk.h: Likewise.
90175         * lib/strsep.h: Likewise.
90176         * lib/strstr.h: Likewise.
90177         * lib/strtok_r.h: Likewise.
90178         * lib/string_.h: New file.
90179         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
90180         Rely on <string.h> instead.
90181         * lib/canon-host.c: Likewise.
90182         * lib/chdir-long.c: Likewise.
90183         * lib/concatpath.c: Likewise.
90184         * lib/exclude.c: Likewise.
90185         * lib/fchdir.c: Likewise.
90186         * lib/getaddrinfo.c: Likewise.
90187         * lib/getcwd.c: Likewise.
90188         * lib/getsubopt.c: Likewise.
90189         * lib/glob.c: Likewise.
90190         * lib/hard-locale.c: Likewise.
90191         * lib/iconvme.c: Likewise.
90192         * lib/javacomp.c: Likewise.
90193         * lib/mempcpy.c: Likewise.
90194         * lib/memrchr.c: Likewise.
90195         * lib/regex_internal.h: Likewise.
90196         * lib/stpncpy.c: Likewise.
90197         * lib/strcasecmp.c: Likewise.
90198         * lib/strchrnul.c: Likewise.
90199         * lib/strdup.c: Likewise.
90200         * lib/striconv.c: Likewise.
90201         * lib/striconveh.c: Likewise.
90202         * lib/striconveha.c: Likewise.
90203         * lib/strncasecmp.c: Likewise.
90204         * lib/strndup.c: Likewise.
90205         * lib/strnlen.c: Likewise.
90206         * lib/strsep.c: Likewise.
90207         * lib/strstr.c: Likewise.
90208         * lib/strtok_r.c: Likewise.
90209         * lib/userspec.c: Likewise.
90210         * lib/w32spawn.h: Likewise.
90211         * lib/xstrndup.c: Likewise.
90212         * lib/mountlist.c (strstr): Remove decl.
90213         * m4/string_h.m4: New file.
90214         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
90215         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
90216         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
90217         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
90218         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
90219         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
90220         Set REPLACE_STRCASECMP if necessary.
90221         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
90222         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
90223         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
90224         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
90225         HAVE_DECL_STRDUP if necessary.
90226         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
90227         since gl_FUNC_STRNDUP does that now.
90228         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
90229         Check for decl here...
90230         (gl_PREREQ_STRNLEN): ... not here.
90231         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
90232         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
90233         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
90234         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
90235         necessary.
90236         * modules/string: New file.
90237         * modules/memmem (Files): Remove special-purpose include file.
90238         (Depends-on): Add string.
90239         (Include): Include <string.h>, not the removed file.
90240         * modules/mempcpy: Likewise.
90241         * modules/memrchr: Likewise.
90242         * modules/stpcpy: Likewise.
90243         * modules/stpncpy: Likewise.
90244         * modules/strcase: Likewise.
90245         * modules/strchrnul: Likewise.
90246         * modules/strdup: Likewise.
90247         * modules/strndup: Likewise.
90248         * modules/strnlen: Likewise.
90249         * modules/strpbrk: Likewise.
90250         * modules/strsep: Likewise.
90251         * modules/strstr: Likewise.
90252         * modules/strtok_r: Likewise.
90253         * tests/test-dirname.c: Don't include "strdup.h", since
90254         <string.h> now suffices.
90255         * tests/test-memmem.c: Don't include "memmem.h", since
90256         <string.h> now suffices.
90258 2007-01-25  Bruno Haible  <bruno@clisp.org>
90260         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
90261         *resultp is 0.
90263         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
90264         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
90265         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
90266         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
90268         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
90269         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
90270         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
90271         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
90272         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
90273         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
90275 2007-01-24  Bruno Haible  <bruno@clisp.org>
90277         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
90278         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
90279         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
90280         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
90281         gl_FUNC_FTS_CORE.
90282         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
90283         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
90284         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90285         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
90286         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
90287         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
90288         gl_FUNC_FCHOWNAT.
90289         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
90290         gl_FUNC_STRFTIME.
90291         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
90292         Reported by Ralf Wildenhues.
90294 2007-01-24  Bruno Haible  <bruno@clisp.org>
90296         Drop AC_REQUIRE calls that are redundant with the module dependencies.
90297         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
90298         gl_GETADDRINFO.
90299         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
90300         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
90301         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
90303 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
90305         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
90306         Don't use 'exit'; just return from 'main'.
90307         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
90309         * lib/fnmatch_.h: Readjust white space and comments to match
90310         glibc, to avoid spurious diffs.
90312 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
90314         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
90315         2004-12-01 change by Jakub Jelinek, since this code won't compile
90316         if !LIBC.  Problem reported by Bob Proulx.
90318 2007-01-23  Bruno Haible  <bruno@clisp.org>
90320         * lib/striconveh.c: Include c-strcaseeq.h.
90321         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
90322         * modules/striconveh (Depends-on): Add c-strcaseeq.
90324 2007-01-23  Bruno Haible  <bruno@clisp.org>
90326         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
90328         * modules/c-strcaseeq: New file.
90329         * lib/c-strcaseeq.h: New file.
90331         * modules/streq: New file.
90332         * lib/streq.h: New file.
90334 2007-01-23  Bruno Haible  <bruno@clisp.org>
90336         * modules/striconveha-tests: New file.
90337         * tests/test-striconveha.c: New file.
90339         * lib/striconveha.h: Include <stdbool.h>.
90340         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
90341         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
90342         (mem_iconveha_notranslit): Renamed from mem_iconveha.
90343         (mem_iconveha): New function.
90344         (str_iconveha_notranslit): Renamed from str_iconveha.
90345         (str_iconveha): New function.
90346         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
90347         c-strcase.
90349 2007-01-23  Bruno Haible  <bruno@clisp.org>
90351         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
90352         encodings without forgiving before trying any encoding with handler.
90353         (str_iconveha): Try all encodings without forgiving before trying any
90354         encoding with handler.
90356 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
90358         Import the following changes from libc.
90360         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
90362         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
90364         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
90366         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
90367         normal_bracket label.
90369         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
90371         [BZ #361]
90372         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
90373         to normal_bracket after fetching the next character.
90375 2007-01-22  Bruno Haible  <bruno@clisp.org>
90377         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
90378         argument.
90379         * lib/striconveh.c (iconv_carefully_1): New function.
90380         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
90381         argument.
90382         (str_cd_iconveh): Update.
90383         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
90384         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
90385         * tests/test-striconveh.c (MAGIC): New macro.
90386         (new_offsets): New function.
90387         (main): Test call with and without offsets.
90389 2007-01-22  Bruno Haible  <bruno@clisp.org>
90391         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
90392         * modules/sys_select (Makefile.am): Likewise.
90393         * modules/sys_socket (Makefile.am): Likewise.
90394         * modules/sys_time (Makefile.am): Likewise.
90396 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
90398         * modules/gettimeofday (License): Change from GPL to LGPL, since
90399         gettimeofday is a library function.
90401 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90403         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
90405 2007-01-21  Bruno Haible  <bruno@clisp.org>
90407         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
90409 2007-01-21  Bruno Haible  <bruno@clisp.org>
90411         * modules/striconveha: New file.
90412         * lib/striconveha.h: New file.
90413         * lib/striconveha.c: New file.
90414         * MODULES.html.sh (Internationalization functions): Add striconveha.
90415         * lib/striconv.c (str_iconv): Optimize the case of an empty input
90416         string.
90417         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
90419 2007-01-21  Bruno Haible  <bruno@clisp.org>
90421         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
90422         * lib/striconveh.c (str_iconveh): Likewise.
90424 2007-01-21  Bruno Haible  <bruno@clisp.org>
90426         * lib/striconveh.h (mem_iconveh): New declaration.
90427         * lib/striconveh.c (mem_iconveh): New function.
90428         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
90430 2007-01-21  Bruno Haible  <bruno@clisp.org>
90432         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
90434         * lib/striconveh.h (mem_cd_iconveh): Change specification.
90435         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
90436         original result buffer.
90437         (str_cd_iconveh): Update.
90438         * tests/test-striconveh.c (main): Update.
90440         * lib/striconv.h (mem_cd_iconv): Change specification.
90441         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
90442         result buffer.
90443         (str_cd_iconv): Update.
90444         * tests/test-striconv.c (main): Update.
90446 2007-01-21  Bruno Haible  <bruno@clisp.org>
90448         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
90450 2007-01-20  Jim Meyering  <jim@meyering.net>
90452         * lib/userspec.c (parse_with_separator): If a user or group string
90453         starts with "+", skip the corresponding name-to-ID look-up, since
90454         such a look-up must fail: user and group names may not include "+".
90456 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
90458         * lib/poll.c: Include sys/time.h and time.h unconditionally,
90459         since we now assume the sys_time module.
90460         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
90461         check for sys/time.h; no longer needed.
90462         * modules/poll (Depends-on): Depend on sys_time.
90464 2007-01-18  Bruno Haible  <bruno@clisp.org>
90466         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
90467         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
90469         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
90470         gettimeofday.
90472         * tests/test-gettimeofday.c: Include <time.h>.
90473         (dummy): Remove variable.
90475         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
90476         gl_HEADER_SYS_TIME_H.
90477         (gl_HEADER_SYS_TIME_H): New macro.
90479         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
90480         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90481         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
90482         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
90483         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90484         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
90485         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
90486         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90487         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
90488         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
90489         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90491         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
90492         last change; it caused a compilation error when cross-compiling to
90493         Cygwin.
90495 2007-01-18  Jim Meyering  <jim@meyering.net>
90497         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
90498         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
90499         than the race-prone "test -d sys || mkdir sys".
90500         (configure.ac): Use AC_PROG_MKDIR_P.
90501         * modules/sys_select: Likewise.
90502         * modules/sys_socket: Likewise.
90503         * modules/sys_time: Likewise.
90505 2007-01-18  Eric Blake  <ebb9@byu.net>
90507         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
90508         replace gettimeofday.
90509         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
90510         name, to avoid infinite recursion.
90512 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
90514         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
90515         module sys_time.
90516         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
90517         assume timespec.h defines struct timeval.
90518         * lib/settime.c: Likewise.
90519         * lib/utimens.c: Likewise.
90520         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
90521         since we now assume the gettimeofday module.
90522         * lib/tempname.c (__gen_tempname): Likewise.
90523         * lib/gettimeofday.h: Remove.
90524         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
90525         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
90526         Include <time.h>, for 'time()'.
90527         (localtime_buffer_addr): Also use this workaround if
90528         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
90529         to simplify the uses.  All uses changed.
90530         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
90531         that #undef is inside {}, and 'const' follows type name consistently.
90532         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
90533         (gettimeofday): Do not use the maximum possible value for
90534         tv->tv_usec, since that might break usages other than ls.c.
90535         Instead, we'll leave ls.c alone.  This undoes today's patch
90536         by Bruno.  Add a compile-time warning for 1s-clock resolution;
90537         we've never observed the problem but might as well keep the
90538         canary.
90539         * lib/nanosleep.c: Include timespec.h first, for interface check.
90540         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
90541         now assume the sys_time module.
90542         * lib/tempname.c: Likewise.
90543         * lib/timespec.h: Likewise.
90544         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
90545         needed.
90546         * lib/strftime.c: Likewise.
90547         * lib/timespec.h: Likewise.
90548         * lib/posixtm.c: Include posixtm.h first, for interface check.
90549         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
90550         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
90551         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
90552         * lib/sys_time_.h: New file.
90553         * lib/timespec.h (struct timespec): Use long int, not long.
90554         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
90555         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
90556         Remove obsolescent call to AC_HEADER_TIME.
90557         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
90558         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
90559         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
90560         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
90561         Likewise.
90562         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
90563         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
90564         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
90565         into the sys_time module.  Check for gettimeofday just once.
90566         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
90567         for gettimeofday signature to just check the signature.  Merely
90568         compile it, since linking doesn't test signature.  Improve test for
90569         whether gettimeofday.o is actually needed.
90570         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
90571         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
90572         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
90573         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90574         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
90575         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
90576         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
90577         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
90578         than worrying about sys/time.h.
90579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
90580         Don't bother worrying about TIME_WITH_SYS_TIME.
90581         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
90582         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
90583         * m4/sys_time_h.m4: New file.
90584         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
90585         Don't include sys/time.h.  Return from main rather than exiting.
90586         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
90587         all uses changed.
90588         * modules/gethrxtime (Depends-on): Add sys_time.
90589         * modules/gettime (Depends-on): Likewise.
90590         * modules/gettimeofday (Depends-on): Likewise.
90591         * modules/nanosleep (Depends-on): Likewise.
90592         * modules/settime (Depends-on): Likewise.
90593         * modules/tempname (Depends-on): Likewise.
90594         * modules/utimens (Depends-on): Likewise.
90595         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
90596         (Include): Change back to <sys/time.h>.
90597         (Maintainer): Add self.
90598         * modules/sys_time: New file.
90599         * modules/tempname (Depends-on): Add gettimeofday.
90600         * tests/test-gettimeofday.c: Include <sys/time.h>
90601         rather than gettimeofday.h.
90603 2007-01-17  Bruno Haible  <bruno@clisp.org>
90605         * gnulib-tool (func_get_license): Revert last patch. Instead, let
90606         the license default to GPL.
90607         (func_create_testdir): Don't complain if a module is LGPL and its
90608         tests module depends on GPLed modules.
90610 2007-01-17  Bruno Haible  <bruno@clisp.org>
90612         * lib/gettimeofday.c (gettimeofday): Add code for the case
90613         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
90614         maximum possible value for tv->tv_usec, rather than the minimum one.
90616 2005-10-08  Martin Lambers  <marlam@marlam.de>
90617 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
90618 2007-01-16  Bruno Haible  <bruno@clisp.org>
90620         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
90621         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
90622         gl_FUNC_GETTIMEOFDAY.
90623         (Include): Add gettimeofday.h.
90624         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
90625         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
90626         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
90627         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
90628         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
90629         * lib/gettimeofday.h: New file.
90630         * lib/gettimeofday.c: Include <sys/timeb.h>.
90631         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
90632         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90633         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
90634         fall back on time().
90636         * tests/test-gettimeofday.c: New file.
90637         * modules/gettimeofday-tests: New file.
90639 2007-01-16  Eric Blake  <ebb9@byu.net>
90641         * modules/fnmatch (Depends-on): Depend on wchar.
90642         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
90643         * m4/fnmatch.m4: Likewise.
90644         * modules/mbchar (Makefile.am): Assume <wchar.h>.
90645         * m4/mbchar.m4: Likewise.
90646         * modules/mbswidth (Depends-on): Depend on wchar.
90647         * lib/mbswidth.c: Assume <wchar.h>.
90648         * m4/mbswidth.m4: Likewise.
90649         * modules/quotearg (Depends-on): Depend on wchar.
90650         * lib/quotearg.c: Assume <wchar.h>.
90651         * m4/quotearg.m4: Likewise.
90652         * modules/regex (Depends-on): Depend on wchar.
90653         * lib/regex_internal.h: Assume <wchar.h>.
90654         * m4/regex.m4: Likewise.
90655         * modules/stdint (Depends-on): Depend on wchar.
90656         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
90657         * m4/stdint.m4: Likewise.
90658         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
90659         * modules/strftime (Depends-on): Depend on wchar.
90660         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
90661         * modules/strtol (Depends-on): Depend on wchar.
90662         * lib/strtol.c: Assume <wchar.h>.
90663         * modules/wcwidth (Depends-on): Depend on wchar.
90664         * lib/wcwidth.h: Assume <wchar.h>.
90665         * m4/wcwidth.m4: Likewise.
90667 2007-01-16  Bruno Haible  <bruno@clisp.org>
90669         * modules/csharpexec-script: New, created from...
90670         * modules/csharpexec: ... this.
90672 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
90674         * modules/javaexec-script: New, created from...
90675         * modules/javaexec: ... this.
90677 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90679         * modules/poll (Dependencies): Add sys_select.
90681 2007-01-15  Jim Meyering  <jim@meyering.net>
90683         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
90684         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
90685         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
90686         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
90688 2007-01-15  Bruno Haible  <bruno@clisp.org>
90690         * modules/striconveh: New file.
90691         * lib/striconveh.h: New file.
90692         * lib/striconveh.c: New file.
90693         * MODULES.html.sh (Internationalization functions): Add striconveh.
90695         * modules/striconveh-tests: New file.
90696         * tests/test-striconveh.c: New file.
90698 2007-01-15  Bruno Haible  <bruno@clisp.org>
90700         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
90701         not from GNU libiconv or GNU libc.
90703 2007-01-15  Bruno Haible  <bruno@clisp.org>
90705         * doc/gnulib-intro.texi (Copyright): Explain the different license
90706         terms for module descriptions, autoconf macros, tests, documentation.
90708 2007-01-14  Bruno Haible  <bruno@clisp.org>
90710         * modules/striconv-tests: New file.
90711         * tests/test-striconv.c: New file.
90713 2007-01-14  Bruno Haible  <bruno@clisp.org>
90715         * modules/iconv-tests: New file.
90716         * tests/test-iconv.c: New file.
90718 2007-01-14  Bruno Haible  <bruno@clisp.org>
90720         * gnulib-tool (func_get_license): For test modules, use the license of
90721         the main module.
90723 2007-01-14  Bruno Haible  <bruno@clisp.org>
90725         * modules/iconv (Include): Clarify that <iconv.h> can only be included
90726         if iconv is found to exist.
90728 2007-01-14  Bruno Haible  <bruno@clisp.org>
90730         * modules/c-ctype-tests: New file.
90731         * tests/test-c-ctype.c: New file.
90733 2007-01-14  Bruno Haible  <bruno@clisp.org>
90735         * modules/binary-io-tests: New file.
90736         * tests/test-binary-io.sh: New file.
90737         * tests/test-binary-io.c: New file.
90739 2007-01-14  Bruno Haible  <bruno@clisp.org>
90741         * modules/array-oset-tests: New file.
90742         * tests/test-array_oset.c: New file.
90744 2007-01-14  Bruno Haible  <bruno@clisp.org>
90746         * modules/array-list-tests: New file.
90747         * tests/test-array_list.c: New file.
90749 2007-01-14  Bruno Haible  <bruno@clisp.org>
90751         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
90752         and make.
90753         Reported by Simon Josefsson in
90754         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
90756 2007-01-14  Bruno Haible  <bruno@clisp.org>
90758         * modules/allocsa-tests: New file.
90759         * tests/test-allocsa.c: New file.
90761 2007-01-14  Bruno Haible  <bruno@clisp.org>
90763         * modules/fchdir (Depends-on): Add absolute-header.
90764         * modules/unistd (Depends-on): Likewise.
90766 2006-12-30  Bruno Haible  <bruno@clisp.org>
90768         * modules/fchdir: New file.
90769         * modules/unistd (Files): Add lib/unistd_.h.
90770         (Makefile.am): Generate unistd.h from unistd_.h.
90771         * lib/fchdir.c: New file.
90772         * lib/dirent_.h: New file.
90773         * lib/unistd_.h: New file.
90774         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
90775         * m4/fchdir.m4: New file.
90776         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
90777         (gl_HEADER_UNISTD): Invoke it.
90778         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
90779         function.
90780         * lib/backupfile.c (opendir, closedir): Undefine.
90781         * lib/chown.c (open, close): Undefine.
90782         * lib/clean-temp.c (open, close): Undefine.
90783         * lib/copy-file.c (open, close): Undefine.
90784         * lib/execute.c (open, close): Undefine.
90785         * lib/fsusage.c (open, close): Undefine.
90786         * lib/gc-gnulib.c (open, close): Undefine.
90787         * lib/getcwd.c (opendir, closedir): Undefine.
90788         * lib/glob.c (opendir, closedir): Undefine.
90789         * lib/javacomp.c (open, close): Undefine.
90790         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
90791         * lib/openat-proc.c (open, close): Undefine.
90792         * lib/pagealign_alloc.c (open, close): Undefine.
90793         * lib/pipe.c (open, close): Undefine.
90794         * lib/progreloc.c (open, close): Undefine.
90795         * lib/savedir.c (opendir, closedir): Undefine.
90796         * lib/utime.c (open, close): Undefine.
90797         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
90799 2007-01-10  Bruno Haible  <bruno@clisp.org>
90801         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
90803 2007-01-12  Eric Blake  <ebb9@byu.net>
90805         Provide a robust <wchar.h>.  Further simplifications are now
90806         possible in other modules, but not included here.
90807         * modules/wchar: New module.
90808         * m4/wchar.m4: New file.
90809         * lib/wchar_.h: Likewise.
90810         * modules/mbchar (Depends-on): Depend on wchar, as the first use
90811         of the new module.
90812         * MODULES.html.sh (Extended multibyte and wide character utilities):
90813         New section.
90815 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
90817         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
90818         to a reasonable default for memory allocation.
90819         (xreadlink): Don't allocate a huge buffer, to work around a buggy
90820         file system that reports garbage st_size values for symlinks.
90821         Problem reported by Liyang Hu.
90823 2007-01-11  Simon Josefsson  <simon@josefsson.org>
90825         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
90826         Emacs .#* auto-save files).
90828 2007-01-11  Bruno Haible  <bruno@clisp.org>
90830         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
90831         directory.
90833 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
90835         Use @...@ consistently in lib/wctype_.h.
90836         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
90837         on it being set to 1 or 0.
90838         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
90839         go back to AC_SUBSTing it.
90840         * modules/wctype (Makefile.am): Undo previous change.
90842 2007-01-10  Eric Blake  <ebb9@byu.net>
90844         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
90845         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
90846         * modules/wctype (Makefile.am): Likewise.
90847         Reported by Chris McGuire.
90849 2007-01-10  Jim Meyering  <jim@meyering.net>
90851         fts.c: a small readability/maintainability improvement
90852         * lib/fts.c (fts_read): Make this code slightly more readable and
90853         maintainable by hoisting the "sp->fts_cur = p" assignments to
90854         immediately follow the statements that set P.  Derived from
90855         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
90857 2007-01-10  Eric Blake  <ebb9@byu.net>
90859         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
90860         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
90861         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
90862         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
90863         Reported by Chris McGuire.
90865 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90867         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
90868         in sed script.
90870 2007-01-09  Bruno Haible  <bruno@clisp.org>
90872         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
90873         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
90874         variables.
90875         (func_module): Use them.
90877 2007-01-09  Bruno Haible  <bruno@clisp.org>
90879         * modules/unistr/base: New file.
90880         * lib/unistr.h: New file.
90882         * modules/unistr/u8-to-u16: New file.
90883         * lib/unistr/u8-to-u16.c: New file.
90885         * modules/unistr/u8-to-u32: New file.
90886         * lib/unistr/u8-to-u32.c: New file.
90888         * modules/unistr/u16-to-u8: New file.
90889         * lib/unistr/u16-to-u8.c: New file.
90891         * modules/unistr/u16-to-u32: New file.
90892         * lib/unistr/u16-to-u32.c: New file.
90894         * modules/unistr/u32-to-u8: New file.
90895         * lib/unistr/u32-to-u8.c: New file.
90897         * modules/unistr/u32-to-u16: New file.
90898         * lib/unistr/u32-to-u16.c: New file.
90900         * modules/unistr/u8-check: New file.
90901         * modules/unistr/u16-check: New file.
90902         * modules/unistr/u32-check: New file.
90903         * lib/unistr/u8-check.c: New file.
90904         * lib/unistr/u16-check.c: New file.
90905         * lib/unistr/u32-check.c: New file.
90907         * modules/unistr/u8-chr: New file.
90908         * modules/unistr/u16-chr: New file.
90909         * modules/unistr/u32-chr: New file.
90910         * lib/unistr/u8-chr.c: New file.
90911         * lib/unistr/u16-chr.c: New file.
90912         * lib/unistr/u32-chr.c: New file.
90914         * modules/unistr/u8-cmp: New file.
90915         * modules/unistr/u16-cmp: New file.
90916         * modules/unistr/u32-cmp: New file.
90917         * lib/unistr/u8-cmp.c: New file.
90918         * lib/unistr/u16-cmp.c: New file.
90919         * lib/unistr/u32-cmp.c: New file.
90921         * modules/unistr/u8-cpy: New file.
90922         * modules/unistr/u16-cpy: New file.
90923         * modules/unistr/u32-cpy: New file.
90924         * lib/unistr/u8-cpy.c: New file.
90925         * lib/unistr/u16-cpy.c: New file.
90926         * lib/unistr/u32-cpy.c: New file.
90927         * lib/unistr/u-cpy.h: New file.
90929         * modules/unistr/u8-cpy-alloc: New file.
90930         * modules/unistr/u16-cpy-alloc: New file.
90931         * modules/unistr/u32-cpy-alloc: New file.
90932         * lib/unistr/u8-cpy-alloc.c: New file.
90933         * lib/unistr/u16-cpy-alloc.c: New file.
90934         * lib/unistr/u32-cpy-alloc.c: New file.
90935         * lib/unistr/u-cpy-alloc.h: New file.
90937         * modules/unistr/u8-endswith: New file.
90938         * modules/unistr/u16-endswith: New file.
90939         * modules/unistr/u32-endswith: New file.
90940         * lib/unistr/u8-endswith.c: New file.
90941         * lib/unistr/u16-endswith.c: New file.
90942         * lib/unistr/u32-endswith.c: New file.
90943         * lib/unistr/u-endswith.h: New file.
90945         * modules/unistr/u8-mblen: New file.
90946         * modules/unistr/u16-mblen: New file.
90947         * modules/unistr/u32-mblen: New file.
90948         * lib/unistr/u8-mblen.c: New file.
90949         * lib/unistr/u16-mblen.c: New file.
90950         * lib/unistr/u32-mblen.c: New file.
90952         * modules/unistr/u8-mbtouc: New file.
90953         * modules/unistr/u16-mbtouc: New file.
90954         * modules/unistr/u32-mbtouc: New file.
90955         * lib/unistr/u8-mbtouc.c: New file.
90956         * lib/unistr/u16-mbtouc.c: New file.
90957         * lib/unistr/u32-mbtouc.c: New file.
90959         * modules/unistr/u8-mbtouc-safe: New file.
90960         * modules/unistr/u16-mbtouc-safe: New file.
90961         * modules/unistr/u32-mbtouc-safe: New file.
90962         * lib/unistr/u8-mbtouc-safe.c: New file.
90963         * lib/unistr/u16-mbtouc-safe.c: New file.
90964         * lib/unistr/u32-mbtouc-safe.c: New file.
90966         * modules/unistr/u8-move: New file.
90967         * modules/unistr/u16-move: New file.
90968         * modules/unistr/u32-move: New file.
90969         * lib/unistr/u8-move.c: New file.
90970         * lib/unistr/u16-move.c: New file.
90971         * lib/unistr/u32-move.c: New file.
90972         * lib/unistr/u-move.h: New file.
90974         * modules/unistr/u8-next: New file.
90975         * modules/unistr/u16-next: New file.
90976         * modules/unistr/u32-next: New file.
90977         * lib/unistr/u8-next.c: New file.
90978         * lib/unistr/u16-next.c: New file.
90979         * lib/unistr/u32-next.c: New file.
90981         * modules/unistr/u8-prev: New file.
90982         * modules/unistr/u16-prev: New file.
90983         * modules/unistr/u32-prev: New file.
90984         * lib/unistr/u8-prev.c: New file.
90985         * lib/unistr/u16-prev.c: New file.
90986         * lib/unistr/u32-prev.c: New file.
90988         * modules/unistr/u8-set: New file.
90989         * modules/unistr/u16-set: New file.
90990         * modules/unistr/u32-set: New file.
90991         * lib/unistr/u8-set.c: New file.
90992         * lib/unistr/u16-set.c: New file.
90993         * lib/unistr/u32-set.c: New file.
90994         * lib/unistr/u-set.h: New file.
90996         * modules/unistr/u8-startswith: New file.
90997         * modules/unistr/u16-startswith: New file.
90998         * modules/unistr/u32-startswith: New file.
90999         * lib/unistr/u8-startswith.c: New file.
91000         * lib/unistr/u16-startswith.c: New file.
91001         * lib/unistr/u32-startswith.c: New file.
91002         * lib/unistr/u-startswith.h: New file.
91004         * modules/unistr/u8-stpcpy: New file.
91005         * modules/unistr/u16-stpcpy: New file.
91006         * modules/unistr/u32-stpcpy: New file.
91007         * lib/unistr/u8-stpcpy.c: New file.
91008         * lib/unistr/u16-stpcpy.c: New file.
91009         * lib/unistr/u32-stpcpy.c: New file.
91010         * lib/unistr/u-stpcpy.h: New file.
91012         * modules/unistr/u8-stpncpy: New file.
91013         * modules/unistr/u16-stpncpy: New file.
91014         * modules/unistr/u32-stpncpy: New file.
91015         * lib/unistr/u8-stpncpy.c: New file.
91016         * lib/unistr/u16-stpncpy.c: New file.
91017         * lib/unistr/u32-stpncpy.c: New file.
91018         * lib/unistr/u-stpncpy.h: New file.
91020         * modules/unistr/u8-strcat: New file.
91021         * modules/unistr/u16-strcat: New file.
91022         * modules/unistr/u32-strcat: New file.
91023         * lib/unistr/u8-strcat.c: New file.
91024         * lib/unistr/u16-strcat.c: New file.
91025         * lib/unistr/u32-strcat.c: New file.
91026         * lib/unistr/u-strcat.h: New file.
91028         * modules/unistr/u8-strchr: New file.
91029         * modules/unistr/u16-strchr: New file.
91030         * modules/unistr/u32-strchr: New file.
91031         * lib/unistr/u8-strchr.c: New file.
91032         * lib/unistr/u16-strchr.c: New file.
91033         * lib/unistr/u32-strchr.c: New file.
91035         * modules/unistr/u8-strcmp: New file.
91036         * modules/unistr/u16-strcmp: New file.
91037         * modules/unistr/u32-strcmp: New file.
91038         * lib/unistr/u8-strcmp.c: New file.
91039         * lib/unistr/u16-strcmp.c: New file.
91040         * lib/unistr/u32-strcmp.c: New file.
91042         * modules/unistr/u8-strcpy: New file.
91043         * modules/unistr/u16-strcpy: New file.
91044         * modules/unistr/u32-strcpy: New file.
91045         * lib/unistr/u8-strcpy.c: New file.
91046         * lib/unistr/u16-strcpy.c: New file.
91047         * lib/unistr/u32-strcpy.c: New file.
91048         * lib/unistr/u-strcpy.h: New file.
91050         * modules/unistr/u8-strcspn: New file.
91051         * modules/unistr/u16-strcspn: New file.
91052         * modules/unistr/u32-strcspn: New file.
91053         * lib/unistr/u8-strcspn.c: New file.
91054         * lib/unistr/u16-strcspn.c: New file.
91055         * lib/unistr/u32-strcspn.c: New file.
91056         * lib/unistr/u-strcspn.h: New file.
91058         * modules/unistr/u8-strdup: New file.
91059         * modules/unistr/u16-strdup: New file.
91060         * modules/unistr/u32-strdup: New file.
91061         * lib/unistr/u8-strdup.c: New file.
91062         * lib/unistr/u16-strdup.c: New file.
91063         * lib/unistr/u32-strdup.c: New file.
91064         * lib/unistr/u-strdup.h: New file.
91066         * modules/unistr/u8-strlen: New file.
91067         * modules/unistr/u16-strlen: New file.
91068         * modules/unistr/u32-strlen: New file.
91069         * lib/unistr/u8-strlen.c: New file.
91070         * lib/unistr/u16-strlen.c: New file.
91071         * lib/unistr/u32-strlen.c: New file.
91072         * lib/unistr/u-strlen.h: New file.
91074         * modules/unistr/u8-strmblen: New file.
91075         * modules/unistr/u16-strmblen: New file.
91076         * modules/unistr/u32-strmblen: New file.
91077         * lib/unistr/u8-strmblen.c: New file.
91078         * lib/unistr/u16-strmblen.c: New file.
91079         * lib/unistr/u32-strmblen.c: New file.
91081         * modules/unistr/u8-strmbtouc: New file.
91082         * modules/unistr/u16-strmbtouc: New file.
91083         * modules/unistr/u32-strmbtouc: New file.
91084         * lib/unistr/u8-strmbtouc.c: New file.
91085         * lib/unistr/u16-strmbtouc.c: New file.
91086         * lib/unistr/u32-strmbtouc.c: New file.
91088         * modules/unistr/u8-strncat: New file.
91089         * modules/unistr/u16-strncat: New file.
91090         * modules/unistr/u32-strncat: New file.
91091         * lib/unistr/u8-strncat.c: New file.
91092         * lib/unistr/u16-strncat.c: New file.
91093         * lib/unistr/u32-strncat.c: New file.
91094         * lib/unistr/u-strncat.h: New file.
91096         * modules/unistr/u8-strncmp: New file.
91097         * modules/unistr/u16-strncmp: New file.
91098         * modules/unistr/u32-strncmp: New file.
91099         * lib/unistr/u8-strncmp.c: New file.
91100         * lib/unistr/u16-strncmp.c: New file.
91101         * lib/unistr/u32-strncmp.c: New file.
91103         * modules/unistr/u8-strncpy: New file.
91104         * modules/unistr/u16-strncpy: New file.
91105         * modules/unistr/u32-strncpy: New file.
91106         * lib/unistr/u8-strncpy.c: New file.
91107         * lib/unistr/u16-strncpy.c: New file.
91108         * lib/unistr/u32-strncpy.c: New file.
91109         * lib/unistr/u-strncpy.h: New file.
91111         * modules/unistr/u8-strnlen: New file.
91112         * modules/unistr/u16-strnlen: New file.
91113         * modules/unistr/u32-strnlen: New file.
91114         * lib/unistr/u8-strnlen.c: New file.
91115         * lib/unistr/u16-strnlen.c: New file.
91116         * lib/unistr/u32-strnlen.c: New file.
91117         * lib/unistr/u-strnlen.h: New file.
91119         * modules/unistr/u8-strpbrk: New file.
91120         * modules/unistr/u16-strpbrk: New file.
91121         * modules/unistr/u32-strpbrk: New file.
91122         * lib/unistr/u8-strpbrk.c: New file.
91123         * lib/unistr/u16-strpbrk.c: New file.
91124         * lib/unistr/u32-strpbrk.c: New file.
91125         * lib/unistr/u-strpbrk.h: New file.
91127         * modules/unistr/u8-strrchr: New file.
91128         * modules/unistr/u16-strrchr: New file.
91129         * modules/unistr/u32-strrchr: New file.
91130         * lib/unistr/u8-strrchr.c: New file.
91131         * lib/unistr/u16-strrchr.c: New file.
91132         * lib/unistr/u32-strrchr.c: New file.
91134         * modules/unistr/u8-strspn: New file.
91135         * modules/unistr/u16-strspn: New file.
91136         * modules/unistr/u32-strspn: New file.
91137         * lib/unistr/u8-strspn.c: New file.
91138         * lib/unistr/u16-strspn.c: New file.
91139         * lib/unistr/u32-strspn.c: New file.
91140         * lib/unistr/u-strspn.h: New file.
91142         * modules/unistr/u8-strstr: New file.
91143         * modules/unistr/u16-strstr: New file.
91144         * modules/unistr/u32-strstr: New file.
91145         * lib/unistr/u8-strstr.c: New file.
91146         * lib/unistr/u16-strstr.c: New file.
91147         * lib/unistr/u32-strstr.c: New file.
91148         * lib/unistr/u-strstr.h: New file.
91150         * modules/unistr/u8-strtok: New file.
91151         * modules/unistr/u16-strtok: New file.
91152         * modules/unistr/u32-strtok: New file.
91153         * lib/unistr/u8-strtok.c: New file.
91154         * lib/unistr/u16-strtok.c: New file.
91155         * lib/unistr/u32-strtok.c: New file.
91156         * lib/unistr/u-strtok.h: New file.
91158         * modules/unistr/u8-uctomb: New file.
91159         * modules/unistr/u16-uctomb: New file.
91160         * modules/unistr/u32-uctomb: New file.
91161         * lib/unistr/u8-uctomb.c: New file.
91162         * lib/unistr/u16-uctomb.c: New file.
91163         * lib/unistr/u32-uctomb.c: New file.
91165         * MODULES.html.sh (Unicode string functions): Add the new modules.
91167 2007-01-08  Bruno Haible  <bruno@clisp.org>
91169         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
91170         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
91171         subdirectories.
91173 2007-01-08  Karl Berry  <karl@gnu.org>
91175         * doc/error.texi: mention that main() fns must set program_name
91176         when progname is used.
91178 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
91180         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
91181         WCTYPE_H is empty, for the benefit of builds from non-distclean
91182         directories.  Problem reported by Eric Blake in
91183         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
91185 2007-01-08  Bruno Haible  <bruno@clisp.org>
91187         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
91188         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
91189         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
91190         PROVIDE_CANONICALIZE_FILENAME_MODE.
91191         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
91193 2007-01-08  Bruno Haible  <bruno@clisp.org>
91195         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
91196         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
91197         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
91198         * lib/fts.c: Likewise.
91199         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
91201 2006-12-25  Bruno Haible  <bruno@clisp.org>
91203         * modules/utf8-ucs4-safe: New file.
91204         * lib/utf8-ucs4-safe.h: New file.
91205         * lib/unistr/utf8-ucs4-safe.c: New file.
91207         * modules/utf16-ucs4-safe: New file.
91208         * lib/utf16-ucs4-safe.h: New file.
91209         * lib/unistr/utf16-ucs4-safe.c: New file.
91211         * MODULES.html.sh (Unicode string functions): Add the new modules.
91213 2007-01-08  Bruno Haible  <bruno@clisp.org>
91215         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
91216         (Depends-on): Add unitypes.
91217         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
91218         (u8_mbtouc_aux): Move out to separate file.
91219         (u8_mbtouc): Use ucs4_t, uint8_t types.
91220         * lib/unistr/utf8-ucs4.c: New file.
91222         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
91223         (Depends-on): Add unitypes.
91224         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
91225         (u16_mbtouc_aux): Move out to separate file.
91226         (u16_mbtouc): Use ucs4_t, uint16_t types.
91227         * lib/unistr/utf16-ucs4.c: New file.
91229         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
91230         (Depends-on): Add unitypes.
91231         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
91232         (u8_uctomb_aux): Move out to separate file.
91233         (u8_uctomb): Use ucs4_t, uint8_t types.
91234         * lib/unistr/ucs4-utf8.c: New file.
91236         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
91237         (Depends-on): Add unitypes.
91238         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
91239         (u16_uctomb_aux): Move out to separate file.
91240         (u16_uctomb): Use ucs4_t, uint16_t types.
91241         * lib/unistr/ucs4-utf16.c: New file.
91243 2006-12-25  Bruno Haible  <bruno@clisp.org>
91245         * modules/unitypes: New file.
91246         * lib/unitypes.h: New file.
91247         * MODULES.html.sh (func_all_modules): New section "Unicode string
91248         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
91249         this section. Add unitypes.
91251 2007-01-08  Bruno Haible  <bruno@clisp.org>
91253         Avoid variable names that conflict with those from libtool.
91254         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
91255         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
91256         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
91257         library_names_spec to acl_library_names_spec, hardcode_* to
91258         acl_hardcode_*.
91259         Reported by Ralf Wildenhues.
91261 2007-01-08  Bruno Haible  <bruno@clisp.org>
91263         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
91264         definition.
91265         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
91266         definition.
91267         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
91268         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
91269         definition.
91270         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
91271         definition.
91272         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
91273         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
91274         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
91275         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
91276         definition.
91277         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
91278         definition.
91279         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
91280         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
91281         GC_USE_<algorithm>.
91282         * lib/gc-libgcrypt.c: Likewise.
91283         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
91284         * modules/gc-arctwo (configure.ac): Likewise.
91285         * modules/gc-des (configure.ac): Likewise.
91286         * modules/gc-hmac-md5 (configure.ac): Likewise.
91287         * modules/gc-hmac-sha1 (configure.ac): Likewise.
91288         * modules/gc-md2 (configure.ac): Likewise.
91289         * modules/gc-md4 (configure.ac): Likewise.
91290         * modules/gc-md5 (configure.ac): Likewise.
91291         * modules/gc-random (configure.ac): Likewise.
91292         * modules/gc-rijndael (configure.ac): Likewise.
91293         * modules/gc-sha1 (configure.ac): Likewise.
91295 2007-01-08  Bruno Haible  <bruno@clisp.org>
91297         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
91298         macro definition.
91299         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
91300         definition.
91301         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
91302         definition.
91303         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
91304         * modules/fcntl-safer (configure.ac): Likewise.
91305         * modules/fopen-safer (configure.ac): Likewise.
91306         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
91307         GNULIB_FWRITEERROR macro definition.
91309 2007-01-08  Bruno Haible  <bruno@clisp.org>
91311         * m4/gnulib-common.m4: New file.
91312         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
91313         (func_get_filelist): Add m4/gnulib-common.m4.
91315 2007-01-08  Bruno Haible  <bruno@clisp.org>
91317         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
91318         command.
91320 2007-01-08  Jim Meyering  <jim@meyering.net>
91322         Use a more robust test for a "can't happen" condition.
91323         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
91324         narrowed the st_size value.  Presuming the "can't happen" condition
91325         is true, that narrowing could conceivably convert an invalid st_size
91326         value into a valid one.  Instead, use a change based on Matthew
91327         Woehlke's original patch.
91329         Slight readability improvement: use an assert-like macro
91330         in place of literal "abort ()" uses.
91331         * lib/fts.c (fts_assert): Define.
91332         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
91333         Use this macro instead of a bare 'abort'.
91335 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
91337         Don't worry about using IRIX 5.3's wctype.h broken definitions;
91338         simply work around them.
91339         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
91340         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
91341         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
91342         declaring.
91343         Don't bother to define as macros, since the standard doesn't require it.
91344         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
91345         longer worry about IRIX 5.3.
91346         (HAVE_WCTYPE_CTMP_BUG): Remove.
91348 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
91350         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
91351         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
91352         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
91353         Problems reported by Georg Schwarz for IRIX 5.3.
91355         * gnulib-tool (autoconf_minversion): Take the maximum version number
91356         found, not the minimum.  Problem reported by James Youngman.
91358 2007-01-03  Karl Berry  <karl@gnu.org>
91360         * doc/error.texi: new file, explaining interaction with progname.
91361         * doc/gnulib.texi: include it.  Update copyright.
91363 2007-01-03  Simon Josefsson  <simon@josefsson.org>
91365         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
91366         AC_CANONICAL_HOST, to improve autobuild outputs.
91368 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
91369             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
91371         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
91372         sockets, server sockets, and other file descriptors.  Count errors
91373         to compute the return value.  Reorder the code a bit to be easier
91374         to follow.  Don't set event bits that were not requested (except
91375         POLLERR and POLLHUP).
91377 2007-01-01  Bruno Haible  <bruno@clisp.org>
91379         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
91381 2007-01-03  Jim Meyering  <jim@meyering.net>
91383         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
91385 2007-01-02  Bruno Haible  <bruno@clisp.org>
91387         * modules/settime (Include): Require timespec.h.
91388         * modules/nanosleep (Include): Likewise.
91390 2007-01-01  Bruno Haible  <bruno@clisp.org>
91392         * gnulib-tool (func_emit_copyright_notice): Bump year.
91393         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
91395 2007-01-01  Bruno Haible  <bruno@clisp.org>
91397         Improve support for OpenBSD.
91398         * build-aux/config.rpath (libname_spec): Export.
91399         (library_names_spec): New variable. Export.
91400         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
91401         library_names_spec from the config.rpath output. Locate shared library
91402         through the name pattern in library_names_spec.
91404 2007-01-01  Eric Blake  <ebb9@byu.net>
91406         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
91408 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
91410         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
91411         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
91412         assume the C locale, and avoid an "eval" that could cause trouble.
91413         Problem with SORT reported by Bob Proulx.
91415         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
91416         Define.  Trivial patch from Henning Nielsen Lund, originally
91417         sent to bug-grep@gnu.org today.
91419 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
91421         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
91422         struct stat.  Problem reported by Henning Nielsen Lund.
91423         * lib/acl.c: Include acl.h first, to check interface.  Don't
91424         bother to include sys/types.h and sys/stat.h again.
91426 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
91428         Import the following change from libc; problem reported by
91429         Sven Verdoolaege.
91431         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
91433         [BZ #1373]
91434         * lib/argp.h: Remove __NTH for __argp_usage inline function.
91436 2006-12-28  Jim Meyering  <jim@meyering.net>
91438         * build-aux/announce-gen: Do not assume that the package
91439         builds any of tar.gz, tar.bz2, and .xdelta files.
91440         Suggestion from Simon Josefsson.
91442 2006-12-28  Simon Josefsson  <simon@josefsson.org>
91444         * modules/announce-gen: New file.
91446 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
91448         * lib/mbchar.h: Just include <wctype.h>; the wctype module
91449         handles its gotchas now.
91450         * lib/mbswidth.c: Likewise.
91451         * lib/wcwidth.h: Likewise.
91452         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
91453         and iswcntrl; the wctype module does this stuff now.
91454         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
91455         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
91456         * modules/mbchar (Depends-on): Add wctype.
91457         * modules/mbswidth (Depends-on): Likewise.
91458         * modules/wcwidth (Depends-on): Likewise.
91460 2006-12-27  Eric Blake  <ebb9@byu.net>
91462         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
91463         module uses more than what <wctype.h> is required to provide.
91465 2006-12-26  Eric Blake  <ebb9@byu.net>
91467         * gnulib-tool (sed_extract_prog): Avoid space-tab.
91469 2006-12-26  Eric Blake  <ebb9@byu.net>
91471         * modules/absolute-header: New module.
91472         * modules/fcntl (Depends-on): Depend on it.
91473         * modules/inttypes (Depends-on): Likewise.
91474         * modules/stdint (Depends-on): Likewise.
91475         * modules/sys_stat (Depends-on): Likewise.
91476         * modules/wctype (Depends-on): Likewise.
91477         * MODULES.html.sh (Support for building libraries and
91478         executables): Document it.
91480 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
91482         * gnulib-tool (SED): Remove, undoing previous change.
91483         The problem was that it broke coreutils on Solaris, because
91484         "sed --posix" leaked into a makefile.
91485         (sed): New alias, if 'alias' and GNU sed.
91487 2006-12-24  Jim Meyering  <jim@meyering.net>
91489         Work around an fchownat bug in glibc-2.4:
91490         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
91491         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
91492         in spite of the -P option.
91493         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
91494         New macros.
91495         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
91496         * modules/openat (Files): Add lib/fchownat.c.
91497         * lib/openat.c (fchownat): Don't define here.  Move to...
91498         * lib/fchownat.c: ...this new file.
91500 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
91502         Fix bug reported by Bruno Haible in
91503         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
91504         where quotearg.c didn't compile on Mac OS X 10.2 because it
91505         lacks <wchar.h> and wint_t.
91506         * lib/wctype_.h (__wctype_wint_t): New type.
91507         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
91508         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
91509         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
91510         Arg is now of type __wctype_wint_t, not wint_t.
91511         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
91512         substitute HAVE_WINT_T.
91513         * modules/wctype (Files): Add m4/wint_t.m4.
91514         (wctype.h): Substitute HAVE_WINT_T.
91516 2006-12-23  Bruno Haible  <bruno@clisp.org>
91518         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
91520 2006-12-23  Bruno Haible  <bruno@clisp.org>
91522         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
91523         S_ISLNK.
91524         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
91525         mingw.
91527 2006-12-22  Bruno Haible  <bruno@clisp.org>
91529         * lib/copy-file.c: Include acl.h.
91530         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
91531         Close the file descriptors only after being done with copy_acl.
91532         * modules/copy-file (Depends-on): Add acl.
91534 2006-12-22  Bruno Haible  <bruno@clisp.org>
91536         * gnulib-tool (SED): New variable.
91537         Use $SED instead of sed everywhere.
91539 2006-12-22  Bruno Haible  <bruno@clisp.org>
91541         * modules/no-c++: New file.
91542         * m4/no-c++.m4: New file.
91543         * MODULES.html.sh (Support for building libraries and executables):
91544         Add no-c++.
91546 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
91548         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
91549         Include <limits.h>, and use its INT_MAX to rewrite the
91550         j loop so that it does not overflow 'int'.  Problem reported by
91551         Ralf Wildenhues in
91552         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
91553         Play it safe by shifting left by 1 rather than multiplying by 2,
91554         as GCC is less likely to optimize this away when the value
91555         is signed (when it assumes overflow leads to undefined behavior).
91556         Also, don't assume time_t uses two's complement.
91558 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
91560         * MODULES.html.sh: New module wctype.
91561         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
91562         * lib/fnmatch.c: Don't bother to include <wchar.h> before
91563         <wctype.h>, since the new wctype module should fix this.
91564         * lib/quotearg.c: Include <wctype.h> unconditionally, since
91565         the wctype module should arrange for it.
91566         * lib/regex_internal.h: Likewise.
91567         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
91568         since the wctype module should handle this now.
91569         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
91570         * modules/fnmatch (Depends-on): Add wctype.
91571         * modules/quotearg (Depends-on): Likewise.
91572         * modules/regex (Depends-on): Likewise.
91574 2006-12-19  Bruno Haible  <bruno@clisp.org>
91576         * lib/strdup.h [C++]: Wrap definitions in extern "C".
91577         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
91579 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91581         * modules/savewd (Depends-on): Fix dependency on fcntl.
91583 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
91585         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
91586         conforms to C99, rather than relying on the user's environment
91587         setting of STDINT_H.
91589 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
91590         and Eric Blake  <ebb9@byu.net>
91592         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
91593         This is more consistent with the other defines here.
91594         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
91595         Port to z/OS.  Problem reported by Paul Gilmartin.
91596         Change local vars to use gl_ prefix rather than ac_.
91597         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
91598         with other defines.
91599         * modules/double-slash-root: New module.
91600         * modules/dirname (Files): Remove m4/double-slash-root.m4.
91601         (Depends-on): Add double-slash-root.
91602         * MODULES.html.sh (File system functions): Mention new module.
91604 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
91606         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
91607         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
91608         This is for the benefit of gzip, which doesn't do i18n.
91610 2006-12-12  Jim Meyering  <jim@meyering.net>
91612         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
91613         Reported by Andreas Schwab <schwab@suse.de>.
91615 2006-12-12  Bruno Haible  <bruno@clisp.org>
91617         Merge these changes.
91618         2006-09-05  Bruno Haible  <bruno@clisp.org>
91619         * lib/iconvme.c (iconv_string): No need to save and restore errno when
91620         iconv_alloc succeeded.
91621         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
91622         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
91623         test for " && dest " at the end - dest is always != NULL there. Call
91624         iconv with 4xNULL arguments initially, to reset the state. Call iconv
91625         with 2xNULL arguments, also to flush the state storage. Handle the
91626         IRIX iconv behaviour. Realloc the final result, to throw away unused
91627         memory.
91629 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
91631         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
91632         and fchmodat unconditionally, since glibc 2.4 has them.
91633         Problem reported by Arkadiusz Miskiewicz.
91635 2006-12-10  Bruno Haible  <bruno@clisp.org>
91637         * gnulib-tool (func_import): Show the include files only for those
91638         modules that are copied and specified.
91639         Reported by Karl Berry.
91641 2006-12-08  Jim Meyering  <jim@meyering.net>
91643         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
91644         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
91646         * build-aux/announce-gen: Add two new options, both optional:
91647         --bootstrap-tools=TOOL_LIST
91648               a comma-separated list of tools, e.g.,
91649               autoconf,automake,bison,gnulib
91650         --gnulib-snapshot-date=DATE
91651               if gnulib is in the bootstrap tool list,
91652               then report this as the snapshot date.
91653               If not specified, use the current date/time.
91654               If you specify a date here, be sure it's UTC.
91656 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91658         * tests/test-argp-2.sh: Fix test to match actual output.
91659         (func_compare): Fix sed script to be portable.
91661 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
91663         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
91664         workaround for this case.  It is not autoconfigured now; offhand
91665         it's hard to see how to autoconfigure it.
91667 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
91669         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
91670         a directory that is about to be chowned.  Such a directory's
91671         initial file permissions should permit the owner only and this
91672         should not be changed until after the chown, since the group and
91673         other bits would be incorrect if they granted permission before
91674         the chown.
91676         Fix porting problem for iswctype reported by Georg Schwarz in:
91677         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
91678         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
91679         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
91680         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
91681         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
91683 2006-12-03  Jim Meyering  <jim@meyering.net>
91685         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
91686         p->fts_statp may not yet be defined.
91687         (fts_read): Instead, set it in the caller, once p->fts_statp is
91688         sure to be defined, and corresponds to a top-level directory.
91689         This bug made du -x fail.  Here's the coreutils test case:
91690         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
91691         Reported by Mike Frysinger.
91693 2006-12-01  Jim Meyering  <jim@meyering.net>
91695         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
91696         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
91697         Reported by Simon Josefsson.
91699 2006-11-30  Jim Meyering  <jim@meyering.net>
91701         * m4/warning.m4: Use the all-permissive copyright notice
91702         recommended by RMS (rather than LGPL).
91703         * m4/vararrays.m4: Likewise.
91704         * m4/flexmember.m4: Likewise.
91706 2006-11-29  Bruno Haible  <bruno@clisp.org>
91708         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
91709         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
91710         using +=.
91711         Reported by Simon Josefsson <simon@josefsson.org>.
91713 2006-11-28  James Youngman  <jay@gnu.org>
91715         * README: Advise users that they might find the bug-gnulib@gnu.org
91716         and autotools-announce@gnu.org mailing lists useful.
91718 2006-11-28  Bruno Haible  <bruno@clisp.org>
91720         * m4/ptrdiff_max.m4: Remove file.
91722 2006-11-21  Bruno Haible  <bruno@clisp.org>
91724         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
91725         _AC_COMPUTE_INT.
91726         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
91727         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
91728         _AC_COMPUTE_INT.
91729         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
91730         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
91731         _AC_COMPUTE_INT.
91732         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
91734 2006-11-28  Jim Meyering  <jim@meyering.net>
91736         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
91737         warning from "gcc -Wshadow" about shadowing the builtin.
91739 2006-11-27  Bruno Haible  <bruno@clisp.org>
91741         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
91742         _AC_COMPUTE_INT.
91743         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
91745 2006-11-27  Bruno Haible  <bruno@clisp.org>
91746             Paul Eggert  <eggert@cs.ucla.edu>
91748         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
91750 2006-11-26  Bruno Haible  <bruno@clisp.org>
91752         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
91753         noinst_LTLIBRARIES.
91755 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
91756             Bruno Haible  <bruno@clisp.org>
91758         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
91759         if compiling with "gcc -ansi".
91761 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
91763         Fix some incompatibilities with gcc -ansi -pedantic.
91764         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
91765         if compiling pedantically with GCC, unless it's C99 or later.
91766         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
91767         it mishandles gcc -ansi -pedantic as well.
91768         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
91769         if gcc -pedantic.
91770         * lib/regexec.c (check_node_accept_bytes): Don't use auto
91771         initializers for struct if -pedantic, unless it's C99 or later.
91773 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
91775         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
91776         Don't close an fd more than once. Identical atimes indicate
91777         success, not failure.
91779 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
91781         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
91783 2006-11-23  Jim Meyering  <jim@meyering.net>
91785         * build-aux/announce-gen: New file.  From coreutils.
91787 2006-11-22  Jim Meyering  <jim@meyering.net>
91789         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
91790         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
91791         (fts_read): Use a temporary to narrow the overused st_size member
91792         before using it in a switch statement.  Reported by Matthew Woehlke.
91794         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
91795         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
91797 2006-11-20  Bruno Haible  <bruno@clisp.org>
91799         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
91800         changequote instead of pairs of brackets.
91801         Reported by Andreas Schwab <schwab@suse.de>.
91803 2006-11-21  Jim Meyering  <jim@meyering.net>
91805         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
91806         so as to remain compatible with older compilers.
91807         Patch from Michael Deutschmann.
91809 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
91811         * MODULES.html.sh (File system functions): Add openat.
91813         * lib/openat.h (rpl_fstatat): New macro, if
91814         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
91815         (fstatat): Define to rpl_fstatat under the same conditions,
91816         unless COMPILING_FSTATAT.
91817         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
91818         seems to have the bug.
91819         * lib/fstatat.c: New file.
91820         * modules/openat (Files): Add it.
91822 2006-11-20  Bruno Haible  <bruno@clisp.org>
91824         * Makefile: New file.
91826 2006-11-20  Jim Meyering  <jim@meyering.net>
91828         The beginnings of syntax-related checks for gnulib.
91829         * lib/Makefile: New file.
91830         * lib/t-idcache: New script.  Ensure that the two halves of
91831         idcache.c stay in sync.
91833         * lib/idcache.c: Adjust comments in user- and group- portions to
91834         be more accurate, and to be consistent with one another.
91836 2006-11-20  Jim Meyering  <jim@meyering.net>
91838         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
91839         continue using the flexible array member (thus, this module performs
91840         half as many malloc calls), with the addition that...
91841         (getgroup, getuser): Consistently record a non-match via an empty
91842         "name" string, and map an empty string match to a NULL return value.
91843         * modules/idcache (Depends-on): Re-add flexmember.
91845         * lib/idcache.c (getuser): Remove all uses of the register keyword.
91846         (getuidbyname, getgroup, getgidbyname): Likewise.
91848         Use cleaner syntax: NULL rather than 0.
91849         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
91851 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
91853         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
91854         It mishandled the case where the group was missing.
91855         Problem reported by Greg Schafer.
91856         * modules/idcache: Likewise.
91858 2006-11-18  Jim Meyering  <jim@meyering.net>
91860         * check-module (%exempt_header): Add exception for some
91861         conditionally-included headers.
91863         * modules/i-ring (Depends-on): Add verify.
91864         (License): Change to LGPL.
91866 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
91868         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
91869         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
91870         and inttostr.h.  Use snprintf rather than uinttostr, so that
91871         LGPLed code doesn't depend on GPLed.
91873 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
91875         * modules/inline (License): Change from GPL to LGPL.
91877 2006-11-17  Jim Meyering  <jim@meyering.net>
91879         * modules/d-type (License): Switch to LGPL.
91881 2006-11-15  Bruno Haible  <bruno@clisp.org>
91883         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
91885 2006-11-15  Eric Blake  <ebb9@byu.net>
91887         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
91888         the module dependency.
91890 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91891             Bruno Haible  <bruno@clisp.org>
91893         * gnulib-tool (func_create_testdir): Add license consistency check.
91895 2006-11-15  Eric Blake  <ebb9@byu.net>
91897         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
91898         random "(cached)" in configure output.
91900 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91902         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
91903         test for conforming inttypes.h is both announced and cached.
91905         * MODULES.html.sh (seen_modules, seen_files): New variables.
91906         (func_module): Rewrite to use a few less gnulib-tool and sed
91907         invocations.  Avoid a couple of quadratic algorithms for ...
91908         (missed_modules, missed_files): ... these, with ...
91909         (func_append, func_tmpdir): ... these new functions, from
91910         gnulib-tool.  Analogously, install traps for cleanup.
91912         * tests/test-gc.c (main): Remove unused variables.
91913         * tests/test-read-file.c: Include stdlib.h, for 'free'.
91915 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
91917         * modules/inttostr (License): Change to LGPL.
91919 2006-11-14  Eric Blake  <ebb9@byu.net>
91921         * modules/tempname (License): Change to LGPL.
91923 2006-11-14  Eric Blake  <ebb9@byu.net>
91925         * doc/functions.texi (Function Portability): *printf functions on
91926         Cygwin now understand all POSIX size specifiers.
91928 2006-11-14  Bruno Haible  <bruno@clisp.org>
91930         * modules/c-ctype (License): Change to LGPL.
91932 2006-11-12  Bruno Haible  <bruno@clisp.org>
91934         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
91935         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
91936         for GNOME libraries, for which the include files are installed in
91937         subdirectories of $prefix/include.
91939 2006-11-12  Bruno Haible  <bruno@clisp.org>
91941         * m4/lib-link.m4: Require at least autoconf-2.54.
91942         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
91943         name to underscores for the --with option.
91945 2006-11-13  Bruno Haible  <bruno@clisp.org>
91947         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
91948         the tests directory.
91949         Reported by Ralf Wildenhues.
91951 2006-11-13  Bruno Haible  <bruno@clisp.org>
91953         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
91954         (func_emit_initmacro_end): Undo the override here.
91955         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
91956         Works around the famous automake error in coreutils.
91958 2006-11-13  Eric Blake  <ebb9@byu.net>
91960         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
91961         element, not its node.
91963 2006-11-12  Bruno Haible  <bruno@clisp.org>
91965         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
91966         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
91968 2006-11-12  Bruno Haible  <bruno@clisp.org>
91970         * gnulib-tool: New option --local-symlink.
91971         (func_usage): Document it.
91972         (lsymbolic): New variable.
91973         (func_import, func_create_testdir): If --symlink was not specified,
91974         test whether --local-symlink was specified and the file comes from
91975         the local_gnulib_dir.
91977 2006-11-12  Bruno Haible  <bruno@clisp.org>
91979         * gnulib-tool (func_ln): New function.
91980         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
91982 2006-11-12  Bruno Haible  <bruno@clisp.org>
91984         Finish support for source files in subdirectories.
91985         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
91986         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
91987         AUTOMAKE_OPTIONS.
91988         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
91990 2006-11-12  Bruno Haible  <bruno@clisp.org>
91992         * gnulib-tool (func_get_automake_snippet): Synthesize also an
91993         EXTRA_lib_SOURCES augmentation.
91994         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
91996 2006-11-12  Jim Meyering  <jim@meyering.net>
91998         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
91999         file descriptors.  This also averts a failure on systems with
92000         native openat support when a traversed directory lacks "x" access.
92001         * lib/fts_.h: Include "i-ring.h"
92002         (struct FTS) [fts_fd_ring]: New member.
92003         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
92004         (FCHDIR): Add parentheses.
92005         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
92006         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
92007         When descending, rather than simply closing the previous
92008         fts_cwd_fd value, push that file descriptor onto the ring.
92009         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
92010         (fts_open): Initialize the new fd_ring member.
92011         (fts_close): Clear the ring.
92012         (fts_safe_changedir): When possible, use our new fd_ring to skip
92013         the diropen and fstat and dev/ino comparison that would normally
92014         accompany a virtual `chdir ("..")'.
92016         * modules/fts (Depends-on): Add i-ring.
92017         * modules/i-ring: New module.
92018         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
92019         * m4/i-ring.m4: New file.
92021 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92023         * gnulib-tool (func_create_testdir): Fix replacement of
92024         `build-aux' in configure.ac.  Run autotools in gltests
92025         subdirectory.
92026         (func_create_testdir, func_create_megatestdir, test): There is
92027         no need for '--force' in most autotool invocations in a new
92028         tree.  Actually fail the whole test if any of the tools, or the
92029         configure or make stages fail.
92031         Sync from Automake.
92032         * build-aux/gnupload: Revert last change.  Add pointer to upload
92033         instructions of the GNU Maintenance Instructions.
92034         Suggestion by Karl Berry.
92036 2006-11-10  Jim Meyering  <jim@meyering.net>
92038         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
92040 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
92042         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
92043         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
92044         (bind_textdomain_codeset) [! ENABLE_NLS]:
92045         Evaluate all the arguments.  That way, callers get compatible behavior
92046         if the arguments have side effects.  Also, it avoids some GCC
92047         diagnostics in some cases; Joel E. Denny reported problems when Bison
92048         was configured with --enable-gcc-warnigs.
92050 2006-11-10  Jim Meyering  <jim@meyering.net>
92052         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
92053         relevant options in CFLAGS (like -O, -fno-inline) are taken into
92054         account.
92056 2006-11-10  Jim Meyering  <jim@meyering.net>
92058         * modules/inline: New file/module.
92059         * modules/xalloc (Files): Remove m4/inline.m4.
92060         (Depends-on): Add inline, instead.
92061         * modules/oset: Likewise.
92062         * modules/list: Likewise.
92064 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
92066         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
92067         Problem reported by Matthew Woehlke.
92069 2006-11-09  Bruno Haible  <bruno@clisp.org>
92071         * lib/tempname.c (gen_tempname): Remove variant that invokes
92072         __gen_tempname.
92073         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
92074         __gen_tempname.
92076 2006-11-08  Bruno Haible  <bruno@clisp.org>
92078         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
92079         to 'yes' instead of 'cross-compiling'.
92081 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
92083         * lib/quotearg.h (quotearg_free): New decl.
92084         * lib/quotearg.c (quotearg_free): New function.
92085         (slot0, nslots, slotvec0, slotvec):
92086         Now file-scope so that quotearg_free can get at them.
92088 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92090         Sync from Automake.
92091         * build-aux/gnupload: Add missing 'gnu' to example URL.
92092         Report by Karl Berry.
92094 2006-11-08  Bruno Haible  <bruno@clisp.org>
92096         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
92097         Suggested by Paul Eggert.
92099 2006-11-08  Jim Meyering  <jim@meyering.net>
92101         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
92102         It's already included if !_LIBC.
92103         (fts_safe_changedir): Add a comment.
92105 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
92107         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
92108         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
92109         Matthew Woehlke.
92111         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
92112         definitions up, to avoid colliding with change below.
92113         (static_inline) [HAVE_INLINE]: New macro.
92114         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
92115         Provide extern decls when !HAVE_INLINE.  Do not define unless
92116         static_inline is defined, either by us or by xmalloc.c.  Use
92117         static_inline rather than static inline.
92118         (XCALLOC): Optimize sizeof(T) = 1 case.
92119         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
92121 2006-11-07  Bruno Haible  <bruno@clisp.org>
92123         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
92124         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
92125         AC_C_INLINE.
92126         * modules/xalloc (Files): Add m4/inline.m4.
92128 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92130         * README: Fix typo.
92131         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
92132         (Miscellanous Notes): ...from this.
92134 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
92136         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
92137         Mention that offsetof should be used instead of sizeof.
92138         From Bruno Haible.
92140 2006-11-07  Bruno Haible  <bruno@clisp.org>
92142         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
92144 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
92146         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
92147         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
92148         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
92149         (gl_tree_add_before, gl_tree_add_after):
92150         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
92151         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
92152         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
92153         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
92154         (gl_linked_add_after, gl_linked_add_at): Likewise.
92155         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
92156         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
92157         (gl_tree_add_before, gl_tree_add_after): Likewise.
92158         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
92159         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
92160         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
92162 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92164         * lib/gl_oset.h: Use C comment style, not C++ comment style.
92166 2006-11-06  Bruno Haible  <bruno@clisp.org>
92168         * m4/inline.m4: New file.
92169         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
92170         * modules/list (Files): Add m4/inline.m4.
92171         * modules/oset (Files): Likewise.
92173 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
92175         * lib/idcache.c: Include <stddef.h>, for offsetof.
92176         (struct userid.name): Change from char * to a flexible array member.
92177         All uses changed.
92178         * modules/idcache (Depends-on): Add flexmember.
92180         * MODULES.html.sh (Core language properties): New module flexmember.
92181         * modules/flexmember, m4/flexmember.m4: New files.
92183         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
92184         inline functions that are identical with the old xnmalloc_inline,
92185         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
92186         that we can avoid some unnecessary integer multiplications and
92187         divisions in the common case where the element size is known at
92188         compile time.
92189         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
92190         needed.
92191         (xnboundedmalloc): Remove.
92192         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
92193         arguments, for consistency with rest of this header.
92194         (xcharalloc): Rewrite using XNMALLOC.
92195         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
92196         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
92197         versions have been moved to lib/xalloc.h and renamed to be the
92198         non-*_inline versions.
92199         (xmalloc, xrealloc): Implement without reference to the xnmalloc
92200         and xnrealloc functions, since those functions are now inline and
92201         now call us.
92202         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
92203         renaming described above.
92204         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
92205         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
92206         captures the dependency in AC_C_INLINE.
92208         New module canonicalize-lgpl, proposed by Charles Wilson in
92209         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
92210         with a few small changes afterwards.
92211         * MODULES.html.sh (File system functions): New module
92212         canonicalize-lgpl.
92213         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
92214         and canonicalize_file_name.
92215         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
92216         * modules/canonicalize-lgpl: New files.
92218 2006-11-05  Bruno Haible  <bruno@clisp.org>
92220         * gnulib-tool (func_import, func_create_testdir): Create directories
92221         also for files in subdirectories of lib/.
92223 2006-11-05  Bruno Haible  <bruno@clisp.org>
92225         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
92226         ANSI C compliant.
92228 2006-11-03  Bruno Haible  <bruno@clisp.org>
92230         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
92231         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
92232         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
92233         (xnboundedmalloc): New inline function.
92234         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
92235         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
92236         xmalloc.
92237         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
92238         xmalloc.
92239         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
92240         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
92241         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
92242         xmalloc.
92243         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
92244         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
92245         xmalloc.
92246         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
92247         gl_tree_add_after): Use XMALLOC instead of xmalloc.
92248         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
92249         xmalloc.
92250         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
92251         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
92252         gl_tree_add_after): Use XMALLOC instead of xmalloc.
92253         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
92254         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
92255         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
92256         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
92258 2006-11-03  Bruno Haible  <bruno@clisp.org>
92260         * lib/c-ctype.h [C++]: Define functions without name mangling.
92261         * lib/fwriteerror.h [C++]: Likewise.
92262         * lib/gcd.h [C++]: Likewise.
92263         * lib/linebreak.h [C++]: Likewise.
92265 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
92267         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
92268         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
92269         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
92270         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
92271         Check for functions and headers just once.
92272         Check for declaration of canonicalize_file_name.
92273         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
92275 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
92277         * gnulib-tool (func_import): Fix typo in actioncmd.
92279 2006-11-02  Bruno Haible  <bruno@clisp.org>
92281         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
92282         newline sequence in the Makefile.am snippet as a space, like "make"
92283         does.
92284         Reported by Roger Persson <perrog@gmail.com>.
92286 2006-11-01  Bruno Haible  <bruno@clisp.org>
92288         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
92289         already declared in <string.h>.
92290         * lib/strcase.h (strncasecmp): Don't declare it if yes.
92292 2006-11-01  Bruno Haible  <bruno@clisp.org>
92294         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
92295         * lib/strcase.h: Include <string.h>.
92296         (strcasecmp): Define to rpl_strcasecmp here.
92298 2006-11-01  Bruno Haible  <bruno@clisp.org>
92300         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
92302 2006-11-01  Eric Blake  <ebb9@byu.net>
92304         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
92306         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
92308 2006-10-29  Bruno Haible  <bruno@clisp.org>
92310         Make it compile in C++ mode.
92311         * lib/full-write.c (full_rw): Add a cast.
92313 2006-11-01  Bruno Haible  <bruno@clisp.org>
92315         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
92316         be POSIX compliant.
92317         Reported by Roger Persson <perrog@gmail.com>.
92319 2006-11-01  Eric Blake  <ebb9@byu.net>
92321         * lib/getopt_.h: Fix comments.
92323 2006-10-31  Eric Blake  <ebb9@byu.net>
92325         * modules/tmpdir (Depends-on): Add sys_stat.
92326         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
92327         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
92328         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
92329         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
92330         tempname.
92332 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
92334         Avoid some C++ diagnostics reported by Bruno Haible.
92335         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
92336         xmalloc.
92337         (quotearg_alloc): Use xcharalloc rather than xmalloc.
92338         (struct slotvec): Move to top level.
92339         (quotearg_n_options): Rewrite to avoid xmalloc.
92340         * lib/xalloc.h (xcharalloc): New function.
92341         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
92342         [defined __cplusplus]: Add function template that provides result
92343         type propagation.  This part of the change is from Bruno Haible.
92345 2006-10-29  Bruno Haible  <bruno@clisp.org>
92347         Make it compile in C++ mode.
92348         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
92349         * lib/strnlen1.c (strnlen1): Cast memchr result.
92350         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
92351         * lib/clean-temp.c (string_equals, string_hash): Add casts.
92352         (create_temp_dir): Rename local variable 'template'.
92353         (compile_csharp_using_sscli): Add cast.
92354         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
92355         * lib/findprog.c (find_in_path): Likewise.
92356         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
92357         * lib/wait-process.c (register_slave_subprocess): Likewise.
92359 2006-10-22  Bruno Haible  <bruno@clisp.org>
92361         * modules/tsearch: New file.
92362         * lib/tsearch.h: New file.
92363         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
92364         * m4/tsearch.m4: New file.
92365         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
92367 2006-10-29  Eric Blake  <ebb9@byu.net>
92369         * lib/arcfour.c: Assume config.h.
92370         * lib/arctwo.c: Likewise.
92371         * lib/base64.c: Likewise.
92372         * lib/check-version.c: Likewise.
92373         * lib/crc.c: Likewise.
92374         * lib/des.c: Likewise.
92375         * lib/gc-gnulib.c: Likewise.
92376         * lib/gc-libgcrypt.c: Likewise.
92377         * lib/gc-pbkdf2-sha1.c: Likewise.
92378         * lib/getaddrinfo.c: Likewise.
92379         * lib/getdelim.c: Likewise.
92380         * lib/getline.c: Likewise.
92381         * lib/hmac-md5.c: Likewise.
92382         * lib/hmac-sha1.c: Likewise.
92383         * lib/iconvme.c: Likewise.
92384         * lib/md2.c: Likewise.
92385         * lib/md4.c: Likewise.
92386         * lib/memxor.c: Likewise.
92387         * lib/read-file.c: Likewise.
92388         * lib/readline.c: Likewise.
92389         * lib/rijndael-alg-fst.c: Likewise.
92390         * lib/rijndael-api-fst.c: Likewise.
92391         * lib/xgetdomainname.c: Likewise.
92393 2006-10-28  Eric Blake  <ebb9@byu.net>
92395         * lib/xstrndup.c: Assume config.h.
92397 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
92399         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
92400         stat-macros.h is now for our own macros, whereas stat_h is for
92401         macros in the <sys/stat.h> name space.
92402         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
92403         (STAT_MACROS_H): Remove.
92404         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
92405         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
92406         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
92407         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
92408         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
92409         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
92410         Move these macros to ...
92411         * lib/stat_.h: here.  Don't include stat-macros.h.
92412         * lib/canonicalize.c: Don't include stat-macros.h.
92413         * lib/chown.c: Likewise.
92414         * lib/euidaccess.c: Likewise.
92415         * lib/file-type.c: Likewise.
92416         * lib/filemode.c: Likewise.
92417         * lib/glob.c: Likewise.
92418         * lib/isapipe.c: Likewise.
92419         * lib/lchown.c: Likewise.
92420         * lib/lstat.c: Likewise.
92421         * lib/mkdir-p.c: Likewise.
92422         * lib/rmdir.c: Likewise.
92423         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
92424         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
92425         unless mkdir isn't declared, to speed up 'configure'.
92426         Always create sys/stat.h, since it's unlikely any real sys/stat.h
92427         would define all the S_* symbols.
92428         * modules/canonicalize (Depends-on):
92429         Depend on sys_stat, not stat-macros.
92430         * modules/chown: Likewise.
92431         * modules/euidaccess: Likewise.
92432         * modules/filemode: Likewise.
92433         * modules/file-type: Likewise.
92434         * modules/glob: Likewise.
92435         * modules/isapipe: Likewise.
92436         * modules/lchown: Likewise.
92437         * modules/lstat: Likewise.
92438         * modules/mkancesdirs: Likewise.
92439         * modules/rmdir: Likewise.
92440         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
92441         * modules/modechange: Likewise.
92442         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
92443         (configure.ac): Remove gl_STAT_MACROS.
92444         * modules/sys_stat (Depends-on): Remove stat-macros.
92446 2006-10-27  Bruno Haible  <bruno@clisp.org>
92448         * m4/signed.m4: Remove file.
92449         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
92450         invocation.
92451         * modules/vasnprintf (Files): Remove m4/signed.m4.
92453 2006-10-27  Bruno Haible  <bruno@clisp.org>
92455         Update to GNU gettext 0.16.
92456         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
92457         m4/inttypes-h.m4, m4/signed.m4.
92458         * m4/gettext.m4: Update to GNU gettext 0.16.
92459         * m4/intl.m4: New file, from GNU gettext.
92460         * m4/intldir.m4: New file, from GNU gettext.
92461         * config/srclist.txt: Update
92463 2006-10-27  Eric Blake  <ebb9@byu.net>
92465         * MODULES.html.sh: Document tempname.
92466         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
92467         dependencies.
92468         (Files): Move lib/tempname.c...
92469         * modules/tempname: ...to this new module.
92470         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
92471         (gl_PREREQ_TEMPNAME): Move...
92472         * m4/tempname.m4: ...to this new file.
92473         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
92474         * modules/sys_stat (Depends-on): Add stat-macros.
92475         * lib/stat_.h (includes): Pick up stat macros.
92476         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
92477         if stat macros are broken.
92478         * lib/tempname.c (includes): No need to include "stat-macros.h".
92479         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
92480         (direxists, __path_search) [!_LIBC]: Don't compile these in
92481         gnulib; the tmpdir module covers that.
92482         * lib/tempname.h: New file.
92484 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
92486         * COPYING: Explain how gnulib-tool converts licence headers.
92487         Almost all wording by Eric Blake.
92489 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
92491         * lib/mbchar.h (is_basic_table): Make read-only.
92492         * lib/mbchar.c (is_basic_table): Likewise.
92493         Reported by John Darrington.
92495 2006-10-25  Bruno Haible  <bruno@clisp.org>
92497         * lib/progname.h (set_program_name): Undefine before defining.
92499 2006-10-25  Bruno Haible  <bruno@clisp.org>
92501         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
92502         false for non-gcc C++ compilers.
92503         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
92505 2006-10-24  Bruno Haible  <bruno@clisp.org>
92507         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
92508         iconv implementations like Irix iconv.
92510 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
92512         * modules/vararrays: New file.
92513         * m4/vararrays.m4: New file, taken from diffutils.
92514         * MODULES.html.sh: New module vararrays.
92516 2006-10-24  Karl Berry  <karl@gnu.org>
92518         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
92519         Don't call GNU Unix.
92521 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92523         * users.txt: Add Libtool.
92525         Sync from Libtool:
92527         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
92529         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
92530         to gnulib's policy of including config.h unconditionally.
92532 2006-10-24  Bruno Haible  <bruno@clisp.org>
92534         * modules/wcwidth (Files): Add m4/wint_t.m4.
92535         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
92536         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
92538 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
92540         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
92541         to pacify GCC with some -W flags enabled.  Problem reported by
92542         Bruno Haible.
92544 2006-10-24  Jim Meyering  <jim@meyering.net>
92546         * MODULES.html.sh: Remove uinttostr.  It's not a module.
92547         Reported by Karl Berry.
92549 2006-10-23  Bruno Haible  <bruno@clisp.org>
92551         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
92553 2006-10-24  Bruno Haible  <bruno@clisp.org>
92555         * lib/gl_list.h: Use C comment style, not C++ comment style.
92557 2006-10-23  Eric Blake  <ebb9@byu.net>
92559         * lib/getaddrinfo.c (includes): Add missing include.
92561 2006-10-23  Bruno Haible  <bruno@clisp.org>
92562             Paul Eggert  <eggert@cs.ucla.edu>
92564         Ability to rename obstack_free.
92565         * lib/obstack.h (__obstack_free): New macro. Declare instead of
92566         obstack_free.
92567         (obstack_free): Invoke the __obstack_free macro.
92568         * lib/obstack.c (obstack_free): Use __obstack_free macro.
92570 2006-10-23  Bruno Haible  <bruno@clisp.org>
92571             Paul Eggert  <eggert@cs.ucla.edu>
92573         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
92574         __argc, __argv from the declaration. (They are defined as macros on
92575         mingw.)
92577 2006-10-22  Bruno Haible  <bruno@clisp.org>
92579         * doc/gnulib-intro.texi: New file.
92580         * doc/gnulib.texi: Include it.
92582 2006-10-21  Bruno Haible  <bruno@clisp.org>
92584         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
92585         "Introduction", "Miscellanous Notes", "Particular Modules".
92587 2006-10-21  Bruno Haible  <bruno@clisp.org>
92589         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92590         Change mostlyclean-local rule to avoid sh syntax error from bash
92591         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
92593 2006-10-23  Jim Meyering  <jim@meyering.net>
92595         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
92596         in place of snprintf.
92598         * modules/inttostr (Files): Add lib/uinttostr.c.
92599         * lib/uinttostr.c (inttostr): New file/function.
92600         * lib/inttostr.h (uinttostr): Declare.
92601         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
92602         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
92603         Add uinttostr.
92604         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
92606 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
92608         * lib/canonicalize.c (ELOOP): Define if not already defined.
92609         Problem reported by Bruno Haible in
92610         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
92612 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
92614         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
92615         Problem reported by Perry Smith and Ville Laurikari.
92617         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
92618         uses.
92620 2006-10-19  Bruno Haible  <bruno@clisp.org>
92622         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
92623         for mingw.
92625 2006-10-19  Bruno Haible  <bruno@clisp.org>
92627         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
92628         Needed for mingw.
92630 2006-10-19  Bruno Haible  <bruno@clisp.org>
92632         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
92634 2006-10-19  Bruno Haible  <bruno@clisp.org>
92636         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
92637         it.
92639 2006-10-19  Bruno Haible  <bruno@clisp.org>
92641         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
92642         invocation.
92644 2006-10-19  Bruno Haible  <bruno@clisp.org>
92646         * gnulib-tool (func_create_testdir): Don't include ftruncate and
92647         mountlist by default.
92649 2006-10-16  Bruno Haible  <bruno@clisp.org>
92651         * lib/c-strstr.c: Include c-strstr.h.
92653 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
92655         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
92656         in a slash.
92658 2006-10-18  Bruno Haible  <bruno@clisp.org>
92660         * lib/lock.h [C++]: Wrap definitions in extern "C".
92662 2006-10-18  Bruno Haible  <bruno@clisp.org>
92664         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
92665         gl_LIBOBJS list.
92667 2006-10-18  Bruno Haible  <bruno@clisp.org>
92669         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
92671 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
92673         * lib/xstrtol.h: Include gettext.h.
92674         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
92675         Problem reported by Eric Blake.
92676         * modules/xstrtol (Depends-on): Add gettext-h.
92678 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
92680         * lib/strftime.c (advance): New macro.
92681         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
92682         incomplete type, so you can't add 0 to it.  Problem and patch
92683         reported by Eelco Dolstra for dietlibc.
92685 2006-10-18  Jim Meyering  <jim@meyering.net>
92687         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
92688         type for a local, and rename it: s/up/user_proc/.
92690 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
92692         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
92693         READ_UTMP_USER_PROCESS.
92694         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
92696 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
92698         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
92699         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
92701 2006-10-17  Eric Blake  <ebb9@byu.net>
92703         * lib/sigprocmask.c (sigprocmask): Fix typo.
92705         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
92707         * modules/clean-temp (Makefile.am): Don't add to make output...
92708         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
92709         config.h.
92711 2006-10-17  Bruno Haible  <bruno@clisp.org>
92713         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
92714         differently if DEFAULT_TEXT_DOMAIN is set.
92716 2006-10-16  Bruno Haible  <bruno@clisp.org>
92718         * lib/clean-temp.c: Include fwriteerror.h.
92720 2006-10-16  Bruno Haible  <bruno@clisp.org>
92722         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
92724 2006-10-16  Bruno Haible  <bruno@clisp.org>
92726         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
92727         * lib/sigprocmask.h: Include <sys/types.h>.
92728         (sigset_t): Use the system's definition if present.
92730 2006-10-17  Eric Blake  <ebb9@byu.net>
92732         * lib/xvasprintf.c (includes): Assume config.h.
92733         * lib/xasprintf.c (includes): Likewise.
92735 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
92737         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
92738         at least as wide as intmax_t.
92740 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
92742         (Imported from Automake.)
92743         * build-aux/gnupload: Update to version 1.1 of directive file.
92745 2006-10-16  Eric Blake  <ebb9@byu.net>
92747         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
92748         match Automake 1.10a.
92750 2006-10-14  Bruno Haible  <bruno@clisp.org>
92752         * modules/sigprocmask: New file.
92753         * lib/sigprocmask.h: New file.
92754         * lib/sigprocmask.c: New file.
92755         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
92756         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
92757         request sigprocmask.o.
92758         (gl_PREREQ_SIGPROCMASK): New macro.
92759         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
92760         (Depends-on): Add sigprocmask.
92761         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
92762         gt_SIGNALBLOCKING. Test for 'raise' only once.
92763         * lib/fatal-signal.c: Include sigprocmask.h.
92764         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
92765         unblock_fatal_signals): Define always.
92766         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92767         sigprocmask.
92769 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
92771         Sync from Automake.
92772         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
92773         which incorrectly sets the mode of an existing destination
92774         directory.  In some cases the unpatched install-sh could do the
92775         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
92776         system.  We hope this is rare in practice, but it's clearly worth
92777         fixing.  Problem reported by Alex Unleashed in
92778         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
92779         Also, don't bother to check for -m bugs unless we're using -m;
92780         suggested by Stepan Kasal.
92782 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92784         Sync from Automake.
92785         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
92786         `-c' flag, so they appear at the same position as in %FASTDEP%
92787         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
92788         which ignores unknown options only after the first non-option.
92789         Bug report against M4 by Nelson H. F. Beebe.
92791 2006-10-13  Jim Meyering  <jim@meyering.net>
92793         Fix a bug in yesterday's change.
92794         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
92795         p->fts_statp->st_dev would be used uninitialized.
92796         Ensures that we always call fts_stat on the very first entry.
92797         Miklos Szeredi reported that find -xdev stopped working.
92799 2006-10-12  Bruno Haible  <bruno@clisp.org>
92801         * gnulib-tool (func_get_automake_snippet): Append an automatically
92802         computed EXTRA_DIST augmentation.
92803         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
92804         * modules/alloca-opt (Makefile.am): Likewise.
92805         * modules/allocsa (Makefile.am): Likewise.
92806         * modules/arcfour (Makefile.am): Likewise.
92807         * modules/arctwo (Makefile.am): Likewise.
92808         * modules/argmatch (Makefile.am): Likewise.
92809         * modules/argz (Makefile.am): Likewise.
92810         * modules/atexit (Makefile.am): Likewise.
92811         * modules/backupfile (Makefile.am): Likewise.
92812         * modules/byteswap (Makefile.am): Likewise.
92813         * modules/c-strtod (Makefile.am): Likewise.
92814         * modules/c-strtold (Makefile.am): Likewise.
92815         * modules/calloc (Makefile.am): Likewise.
92816         * modules/canon-host (Makefile.am): Likewise.
92817         * modules/canonicalize (Makefile.am): Likewise.
92818         * modules/chdir-long (Makefile.am): Likewise.
92819         * modules/chdir-safer (Makefile.am): Likewise.
92820         * modules/check-version (Makefile.am): Likewise.
92821         * modules/chown (Makefile.am): Likewise.
92822         * modules/cloexec (Makefile.am): Likewise.
92823         * modules/close-stream (Makefile.am): Likewise.
92824         * modules/closeout (Makefile.am): Likewise.
92825         * modules/crc (Makefile.am): Likewise.
92826         * modules/csharpexec (Makefile.am): Likewise.
92827         * modules/cycle-check (Makefile.am): Likewise.
92828         * modules/des (Makefile.am): Likewise.
92829         * modules/dev-ino (Makefile.am): Likewise.
92830         * modules/dirfd (Makefile.am): Likewise.
92831         * modules/dirname (Makefile.am): Likewise.
92832         * modules/dup2 (Makefile.am): Likewise.
92833         * modules/eealloc (Makefile.am): Likewise.
92834         * modules/error (Makefile.am): Likewise.
92835         * modules/euidaccess (Makefile.am): Likewise.
92836         * modules/exclude (Makefile.am): Likewise.
92837         * modules/exitfail (Makefile.am): Likewise.
92838         * modules/fcntl-safer (Makefile.am): Likewise.
92839         * modules/fcntl (Makefile.am): Likewise.
92840         * modules/file-type (Makefile.am): Likewise.
92841         * modules/fileblocks (Makefile.am): Likewise.
92842         * modules/filemode (Makefile.am): Likewise.
92843         * modules/filenamecat (Makefile.am): Likewise.
92844         * modules/fnmatch (Makefile.am): Likewise.
92845         * modules/fopen-safer (Makefile.am): Likewise.
92846         * modules/fpending (Makefile.am): Likewise.
92847         * modules/fprintftime (Makefile.am): Likewise.
92848         * modules/free (Makefile.am): Likewise.
92849         * modules/fsusage (Makefile.am): Likewise.
92850         * modules/ftruncate (Makefile.am): Likewise.
92851         * modules/fts (Makefile.am): Likewise.
92852         * modules/gc-arcfour (Makefile.am): Likewise.
92853         * modules/gc-des (Makefile.am): Likewise.
92854         * modules/gc-hmac-md5 (Makefile.am): Likewise.
92855         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
92856         * modules/gc-md4 (Makefile.am): Likewise.
92857         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
92858         * modules/gc-sha1 (Makefile.am): Likewise.
92859         * modules/gc (Makefile.am): Likewise.
92860         * modules/getaddrinfo (Makefile.am): Likewise.
92861         * modules/getcwd (Makefile.am): Likewise.
92862         * modules/getdelim (Makefile.am): Likewise.
92863         * modules/getdomainname (Makefile.am): Likewise.
92864         * modules/getgroups (Makefile.am): Likewise.
92865         * modules/gethostname (Makefile.am): Likewise.
92866         * modules/gethrxtime (Makefile.am): Likewise.
92867         * modules/getline (Makefile.am): Likewise.
92868         * modules/getloadavg (Makefile.am): Likewise.
92869         * modules/getlogin_r (Makefile.am): Likewise.
92870         * modules/getndelim2 (Makefile.am): Likewise.
92871         * modules/getopt (Makefile.am): Likewise.
92872         * modules/getpagesize (Makefile.am): Likewise.
92873         * modules/getpass-gnu (Makefile.am): Likewise.
92874         * modules/getpass (Makefile.am): Likewise.
92875         * modules/getsubopt (Makefile.am): Likewise.
92876         * modules/gettime (Makefile.am): Likewise.
92877         * modules/gettimeofday (Makefile.am): Likewise.
92878         * modules/getugroups (Makefile.am): Likewise.
92879         * modules/getusershell (Makefile.am): Likewise.
92880         * modules/glob (Makefile.am): Likewise.
92881         * modules/group-member (Makefile.am): Likewise.
92882         * modules/hard-locale (Makefile.am): Likewise.
92883         * modules/hash (Makefile.am): Likewise.
92884         * modules/hmac-md5 (Makefile.am): Likewise.
92885         * modules/hmac-sha1 (Makefile.am): Likewise.
92886         * modules/human (Makefile.am): Likewise.
92887         * modules/idcache (Makefile.am): Likewise.
92888         * modules/imaxabs (Makefile.am): Likewise.
92889         * modules/imaxdiv (Makefile.am): Likewise.
92890         * modules/inet_ntop (Makefile.am): Likewise.
92891         * modules/inet_pton (Makefile.am): Likewise.
92892         * modules/intprops (Makefile.am): Likewise.
92893         * modules/inttostr (Makefile.am): Likewise.
92894         * modules/inttypes (Makefile.am): Likewise.
92895         * modules/isapipe (Makefile.am): Likewise.
92896         * modules/javaversion (Makefile.am): Likewise.
92897         * modules/lchmod (Makefile.am): Likewise.
92898         * modules/lchown (Makefile.am): Likewise.
92899         * modules/localcharset (Makefile.am): Likewise.
92900         * modules/long-options (Makefile.am): Likewise.
92901         * modules/lstat (Makefile.am): Likewise.
92902         * modules/malloc (Makefile.am): Likewise.
92903         * modules/mathl (Makefile.am): Likewise.
92904         * modules/mbchar (Makefile.am): Likewise.
92905         * modules/md2 (Makefile.am): Likewise.
92906         * modules/md4 (Makefile.am): Likewise.
92907         * modules/md5 (Makefile.am): Likewise.
92908         * modules/memcasecmp (Makefile.am): Likewise.
92909         * modules/memchr (Makefile.am): Likewise.
92910         * modules/memcmp (Makefile.am): Likewise.
92911         * modules/memcoll (Makefile.am): Likewise.
92912         * modules/memcpy (Makefile.am): Likewise.
92913         * modules/memmem (Makefile.am): Likewise.
92914         * modules/memmove (Makefile.am): Likewise.
92915         * modules/mempcpy (Makefile.am): Likewise.
92916         * modules/memrchr (Makefile.am): Likewise.
92917         * modules/memset (Makefile.am): Likewise.
92918         * modules/memxor (Makefile.am): Likewise.
92919         * modules/mkancesdirs (Makefile.am): Likewise.
92920         * modules/mkdir-p (Makefile.am): Likewise.
92921         * modules/mkdir (Makefile.am): Likewise.
92922         * modules/mkdtemp (Makefile.am): Likewise.
92923         * modules/mkstemp (Makefile.am): Likewise.
92924         * modules/mktime (Makefile.am): Likewise.
92925         * modules/modechange (Makefile.am): Likewise.
92926         * modules/mountlist (Makefile.am): Likewise.
92927         * modules/nanosleep (Makefile.am): Likewise.
92928         * modules/obstack (Makefile.am): Likewise.
92929         * modules/openat (Makefile.am): Likewise.
92930         * modules/pagealign_alloc (Makefile.am): Likewise.
92931         * modules/pathmax (Makefile.am): Likewise.
92932         * modules/physmem (Makefile.am): Likewise.
92933         * modules/poll (Makefile.am): Likewise.
92934         * modules/posixtm (Makefile.am): Likewise.
92935         * modules/posixver (Makefile.am): Likewise.
92936         * modules/putenv (Makefile.am): Likewise.
92937         * modules/quote (Makefile.am): Likewise.
92938         * modules/quotearg (Makefile.am): Likewise.
92939         * modules/raise (Makefile.am): Likewise.
92940         * modules/read-file (Makefile.am): Likewise.
92941         * modules/readline (Makefile.am): Likewise.
92942         * modules/readlink (Makefile.am): Likewise.
92943         * modules/readtokens (Makefile.am): Likewise.
92944         * modules/readutmp (Makefile.am): Likewise.
92945         * modules/realloc (Makefile.am): Likewise.
92946         * modules/regex (Makefile.am): Likewise.
92947         * modules/rename-dest-slash (Makefile.am): Likewise.
92948         * modules/rename (Makefile.am): Likewise.
92949         * modules/rijndael (Makefile.am): Likewise.
92950         * modules/rmdir (Makefile.am): Likewise.
92951         * modules/rpmatch (Makefile.am): Likewise.
92952         * modules/safe-read (Makefile.am): Likewise.
92953         * modules/safe-write (Makefile.am): Likewise.
92954         * modules/same-inode (Makefile.am): Likewise.
92955         * modules/same (Makefile.am): Likewise.
92956         * modules/save-cwd (Makefile.am): Likewise.
92957         * modules/savedir (Makefile.am): Likewise.
92958         * modules/setenv (Makefile.am): Likewise.
92959         * modules/settime (Makefile.am): Likewise.
92960         * modules/sha1 (Makefile.am): Likewise.
92961         * modules/sig2str (Makefile.am): Likewise.
92962         * modules/snprintf (Makefile.am): Likewise.
92963         * modules/stat-macros (Makefile.am): Likewise.
92964         * modules/stat-time (Makefile.am): Likewise.
92965         * modules/stdbool (Makefile.am): Likewise.
92966         * modules/stdint (Makefile.am): Likewise.
92967         * modules/stdlib-safer (Makefile.am): Likewise.
92968         * modules/stpcpy (Makefile.am): Likewise.
92969         * modules/stpncpy (Makefile.am): Likewise.
92970         * modules/strcase (Makefile.am): Likewise.
92971         * modules/strcasestr (Makefile.am): Likewise.
92972         * modules/strchrnul (Makefile.am): Likewise.
92973         * modules/strcspn (Makefile.am): Likewise.
92974         * modules/strdup (Makefile.am): Likewise.
92975         * modules/strerror (Makefile.am): Likewise.
92976         * modules/strftime (Makefile.am): Likewise.
92977         * modules/strndup (Makefile.am): Likewise.
92978         * modules/strnlen (Makefile.am): Likewise.
92979         * modules/strpbrk (Makefile.am): Likewise.
92980         * modules/strsep (Makefile.am): Likewise.
92981         * modules/strstr (Makefile.am): Likewise.
92982         * modules/strtod (Makefile.am): Likewise.
92983         * modules/strtoimax (Makefile.am): Likewise.
92984         * modules/strtok_r (Makefile.am): Likewise.
92985         * modules/strtol (Makefile.am): Likewise.
92986         * modules/strtoll (Makefile.am): Likewise.
92987         * modules/strtoul (Makefile.am): Likewise.
92988         * modules/strtoull (Makefile.am): Likewise.
92989         * modules/strtoumax (Makefile.am): Likewise.
92990         * modules/strverscmp (Makefile.am): Likewise.
92991         * modules/sys_socket (Makefile.am): Likewise.
92992         * modules/sys_stat (Makefile.am): Likewise.
92993         * modules/sysexits (Makefile.am): Likewise.
92994         * modules/time_r (Makefile.am): Likewise.
92995         * modules/timegm (Makefile.am): Likewise.
92996         * modules/timespec (Makefile.am): Likewise.
92997         * modules/tmpfile-safer (Makefile.am): Likewise.
92998         * modules/trim (Makefile.am): Likewise.
92999         * modules/unistd-safer (Makefile.am): Likewise.
93000         * modules/unlinkdir (Makefile.am): Likewise.
93001         * modules/unlocked-io (Makefile.am): Likewise.
93002         * modules/userspec (Makefile.am): Likewise.
93003         * modules/utime (Makefile.am): Likewise.
93004         * modules/utimecmp (Makefile.am): Likewise.
93005         * modules/utimens (Makefile.am): Likewise.
93006         * modules/vasnprintf (Makefile.am): Likewise.
93007         * modules/vasprintf (Makefile.am): Likewise.
93008         * modules/vsnprintf (Makefile.am): Likewise.
93009         * modules/xalloc (Makefile.am): Likewise.
93010         * modules/xgetcwd (Makefile.am): Likewise.
93011         * modules/xnanosleep (Makefile.am): Likewise.
93012         * modules/xreadlink (Makefile.am): Likewise.
93013         * modules/xstrtod (Makefile.am): Likewise.
93014         * modules/xstrtol (Makefile.am): Likewise.
93015         * modules/xstrtold (Makefile.am): Likewise.
93016         * modules/yesno (Makefile.am): Likewise.
93017         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
93019 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
93021         * modules/error (Makefile.am): Distribute files through
93022         EXTRA_DIST, not lib_SOURCES.
93024 2006-10-12  Eric Blake  <ebb9@byu.net>
93026         * modules/error (Makefile.am): Distribute files in /lib.
93027         * modules/obstack (Makefile.am): Likewise.
93029 2006-10-12  Bruno Haible  <bruno@clisp.org>
93031         * modules/acl (Makefile.am): Distribute all files in lib/ through
93032         EXTRA_DIST.
93033         * modules/arcfour (Makefile.am): Likewise.
93034         * modules/arctwo (Makefile.am): Likewise.
93035         * modules/argmatch (Makefile.am): Likewise.
93036         * modules/argz (Makefile.am): Likewise.
93037         * modules/atexit (Makefile.am): Likewise.
93038         * modules/backupfile (Makefile.am): Likewise.
93039         * modules/c-strtod (Makefile.am): Likewise.
93040         * modules/c-strtold (Makefile.am): Likewise.
93041         * modules/calloc (Makefile.am): Likewise.
93042         * modules/canon-host (Makefile.am): Likewise.
93043         * modules/canonicalize (Makefile.am): Likewise.
93044         * modules/chdir-long (Makefile.am): Likewise.
93045         * modules/chdir-safer (Makefile.am): Likewise.
93046         * modules/check-version (Makefile.am): Likewise.
93047         * modules/chown (Makefile.am): Likewise.
93048         * modules/cloexec (Makefile.am): Likewise.
93049         * modules/close-stream (Makefile.am): Likewise.
93050         * modules/closeout (Makefile.am): Likewise.
93051         * modules/crc (Makefile.am): Likewise.
93052         * modules/cycle-check (Makefile.am): Likewise.
93053         * modules/des (Makefile.am): Likewise.
93054         * modules/dirfd (Makefile.am): Likewise.
93055         * modules/dirname (Makefile.am): Likewise.
93056         * modules/dup2 (Makefile.am): Likewise.
93057         * modules/euidaccess (Makefile.am): Likewise.
93058         * modules/exclude (Makefile.am): Likewise.
93059         * modules/exitfail (Makefile.am): Likewise.
93060         * modules/fcntl-safer (Makefile.am): Likewise.
93061         * modules/file-type (Makefile.am): Likewise.
93062         * modules/fileblocks (Makefile.am): Likewise.
93063         * modules/filemode (Makefile.am): Likewise.
93064         * modules/filenamecat (Makefile.am): Likewise.
93065         * modules/fnmatch (Makefile.am): Likewise.
93066         * modules/fopen-safer (Makefile.am): Likewise.
93067         * modules/fpending (Makefile.am): Likewise.
93068         * modules/fprintftime (Makefile.am): Likewise.
93069         * modules/free (Makefile.am): Likewise.
93070         * modules/fsusage (Makefile.am): Likewise.
93071         * modules/ftruncate (Makefile.am): Likewise.
93072         * modules/fts (Makefile.am): Likewise.
93073         * modules/gc (Makefile.am): Likewise.
93074         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
93075         * modules/getaddrinfo (Makefile.am): Likewise.
93076         * modules/getcwd (Makefile.am): Likewise.
93077         * modules/getdelim (Makefile.am): Likewise.
93078         * modules/getdomainname (Makefile.am): Likewise.
93079         * modules/getgroups (Makefile.am): Likewise.
93080         * modules/gethostname (Makefile.am): Likewise.
93081         * modules/gethrxtime (Makefile.am): Likewise.
93082         * modules/getline (Makefile.am): Likewise.
93083         * modules/getloadavg (Makefile.am): Likewise.
93084         * modules/getlogin_r (Makefile.am): Likewise.
93085         * modules/getopt (Makefile.am): Likewise.
93086         * modules/getpass (Makefile.am): Likewise.
93087         * modules/getpass-gnu (Makefile.am): Likewise.
93088         * modules/getsubopt (Makefile.am): Likewise.
93089         * modules/gettime (Makefile.am): Likewise.
93090         * modules/gettimeofday (Makefile.am): Likewise.
93091         * modules/getugroups (Makefile.am): Likewise.
93092         * modules/getusershell (Makefile.am): Likewise.
93093         * modules/glob (Makefile.am): Likewise.
93094         * modules/group-member (Makefile.am): Likewise.
93095         * modules/hard-locale (Makefile.am): Likewise.
93096         * modules/hash (Makefile.am): Likewise.
93097         * modules/hmac-md5 (Makefile.am): Likewise.
93098         * modules/hmac-sha1 (Makefile.am): Likewise.
93099         * modules/human (Makefile.am): Likewise.
93100         * modules/idcache (Makefile.am): Likewise.
93101         * modules/imaxabs (Makefile.am): Likewise.
93102         * modules/imaxdiv (Makefile.am): Likewise.
93103         * modules/inet_ntop (Makefile.am): Likewise.
93104         * modules/inet_pton (Makefile.am): Likewise.
93105         * modules/inttostr (Makefile.am): Likewise.
93106         * modules/isapipe (Makefile.am): Likewise.
93107         * modules/lchown (Makefile.am): Likewise.
93108         * modules/long-options (Makefile.am): Likewise.
93109         * modules/lstat (Makefile.am): Likewise.
93110         * modules/malloc (Makefile.am): Likewise.
93111         * modules/mathl (Makefile.am): Likewise.
93112         * modules/mbchar (Makefile.am): Likewise.
93113         * modules/md2 (Makefile.am): Likewise.
93114         * modules/md4 (Makefile.am): Likewise.
93115         * modules/md5 (Makefile.am): Likewise.
93116         * modules/memcasecmp (Makefile.am): Likewise.
93117         * modules/memchr (Makefile.am): Likewise.
93118         * modules/memcmp (Makefile.am): Likewise.
93119         * modules/memcoll (Makefile.am): Likewise.
93120         * modules/memcpy (Makefile.am): Likewise.
93121         * modules/memmem (Makefile.am): Likewise.
93122         * modules/memmove (Makefile.am): Likewise.
93123         * modules/mempcpy (Makefile.am): Likewise.
93124         * modules/memrchr (Makefile.am): Likewise.
93125         * modules/memset (Makefile.am): Likewise.
93126         * modules/memxor (Makefile.am): Likewise.
93127         * modules/mkancesdirs (Makefile.am): Likewise.
93128         * modules/mkdir (Makefile.am): Likewise.
93129         * modules/mkdir-p (Makefile.am): Likewise.
93130         * modules/mkdtemp (Makefile.am): Likewise.
93131         * modules/mkstemp (Makefile.am): Likewise.
93132         * modules/mktime (Makefile.am): Likewise.
93133         * modules/modechange (Makefile.am): Likewise.
93134         * modules/mountlist (Makefile.am): Likewise.
93135         * modules/nanosleep (Makefile.am): Likewise.
93136         * modules/openat (Makefile.am): Likewise.
93137         * modules/pagealign_alloc (Makefile.am): Likewise.
93138         * modules/physmem (Makefile.am): Likewise.
93139         * modules/poll (Makefile.am): Likewise.
93140         * modules/posixtm (Makefile.am): Likewise.
93141         * modules/posixver (Makefile.am): Likewise.
93142         * modules/putenv (Makefile.am): Likewise.
93143         * modules/quote (Makefile.am): Likewise.
93144         * modules/quotearg (Makefile.am): Likewise.
93145         * modules/raise (Makefile.am): Likewise.
93146         * modules/read-file (Makefile.am): Likewise.
93147         * modules/readline (Makefile.am): Likewise.
93148         * modules/readlink (Makefile.am): Likewise.
93149         * modules/readtokens (Makefile.am): Likewise.
93150         * modules/readutmp (Makefile.am): Likewise.
93151         * modules/realloc (Makefile.am): Likewise.
93152         * modules/regex (Makefile.am): Likewise.
93153         * modules/rename (Makefile.am): Likewise.
93154         * modules/rename-dest-slash (Makefile.am): Likewise.
93155         * modules/rijndael (Makefile.am): Likewise.
93156         * modules/rmdir (Makefile.am): Likewise.
93157         * modules/rpmatch (Makefile.am): Likewise.
93158         * modules/safe-read (Makefile.am): Likewise.
93159         * modules/safe-write (Makefile.am): Likewise.
93160         * modules/same (Makefile.am): Likewise.
93161         * modules/save-cwd (Makefile.am): Likewise.
93162         * modules/savedir (Makefile.am): Likewise.
93163         * modules/setenv (Makefile.am): Likewise.
93164         * modules/settime (Makefile.am): Likewise.
93165         * modules/sha1 (Makefile.am): Likewise.
93166         * modules/sig2str (Makefile.am): Likewise.
93167         * modules/snprintf (Makefile.am): Likewise.
93168         * modules/stdlib-safer (Makefile.am): Likewise.
93169         * modules/stpcpy (Makefile.am): Likewise.
93170         * modules/stpncpy (Makefile.am): Likewise.
93171         * modules/strcase (Makefile.am): Likewise.
93172         * modules/strcasestr (Makefile.am): Likewise.
93173         * modules/strchrnul (Makefile.am): Likewise.
93174         * modules/strcspn (Makefile.am): Likewise.
93175         * modules/strdup (Makefile.am): Likewise.
93176         * modules/strerror (Makefile.am): Likewise.
93177         * modules/strftime (Makefile.am): Likewise.
93178         * modules/strndup (Makefile.am): Likewise.
93179         * modules/strnlen (Makefile.am): Likewise.
93180         * modules/strpbrk (Makefile.am): Likewise.
93181         * modules/strsep (Makefile.am): Likewise.
93182         * modules/strstr (Makefile.am): Likewise.
93183         * modules/strtod (Makefile.am): Likewise.
93184         * modules/strtoimax (Makefile.am): Likewise.
93185         * modules/strtok_r (Makefile.am): Likewise.
93186         * modules/strtol (Makefile.am): Likewise.
93187         * modules/strtoll (Makefile.am): Likewise.
93188         * modules/strtoul (Makefile.am): Likewise.
93189         * modules/strtoull (Makefile.am): Likewise.
93190         * modules/strtoumax (Makefile.am): Likewise.
93191         * modules/strverscmp (Makefile.am): Likewise.
93192         * modules/time_r (Makefile.am): Likewise.
93193         * modules/timegm (Makefile.am): Likewise.
93194         * modules/tmpfile-safer (Makefile.am): Likewise.
93195         * modules/unistd-safer (Makefile.am): Likewise.
93196         * modules/unlinkdir (Makefile.am): Likewise.
93197         * modules/userspec (Makefile.am): Likewise.
93198         * modules/utime (Makefile.am): Likewise.
93199         * modules/utimecmp (Makefile.am): Likewise.
93200         * modules/utimens (Makefile.am): Likewise.
93201         * modules/vasnprintf (Makefile.am): Likewise.
93202         * modules/vasprintf (Makefile.am): Likewise.
93203         * modules/vsnprintf (Makefile.am): Likewise.
93204         * modules/xalloc (Makefile.am): Likewise.
93205         * modules/xgetcwd (Makefile.am): Likewise.
93206         * modules/xnanosleep (Makefile.am): Likewise.
93207         * modules/xreadlink (Makefile.am): Likewise.
93208         * modules/xstrtod (Makefile.am): Likewise.
93209         * modules/xstrtol (Makefile.am): Likewise.
93210         * modules/xstrtold (Makefile.am): Likewise.
93211         * modules/yesno (Makefile.am): Likewise.
93213 2006-10-12  Jim Meyering  <jim@meyering.net>
93215         * m4/getloadavg.m4: Revert the change below.
93217         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
93218         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
93219         fail with a symlink, which is what coreutils' ./bootstrap now
93220         creates by default.
93222 2006-10-12  Bruno Haible  <bruno@clisp.org>
93224         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
93225         mingw.
93226         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
93227         MSVC and mingw explicitly.
93229 2006-10-11  Simon Josefsson  <jas@extundo.com>
93230             Bruno Haible  <bruno@clisp.org>
93232         Add support for multiple gnulib-tool invocations in the scope of a
93233         single configure.ac file.
93234         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
93235         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
93236         with the same contents as the _LIBADD variable.
93237         (func_emit_initmacro_start, func_emit_initmacro_end,
93238         func_emit_initmacro_done): New functions.
93239         (func_import, func_create_testdir): Invoke them. Allow the identifiers
93240         gl_LIBOBJS and gl_LTLIBOBJS.
93242 2006-10-11  Bruno Haible  <bruno@clisp.org>
93244         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
93245         (func_create_testdir): Don't create po/Makefile.am, don't invoke
93246         autoreconf. Instead, invoke autopoint explicitly but move back the
93247         *.m4 files from gnulib.
93249 2006-10-11  Bruno Haible  <bruno@clisp.org>
93251         * gnulib-tool (func_usage): Make module names after --create-testdir
93252         optional.
93253         (func_create_testdir): If no module was specified, use nearly all
93254         modules.
93256 2006-10-12  Jim Meyering  <jim@meyering.net>
93258         Big performance improvement for fts-based tools that use FTS_NOSTAT.
93259         Avoid spurious inode-mismatch problems on non-POSIX file systems.
93260         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
93261         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
93262         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
93263         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
93264         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
93265         (fts_set_stat_required): New function.
93266         (fts_open): Defer the calls to fts_stat, if possible or requested.
93267         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
93268         into fts_stat itself.
93269         (fts_read): Perform any required (deferred) fts_stat call.
93270         (fts_build): Likewise, for the directory we're about to open and read.
93271         In the readdir loop, carefully decide whether each entry will require
93272         an eventual call to fts_stat, using dirent.d_type info if available.
93273         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
93274         a command line argument into this function.  Update all callers.
93275         Map a return value of FTS_DOT to FTS_D for a command line argument.
93276         * modules/fts (Depends-on): Add d-type.  Alphabetize.
93277         Thanks to Miklos Szeredi for his tenacity and for the initial
93278         bug report about "find" failing on a FUSE-based file system.
93280         * lib/fts.c (fts_open): Use consistent indentation.
93282 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
93284         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
93285         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
93286         reported by Jim Meyering.  All uses of cache variables renamed
93287         to match Autoconf's.
93288         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
93289         the other one.
93291         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
93292         Fix misspelling in diagnostic.
93294 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
93296         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
93297         defined.  Problem reported by Matthew Woehlke.
93299         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
93300         Add support for Tandem NonStop R series.
93301         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
93302         Use new macro.
93304         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
93305         (has_trailing_slash): Omit size arg; all callers changed.
93306         Omit 'inline', since it doesn't help performance and we'd
93307         need to configure it.
93308         Don't count //, ///, etc. as having a trailing slash.
93309         As a side effect, this removes a C99ism reported by Matthew Woehlke.
93310         (rpl_rename_dest_slash): On failure, use rename's errno rather
93311         than (in some cases) an incorrect or junk errno.
93312         Simplify code by removing need to compute length; this does
93313         cause it to make two passes instead of one over the file name,
93314         but it's worth it.
93316         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
93317         change, since Autoconf's version may no longer be appropriate now
93318         that we are using CVS Autoconf's version.  Add support for Tandem.
93320 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
93321             Bruno Haible  <bruno@clisp.org>
93323         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
93324         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
93325         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
93326         gl_AC_TYPE_LONG_LONG.
93328         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
93329         instead of HAVE_LONG_LONG.
93330         * lib/printf-args.c (printf_fetchargs): Likewise.
93331         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
93332         * lib/vasnprintf.c (VASNPRINTF): Likewise.
93333         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
93334         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
93335         gl_AC_TYPE_LONG_LONG.
93337 2006-10-11  Bruno Haible  <bruno@clisp.org>
93339         * m4/longlong.m4: Add comments.
93340         * m4/ulonglong.m4: Likewise.
93342 2006-10-10  Bruno Haible  <bruno@clisp.org>
93344         Make it possible to #define stpcpy, strdup to aliases.
93345         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
93346         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
93348 2006-10-10  Bruno Haible  <bruno@clisp.org>
93350         Make it possible to #define gcd to an alias.
93351         * lib/gcd.c: Include config.h.
93353 2006-10-10  Bruno Haible  <bruno@clisp.org>
93355         Make it possible to #define c_isascii to an alias.
93356         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
93357         defined. Undefine the macros before defining them, to avoid gcc
93358         warnings.
93359         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
93360         define NO_C_CTYPE_MACROS early.
93362 2006-10-10  Bruno Haible  <bruno@clisp.org>
93364         Make it possible to #define set_program_name to an alias.
93365         * lib/progname.c: Don't undefine set_program_name; instead, undefine
93366         ENABLE_RELOCATABLE early.
93368 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
93370         Port to Tandem NSK OSS, which has 64-bit signed int but at most
93371         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
93372         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
93373         More generally, don't assume that 64-bit signed int is available
93374         if unsigned int is, and vice versa.
93375         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
93376         unsigned symbols, not on their signed counterparts.
93377         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
93378         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
93379         (UINT64_C, UINTMAX_C):
93380         Likewise.
93381         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
93382         unsigned counterparts.
93383         (Have_long_long, Unsigned): New macros.
93384         (Int): Renamed from INT.
93385         (strtoimax): Use the new macros.
93386         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
93387         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
93388         * modules/inttypes (inttypes.h): Substitute
93389         HAVE_UNSIGNED_LONG_LONG_INT.
93390         * modules/stdint (stdint.h): Likewise.
93391         (Files): Add m4/ulonglong.m4.
93393 2006-10-10  Bruno Haible  <bruno@clisp.org>
93395         Fix a gcc -Wshadow warning.
93396         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
93397         to 'bucket'.
93398         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
93399         gl_linked_indexof_from_to): Likewise.
93400         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
93401         Likewise.
93402         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
93403         Likewise.
93404         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
93405         Reported by Eric Blake.
93407 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
93409         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
93410         for NetBSD.  Problem reported by Bruno Haible.
93412 2006-10-09  Jim Meyering  <jim@meyering.net>
93414         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
93415         Patch from Bruno Haible.
93417 2006-10-09  Jim Meyering  <jim@meyering.net>
93419         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
93420         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
93421         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
93423 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
93425         Don't include <config.h> twice; this doesn't work in some cases,
93426         e.g., when config.h has "#define intmax_t long long int" and
93427         we include <config.h>, <inttypes.h>, <config.h> in that order.
93428         Problem reported by Matthew Woehlke in:
93429         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
93430         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
93431         * lib/fts-cycle.c: Don't include config.h.
93432         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
93433         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
93434         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
93435         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
93436         inttypes.h.
93437         * lib/xstrtoumax.c: Likewise.
93438         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
93439         __strtol and the like, so that this module is more like its siblings.
93440         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
93441         Remove; no longer needed now that we assume gnulib inttypes.h.
93443 2006-10-08  Bruno Haible  <bruno@clisp.org>
93445         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
93446         option.
93448 2006-10-07  Jim Meyering  <jim@meyering.net>
93450         * modules/inttypes (inttypes.h): Revert what seems to have been
93451         an inadvertent part of today's change: use "|", not "/" in the
93452         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
93454 2006-10-07  Bruno Haible  <bruno@clisp.org>
93456         * modules/sublist: New file.
93458 2006-10-07  Bruno Haible  <bruno@clisp.org>
93460         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
93461         * modules/argz (argz.h): Likewise.
93462         * modules/arpa_inet (arpa/inet.h): Likewise.
93463         * modules/byteswap (byteswap.h): Likewise.
93464         * modules/configmake (configmake.h): Likewise.
93465         * modules/fcntl (fcntl.h): Likewise.
93466         * modules/fnmatch (fnmatch.h): Likewise.
93467         * modules/getopt (getopt.h): Likewise.
93468         * modules/glob (glob.h): Likewise.
93469         * modules/inttypes (inttypes.h): Likewise.
93470         * modules/netinet_in (netinet/in.h): Likewise.
93471         * modules/poll (poll.h): Likewise.
93472         * modules/stdbool (stdbool.h): Likewise.
93473         * modules/stdint (stdint.h): Likewise.
93474         * modules/sys_select (sys/select.h): Likewise.
93475         * modules/sys_socket (sys/socket.h): Likewise.
93476         * modules/sys_stat (sys/stat.h): Likewise.
93477         * modules/sysexits (sysexits.h): Likewise.
93478         * modules/unistd (unistd.h): Likewise.
93479         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93480         Add a "DO NOT EDIT" comment to the generated file.
93481         (func_import): Likewise for gnulib-comp.m4.
93483 2006-10-07  Bruno Haible  <bruno@clisp.org>
93485         * lib/gl_sublist.h: New file.
93486         * lib/gl_sublist.c: New file.
93488 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
93490         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
93491         name (relative to the original working directory) and the file
93492         name component (relative to the temporary working directory).  All
93493         callers changed.
93494         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
93495         * lib/mkdir-p.c (make_dir_parents): Likewise.
93496         * lib/mkdir-p.h (make_dir_parents): Likewise.
93498 2006-10-06  Eric Blake  <ebb9@byu.net>
93500         Define several macros for use by the clean-temp module.
93501         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
93502         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
93503         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
93505         * lib/clean-temp.h (close_stream_temp): New declaration.
93506         * lib/clean-temp.c (includes): Pull in headers according to what
93507         other modules are in use.
93508         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
93510 2006-10-06  Bruno Haible  <bruno@clisp.org>
93512         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
93513         instead of fopen, fwriteerror.
93515 2006-10-06  Bruno Haible  <bruno@clisp.org>
93517         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
93518         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
93519         int.
93520         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
93521         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
93522         Return an error indicator.
93523         Suggested by Eric Blake.
93525 2006-10-06  Bruno Haible  <bruno@clisp.org>
93527         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
93528         Reported by Eric Blake.
93530 2006-10-06  Bruno Haible  <bruno@clisp.org>
93532         * modules/closeout (Description): Mention stderr too.
93534 2006-10-06  Bruno Haible  <bruno@clisp.org>
93535         and Paul Eggert  <eggert@cs.ucla.edu>
93537         * lib/closeout.c (close_stdout): Also close stderr.
93538         * lib/closeout.h: Update comment.
93540 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
93542         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
93543         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
93544         * lib/dirchownmod.c: Include lchown.h.
93545         * lib/lchown.c: Don't include files that lchown.h now includes.
93546         Don't declare chown, since lchown.h now does that.
93547         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
93548         (lchown): Define to rpl_chown if lchown is declared but
93549         does not exist.  Declare using a prototype if lchown is not
93550         declared.  Add a copyright notice.
93551         * lib/mkstemp.h: Include <unistd.h>.
93552         * lib/openat.c: Include lchown.h.
93554         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
93555         we now test for that separately.
93556         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
93557         rather than O_NOFOLLOW, when testing whether it's possible to
93558         avoid a race condition reliably.
93559         * lib/savewd.c (savewd_chdir): Likewise.
93561         Remove macros that are no longer needed now that stdint.h is
93562         reliable.
93563         * lib/fsusage.c (UINTMAX_MAX): Remove.
93564         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
93565         * lib/utimecmp.c (SIZE_MAX): Remove.
93567         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
93569         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
93570         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
93571         O_NOATIME works.
93573 2006-10-05  Bruno Haible  <bruno@clisp.org>
93575         * lib/gl_list.h (gl_sortedlist_search_from_to,
93576         gl_sortedlist_indexof_from_to): New declarations.
93577         (gl_list_implementation): New fields sortedlist_search_from_to,
93578         sortedlist_indexof_from_to.
93579         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
93580         inline functions.
93581         * lib/gl_list.c (gl_sortedlist_search_from_to,
93582         gl_sortedlist_indexof_from_to): New functions.
93583         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
93584         function.
93585         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
93586         (gl_array_sortedlist_search_from_to): New function.
93587         (gl_array_list_implementation): Update.
93588         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
93589         function.
93590         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
93591         (gl_carray_sortedlist_search_from_to): New function.
93592         (gl_carray_list_implementation): Update.
93593         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
93594         gl_linked_sortedlist_indexof_from_to): New functions.
93595         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
93596         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
93597         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
93598         gl_tree_sortedlist_indexof_from_to): New functions.
93599         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
93600         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
93601         Update.
93602         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
93603         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
93604         Update.
93606 2006-10-05  Bruno Haible  <bruno@clisp.org>
93608         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
93609         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
93610         (struct gl_list_implementation): Add fields search_from_to,
93611         indexof_from_to. Remove fields search, indexof.
93612         (gl_list_search): Use the search_from_to method.
93613         (gl_list_search_from, gl_list_search_from_to): New functions.
93614         (gl_list_indexof): Use the indexof_from_to method.
93615         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
93616         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
93617         (gl_list_search_from, gl_list_search_from_to): New functions.
93618         (gl_list_indexof): Use the indexof_from_to method.
93619         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
93620         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
93621         gl_array_indexof. Add start_index, end_index arguments.
93622         (gl_array_search_from_to): Renamed from gl_array_search. Add
93623         start_index, end_index arguments.
93624         (gl_array_remove, gl_array_list_implementation): Update.
93625         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
93626         gl_carray_indexof. Add start_index, end_index arguments.
93627         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
93628         start_index, end_index arguments.
93629         (gl_carray_remove, gl_carray_list_implementation): Update.
93630         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
93631         gl_linked_search. Add start_index, end_index arguments.
93632         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
93633         start_index, end_index arguments.
93634         (gl_linked_remove): Update.
93635         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
93636         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
93637         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
93638         field to 'size_t'.
93639         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
93640         gl_tree_search. Add start_index, end_index arguments.
93641         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
93642         start_index, end_index arguments.
93643         (gl_tree_remove): Update.
93644         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
93645         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
93646         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
93647         function.
93648         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
93649         gl_tree_search. Add start_index, end_index arguments.
93650         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
93651         start_index, end_index arguments.
93652         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
93653         Update.
93654         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
93656 2006-10-05  Bruno Haible  <bruno@clisp.org>
93658         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
93660         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
93661         fwriteerror_temp): New declarations.
93662         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
93663         (descriptors): New variable.
93664         (cleanup): First, close the descriptors.
93665         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
93666         fclose_temp, fwriteerror_temp): New functions.
93668 2006-10-04  Jim Meyering  <jim@meyering.net>
93670         * lib/fts.c (fts_open): Tiny comment change.
93672 2006-10-04  Bruno Haible  <bruno@clisp.org>
93674         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
93675         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
93676         gl_LOCK_BODY.
93677         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
93678         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
93679         gl_LOCK_EARLY_BODY.
93680         (gl_LOCK): Require gl_LOCK_BODY.
93682 2006-10-04  Bruno Haible  <bruno@clisp.org>
93684         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
93685         (gl_oset_search_atleast): New declaration.
93686         (struct gl_oset_implementation): Add field 'search_atleast'.
93687         (gl_oset_search_atleast): New inline function.
93688         * lib/gl_oset.c (gl_oset_search_atleast): New function.
93689         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
93690         (gl_array_oset_implementation): Update.
93691         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
93692         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
93693         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
93695 2006-10-04  Bruno Haible  <bruno@clisp.org>
93697         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
93699 2006-10-03  Bruno Haible  <bruno@clisp.org>
93701         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
93702         from gl_avltreehash_list_implementation.
93704 2006-10-03  Bruno Haible  <bruno@clisp.org>
93706         * lib/gl_oset.c (gl_oset_add): Fix return type.
93708 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
93710         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
93712 2006-10-02  Eric Blake  <ebb9@byu.net>
93714         * modules/strnlen (Depends-on): Add extensions.
93716 2006-10-02  Eric Blake  <ebb9@byu.net>
93718         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
93719         definition in 2.60+.
93721 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
93723         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
93724         checks.
93726 2006-10-02  Bruno Haible  <bruno@clisp.org>
93728         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
93729         to the AUTOMAKE_OPTIONS.
93730         Reported by Jim Meyering.
93732 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
93734         Work around bug in Solaris 10 /proc file system:
93735         /proc/self/fd/NNN/.. isn't the parent directory of
93736         the directory whose file descriptor is NNN.  This needs to
93737         be worked around at run time, not compile time, since a
93738         program might be built on Solaris 8, where things work, and
93739         run on Solaris 10.
93740         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
93741         to use the following interface instead:
93742         (OPENAT_BUFFER_SIZE): New macro.
93743         (openat_proc_name): New function.
93744         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
93745         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
93746         Likewise.
93747         * lib/openat-proc.c: New file.
93748         * modules/openat (Files): Add lib/openat-proc.c.
93749         (Depends-on): Add same-inode, stdbool.
93750         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
93752 2006-09-29  Bruno Haible  <bruno@clisp.org>
93754         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
93755         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
93756         argument. Set stdout_closed before testing for ferror, not after.
93757         (fwriteerror, fwriteerror_no_ebadf): New functions.
93759 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93761         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
93763 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
93765         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
93766         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
93768 2006-09-28  Jim Meyering  <jim@meyering.net>
93770         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
93771         Include <unistd.h>.
93773 2006-09-28  Bruno Haible  <bruno@clisp.org>
93775         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
93776         * modules/linkedhash-list (Depends-on): Likewise.
93777         * modules/rbtreehash-list (Depends-on): Likewise.
93779 2006-09-28  Bruno Haible  <bruno@clisp.org>
93781         * lib/strndup.h: Simplify the redefinition of strndup.
93782         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
93783         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
93785 2006-09-28  Bruno Haible  <bruno@clisp.org>
93787         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
93788         * lib/gl_linkedhash_list.c: Likewise.
93789         * lib/gl_rbtreehash_list.c: Likewise.
93791 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
93793         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
93794         getaddrinfo.
93796         * lib/__fpending.h: Don't include <stdio_ext.h> unless
93797         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
93798         it causes <stdio_ext.h> to cause a compile-time error.
93799         Problem reported by Nelson H. F. Beebe.
93800         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
93801         of HAVE_DECL___PENDING.
93803         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
93804         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
93805         declaration.
93807 2006-09-27  Jim Meyering  <jim@meyering.net>
93809         This file could end up with a definition for a function
93810         named __strndup, rather than rpl_strndup on a system with
93811         incomplete weak_alias support.
93812         * lib/strndup.c (strndup): Rename from __strndup.
93813         Remove #defines that used to map __strndup to strndup.
93814         Don't use K&R prototypes.
93815         Remove LIBC-related code, since this file is not sync'd with glibc.
93816         * lib/strndup.h: Revamp, accordingly.
93817         * m4/strndup.m4: Modernize.
93819 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
93821         * modules/savewd (Depends-on): Add 'raise'.
93822         * lib/savewd.c: Include <signal.h>, for 'raise'.
93824 2006-09-26  Jim Meyering  <jim@meyering.net>
93826         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
93827         when we detect Darwin 8.7.0's acl_get_file bug.
93828         Rearrange to perform the new (below) run-test while $LIBS
93829         contains any acl-related library.  Set USE_ACL at the end.
93830         (gl_ACL_GET_FILE): New function.
93832 2006-09-26  Eric Blake  <ebb9@byu.net>
93834         * lib/verror.c: Include <config.h> unconditionally.
93836 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
93838         * modules/clock-time (Maintainer): Add self.
93839         * modules/getlogin_r (Depends-on): Add extensions.
93841 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93843         * modules/clock-time: New module.
93844         * modules/nanosleep (Depends-on): Add clock-time.
93845         * modules/gethrxtime (Depends-on): Likewise.
93846         * modules/gettime (Depends-on): Likewise.
93847         * modules/settime (Depends-on): Likewise.
93849         * modules/fts-lgpl: Depend on openat.
93850         * modules/mkancesdirs: Depend on savewd.
93851         * modules/mkdir-p: Likewise.
93853 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93855         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
93857         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
93858         `gl_have_arbitrary_file_name_length_limit' to
93859         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
93860         actually works between configure runs.
93862 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93863             Bruno Haible  <bruno@clisp.org>
93865         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
93867 2006-09-25  Jim Meyering  <jim@meyering.net>
93869         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
93870         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
93872 2006-09-25  Eric Blake  <ebb9@byu.net>
93874         * gnulib-tool (func_import, func_create_testdir): Fix typos in
93875         exec's in 2006-09-18 patch when shuffling fds.
93877 2006-09-25  Bruno Haible  <bruno@clisp.org>
93879         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
93880         Reported by Jim Meyering.
93882 2006-09-24  Jim Meyering  <jim@meyering.net>
93884         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
93885         compare a pointer against a literal "0".  That caused failures with
93886         at least HP-UX's hpcc.
93888 2006-09-22  Simon Josefsson  <jas@extundo.com>
93890         * modules/gc-sha1:
93891         * modules/gc-md4:
93892         * modules/gc-hmac-sha1:
93893         * modules/gc-hmac-md5:
93894         * modules/gc-des:
93895         * modules/gc-arcfour: Distribute more files.
93897 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93899         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
93900         (gl_linked_iterator_from_to): Initialize struct completely.
93901         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
93902         (gl_tree_iterator_from_to): Likewise
93903         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
93904         * lib/gl_array_list.c [lint] (gl_array_iterator)
93905         (gl_array_iterator_from_to): Likewise.
93906         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
93907         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
93908         (gl_carray_iterator_from_to): Likewise.
93910         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
93911         * lib/md4.c (md4_process_block): Remove unused variable.
93912         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
93913         parentheses for clarity.
93915 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93917         * modules/bison-i18n (Depends-on): Add gettext.
93919 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93921         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
93922         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
93923         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
93924         also add missing comma that caused broken test.
93925         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
93926         stdlib.h, for `abort'.
93927         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
93928         variables.
93929         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
93930         include unistd.h if present, for `rmdir'.
93931         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
93932         variables.
93933         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
93934         in the process include standard headers for prototypes.
93935         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
93936         gets declared on GNU/Linux.
93937         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
93938         unistd.h, for `rmdir'.
93939         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
93941         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
93942         always true.
93943         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
93945         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
93947 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93949         * gnulib-tool (func_version): Create output all at once.  This
93950         may help avoid triggering unnecessary SIGPIPEs, and at any
93951         rate it doesn't hurt.
93953 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93954             Bruno Haible  <bruno@clisp.org>
93956         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
93957         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
93958         * m4/signed.m4 (bh_C_SIGNED): Likewise.
93960         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
93961         (gl_FUNC_VASPRINTF): Invoke it.
93963 2006-09-22  Bruno Haible  <bruno@clisp.org>
93965         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
93966         getloadavg.c as first argument.
93968 2006-09-22  Bruno Haible  <bruno@clisp.org>
93970         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
93971         at the beginning of the gl_INIT macro.
93972         * modules/getloadavg (configure.ac): Pass $gl_source_base to
93973         gl_GETLOADAVG.
93975 2006-09-22  Bruno Haible  <bruno@clisp.org>
93977         * gnulib-tool (func_create_megatestdir): Don't include the config-h
93978         module.
93979         Suggested by Ralf Wildenhues.
93981 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
93983         Import this patch from libc:
93985         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
93987         * lib/regex_internal.c (re_string_reconstruct): Handle
93988         offset < pstr->valid_raw_len && pstr->offsets_needed case.
93989         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
93990         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
93991         re_string_context_at.
93993         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
93994         now requires it.
93995         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
93996         gl_REGEX now does it for us.
93997         (gl_REGEX): Add test taken from
93998         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
94000         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
94001         Check that large offsets work.  Modernize Autoconf usages.
94002         Prefer "yes" to mean a good thing rather than a bad.
94003         Don't put "#define mkstemp" in config.h, as this might interfere
94004         with standard system headers that "#define mkstemp mkstemp64".
94006         * modules/mkstemp (Depends-on): Add extensions, so that
94007         mkstemp is visible on some platforms.
94008         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
94009         (Include): Change to "mkstemp.h" from <stdlib.h>.
94010         (Files): Add mkstemp.h.
94012         * lib/mkstemp.h: New file, since some standard headers
94013         #define mkstemp.
94014         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
94015         Include "mkstemp.h".
94016         Make the _LIBC code resemble glibc original more,
94017         e.g., use K&R style.
94018         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
94019         (mkstemp): Remove, since mkstemp.h does this for us.
94020         * lib/stdlib--.h: Include mkstemp.h.
94022         Import this patch from libc:
94024         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
94026         * lib/tempname.c (__gen_tempname): Change attempts_min
94027         into a macro.  Use preprocessor to decide how to initialize
94028         attempts [Coverity CID 67].
94030 2006-09-20  Bruno Haible  <bruno@clisp.org>
94032         * lib/mkdtemp.c: Import from libc.
94033         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
94034                 * sysdeps/posix/tempname.c (__gen_tempname): Change
94035                 attempts_min into a macro.  Use preprocessor to decide how to
94036                 initialize attempts [Coverity CID 67].
94037         2001-11-27  Paul Eggert  <eggert@twinsun.com>
94038                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
94039                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
94041 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94043         * gnulib-tool (func_exit): New function, to allow to pass the
94044         exit status portably through the trap.  Use everywhere.
94045         (--help, --version): Signal a write error.
94046         (trap): catch SIGPIPE, for write errors.
94047         Exit at the end of the trap, with the correct exit status.
94049 2006-09-19  Karl Berry  <karl@gnu.org>
94051         * doc/gnulib.texi: note about the license texinfo files.
94053 2006-09-19  Eric Blake  <ebb9@byu.net>
94055         * gnulib-tool: Avoid space-tab.
94057 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
94059         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
94060         that prevented coreutils 6.1 from building.  Problem reported
94061         by Petter Reinholdtsen.
94063 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
94065         * gnulib-tool (avoidlist): Fix typo that broke options like
94066         --avoid=lock that are used by coreutils bootstrap.
94068 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
94070         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
94071         more systematically.
94073 2006-09-18  Jim Meyering  <jim@meyering.net>
94075         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
94077 2006-09-18  Bruno Haible  <bruno@clisp.org>
94079         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
94081 2006-09-18  Bruno Haible  <bruno@clisp.org>
94083         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
94084         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
94085         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
94086         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
94087         * m4/gettext.m4: Require autoconf >= 2.52.
94088         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
94089         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
94090         of gl_cv_header_inttypes_h.
94092 2006-09-18  Bruno Haible  <bruno@clisp.org>
94094         * lib/javaversion.c: Include configmake.h.
94096 2006-09-18  Bruno Haible  <bruno@clisp.org>
94098         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
94099         avoid that the while loops be executed in a subshell.
94101 2006-09-18  Bruno Haible  <bruno@clisp.org>
94103         * MODULES.html.sh (func_module): Break long lines.
94104         Suggested by Bruce Korb <bkorb@gnu.org>.
94106 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94108         Speed up by a factor of 1.12.
94109         * gnulib-tool (nl): New variable.
94110         (func_import): Rewrite include directive extraction to only read each
94111         directive once.
94113 2006-09-17  Bruno Haible  <bruno@clisp.org>
94115         * modules/javaversion (Makefile.am): Remove DEFS setting.
94116         (Depends-on): Add configmake, for PKGDATADIR definition.
94118 2006-09-17  Bruno Haible  <bruno@clisp.org>
94120         * gnulib-tool (func_create_testdir): Rewrite all files at once.
94122 2006-09-17  Bruno Haible  <bruno@clisp.org>
94124         * gnulib-tool (func_append): New function, stolen from libtool.m4.
94125         (func_modules_transitive_closure, func_modules_add_dummy,
94126         func_modules_to_filelist, func_import, func_create_testdir,
94127         func_create_megatestdir, ...): Use it wherever possible.
94128         Suggested by Ralf Wildenhues.
94130 2006-09-16  Karl Berry  <karl@gnu.org>
94132         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
94133         to avoid sectioning errors.
94134         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
94135         [ifinfo]: blank line after @center-ed titles.
94136         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
94137         Spell FSF address consistently with others.
94138         (These changes approved by rms.)
94140 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94142         Speed up by a factor of 1.61.
94143         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
94144         already checked module names again.
94146 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94148         Speed up by a factor of 1.13.
94149         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
94150         for new_files, and the input to func_add_or_update.
94152 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94154         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
94155         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
94157 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
94159         * modules/mkancesdirs (Depends-on): Add fcntl.
94160         * modules/savewd: New file.
94161         * MODULES.html.sh (File system functions): Add savewd.
94163         * modules/configmake (Makefile.am): Add support for the
94164         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
94166 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
94168         * m4/savewd.m4: New file.
94170 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
94172         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
94173         (dirchownmod): New arg FD.  All callers changed.
94174         Use FD rather than opening the directory ourself, as opening is
94175         now the caller's responsibility.
94176         * lib/dirchownmod.h: Likewise.
94177         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
94178         hosts that require <sys/types.h> before <sys/stat.h>.  Include
94179         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
94180         (test_dir): Remove.
94181         (mkancesdirs): Return length of prefix of FILE that has already
94182         been made, or -2 if there is a child doing the work.  Redo
94183         algorithm so that it is O(N) rather than O(N**2).  Optimize away
94184         ".", and treat ".." specially since it might stray back into
94185         already-created areas.  Use a subprocess if necessary.  New arg
94186         WD; all users changed.  MAKE_DIR function should now return 1
94187         if it creates a directory that is not readable.  Return -2 if
94188         a child process is spun off.
94189         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
94190         Adjust signature to match code.
94191         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
94192         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
94193         all users changed.
94194         * lib/savewd.c, lib/savewd.h: New files.
94196 2006-09-15  Jim Meyering  <jim@meyering.net>
94198         * modules/rename-dest-slash: New module.
94199         * MODULES.html.sh (posix_compat): Add it here.
94201         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
94203 2006-09-15  Jim Meyering  <jim@meyering.net>
94205         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
94206         file.
94208         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
94210 2006-09-15  Jim Meyering  <jim@meyering.net>
94212         * lib/rename-dest-slash.c (has_trailing_slash): Use
94213         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
94214         (rpl_rename_dest_slash): Perform the cheaper trailing slash
94215         test before testing whether SRC is a directory.
94216         Suggestions from Bruno Haible.
94218         Avoid a warning about an unused variable.
94219         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
94220         into the #ifdef block where it's used.
94222         * lib/rename-dest-slash.c: New file.
94224 2006-09-14  Bruno Haible  <bruno@clisp.org>
94226         * lib/allocsa.c: Include <config.h> unconditionally.
94227         * lib/asnprintf.c: Likewise.
94228         * lib/asprintf.c: Likewise.
94229         * lib/c-strcasecmp.c: Likewise.
94230         * lib/c-strcasestr.c: Likewise.
94231         * lib/c-strncasecmp.c: Likewise.
94232         * lib/c-strstr.c: Likewise.
94233         * lib/classpath.c: Likewise.
94234         * lib/clean-temp.c: Likewise.
94235         * lib/concatpath.c: Likewise.
94236         * lib/copy-file.c: Likewise.
94237         * lib/csharpcomp.c: Likewise.
94238         * lib/csharpexec.c: Likewise.
94239         * lib/execute.c: Likewise.
94240         * lib/fatal-signal.c: Likewise.
94241         * lib/findprog.c: Likewise.
94242         * lib/fwriteerror.c: Likewise.
94243         * lib/gl_array_list.c: Likewise.
94244         * lib/gl_array_oset.c: Likewise.
94245         * lib/gl_avltree_list.c: Likewise.
94246         * lib/gl_avltree_oset.c: Likewise.
94247         * lib/gl_avltreehash_list.c: Likewise.
94248         * lib/gl_carray_list.c: Likewise.
94249         * lib/gl_linked_list.c: Likewise.
94250         * lib/gl_linkedhash_list.c: Likewise.
94251         * lib/gl_list.c: Likewise.
94252         * lib/gl_oset.c: Likewise.
94253         * lib/gl_rbtree_list.c: Likewise.
94254         * lib/gl_rbtree_oset.c: Likewise.
94255         * lib/gl_rbtreehash_list.c: Likewise.
94256         * lib/imaxabs.c: Likewise.
94257         * lib/imaxdiv.c: Likewise.
94258         * lib/javacomp.c: Likewise.
94259         * lib/javaexec.c: Likewise.
94260         * lib/javaversion.c: Likewise.
94261         * lib/linebreak.c: Likewise.
94262         * lib/localcharset.c: Likewise.
94263         * lib/lock.c: Likewise.
94264         * lib/mbchar.c: Likewise.
94265         * lib/mbswidth.c: Likewise.
94266         * lib/mkdtemp.c: Likewise.
94267         * lib/pipe.c: Likewise.
94268         * lib/printf-args.c: Likewise.
94269         * lib/printf-parse.c: Likewise.
94270         * lib/progname.c: Likewise.
94271         * lib/progreloc.c: Likewise.
94272         * lib/readlink.c: Likewise.
94273         * lib/sh-quote.c: Likewise.
94274         * lib/stpcpy.c: Likewise.
94275         * lib/stpncpy.c: Likewise.
94276         * lib/strcasecmp.c: Likewise.
94277         * lib/strcasestr.c: Likewise.
94278         * lib/strcspn.c: Likewise.
94279         * lib/striconv.c: Likewise.
94280         * lib/strncasecmp.c: Likewise.
94281         * lib/strnlen1.c: Likewise.
94282         * lib/strstr.c: Likewise.
94283         * lib/strtok_r.c: Likewise.
94284         * lib/tls.c: Likewise.
94285         * lib/tmpdir.c: Likewise.
94286         * lib/unicodeio.c: Likewise.
94287         * lib/unsetenv.c: Likewise.
94288         * lib/vasnprintf.c: Likewise.
94289         * lib/vasprintf.c: Likewise.
94290         * lib/wait-process.c: Likewise.
94291         * lib/xallocsa.c: Likewise.
94292         * lib/xsetenv.c: Likewise.
94293         * lib/xstriconv.c: Likewise.
94295 2006-09-13  Simon Josefsson  <jas@extundo.com>
94297         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
94298         that internally, suggested by Ralf Wildenhues
94299         <Ralf.Wildenhues@gmx.de>.
94301 2006-09-13  Simon Josefsson  <jas@extundo.com>
94303         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
94304         @LIBOBJS@.
94305         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94307 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
94309         * lib/_fpending.c: Include <config.h> unconditionally, since we no
94310         longer worry about uses that don't define HAVE_CONFIG_H.
94311         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
94312         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
94313         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
94314         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
94315         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
94316         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
94317         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
94318         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
94319         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
94320         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
94321         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
94322         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
94323         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
94324         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
94325         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
94326         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
94327         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
94328         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
94329         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
94330         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
94331         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
94332         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
94333         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
94334         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
94335         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
94336         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
94337         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
94338         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
94339         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
94340         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
94341         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
94342         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
94343         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
94344         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
94345         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
94346         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
94347         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
94348         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
94349         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
94350         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
94351         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
94352         Likewise.
94354 2006-09-13  Eric Blake  <ebb9@byu.net>
94356         * lib/getopt.c: Fix typo in last commit.
94358 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
94360         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
94361         dgettext.
94363 2006-09-12  Jim Meyering  <jim@meyering.net>
94365         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
94366         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
94367         Reported by Nelson H. F. Beebe.
94369 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
94371         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
94372         program_invocation_name and program_invocation_short_name are
94373         initialized.
94374         * lib/argp-namefrob.h: Move declarations of program_invocation_name
94375         and program_invocation_short_name to argp.h, so they are visible
94376         to user programs.
94377         * lib/argp.h: Likewise
94379 2006-09-10  Bruno Haible  <bruno@clisp.org>
94381         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
94382         m4/inttypes_h.m4, m4/uintmax_t.m4.
94384 2006-09-10  Bruno Haible  <bruno@clisp.org>
94386         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
94387         gl_AC_TYPE_UINTMAX_T.
94389 2006-09-10  Bruno Haible  <bruno@clisp.org>
94391         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
94393 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
94395         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
94396         convention.  Text proposed by Bruno Haible.
94397         (struct argp_option): Document the use of N_() wrappers.
94399         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
94400         '\v', and translate the two parts separately, instead of feeding
94401         the whole string to gettext.  This allows to exclude
94402         '\v' from the strings visible to the translator by writing doc
94403         strings as N_("..") "\v" N_("..").
94405 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
94407         * config/srclist.txt: Undo latest change; the bug was fixed.
94409 2006-09-09  Bruno Haible  <bruno@clisp.org>
94411         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
94412         assignments if building a library without libtool.
94413         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
94414         in func_emit_lib_Makefile_am.
94415         (func_import): When building a static library libfoo.a, arrange to
94416         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
94417         (func_create_testdir): Likewise.
94418         * modules/gc (configure.ac, Makefile.am): If building statically,
94419         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
94420         * modules/iconvme (configure.ac, Makefile.am): Likewise.
94421         * modules/striconv (configure.ac, Makefile.am): Likewise.
94422         Based on a suggestion by Ralf Wildenhues.
94424 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94426         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
94427         Check for unistd.h too, since Autoconf doesn't assume POSIX.
94428         Also:
94430         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94431         Add year_2050_test to catch glibc bug 2821
94432         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
94434         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
94435         Prefer #ifdef to #if.
94437         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
94438         Return from 'main' instead of calling 'exit'.
94440 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94442         * lib/mktime.c (guess_time_tm): Fix bug where mktime
94443         returned the maximum time_t value rather than (time_t) -1.
94444         Problem originally reported by William Bardwell
94445         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
94447         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
94448         Moved to here ...
94449         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
94450         ... from here.
94452 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94454         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
94455         2821 is fixed.
94457 2006-09-08  Jim Meyering  <jim@meyering.net>
94459         Don't make generated files read-only.  That would bother too many
94460         people.  However, do retain the ability to work when targets are
94461         read-only: remove the destination and temporary files before writing
94462         them (when generated via sed or echo), or by using the -f option for
94463         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
94464         * modules/alloca-opt, modules/argz, modules/arpa_inet:
94465         * modules/byteswap, modules/configmake, modules/fcntl:
94466         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
94467         * modules/localcharset, modules/netinet_in, modules/poll:
94468         * modules/stdbool, modules/stdint, modules/sys_select:
94469         * modules/sys_socket, modules/sys_stat, modules/sysexits:
94471 2006-09-08  Jim Meyering  <jim@meyering.net>
94473         Avoid new build failure on FreeBSD 6.0.
94474         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
94475         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
94476         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
94478 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94480         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
94482 2006-09-07  Jim Meyering  <jim@meyering.net>
94484         Fix global typo in last change: use chmod u-w, not chmod u-x.
94485         Spotted by Paul Eggert and Bruce Korb.
94486         * modules/alloca-opt, modules/argz, modules/arpa_inet:
94487         * modules/byteswap, modules/configmake, modules/fcntl:
94488         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
94489         * modules/localcharset, modules/netinet_in, modules/poll:
94490         * modules/stdbool, modules/stdint, modules/sys_select:
94491         * modules/sys_socket, modules/sys_stat, modules/sysexits:
94493 2006-09-06  Jim Meyering  <jim@meyering.net>
94495         Make generated files be read-only.
94496         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
94497         Ensure that each generated file is now read-only.
94498         * modules/argz: Likewise.
94499         * modules/arpa_inet: Likewise.
94500         * modules/byteswap: Likewise.
94501         * modules/configmake: Likewise.
94502         * modules/fcntl: Likewise.
94503         * modules/fnmatch: Likewise.
94504         * modules/getopt: Likewise.
94505         * modules/glob: Likewise.
94506         * modules/inttypes: Likewise.
94507         * modules/netinet_in: Likewise.
94508         * modules/poll: Likewise.
94509         * modules/stdbool: Likewise.
94510         * modules/stdint: Likewise.
94511         * modules/sys_select: Likewise.
94512         * modules/sys_socket: Likewise.
94513         * modules/sys_stat: Likewise.
94514         * modules/sysexits: Likewise.
94515         * modules/localcharset: Same as above, but continue using temporary
94516         file named "t-$@" (why different?) rather than the "$@-t" used
94517         everywhere else.
94519         * modules/sysexits (Makefile.am): Replace literal occurrences
94520         of "sysexit.h" more readable, and more consistent, "$@".
94522 2006-09-06  Bruno Haible  <bruno@clisp.org>
94524         * modules/striconv: New file.
94525         * modules/xstriconv: New file.
94526         * MODULES.html.sh (Internationalization functions): Add striconv,
94527         xstriconv.
94529 2006-09-06  Bruno Haible  <bruno@clisp.org>
94531         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
94532         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
94533         not using libtool correctly.
94535 2006-09-06  Bruno Haible  <bruno@clisp.org>
94537         * lib/striconv.h: New file.
94538         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
94539         iconvstring.c.
94540         * lib/xstriconv.h: New file.
94541         * lib/xstriconv.c: New file.
94543 2006-09-06  Bruno Haible  <bruno@clisp.org>
94545         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94546         lib_..._LDFLAGS.
94548 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94550         * lib/argz_.h: Sync from Libtool.
94552         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
94553                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
94555         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
94557 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
94559         * modules/trim: New file.
94561 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
94563         * lib/trim.h: New file.
94564         * lib/trim.c: New file.
94566 2006-09-05  Bruno Haible  <bruno@clisp.org>
94568         * MODULES.html.sh (String handling): Add trim.
94570 2006-09-04  Karl Berry  <karl@gnu.org>
94572         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
94573         until next release.
94575 2006-09-03  Bruno Haible  <bruno@clisp.org>
94577         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
94578         correctly.
94580 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94582         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
94583         not gl_GETLOADAVG.  Omit unneeded semicolons.
94584         Problems reported by Ralf Wildenhues in
94585         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
94586         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
94587         at the end, which is the usual gnulib style.
94589         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
94590         of doing all the work ourselves.
94591         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
94592         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
94594 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94596         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
94597         Problem reported by Ralf Wildenhues in
94598         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
94600         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
94601         HAVE_STRUCT_STATFS_F_FSTYPENAME.
94603 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94605         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
94606         yesterday's patch by changing test -n to test -z.
94608 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94610         * modules/getloadavg (Files): Add m4/getloadavg.m4.
94611         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
94612         the former is now obsolescent.
94614         * modules/chdir-long (Depends-on): Add fcntl.
94616 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94618         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
94619         obsolescent, and programs should use gnulib instead.
94620         * m4/getloadavg.m4: New file, with contents taken from Autoconf
94621         but with prefixes changed.
94623 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94625         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
94626         or stdbool.h, because they might not exist while configuring.
94628         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
94629         Don't include unistd.h or limits.h; not needed, since chdir-long.h
94630         does that for us.
94631         (O_DIRECTORY): Remove.
94633 2006-08-31  Eric Blake  <ebb9@byu.net>
94635         * gnulib-tool: Don't let emacs change spaces to TAB.
94637 2006-08-31  Bruno Haible  <bruno@clisp.org>
94639         * gnulib-tool: When calling func_import more than once, do it in a
94640         subshell.
94641         Reported by Eric Blake <ebb9@byu.net>.
94643 2006-08-31  Bruno Haible  <bruno@clisp.org>
94645         * gnulib-tool (nl): Remove variable.
94646         (sed_transform_lib_file): Use more robust test for config-h module.
94647         (func_import): Fix typo in 2006-08-25 patch.
94649 2006-08-31  Bruno Haible  <bruno@clisp.org>
94651         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
94652         specified, augment Makefile.am variables instead of assigning them.
94654 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94656         Work around a bug in both the Linux and SunOS 64-bit kernels:
94657         nanosleep mishandles sleeps for longer than 2**31 seconds.
94658         Problem reported by Frank v Waveren in
94659         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
94660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
94661         Check for nanosleep bug.
94662         (LIB_NANOSLEEP): Append clock_gettime library if needed.
94664 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94666         Work around a bug in both the Linux and SunOS 64-bit kernels:
94667         nanosleep mishandles sleeps for longer than 2**31 seconds.
94668         Problem reported by Frank v Waveren in
94669         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
94670         * lib/nanosleep.c (BILLION): New constant.
94671         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
94672         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
94673         implementation.
94675 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94677         * modules/nanosleep (Depends-on): Add gettime.
94679 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94680         and Simon Josefsson  <jas@extundo.com>
94681         and Oskar Liljeblad  <oskar@osk.mine.nu>
94683         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
94684         * gnulib-tool (func_import): New license type 'unmodifiable license
94685         text'.
94686         * modules/fdl: Use it.  Longer description.
94687         * module/gpl, module/lgpl: New files.
94689 2006-08-30  Jim Meyering  <jim@meyering.net>
94691         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
94692         shadowing the parameter.
94694 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94696         Sync from Libtool:
94698         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94700         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
94701         sharing with gnulib.  Report by Eric Blake.
94703 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
94705         * modules/isapipe: New file.
94706         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
94708 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
94710         * modules/configmake (Makefile.am): Add a comment, and omit
94711         the CONFIGMAKE_ prefix from generated macro names.  Suggested
94712         by Bruno Haible.
94714 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
94716         * m4/isapipe.m4: New file.
94718 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
94720         * lib/isapipe.c, lib/isapipe.h: New files.
94722 2006-08-29  Jim Meyering  <jim@meyering.net>
94724         * modules/configmake (Makefile.am): Make configmake.h depend on
94725         Makefile.  Otherwise, a stale configmake.h could hang around.
94727 2006-08-29  Eric Blake  <ebb9@byu.net>
94729         * lib/error.c (error_at_line, print_errno_message): Match libc, after
94730         resolution of upstream bug 3044.
94732 2006-08-29  Bruno Haible  <bruno@clisp.org>
94734         * modules/localcharset (Depends-on): Add configmake.
94735         (Makefile.am): Remove setting of LIBDIR through DEFS.
94737 2006-08-29  Bruno Haible  <bruno@clisp.org>
94739         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
94740         defined.
94742 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
94744         * modules/fcntl: New file.
94745         * modules/chdir-safer (Depends-on): Add fcntl.
94746         * modules/fts: Likewise.
94747         * modules/mkdir-p: Likewise.
94749         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
94750         This undoes the most recent change, since we're now addressing the
94751         problem in a different way.
94753         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
94754         into output, since the output might be called Makefile.am even
94755         if $makefile_name is something different.
94756         (func_import): Use $makefile_am rather than
94757         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
94758         empty.
94760         * modules/inttypes (Files): Add m4/inttypes-h.m4.
94762 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
94764         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
94765         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
94766         recent change to stdint.m4, since we're now addressing the problem in a
94767         different way.
94769 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
94771         * m4/fcntl_h.m4: New file.
94773 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
94775         * lib/fcntl_.h: New file.
94776         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
94777         the fcntl module.
94778         * lib/dirchownmod.c: Likewise.
94779         * lib/fts.c: Likewise.
94781         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
94782         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
94783         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
94784         just before including <inttypes.h>, to avoid circular inclusion.
94786 2006-08-28  Jim Meyering  <jim@meyering.net>
94788         * doc/visibility.texi: Actually read and correct the grammar of the
94789         sentence affected by yesterday's change.
94791 2006-08-28  Eric Blake  <ebb9@byu.net>
94793         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
94794         needs wrapper.
94796 2006-08-28  Eric Blake  <ebb9@byu.net>
94798         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
94800 2006-08-28  Eric Blake  <ebb9@byu.net>
94802         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
94804 2006-08-28  Bruno Haible  <bruno@clisp.org>
94806         * modules/c-strstr: New file, from GNU gettext.
94807         * MODULES.html.sh (String handling): Add c-strstr.
94809 2006-08-28  Bruno Haible  <bruno@clisp.org>
94811         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
94812         macros.
94813         Reported by Eric Blake.
94815 2006-08-28  Bruno Haible  <bruno@clisp.org>
94817         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
94818         (VASNPRINTF): Return a string of length > INT_MAX without failing.
94819         * lib/vasprintf.c: Include errno.h, limits.h.
94820         (EOVERFLOW): New fallback definition.
94821         (vasprintf): Test here whether the string length is > INT_MAX.
94822         * lib/vsnprintf.c: Include errno.h, limits.h.
94823         (EOVERFLOW): New fallback definition.
94824         (vsnprintf): Fix bug when generated string was too long for the buffer.
94825         Test here whether the string length is > INT_MAX.
94827 2006-08-28  Bruno Haible  <bruno@clisp.org>
94829         * lib/inttypes_.h (SCNX*): Remove definitions.
94830         Reported by Eric Blake.
94832 2006-08-28  Bruno Haible  <bruno@clisp.org>
94834         * lib/c-strstr.h: New file, from GNU gettext.
94835         * lib/c-strstr.c: New file, from GNU gettext.
94837 2006-08-28  Bruno Haible  <bruno@clisp.org>
94839         * gnulib-tool: Reorder some statements.
94841 2006-08-28  Bruno Haible  <bruno@clisp.org>
94843         * gnulib-tool: New option --makefile-name.
94844         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
94845         $makefile_name.
94846         (func_import): Write $makefile_name to the cache file, and read it from
94847         there unless explicitly specified. Use $makefile_name as file name
94848         instead of Makefile.am. Adjust the recommendations accordingly.
94850 2006-08-28  Bruno Haible  <bruno@clisp.org>
94852         * gnulib-tool (func_verify_module): Check against misapplying patch.
94854 2006-08-28  Bruno Haible  <bruno@clisp.org>
94856         * gnulib-tool (func_relativize, func_relconcat): New functions.
94857         Give an error if --local-dir is given with --update.
94858         Remove trailing slashes from $local_gnulib_dir.
94859         (func_import): Store the relativized $local_gnulib_dir in
94860         gnulib-cache.m4, and read it from there if not specified explicitly.
94862 2006-08-28  Bruno Haible  <bruno@clisp.org>
94864         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
94865         is the current directory. Respect also $local_gnulib_dir.
94867 2006-08-28  Bruno Haible  <bruno@clisp.org>
94868             Simon Josefsson  <jas@extundo.com>
94870         BeOS portability.
94871         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
94873 2006-08-27  Jim Meyering  <jim@meyering.net>
94875         * doc/visibility.texi: Remove duplicate word: "pointer".
94877 2006-08-26  Bruno Haible  <bruno@clisp.org>
94879         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
94880         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
94881         (Makefile.am): Create inttypes.h from inttypes_.h.
94882         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
94884         * modules/imaxabs: New file.
94886         * modules/imaxdiv: New file.
94888 2006-08-26  Bruno Haible  <bruno@clisp.org>
94890         * m4/inttypes.m4: New file.
94891         * m4/_inttypes_h.m4: Remove file.
94892         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
94893         PRI_MACROS_BROKEN.
94894         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
94896         * m4/imaxabs.m4: New file.
94898         * m4/imaxdiv.m4: New file.
94900 2006-08-26  Bruno Haible  <bruno@clisp.org>
94902         * lib/inttypes_.h: New file.
94903         * lib/inttypes.h: Remove file.
94904         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
94906         * lib/imaxabs.c: New file.
94908         * lib/imaxdiv.c: New file.
94910 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
94912         New config-h module, so that "make" output needn't be cluttered
94913         by -DHAVE_CONFIG_H.
94914         * MODULES.html.sh (Support for building libraries and executables):
94915         Add config-h.
94916         * modules/config-h: New file.
94917         * gnulib-tool (nl, sed_transform_lib_file): New vars.
94918         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
94919         the config-h module is used.
94921         New configmake module, so that "make" output needn't be cluttered
94922         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
94923         * MODULES.html.sh (Support for building libraries and executables):
94924         Add configmake.
94925         * modules/configmake: New file.
94927 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
94929         * m4/config-h.m4: New file.
94931 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
94933         * config/srclist.txt: Add elisp-comp.
94935 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
94937         * MODULES.html.sh (Support for building libraries and executables):
94938         Add elisp-comp.
94939         * build-aux/elisp-comp: New file.
94940         * modules/elisp-comp: New file.
94942 2006-08-24  Bruno Haible  <bruno@clisp.org>
94944         * gnulib-tool (func_create_testdir): Use non-default values of
94945         sourcebase and m4base.
94947 2006-08-24  Bruno Haible  <bruno@clisp.org>
94949         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
94950         HTML structure.
94952 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
94954         * modules/openat (Depends-on): Add lchown.
94956 2006-08-23  Bruno Haible  <bruno@clisp.org>
94958         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
94959         of gl_LOCK_EARLY instead of gl_LOCK.
94961 2006-08-23  Bruno Haible  <bruno@clisp.org>
94963         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
94964         on OSF/1 to no.
94965         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
94967 2006-08-23  Bruno Haible  <bruno@clisp.org>
94969         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
94970         as unusable.
94972         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
94973         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
94974         (gl_LOCK): New macro.
94976 2006-08-22  Simon Josefsson  <jas@extundo.com>
94978         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
94979         to md5 module.
94981 2006-08-22  Simon Josefsson  <jas@extundo.com>
94983         * MODULES.html.sh: Add "Support for maintaining and release
94984         projects".
94986         * build-aux/gnupload: New file, from coreutils.
94988 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
94990         Avoid the need for AC_LIBSOURCES in m4 macros.
94991         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
94992         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
94993         * modules/check-version (EXTRA_DIST): Add check-version.h.
94994         * modules/crc (EXTRA_DIST): Add crc.h.
94995         * modules/des (EXTRA_DIST): Add des.h.
94996         * modules/gc (EXTRA_DIST): Add gc.h.
94997         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
94998         * modules/getline (EXTRA_DIST): Add getline.h.
94999         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
95000         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
95001         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
95002         * modules/md2 (EXTRA_DIST): Add md2.h.
95003         * modules/md4 (EXTRA_DIST): Add md4.h.
95004         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
95005         * modules/read-file (EXTRA_DIST): Add read-file.h.
95006         * modules/readline (EXTRA_DIST): Add readline.h.
95007         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
95008         rijndael-api-fst.h.
95010 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95012         * m4/rijndael.m4 (gl_ARCFOUR):
95013         * m4/arctwo.m4 (gl_ARCTWO):
95014         * m4/check-version.m4 (gl_CHECK_VERSION):
95015         * m4/crc.m4 (gl_CRC):
95016         * m4/des.m4 (gl_DES):
95017         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
95018         * m4/gc.m4 (gl_GC):
95019         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
95020         * m4/getline.m4 (gl_FUNC_GETLINE):
95021         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
95022         * m4/hmac-md5.m4 (gl_HMAC_MD5):
95023         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
95024         * m4/md2.m4 (gl_MD2):
95025         * m4/md4.m4 (gl_MD4):
95026         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
95027         * m4/read-file.m4 (gl_FUNC_READ_FILE):
95028         * m4/readline.m4 (gl_FUNC_READLINE):
95029         * m4/rijndael.m4 (gl_RIJNDAEL):
95030         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
95031         to get the necessary .h files and whatnot.
95033 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95035         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
95036         gnulib rather than the other way around.
95037         * config/srclistvars.sh (COREUTILS): Remove.
95039 2006-08-22  Jim Meyering  <jim@meyering.net>
95041         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
95043         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
95045 2006-08-22  Eric Blake  <ebb9@byu.net>
95047         * modules/regexprops-generic: New file.
95048         * MODULES.html.sh (Support for building documentation): List it.
95050 2006-08-22  Eric Blake  <ebb9@byu.net>
95052         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
95053         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
95054         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
95055         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
95057 2006-08-22  Bruno Haible  <bruno@clisp.org>
95059         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
95060         and lib_LTLIBRARIES like the other lib_* variables.
95062 2006-08-22  Bruno Haible  <bruno@clisp.org>
95064         * build-aux/x-to-1.in: New file, from GNU gettext.
95066 2006-08-22  Bruno Haible  <bruno@clisp.org>
95068         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
95069         <utmpx.h> exists.
95071 2006-08-22  Bruno Haible  <bruno@clisp.org>
95073         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
95074         <utmpx.h> exists.
95076 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
95078         BeOS portability.
95079         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
95080         exist.
95081         Problem reported by Bruno Haible.
95083 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
95085         Avoid the need for AC_LIBSOURCES in m4 macros.
95086         * modules/acl (EXTRA_DIST): Add acl.h.
95087         * modules/argmatch (Files): Add m4/argmatch.m4.
95088         (configure.ac): Add gl_ARGMATCH.
95089         (EXTRA_DIST): Renamed from lib_SOURCES, for
95090         consistency with the other modules.  Remove argmatch.c.
95091         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
95092         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
95093         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
95094         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
95095         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
95096         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
95097         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
95098         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
95099         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
95100         * modules/closeout (EXTRA_DIST): Add closeout.h.
95101         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
95102         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
95103         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
95104         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
95105         dirname.h; remove basename.c and stripslash.c.
95106         * modules/exclude (EXTRA_DIST): Add exclude.h.
95107         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
95108         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
95109         * modules/file-type (EXTRA_DIST): Add file-type.h.
95110         * modules/filemode (EXTRA_DIST): Add filemode.h.
95111         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
95112         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
95113         * modules/fpending (EXTRA_DIST): Add __fpending.h.
95114         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
95115         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
95116         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
95117         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
95118         * modules/getdate (EXTRA_DIST): Add getdate.c.
95119         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
95120         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
95121         * modules/getpass (EXTRA_DIST): Add getpass.h.
95122         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
95123         * modules/group-member (EXTRA_DIST): Add group-member.h.
95124         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
95125         * modules/hash (EXTRA_DIST): Add hash.h.
95126         * modules/human (EXTRA_DIST): Add human.h.
95127         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
95128         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
95129         * modules/lchown (EXTRA_DIST): Add lchown.h.
95130         * modules/long-options (EXTRA_DIST): Add long-options.h.
95131         * modules/lstat (EXTRA_DIST): Add lstat.h.
95132         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
95133         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
95134         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
95135         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
95136         * modules/memxor (EXTRA_DIST): Add memxor.h.
95137         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
95138         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
95139         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
95140         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
95141         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
95142         * modules/physmem (EXTRA_DIST): Add physmem.h.
95143         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
95144         * modules/posixver (EXTRA_DIST): Add posixver.h.
95145         * modules/quote (EXTRA_DIST): Add quote.h.
95146         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
95147         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
95148         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
95149         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
95150         regex_internal.h regexec.c.
95151         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
95152         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
95153         * modules/same (EXTRA_DIST): Add same.h.
95154         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
95155         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
95156         * modules/savedir (EXTRA_DIST): Add savedir.h.
95157         * modules/sha1 (EXTRA_DIST): Add sha1.h.
95158         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
95159         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
95160         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
95161         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
95162         * modules/strdup (EXTRA_DIST): Add strdup.h.
95163         * modules/strftime (EXTRA_DIST): Add strftime.h.
95164         * modules/strndup (EXTRA_DIST): Add strndup.h.
95165         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
95166         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
95167         * modules/time_r (EXTRA_DIST): Add time_r.h.
95168         * modules/timespec (EXTRA_DIST): Add timespec.h.
95169         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
95170         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
95171         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
95172         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
95173         * modules/userspec (EXTRA_DIST): Add userspec.h.
95174         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
95175         * modules/utimens (EXTRA_DIST): Add utimens.h.
95176         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
95177         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
95178         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
95179         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
95180         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
95181         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
95182         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
95183         * modules/yesno (EXTRA_DIST): Add yesno.h.
95185 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
95187         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
95189         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
95190         * m4/dev-ino.m4, same-inode.m4: Remove.
95192         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
95193         * m4/acl.m4 (AC_FUNC_ACL):
95194         * m4/backupfile.m4 (gl_BACKUPFILE):
95195         * m4/c-strtod.m4 (gl_C99_STRTOLD):
95196         * m4/canon-host.m4 (gl_CANON_HOST):
95197         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
95198         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
95199         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
95200         * m4/cloexec.m4 (gl_CLOEXEC):
95201         * m4/close-stream.m4 (gl_CLOSE_STREAM):
95202         * m4/closeout.m4 (gl_CLOSEOUT):
95203         * m4/dirfd.m4 (gl_FUNC_DIRFD):
95204         * m4/dirname.m4 (gl_DIRNAME):
95205         * m4/exclude.m4 (gl_EXCLUDE):
95206         * m4/exitfail.m4 (gl_EXITFAIL):
95207         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
95208         * m4/file-type.m4 (gl_FILE_TYPE):
95209         * m4/filemode.m4 (gl_FILEMODE):
95210         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
95211         * m4/fpending.m4 (gl_FUNC_FPENDING):
95212         * m4/fprintftime.m4 (gl_FPRINTFTIME):
95213         * m4/fts.m4 (gl_FUNC_FTS):
95214         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
95215         * m4/getdate.m4 (gl_GETDATE):
95216         * m4/gethrxtime.m4 (gl_GETHRXTIME):
95217         * m4/getpagesize.m4 (gl_GETPAGESIZE):
95218         * m4/getpass.m4 (gl_FUNC_GETPASS):
95219         * m4/gettime.m4 (gl_GETTIME):
95220         * m4/getugroups.m4 (gl_GETUGROUPS):
95221         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
95222         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
95223         * m4/hard-locale.m4 (gl_HARD_LOCALE):
95224         * m4/hash.m4 (gl_HASH):
95225         * m4/idcache.m4 (gl_IDCACHE):
95226         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
95227         * m4/lchown.m4 (gl_FUNC_LCHOWN):
95228         * m4/long-options.m4 (gl_LONG_OPTIONS):
95229         * m4/lstat.m4 (gl_FUNC_LSTAT):
95230         * m4/md5.m4 (gl_MD5):
95231         * m4/memcasecmp.m4 (gl_MEMCASECMP):
95232         * m4/memcoll.m4 (gl_MEMCOLL):
95233         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
95234         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
95235         * m4/memxor.m4 (gl_MEMXOR):
95236         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
95237         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
95238         * m4/modechange.m4 (gl_MODECHANGE):
95239         * m4/mountlist.m4 (gl_MOUNTLIST):
95240         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
95241         * m4/openat.m4 (gl_FUNC_OPENAT):
95242         * m4/pathmax.m4 (gl_PATHMAX):
95243         * m4/physmem.m4 (gl_PHYSMEM):
95244         * m4/posixtm.m4 (gl_POSIXTM):
95245         * m4/posixver.m4 (gl_POSIXVER):
95246         * m4/quote.m4 (gl_QUOTE):
95247         * m4/quotearg.m4 (gl_QUOTEARG):
95248         * m4/readtokens.m4 (gl_READTOKENS):
95249         * m4/readutmp.m4 (gl_READUTMP):
95250         * m4/regex.m4 (gl_REGEX):
95251         * m4/safe-read.m4 (gl_SAFE_READ):
95252         * m4/safe-write.m4 (gl_SAFE_WRITE):
95253         * m4/same.m4 (gl_SAME):
95254         * m4/save-cwd.m4 (gl_SAVE_CWD):
95255         * m4/savedir.m4 (gl_SAVEDIR):
95256         * m4/settime.m4 (gl_SETTIME):
95257         * m4/sha1.m4 (gl_SHA1):
95258         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
95259         * m4/stat-macros.m4 (gl_STAT_MACROS):
95260         * m4/stat-time.m4 (gl_STAT_TIME):
95261         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
95262         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
95263         * m4/strdup.m4 (gl_FUNC_STRDUP):
95264         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
95265         * m4/strndup.m4 (gl_FUNC_STRNDUP):
95266         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
95267         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
95268         * m4/time_r.m4 (gl_TIME_R):
95269         * m4/timespec.m4 (gl_TIMESPEC):
95270         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
95271         * m4/unlinkdir.m4 (gl_UNLINKDIR):
95272         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
95273         * m4/userspec.m4 (gl_USERSPEC):
95274         * m4/utimecmp.m4 (gl_UTIMECMP):
95275         * m4/utimens.m4 (gl_UTIMENS):
95276         * m4/xalloc.m4 (gl_XALLOC):
95277         * m4/xgetcwd.m4 (gl_XGETCWD):
95278         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
95279         * m4/xreadlink.m4 (gl_XREADLINK):
95280         * m4/xstrtod.m4 (gl_XSTRTOD):
95281         * m4/yesno.m4 (gl_YESNO):
95282         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
95283         to get the necessary .h files and whatnot.
95285 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
95286             Bruno Haible  <bruno@clisp.org>
95288         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
95289         /bin/sh understanding of '!' conditional negation.
95291 2006-08-21  Jim Meyering  <jim@meyering.net>
95293         * modules/openat (Depends-on): Really alphabetize.
95295         * modules/acl (Depends-on): Add error and quote.
95297         * check-module (find_included_lib_files): Add at-func.c to the
95298         ok-to-include-more-than-once white list.
95300         * modules/openat (Depends-on): Add lstat.  Alphabetize.
95302 2006-08-21  Bruno Haible  <bruno@clisp.org>
95304         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95305         Emit a pkgdata_DATA variable only if some snippets add contents to it.
95306         Reported by Martin Lambers <marlam@marlam.de>.
95308 2006-08-21  Bruno Haible  <bruno@clisp.org>
95310         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
95311         specify an installation location, don't emit a noinst_LIBRARIES or
95312         noinst_LTLIBRARIES assignment.
95314 2006-08-21  Bruno Haible  <bruno@clisp.org>
95316         BeOS portability.
95317         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
95318         BeOS has mbrtowc() but no <wctype.h>.
95320 2006-08-21  Bruno Haible  <bruno@clisp.org>
95322         BeOS portability.
95323         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
95324         exist.
95326 2006-08-21  Bruno Haible  <bruno@clisp.org>
95328         BeOS portability.
95329         * lib/mbchar.h: Include <wctype.h> only if it exists.
95331 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95333         Remove files that are no longer needed by their respective modules.
95334         * m4/obstack.m4: Remove.
95335         * m4/strerror_r.m4: Remove.
95336         * m4/uint32_t.m4: Remove.
95337         * m4/uintptr_t.m4: Remove.
95338         * m4/ullong_max.m4: Remove.
95339         * m4/xstrtoimax.m4: Remove.
95340         * m4/xstrtoumax.m4: Remove.
95342         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
95343         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
95344         dependencies now capture this.
95346         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
95347         Do not use AC_LIBSOURCES, since gnulib modules now do this.
95348         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
95349         * m4/human.m4 (gl_HUMAN): Likewise.
95350         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
95351         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
95353         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
95355         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
95356         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
95357         stdint.
95358         * m4/human.m4 (gl_HUMAN): Likewise.
95359         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
95360         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
95361         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
95362         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
95363         * m4/xstrtol (gl_XSTRTOL): Likewise.
95365         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
95366         AC_TYPE_LONG_LONG_INT.
95367         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
95368         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
95369         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
95370         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
95372         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
95373         on stdbool.
95375         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
95376         (gl_PREREQ_XSTRTOUL): Remove.
95378         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
95380         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
95381         mode.
95383 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95385         Add and change modules to make it easier for coreutils to use
95386         gnulib-tool.
95387         * modules/backupfile (Files): Remove m4/d-ino.m4.
95388         (Depends-on): Add d-ino.
95389         * modules/cycle-check (Depends-on): Add stdint.
95390         (lib_SOURCES): Add cycle-check.h.
95391         * modules/d-ino: New module.
95392         * modules/d-type: New module.
95393         * modules/error (Files): Remove m4/strerror_r.m4.
95394         * modules/filemode (Files): Add m4/st_dm_mode.m4.
95395         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
95396         m4/inttypes_h.m4, m4/uintmax_t.m4.
95397         (Depends-on): Add stdint.
95398         (lib_SOURCES): Add fsusage.h.
95399         * modules/getcwd (Files): Remove d-ino.m4.
95400         (Depends-on): Add d-ino.
95401         * modules/getndelim2 (Depends-on): Add stdint.
95402         * modules/glob (Files): Remove m4/d-type.m4.
95403         (Depends-on): Add d-type.
95404         * modules/host-os: New module.
95405         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
95406         m4/inttypes_h.m4, m4/uintmax_t.m4.
95407         * Depends-on: Add stdint.
95408         (lib_SOURCES): Add human.h.
95409         * modules/inttostr (Files): Remove m4/intmax_t.m4,
95410         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
95411         m4/uintmax_t.m4, m4/ulonglong.m4.
95412         (Depends-on): Add stdint.
95413         (EXTRA_DIST): Add inttostr.h.
95414         * modules/lchmod: New module.
95415         * modules/link-follow: New module.
95416         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
95417         (Depends-on): Add lchmod.
95418         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
95419         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
95420         (Depends-on): Add stdint.
95421         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
95422         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
95423         (Depends-on): Add stdint.
95424         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
95425         * modules/perl: New module.
95426         * modules/regex (Depends-on): Add stdint.
95427         * modules/rmdir-errno: New module.
95428         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
95429         m4/intmax_t.m4.
95430         (Depends-on): Add stdint.
95431         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
95432         m4/uintmax_t.m4.
95433         (Depends-on): Add stdint.
95434         * modules/unlink-busy: New module.
95435         * modules/utimecmp (Depends-on): Add stdint.
95436         * modules/uptime: New module.
95437         * modules/winsz-ioctl: New module.
95438         * modules/winsz-termios: New module.
95439         * modules/xnanosleep (Depends-on): Add nanosleep.
95440         * modules/ullong_max: Remove.
95441         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
95442         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
95443         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
95444         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
95445         (Depends-on): Add inttypes.
95446         (lib_SOURCES): Add xstrtol.h.
95447         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
95448         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
95449         * MODULES.html.sh: Move 'assert' into the assert section.
95450         Move 'dummy' into the linking section.
95451         Remove ullong_max.
95452         Add section for compatibility checks for POSIX:2001 functions,
95453         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
95454         winsz-ioctl, and winsz-termios into it.
95455         Add lchmod.
95456         Add top-level Misc section and put host-os, perl, and uptime
95457         into it.
95459 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95461         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
95462         now assume the stdint module.  Do not include inttypes.h.
95463         * lib/fsusage.h: Likewise.
95464         * lib/getndelim2.c: Likewise.
95465         * lib/human.h: Likewise.
95466         * lib/inttostr.h: Likewise.
95467         * lib/obstack.c: Likewise.
95468         * lib/regex_internal.h: Likewise.
95469         * lib/tempname.c: Likewise.
95470         * lib/utimecmp.c: Likewise.
95471         * lib/xstrtol.h: Likewise.
95473         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
95475         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
95476         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
95477         * lib/xtime.h: Likewise.
95479 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
95481         * modules/openat (Files): Add lib/fchmodat.c.
95482         Fixes problem reported by Jay Youngman.
95484 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
95486         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
95487         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
95489 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
95490             Bruno Haible  <bruno@clisp.org>
95492         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
95493         and is a script that invokes bison. Tighten the code. Add comments.
95495 2006-08-18  Jim Meyering  <jim@meyering.net>
95497         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
95498         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
95499         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
95500         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
95502 2006-08-18  Bruno Haible  <bruno@clisp.org>
95504         * modules/bison-i18n: New file.
95505         * MODULES.html.sh (Internationalization functions): Add it.
95507 2006-08-18  Bruno Haible  <bruno@clisp.org>
95509         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
95510         sys/statvfs.h. When getmntinfo was found, check its declaration and
95511         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
95513 2006-08-18  Bruno Haible  <bruno@clisp.org>
95515         * m4/bison-i18n.m4: New file, from bison.
95517 2006-08-18  Bruno Haible  <bruno@clisp.org>
95519         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
95520         (ME_DUMMY): Treat "kernfs" as a dummy.
95521         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
95523 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
95525         Update from coreutils.
95527         2006-08-15  Jim Meyering  <jim@meyering.net>
95529         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
95531         2006-01-17  Jim Meyering  <jim@meyering.net>
95533         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
95535         2006-01-11  Jim Meyering  <jim@meyering.net>
95537         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
95538         Check for the lchmod function.
95540 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
95542         Update from coreutils.
95544         * lib/__fpending.h: Add copyright notice.
95545         * lib/fprintftime.h: Likewise.
95546         * lib/savedir.c: Use (C) in copyright notice.
95547         * lib/savedir.h: Likewise.
95549         2006-08-15  Jim Meyering  <jim@meyering.net>
95551         * lib/at-func.c: New file, with the logic of all emulated at-functions.
95552         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
95553         in support of the EXPECTED_ERRNO macro.
95554         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
95555         definitions.  Instead, define the appropriate symbols and include
95556         "at-func.c".
95557         * lib/mkdirat.c (mkdirat): Likewise.
95558         * lib/fchmodat.c (fchmodat): Likewise.
95559         (ENOSYS): Remove definition.
95560         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
95561         it.  Don't include "unistd--.h" -- it wasn't ever used.
95563         2006-01-17  Jim Meyering  <jim@meyering.net>
95565         Rewrite fts.c not to change the current working directory,
95566         by using openat, fstatat, fdopendir, etc..
95568         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
95569         (HAVE_OPENAT_SUPPORT): Define.
95570         [_LIBC] (fchdir): Don't undef or define; no longer used.
95571         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
95572         Now, this `function' always succeeds, and consumes its file descriptor
95573         parameter -- so callers must not close such FDs.  Update callers.
95574         (diropen_fd, opendirat, cwd_advance_fd): New functions.
95575         (diropen): Add parameter, SP.  Adjust all callers.
95576         Implement using diropen_fd, rather than open.
95577         (fts_open): Initialize new member, fts_cwd_fd.
95578         Remove fts_rft-setting code.
95579         (fts_close): Close fts_cwd_fd, if necessary.
95580         (__opendir2): Define in terms of opendir or opendirat,
95581         depending on whether the FST_NOCHDIR flag is set.
95582         (fts_build): Since fts_safe_changedir consumes its FD, and since
95583         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
95584         and close the dup'd file descriptor upon failure.
95585         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
95586         (fts_safe_changedir): Tweak semantics to reflect that this function
95587         now calls cwd_advance_fd and hence consumes its FD argument.
95588         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
95589         [struct FTS] (fts_rft): Remove now-unused member.
95590         [struct FTS] (fts_cycle.state): Improve comment.
95592         * lib/openat.c (openat_needs_fchdir): New function.
95593         * lib/openat.h (openat_needs_fchdir): Declare it.
95595 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
95597         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
95598         Problem and fix reported by Pádraig Brady in
95599         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
95601 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95603         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
95605 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95607         * lib/memcoll.c (memcoll): Optimize for the common case where the
95608         arguments are bytewise equal.
95610 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95612         * doc/regexprops-generic.texi: Add a copyright notice.
95614 2006-08-15  Bruno Haible  <bruno@clisp.org>
95616         * modules/tmpdir (License): Change to LGPL.
95618 2006-08-15  Bruno Haible  <bruno@clisp.org>
95620         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
95621         module.
95623 2006-08-14  Simon Josefsson  <jas@extundo.com>
95625         * config/srclist.txt: Add gnupload.
95627 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95629         Change copyright notice from LGPL 2 to GPL 2, since that's the
95630         standard form used in the gnulib repository.
95631         * tests/test-lock.c: Likewise.
95632         * tests/test-stdint.c: Likewise.
95633         * tests/test-tls.c: Likewise.
95635         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
95636         prelude-manager.  User shorter URLs for GNU projects, without '?'.
95637         Add copyright notice.
95639         * check-module: Add copyright notice.  Output a copyright
95640         notice if "--version" is specified.
95641         * modules/COPYING: New file.
95642         * tests/test-getaddrinfo.c: Add copyright notice.
95643         * tests/test-verify.c: Likewise.
95645 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95647         Change copyright notice from LGPL 2 to GPL 2, since that's the
95648         standard form used in the gnulib repository.
95649         * lib/lock.c: LGPL -> GPL.
95650         * lib/lock.h: Likewise.
95651         * lib/strnlen1.c: Likewise.
95652         * lib/strnlen1.h: Likewise.
95653         * lib/tls.c: Likewise.
95654         * lib/tls.h: Likewise.
95655         * lib/tmpdir.c: Likewise.
95657         * lib/TODO: Remove; this belongs only in coreutils.
95659 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95661         Add copyright notices to long-enough files that lack them, since
95662         otherwise the files aren't clearly free.  Use the same notice that
95663         getdate.texi already uses.
95664         * doc/alloca-opt.texi: Add copyright notice.
95665         * doc/alloca.texi: Likewise.
95666         * doc/ctime.texi: Likewise.
95667         * doc/functions.texi: Likewise.
95668         * doc/gcd.texi: Likewise.
95669         * doc/gnulib-tool.texi: Likewise.
95670         * doc/inet_ntoa.texi: Likewise.
95671         * doc/visibility.texi: Likewise.
95673         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
95674         * doc/quote.texi: Add copyright notice.
95676         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
95677         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
95678         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
95679         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
95680         is now obsolete, and give a pointer to the Sun list.
95681         Add copyright notice.
95683 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95685         * config/srclistvars.sh: Add copyright notice.
95687 2006-08-14  Eric Blake  <ebb9@byu.net>
95689         Import the following change from libc:
95691         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
95693         Upstream bug 2997.
95694         * lib/misc/error.c: Add space between program name and message if file
95695         name is missing.
95697 2006-08-12  Karl Berry  <karl@gnu.org>
95699         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
95700         remove, these originate in gnulib now.
95702 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95704         * doc/Makefile (standards.info standards.html standards.dvi):
95705         Also depend on make-stds.texi.
95707 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
95709         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
95710         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
95712         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
95713         in wchar_t.  Problem reported by Eric Blake.
95715         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
95716         LEN is smaller than SIZE.  Suggested by Bruno Haible.
95717         Also, help the compiler to keep LEN in a register.
95719 2006-08-11  Eric Blake  <ebb9@byu.net>
95721         * users.txt: Sort.  Add tar.
95723 2006-08-11  Bruno Haible  <bruno@clisp.org>
95725         * users.txt: New file.
95727 2006-08-11  Bruno Haible  <bruno@clisp.org>
95729         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
95730         before <wchar.h>. Needed for OSF/1 and BSD/OS.
95732 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
95734         * modules/snprintf (Depends-on): Remove minmax.
95735         (Maintainer): Add self and Bruno.
95737 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
95739         * lib/.cppi-disable: Add snprintf.h, socket_.h.
95740         * lib/snprintf.c: Include <errno.h> and <limits.h>.
95741         (EOVERFLOW): Define if the system does not.
95742         Do not include "minmax.h"; it wasn't used.
95743         (snprintf): Don't assume size_t promotes to an unsigned type.
95744         Fix bug when generated string was too long for the buffer: the
95745         buffer's contents are supposed to be the initial prefix of the
95746         output.  Don't assume vasnprintf returns EOVERFLOW if the size
95747         exceeds INT_MAX; do the check ourselves.
95749         Import the following changes from libc:
95751         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
95753         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
95754         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
95755         set wc to the byte which couldn't be converted.
95756         (re_string_reconstruct): Don't clear valid_raw_len before calling
95757         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
95758         tip_context using re_string_context_at.
95760         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
95762         * lib/posix/regex.h: g++ still cannot handled [restrict].
95764         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
95766         * lib/posix/regex.h: Remove special handling for VMS.
95768 2006-08-10  Jim Meyering  <jim@meyering.net>
95770         * modules/same-inode: New module.
95771         * modules/dev-ino: New module.
95772         * modules/cycle-check: Depend on these modules, rather than simply
95773         including their .h files.
95774         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
95775         required via m4/cycle-check.m4.
95776         * modules/same: Depend on new same-inode module, rather than
95777         including same-inode.h.
95778         * modules/chdir-safer: New file.
95780         * modules/chown (Depends-on): Add stat-macros.
95782 2006-08-10  Jim Meyering  <jim@meyering.net>
95784         * m4/cycle-check.m4: New file.
95785         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
95786         * m4/dev-ino.m4, m4/same-inode.m4: New files.
95788 2006-08-10  Eric Blake  <ebb9@byu.net>
95790         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
95791         in from original proposal.
95793 2006-08-10  Eric Blake  <ebb9@byu.net>
95794         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
95796         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
95797         namespace.
95799 2006-08-10  Bruno Haible  <bruno@clisp.org>
95801         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
95802         as well.
95804 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
95806         Sync from coreutils.
95808         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
95810         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
95811         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
95813 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
95815         * modules/restrict: Remove; no longer needed now that we assume
95816         Autoconf 2.59 or later.
95817         * MODULES.html.sh: Remove 'restrict'.
95818         * modules/argp (Depends-on): Remove 'restrict'.
95819         * modules/base64 (Depends-on): Likewise.
95820         * modules/gc (Depends-on): Likewise.
95821         * modules/getaddrinfo (Depends-on): Likewise.
95822         * modules/glob (Depends-on): Likewise.
95823         * modules/inet_ntop (Depends-on): Likewise.
95824         * modules/inet_pton (Depends-on): Likewise.
95825         * modules/memxor (Depends-on): Likewise.
95826         * modules/regex (Depends-on): Likewise.
95827         * modules/strtok_r (Depends-on): Likewise.
95828         * modules/time_r (Depends-on): Likewise.
95830 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
95832         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
95833         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
95834         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
95835         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
95836         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
95837         * m4/memxor.m4 (gl_MEMXOR): Likewise.
95838         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
95839         gl_C_RESTRICT replaced by AC_C_RESTRICT.
95841         Merge from coreutils.
95842         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
95843         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
95844         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
95845         * m4/time_r.m4 (gl_TIME_R): Likewise.
95847 2006-08-09  Karl Berry  <karl@gnu.org>
95849         * config/srclist.txt: no more gettext-tools, per Bruno.
95851 2006-08-08  Eric Blake  <ebb9@byu.net>
95853         * modules/verror: New module.
95854         * MODULES.html.sh: Document it.
95856 2006-08-08  Eric Blake  <ebb9@byu.net>
95858         * lib/verror.h, lib/verror.c: New files.
95860 2006-08-08  Eric Blake  <ebb9@byu.net>
95862         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
95863         verror_at_line output complies with GNU Coding Standards even when
95864         file is NULL.
95866 2006-08-07  Bruno Haible  <bruno@clisp.org>
95868         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
95869         versions of AIX.
95870         Reported by Ralf Wildenhues.
95872 2006-08-07  Bruno Haible  <bruno@clisp.org>
95874         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
95875         in an AC_DEFUN. Needed so that the autoconf snippets can use
95876         AC_REQUIRE.
95878 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95880         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95881         Initialize pkgdata_DATA.
95882         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
95883         overriding it.
95885 2006-08-06  Eric Blake  <ebb9@byu.net>
95887         * lib/error.h: Fold in some upstream changes from glibc.
95888         * lib/error.c: Likewise.
95890 2006-08-04  Bruno Haible  <bruno@clisp.org>
95892         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95893         Make the mostlyclean-local rule depend on mostlyclean-generic.
95894         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
95896 2006-07-31  Bruno Haible  <bruno@clisp.org>
95898         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
95899         <stdlib.h>, <string.h>.
95901 2006-07-30  Bruno Haible  <bruno@clisp.org>
95903         * modules/readlink (License): Change to LGPL.
95905 2006-07-30  Bruno Haible  <bruno@clisp.org>
95907         * modules/javaversion (Makefile.am): Distribute javaversion.java and
95908         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
95909         set PKGDATADIR to point to it.
95911 2006-07-30  Bruno Haible  <bruno@clisp.org>
95913         * modules/csharpexec (configure.ac): Comment out macro invocation.
95914         * modules/javaexec (configure.ac): Likewise.
95915         * modules/javacomp-script (configure.ac): Likewise.
95917         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
95919 2006-07-30  Bruno Haible  <bruno@clisp.org>
95921         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
95922         linked-list.
95924 2006-07-30  Bruno Haible  <bruno@clisp.org>
95926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
95928 2006-07-30  Bruno Haible  <bruno@clisp.org>
95930         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95931         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
95932         get removed.
95934 2006-07-29  Bruno Haible  <bruno@clisp.org>
95936         Make it possible for gnulib-tool to work with locally modified or
95937         augmented gnulib repositories.
95938         * gnulib-tool (func_usage): Document --local-dir option.
95939         (local_gnulib_dir): New variable.
95940         Handle --local-dir option.
95941         (func_lookup_file): New function.
95942         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
95943         (func_get_description, func_get_filelist, func_get_description,
95944         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
95945         func_get_automake_snippet, func_get_include_directive,
95946         func_get_license, func_get_maintainer): Use func_lookup_file.
95947         (func_import, func_create_testdir): Use func_lookup_file.
95949 2006-07-29  Bruno Haible  <bruno@clisp.org>
95951         * modules/setenv (Depends-on): Add unistd.
95953 2006-07-29  Bruno Haible  <bruno@clisp.org>
95955         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
95957 2006-07-29  Bruno Haible  <bruno@clisp.org>
95959         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
95961 2006-07-29  Bruno Haible  <bruno@clisp.org>
95963         * gnulib-tool (import, update): If there is no Makefile.am, look at
95964         aclocal.m4, instead of bailing out.
95966 2006-07-29  Bruno Haible  <bruno@clisp.org>
95968         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
95969         Categorize the options by when they are useful.
95971 2006-07-29  Bruno Haible  <bruno@clisp.org>
95973         * gnulib-tool (func_usage): Document option --no-libtool.
95974         Handle option --no-libtool.
95975         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
95976         for changed semantics of $libtool variable.
95977         (func_import): Likewise. If libtool is not used, show this through
95978         an option --no-libtool.
95979         (func_create_testdir): Update.
95981 2006-07-29  Bruno Haible  <bruno@clisp.org>
95983         * gnulib-tool (func_import): Extend error message about missing
95984         --doc-base.
95986 2006-07-29  Bruno Haible  <bruno@clisp.org>
95988         * gnulib-tool (func_import): Don't create the $docbase directory if
95989         there is no file to store there.
95991 2006-07-29  Bruno Haible  <bruno@clisp.org>
95993         * gnulib-tool (autoconf_minversion): If a --dir option is given and
95994         relevant, look for configure.ac there, not in the current directory.
95995         Also use a simple search for AC_PREREQ, not "autoconf --trace".
95997 2006-07-29  Bruno Haible  <bruno@clisp.org>
95999         * gnulib-tool (SORT): New variable.
96000         (func_usage): Undocument --assume-autoconf option.
96001         Remove --assume-autoconf option handling.
96002         (autoconf_minversion): Determine from the contents of configure.ac.
96003         (func_import): Remove autoconf_minversion handling.
96004         Suggested by Eric Blake.
96006 2006-07-29  Bruno Haible  <bruno@clisp.org>
96008         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
96010 2006-07-29  Bruno Haible  <bruno@clisp.org>
96012         * config/srclist.txt (*setenv.[ch]): Remove rules.
96014 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96016         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
96018 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96020         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
96021         arpa/inet.h.
96023 2006-07-28  Simon Josefsson  <jas@extundo.com>
96025         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
96026         * modules/inet_pton (Depends-on): Likewise.
96028 2006-07-28  Simon Josefsson  <jas@extundo.com>
96030         * m4/netinet_in_h.m4: New file.
96032 2006-07-28  Simon Josefsson  <jas@extundo.com>
96034         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
96035         #include's.
96037 2006-07-28  Simon Josefsson  <jas@extundo.com>
96039         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
96040         #include's.
96042 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
96044         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
96045         setgid on directories only if they set these bits.
96046         * lib/modechange.h: Remove obsolete comment about masks.
96048 2006-07-28  Eric Blake  <ebb9@byu.net>
96050         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
96051         macro expansion.
96053 2006-07-28  Bruno Haible  <bruno@clisp.org>
96055         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
96057 2006-07-28  Bruno Haible  <bruno@clisp.org>
96059         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
96061 2006-07-28  Bruno Haible  <bruno@clisp.org>
96063         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
96064         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
96065         Define fallbacks.
96066         Avoids link error on FreeBSD 4.x.
96067         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
96069         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
96070         encoding.
96071         * lib/mbswidth.c (iswcntrl): Likewise.
96073 2006-07-27  Bruno Haible  <bruno@clisp.org>
96075         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
96076         test.
96078 2006-07-27  Bruno Haible  <bruno@clisp.org>
96080         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
96081         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
96082         defined.
96084 2006-07-26  Eric Blake  <ebb9@byu.net>
96086         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
96088 2006-07-26  Eric Blake  <ebb9@byu.net>
96090         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
96091         like mingw that lack mkstemp.
96092         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
96093         avoid compilation warning on mingw.
96095 2006-07-26  Bruno Haible  <bruno@clisp.org>
96097         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
96098         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
96099         INT_FAST*_MIN, INTPTR_MIN.
96101 2006-07-25  Bruno Haible  <bruno@clisp.org>
96103         * modules/version-etc (Depends-on): Add stdarg.
96105 2006-07-25  Bruno Haible  <bruno@clisp.org>
96107         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
96108         complex commands.
96110 2006-07-25  Bruno Haible  <bruno@clisp.org>
96112         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
96113         defined in <stdarg.h> or config.h.
96115 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
96117         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
96118         (gl_STDIO_SAFER): Remove.
96120 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
96122         * MODULES.html.sh (File stream based Input/Output):
96123         Add fopen-safer, tmpfile-safer; remove stdio-safer.
96124         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
96125         * modules/fopen-safer, modules/tmpfile-safer: New files.
96126         * modules/stdio-safer: Remove.
96128 2006-07-24  Bruno Haible  <bruno@clisp.org>
96130         * modules/tmpdir: New file.
96131         * MODULES.html.sh (File system functions): Add it.
96133 2006-07-24  Bruno Haible  <bruno@clisp.org>
96135         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
96136         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
96138 2006-07-24  Bruno Haible  <bruno@clisp.org>
96140         * modules/clean-temp: New file.
96142 2006-07-24  Bruno Haible  <bruno@clisp.org>
96144         * m4/tmpdir.m4: New file, from GNU gettext.
96146 2006-07-24  Bruno Haible  <bruno@clisp.org>
96148         * lib/tmpdir.h: New file, from GNU gettext.
96149         * lib/tmpdir.c: New file, from GNU gettext.
96151 2006-07-24  Bruno Haible  <bruno@clisp.org>
96153         * lib/clean-temp.h: New file, from GNU gettext.
96154         * lib/clean-temp.c: New file, from GNU gettext.
96156 2006-07-23  Eric Blake  <ebb9@byu.net>
96158         * modules/stdio-safer (Files): Add tmpfile-safer.c.
96159         (Depends-on): Add binary-io.
96161 2006-07-23  Eric Blake  <ebb9@byu.net>
96163         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
96165 2006-07-23  Eric Blake  <ebb9@byu.net>
96167         * lib/tmpfile-safer.c: New file.
96168         * lib/stdio-safer.h (fopen_safer): Add prototype.
96169         * lib/stdio--.h (tmpfile): Make safer.
96171 2006-07-23  Bruno Haible  <bruno@clisp.org>
96173         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
96174         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
96175         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
96176         gl_linked_remove_at): Use it.
96178 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96179         and Simon Josefsson <jas@extundo.com>
96181         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
96183         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
96185 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
96187         * modules/close-stream: New file.
96188         * modules/closeout (Description): Make it clear that it exits
96189         with a diagnostic on error.
96190         (Depends-on): Add close-stream.  Remove fpending, stdbool.
96191         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
96193 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
96195         * m4/close-stream.m4: New file.
96197 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
96199         * lib/close-stream.c, lib/close-stream.h: New files.
96201 2006-07-22  Bruno Haible  <bruno@clisp.org>
96203         Merge from GNU gettext 0.15.
96205         2006-05-01  Bruno Haible  <bruno@clisp.org>
96207                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
96209         2006-07-22  Bruno Haible  <bruno@clisp.org>
96211                 * modules/javaversion: New file.
96212                 * MODULES.html.sh (Java): Add javaversion.
96214         2006-03-12  Bruno Haible  <bruno@clisp.org>
96216                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
96218         2005-12-04  Bruno Haible  <bruno@clisp.org>
96220                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
96221                 (untested).
96223         2006-06-21  Bruno Haible  <bruno@clisp.org>
96225                 Avoid warnings from recent versions of mcs.
96226                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
96227                 -o, -L, -r any more. Use options documented since mcs-1.0
96228                 instead. Similarly for -g.
96230         2005-12-04  Bruno Haible  <bruno@clisp.org>
96232                 * build-aux/csharpcomp.sh.in: Suffix for resources is
96233                 .resources, not .resource.
96235         2005-07-09  Bruno Haible  <bruno@clisp.org>
96237                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
96238                 add a .dll suffix.
96239                 Reported by Mark Junker <mjscod@gmx.de>.
96241         2006-07-22  Bruno Haible  <bruno@clisp.org>
96243                 * modules/gettext: Upgrade to gettext-0.15.
96244                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
96245                 m4/visibility.m4.
96246                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
96248 2006-07-22  Bruno Haible  <bruno@clisp.org>
96250         Merge from GNU gettext 0.15.
96252         2006-03-25  Bruno Haible  <bruno@clisp.org>
96254                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
96256         2006-07-21  Bruno Haible  <bruno@clisp.org>
96258                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
96259                 "1.1".
96261         2006-05-09  Bruno Haible  <bruno@clisp.org>
96263                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
96264                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
96265                 for the conftestver execution.
96267         2006-05-01  Bruno Haible  <bruno@clisp.org>
96269                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
96270                 optional target-version argument. Verify that the compiler
96271                 groks source of the specified source-version, or add -source
96272                 option as necessary. Verify that the compiler produces
96273                 bytecode in the specified target-version, or add -target and
96274                 -source options as necessary. Make the result of the test
96275                 available as variable CONF_JAVAC. Also log error output in
96276                 config.log.
96278         2006-03-11  Bruno Haible  <bruno@clisp.org>
96280                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
96282         2006-05-09  Bruno Haible  <bruno@clisp.org>
96284                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
96285                 CLASSPATH_SEPARATOR to a semicolon.
96287         2006-03-12  Bruno Haible  <bruno@clisp.org>
96289                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
96290                 available as variable CONF_JAVA, for subsequent autoconf
96291                 tests. Also log error output in config.log.
96293         2006-07-19  Bruno Haible  <bruno@clisp.org>
96295                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
96296                 that getline works on glibc2 systems. Needed to avoid trouble
96297                 in relocatable.c.
96298                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
96300         2005-12-04  Bruno Haible  <bruno@clisp.org>
96302                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
96303                 launcher (untested).
96305         2005-12-04  Bruno Haible  <bruno@clisp.org>
96307                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
96309         2006-07-22  Bruno Haible  <bruno@clisp.org>
96311                 * gettext.m4: Update from GNU gettext-0.15.
96312                 * nls.m4: Likewise.
96313                 * po.m4: Likewise.
96314                 * inttypes-pri.m4: Likewise.
96315                 * inttypes-h.m4: Renamed from inttypes.m4.
96316                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
96318 2006-07-22  Bruno Haible  <bruno@clisp.org>
96320         Merge from GNU gettext 0.15.
96322         2005-07-05  Bruno Haible  <bruno@clisp.org>
96324                 * printf-args.c (printf_fetchargs): Work around broken
96325                 definition of wint_t on mingw.
96327         2005-02-12  Bruno Haible  <bruno@clisp.org>
96329                 * xallocsa.h: Add extern "C" for C++.
96331         2006-05-17  Bruno Haible  <bruno@clisp.org>
96333                 Cygwin portability.
96334                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
96336         2006-04-30  Bruno Haible  <bruno@clisp.org>
96338                 * progreloc.c: Include <mach-o/dyld.h> if available.
96339                 (find_executable): Use _NSGetExecutablePath when possible.
96341         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
96343                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
96344                 function.
96346         2005-12-29  Bruno Haible  <bruno@clisp.org>
96348                 * progreloc.c (set_program_name_and_installdir): Fix
96349                 compilation error.
96351         2005-12-04  Bruno Haible  <bruno@clisp.org>
96353                 Cygwin portability.
96354                 * progreloc.c: Include <windows.h> also on Cygwin.
96355                 (find_executable): Add support for Cygwin.
96356                 (set_program_name_and_installdir): Handle also platforms with
96357                 nonempty EXEEXT.
96359         2006-07-11  Bruno Haible  <bruno@clisp.org>
96361                 * javacomp.c: Fix a comment.
96362                 Reported by Jim Meyering.
96364         2006-04-30  Bruno Haible  <bruno@clisp.org>
96366                 * javacomp.h (compile_java_class): Add source_version,
96367                 target_version arguments.
96368                 * javacomp.c: Rewritten to choose only a compiler that
96369                 respects the specified source_version and target_version.
96371         2006-06-27  Bruno Haible  <bruno@clisp.org>
96373                 Assume correct S_ISDIR macro.
96374                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
96376         2006-07-22  Bruno Haible  <bruno@clisp.org>
96378                 * javaversion.h: New file, from GNU gettext.
96379                 * javaversion.c: New file, from GNU gettext.
96380                 * javaversion.java: New file, from GNU gettext.
96381                 * javaversion.class: New file, from GNU gettext.
96383         2006-05-17  Bruno Haible  <bruno@clisp.org>
96385                 Cygwin portability.
96386                 * javaexec.c (execute_java_class): Test for jview program
96387                 also on Cygwin.
96389         2006-04-09  Bruno Haible  <bruno@clisp.org>
96391                 * fatal-signal.c: Don't include string.h.
96392                 (at_fatal_signal): Use a copying loop instead of memcpy.
96394         2005-12-04  Bruno Haible  <bruno@clisp.org>
96396                 * csharpexec.c: Add support for 'clix' launcher (untested).
96397                 (execute_csharp_using_sscli): New function.
96398                 (execute_csharp_program): Call it.
96400         2006-06-21  Bruno Haible  <bruno@clisp.org>
96402                 Avoid warnings from recent versions of mcs.
96403                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
96404                 -o, -L, -r any more. Use options documented since mcs-1.0
96405                 instead. Similarly for -g.
96407         2005-07-09  Bruno Haible  <bruno@clisp.org>
96409                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
96410                 add a .dll suffix.
96411                 Reported by Mark Junker <mjscod@gmx.de>.
96413         2006-06-17  Bruno Haible  <bruno@clisp.org>
96415                 * config.charset: Update for NetBSD 3.0.
96417         2006-05-17  Bruno Haible  <bruno@clisp.org>
96419                 Cygwin portability.
96420                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
96422         2006-05-16  Bruno Haible  <bruno@clisp.org>
96424                 * localcharset.c [CYGWIN]: Include <windows.h>.
96425                 (get_charset_aliases): For Cygwin, return the same CPxxx
96426                 aliases list as under WIN32.
96427                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
96428                 the environment variables. Fall back to GetACP().
96430         2006-04-05  Bruno Haible  <bruno@clisp.org>
96432                 * config.charset: Update Juan Manuel Guerrero's address.
96434         2005-02-12  Bruno Haible  <bruno@clisp.org>
96436                 * allocsa.h: Add extern "C" for C++.
96438         2005-02-10  Bruno Haible  <bruno@clisp.org>
96440                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
96441                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
96443         2006-07-22  Bruno Haible  <bruno@clisp.org>
96445                 * gettext.h: Update to GNU gettext-0.15.
96447 2006-07-22  Bruno Haible  <bruno@clisp.org>
96449         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
96450         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
96451         lib-prefix.m4, longdouble.m4, ssize_t.m4.
96453 2006-07-21  Eric Blake  <ebb9@byu.net>
96455         * modules/stdlib-safer: New file.
96456         * MODULES.html.sh (File stream based Input/Output): Add
96457         stdlib-safer.
96459 2006-07-21  Eric Blake  <ebb9@byu.net>
96461         * lib/stdlib-safer.h: New file from coreutils, required by
96462         stdlib--.h.
96464 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
96466         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
96468 2006-07-20  Bruno Haible  <bruno@clisp.org>
96470         * gnulib-tool: Recognize new option --assume-autoconf.
96471         (autoconf_minversion): New variable.
96472         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
96474 2006-07-20  Bruno Haible  <bruno@clisp.org>
96476         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
96478 2006-07-19  Derek R. Price  <derek@ximbiot.com>
96480         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
96481         Reindent and repaginate.
96483 2006-07-19  Derek Price  <derek@ximbiot.com>
96485         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
96486         Correct grammar.
96488 2006-07-17  Bruno Haible  <bruno@clisp.org>
96490         * modules/list: New file.
96491         * modules/array-list: New file.
96492         * modules/carray-list, modules/carray-list-tests: New files.
96493         * modules/linked-list, modules/linked-list-tests: New files.
96494         * modules/avltree-list, modules/avltree-list-tests: New files.
96495         * modules/rbtree-list, modules/rbtree-list-tests: New files.
96496         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
96497         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
96498         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
96499         * modules/oset: New file.
96500         * modules/array-oset: New file.
96501         * modules/avltree-oset, modules/avltree-oset-tests: New files.
96502         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
96503         * tests/test-carray_list.c: New file.
96504         * tests/test-linked_list.c: New file.
96505         * tests/test-avltree_list.c: New file.
96506         * tests/test-rbtree_list.c: New file.
96507         * tests/test-linkedhash_list.c: New file.
96508         * tests/test-avltreehash_list.c: New file.
96509         * tests/test-rbtreehash_list.c: New file.
96510         * tests/test-avltree_oset.c: New file.
96511         * tests/test-rbtree_oset.c: New file.
96512         * MODULES.html.sh (Container data structures): New section.
96514 2006-07-17  Bruno Haible  <bruno@clisp.org>
96516         * m4/gl_list.m4: New file.
96518 2006-07-17  Bruno Haible  <bruno@clisp.org>
96520         * lib/gl_list.h: New file.
96521         * lib/gl_list.c: New file.
96522         * lib/gl_array_list.h: New file.
96523         * lib/gl_array_list.c: New file.
96524         * lib/gl_carray_list.h: New file.
96525         * lib/gl_carray_list.c: New file.
96526         * lib/gl_linked_list.h: New file.
96527         * lib/gl_linked_list.c: New file.
96528         * lib/gl_anylinked_list1.h: New file.
96529         * lib/gl_anylinked_list2.h: New file.
96530         * lib/gl_avltree_list.h: New file.
96531         * lib/gl_avltree_list.c: New file.
96532         * lib/gl_anyavltree_list1.h: New file.
96533         * lib/gl_anyavltree_list2.h: New file.
96534         * lib/gl_rbtree_list.h: New file.
96535         * lib/gl_rbtree_list.c: New file.
96536         * lib/gl_anyrbtree_list1.h: New file.
96537         * lib/gl_anyrbtree_list2.h: New file.
96538         * lib/gl_anytree_list1.h: New file.
96539         * lib/gl_anytree_list2.h: New file.
96540         * lib/gl_linkedhash_list.h: New file.
96541         * lib/gl_linkedhash_list.c: New file.
96542         * lib/gl_anyhash_list1.h: New file.
96543         * lib/gl_anyhash_list2.h: New file.
96544         * lib/gl_avltreehash_list.h: New file.
96545         * lib/gl_avltreehash_list.c: New file.
96546         * lib/gl_rbtreehash_list.h: New file.
96547         * lib/gl_rbtreehash_list.c: New file.
96548         * lib/gl_anytreehash_list1.h: New file.
96549         * lib/gl_anytreehash_list2.h: New file.
96551         * lib/gl_oset.h: New file.
96552         * lib/gl_oset.c: New file.
96553         * lib/gl_array_oset.h: New file.
96554         * lib/gl_array_oset.c: New file.
96555         * lib/gl_avltree_oset.h: New file.
96556         * lib/gl_avltree_oset.c: New file.
96557         * lib/gl_rbtree_oset.h: New file.
96558         * lib/gl_rbtree_oset.c: New file.
96559         * lib/gl_anytree_oset.h: New file.
96561 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
96563         * m4/mkancesdirs.m4: New file.
96564         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
96565         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
96566         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
96567         it.
96569 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
96571         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
96572         * lib/mkancesdirs.h: New files.
96573         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
96574         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
96575         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
96576         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
96577         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
96578         callers changed.  Revamp internals significantly, by not
96579         attempting to create directories that are temporarily more
96580         permissive than the final results.  Do not attempt to use
96581         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
96582         This removes some race conditions, fixes some bugs, and simplifies
96583         things.  Use new dirchownmod function to do owner and mode changes.
96584         * lib/mkdir-p.h: Likewise.
96585         * lib/modechange.c (octal_to_mode): New function.
96586         (struct mode_change): New member mentioned.
96587         (make_node_op_equals): New arg mentioned.  All callers changed.
96588         (mode_compile): Keep track of which mode bits the user has explicitly
96589         mentioned.
96590         (mode_adjust): New arg DIR, so that we implement the X op correctly.
96591         New arg PMODE_BITS, to keep track of which mode bits the user
96592         mentioned; it treats S_ISUID and S_ISGID speciall.
96593         All callers changed.
96594         * lib/modechange.h: Likewise.
96596 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
96598         * MODULES.html.sh: Add mkancestors.
96599         * modules/mkancesdirs: New module.
96600         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
96601         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
96602         The chdir-safer and afs files are now orphans; I'll remove them
96603         unless someone speaks up.
96604         Add lib/dirchownmod.c, lib/dirchownmod.h.
96605         (Depends-on): Remove alloca, chown, save-cwd, dirname.
96606         Add lchown, mkancesdirs.
96607         (Maintainer): Add self.
96609 2006-07-15  Karl Berry  <karl@gnu.org>
96611         * gnulib-tool: help message wording/arrangement.
96613 2006-07-14  Simon Josefsson  <jas@extundo.com>
96615         * doc/gnulib.texi (Libtool and Windows): New section.
96617 2006-07-12  Simon Josefsson  <jas@extundo.com>
96619         * modules/gendocs (License): Fix license, approved by Karl.
96621 2006-07-12  Eric Blake  <ebb9@byu.net>
96623         * MODULES.html.sh: Add gendocs.
96625 2006-07-11  Eric Blake  <ebb9@byu.net>
96627         * modules/fdl: New module, to install doc/fdl.texi.
96628         * MODULES.html.sh: Add new section for documentation modules.
96629         * gnulib-tool: Avoid space-tab.
96630         (--doc-base): New option, to manage files from doc.
96632 2006-07-11  Eric Blake  <ebb9@byu.net>
96634         * m4/absolute-header.m4: Fix comments to match recent change.
96636 2006-07-11  Eric Blake  <ebb9@byu.net>
96638         * gnulib-tool: List --doc-base before --tests-base.
96640 2006-07-11  Derek R. Price  <derek@ximbiot.com>
96642         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
96644 2006-07-11  Bruno Haible  <bruno@clisp.org>
96646         * README: Mention where to put documentation.
96648 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96650         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
96652 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
96654         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
96655         to stdint.m4.
96657 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
96659         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
96660         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
96661         "no/such/file/stdint.h" when there is no such file, so that
96662         the resulting C code can be parsed by dodgy compilers.
96663         Problems reported by Bob Proulx.
96665 2006-07-10  Derek R. Price  <derek@ximbiot.com>
96667         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
96668         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
96669         macros into the GNU _D_EXACT_NAMLEN.
96670         * lib/savedir.c:  Likewise.
96671         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
96673 2006-07-10  Derek R. Price  <derek@ximbiot.com>
96674         and Paul Eggert  <eggert@cs.ucla.edu>
96676         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
96677         * m4/savedir.m4:
96678         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
96679         macros into the GNU _D_EXACT_NAMLEN.
96681 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
96683         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
96684         around the absolute name, to work around a problem with the HP-UX
96685         11.23 native C compiler, reported by Bob Proulx.
96687 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
96689         * doc/maintain.texi, make-stds.texi: Sync from
96690         <http://savannah.gnu.org/projects/gnustandards>.
96692 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
96694         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
96696 2006-07-09  Jim Meyering  <jim@meyering.net>
96698         * m4/glob.m4: Remove a doubled word in a comment.
96700 2006-07-09  Jim Meyering  <jim@meyering.net>
96702         * lib/argp-pv.c: Remove a doubled word in a comment.
96703         * lib/check-version.c (check_version): Likewise.
96704         * lib/javacomp.c (compile_java_class): Likewise.
96706 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
96708         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
96709         for the benefit of people using Autoconf 2.60.  If you want to
96710         support older Autoconf versions you can copy m4/onceonly_2_57.m4
96711         (or m4/onceonly.m4, if pre-2.57) manually.
96713 2006-07-08  Jim Meyering  <jim@meyering.net>
96715         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
96716         comment.
96717         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
96718         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
96719         comment.
96721 2006-07-08  Jim Meyering  <jim@meyering.net>
96723         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
96725 2006-07-07  Simon Josefsson  <jas@extundo.com>
96727         * tests/test-crc.c: Change expected crc value, the test vector
96728         were probably computed using the old broken crc.c?
96730 2006-07-06  Simon Josefsson  <jas@extundo.com>
96732         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
96733         now the canonical place for the M4 file).
96735         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
96736         from the sys_socket dependency now.
96738         * modules/inet_pton (Files): Ditto.
96740         * modules/inet_ntop (Files): Ditto.
96742 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
96744         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
96745         not gl_PREREQ_GETUSERSHELL.
96747 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96749         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
96750         with only one argument, for Autoconf 2.60.
96751         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
96752         expand to nothing, so add a shell command to avoid syntax error.
96753         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
96755 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96757         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
96759 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
96761         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
96762         no longer needed.  Check for isblank decl.
96763         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
96764         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
96765         of existence.
96767 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
96769         * lib/getloadavg.c: Use __VMS, not VMS.
96770         * lib/getopt.c: Likewise.
96771         * lib/getpagesize.h: Likewise.
96772         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
96773         and probably does not work.
96775 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
96777         * lib/.cppi-disable: Add wcwidth.
96778         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
96779         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
96780         (ISGRAPH): Remove.  All uses changed to isgraph.
96781         (FOLD) [!defined _LIBC]: Remove special case.
96782         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
96783         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
96784         HAVE_ISBLANK.
96785         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
96786         case.
96788 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
96790         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
96791         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
96792         brackets.  Other minor changes to suppress some compiler
96793         warnings.
96795 2006-07-06  Derek R. Price  <derek@ximbiot.com>
96796         and Paul Eggert  <eggert@cs.ucla.edu>
96798         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
96799         of invoking obsolescent AC_HEADER_DIRENT macro.
96800         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
96801         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
96802         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
96803         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
96804         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
96805         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
96806         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
96807         * m4/readdir.m4: Remove; no longer needed.
96809 2006-07-06  Derek R. Price  <derek@ximbiot.com>
96810         and Paul Eggert  <eggert@cs.ucla.edu>
96812         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
96813         Don't worry about this obsolete case any more.
96814         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
96815         directories.
96816         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
96817         worry about this obsolete case any more.
96818         * lib/fts.c: Likewise.
96819         * lib/getcwd.c: Likewise.
96820         * lib/glob.h: Likewise.
96821         * lib/savedir.c: Likewise.
96823 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
96825         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
96826         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
96827         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
96828         needed.
96829         All uses removed.
96830         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
96831         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
96832         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
96833         needed.
96834         * m4/getdate.m4 (gl_GETDATE): Likewise.
96835         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
96836         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
96837         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
96838         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
96839         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
96840         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
96841         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
96842         needed.
96844 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
96846         * lib/memcasecmp.c: Include <limits.h>.
96847         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
96848         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
96849         Don't assume isdigit succeeds only on '0' through '9'.
96851 2006-07-05  Eric Blake  <ebb9@byu.net>
96853         * modules/getaddrinfo (Depends-on): Add snprintf.
96855 2006-07-05  Eric Blake  <ebb9@byu.net>
96857         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
96858         to avoid 'header present but could not be compiled' on cygwin.
96860 2006-07-05  Eric Blake  <ebb9@byu.net>
96862         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
96863         missing from netdb.h.
96864         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
96866 2006-07-05  Derek R. Price  <derek@ximbiot.com>
96868         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
96869         no longer needed.
96870         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
96871         * m4/getdate.m4 (gl_GETDATE): Likewise.
96872         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
96873         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
96874         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
96875         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
96876         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
96878 2006-07-05  Derek R. Price  <derek@ximbiot.com>
96880         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
96881         All uses of is_space replaced by isspace.
96882         * lib/exit.h: Don't talk about STDC_HEADERS.
96883         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
96884         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
96885         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
96886         replaced by isprint etc.
96887         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
96888         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
96889         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
96890         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
96891         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
96892         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
96894 2006-07-05  Bruno Haible  <bruno@clisp.org>
96896         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
96897         the function exists, before testing against AIX.
96898         Reported by Martin Lambers <marlam@marlam.de>.
96900 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
96902         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
96903         From Mark D. Baushke.
96905 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
96907         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
96908         to the absolute name, not just one, to bypass Sun C 5.8's
96909         "warning: #include of /usr/include/... may be non-portable".
96911 2006-07-04  Eric Blake  <ebb9@byu.net>
96913         * modules/dirname-tests: New test module.
96914         * tests/test-dirname.c: New file, replacing dirname.c
96915         TEST_DIRNAME section that was recently deleted.
96917 2006-07-04  Bruno Haible  <bruno@clisp.org>
96919         Assume ANSI C header files and <ctype.h> functions.
96920         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
96921         (mbsnwidth): Use isprint, iscntrl instead.
96923 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
96925         Merge from coreutils.
96926         * MODULES.html.sh: Add xstrtold.
96927         * modules/xstrtold: New file.
96928         * modules/cycle-check (Files): Add lib/same-inode.h.
96929         * modules/dirname (Files): Add m4/double-slash-root.m4.
96930         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
96931         * modules/mkdir-p (Files): Add lib/same-inode.h.
96932         * modules/same (Files): Add lib/same-inode.h.
96934 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
96936         * m4/absolute-header.m4: Renamed from full-header-path.m4.
96937         This is to keep the terminology clean; POSIX talks about
96938         "absolute pathnames", not "full pathnames", but the GNU
96939         Coding Standards say to use "path" for something else;
96940         so use "absolute" to keep both sides happy.
96941         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
96942         Set gl_absolute_header, not gl_full_header_path.
96943         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
96944         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
96945         All uses changed.
96947         Merge from coreutils.
96949         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
96951         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
96952         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
96953         want to require the building of c-strtod.o.
96954         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
96955         needs -lm directly.
96956         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
96958         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
96960         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
96961         --as-needed option if available.  Problem reported by Albert Chin in
96962         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
96963         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
96964         cc merely issues a bunch of annoying warnings for --as-needed
96965         (this problem was reported by Bob Proulx).  Also, try linking with
96966         -lm to detect a bug in binutils 2.16 (this problem was reported
96967         by Ralf Wildenhues).
96969         2006-06-18  Jim Meyering  <jim@meyering.net>
96971         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
96972         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
96973         macro.
96974         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
96975         also check for glibc-2.4's abort-inducing bug.
96977         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
96978         Low-probability clean-up should be to use rmdir to get rid of
96979         the just-created directory, not unlink.
96981         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
96982         configure fail, and request a bug report to inform us about it.
96983         Add a comment that, barring reports to the contrary, in 2007 we'll
96984         assume ftruncate is universally available.
96986         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
96988         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
96990         2006-03-12  Jim Meyering  <jim@meyering.net>
96992         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
96993         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
96994         * m4/same.m4 (gl_SAME): Likewise.
96995         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
96997         2006-03-11  Eric Blake  <ebb9@byu.net>
96999         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
97000         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
97001         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
97002         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
97004 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97006         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
97007         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
97008         reported by Mark D. Baushke, one in
97009         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
97011         Merge from coreutils.
97013         * lib/.cppi-disable: Add stdint_.h.
97014         * lib/.cvsignore: Add stdint.h.
97016         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
97018         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
97019         both double and long double versions.
97020         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
97021         * lib/xstrtold.c: New file.
97022         * lib/xstrtod.h (xstrtold): New decl.
97024         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
97026         * lib/filemode.c (setst): Remove.
97027         (strmode): Rewrite to avoid setst.  This makes the code shorter,
97028         (arguably) clearer, and the generated code is a bit smaller on my
97029         Debian GNU/Linux stable x86 host.
97031         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
97033         * lib/filemode.c: Include "filemode.h" first, to test the interface.
97034         Assume that filemode.h includes sys/types.h and sys/stat.h.
97035         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
97036         (ftypelet): Reorder to put common cases first, for efficiency.
97037         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
97038         to do 'M'.
97039         (strmode): Renamed from mode_string, and now stores 12 bytes instead
97040         of 10, for compatibility with FreeBSD.  All callers changed.
97041         (filemodestring): Now stores 12 bytes instead of 10, and sets file
97042         types that can't be deduced solely from st_mode.  First arg is now a
97043         const pointer.
97044         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
97045         (strmode): Renamed from mode_string.
97046         (filemodestring): New decl.
97047         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
97048         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
97049         needed.
97050         (S_ISPORT, S_ISWHT): New macros, if not already defined.
97052         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
97054         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
97055         fsusage.h now does that.  Include fsusage.h first, to test interface.
97056         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
97057         at most one method (the old code could have generated decls that
97058         didn't conform to C89, not that this was ever exercised).
97059         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
97061         2006-03-19  Jim Meyering  <jim@meyering.net>
97063         Work even in a chroot where d_ino values for entries in "/"
97064         don't match the stat.st_ino values for the same names.
97065         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
97066         number, iterate through all entries again, using lstat instead.
97067         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
97068         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
97070         * lib/getcwd.c (__getcwd): Clarify a comment.
97071         Use memcpy in place of a call to strcpy.
97073         2006-03-12  Jim Meyering  <jim@meyering.net>
97075         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
97076         matches that of the current directory (which we're about to chdir ".."
97077         out of), then save the dev-ino of the parent, instead.
97079         * lib/same-inode.h (SAME_INODE): New file/macro.
97080         * lib/chdir-safer.c (SAME_INODE): Remove definition.
97081         Include "same-inode.h", instead.
97082         * lib/same.c: Likewise.
97083         * lib/cycle-check.h: Include "same-inode.h".
97084         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
97085         * lib/cycle-check.c (SAME_INODE): Remove definition.
97086         * lib/root-dev-ino.h: Include "same-inode.h".
97088         2006-03-11  Eric Blake  <ebb9@byu.net>
97090         * lib/same.c (same_name): s/base_name/last_component/
97091         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
97092         * lib/filenamecat.c (file_name_concat): Likewise.
97094         2006-03-11  Eric Blake  <ebb9@byu.net>,
97095                     Paul Eggert  <eggert@cs.ucla.edu>
97097         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
97098         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
97099         drive prefix.
97100         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
97101         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
97102         (last_component): New method.
97103         * lib/dirname.c (dir_len): Determine when drive letters need a
97104         subsequent slash.  Preserve // when it is special.
97105         (dir_name): Don't append dot when drive letter is absolute.
97106         [TEST_DIRNAME]: Move into a full-blown gnulib test.
97107         * lib/basename.c (base_name): New semantics - malloc the result.
97108         Preserve // when it is special.  Preserve relative files that look
97109         like drive letters.
97110         (base_len): Preserve // when it is special.
97111         (last_component): New method, similar to old base_name semantics.
97112         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
97113         base_name.  Strip redundant slashes from ///.
97115 2006-07-03  Jim Meyering  <jim@meyering.net>
97117         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
97118         macro is used before the first cycle_check call.
97120 2006-07-03  Eric Blake  <ebb9@byu.net>
97122         * modules/dirname (Depends-on): Add xstrndup.
97124 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
97126         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
97127         test cases, so that config.log is a bit easier to follow.
97129 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
97131         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
97132         both are 64 bits, since this seems to be the tradition, and this
97133         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
97134         we ever run into a host that prefers long long to long in this
97135         case, we'll need another configure-time test.  Problem reported by
97136         Jim Meyering.
97138 2006-07-02  Eric Blake  <ebb9@byu.net>
97140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
97142 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
97144         * modules/inttypes (Depends-on): No longer depends on stdint.
97145         * modules/stdint (Description): Say more about assumptions.
97146         Say that the fast types might differ.  Say macros are used.
97147         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
97148         (Makefile.am): Revise list of substituted symbols to match
97149         new stdint.m4.
97150         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
97151         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
97152         * tests/test-stdint.c (verify_same_types)
97153         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
97154         the code conforms to C99/C89.
97155         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
97156         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
97158 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
97160         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
97161         but fix a bug, by requiring at least 64 bits.
97162         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
97163         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
97164         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
97165         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97167         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
97168         changes.  Make 2.59 a prerequisite.  Check and substitute for
97169         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
97170         inttypes.h.  Do not use special include files; just use the
97171         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
97172         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
97173         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
97174         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
97175         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
97176         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
97177         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
97178         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
97179         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
97180         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
97181         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
97182         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
97183         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
97184         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
97185         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
97186         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
97187         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
97188         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
97189         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
97190         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
97191         WINT_MAX.  Check for C99 conformance more strictly, by detecting
97192         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
97193         not check for things that C99 does not require, e.g., int8_t.  If
97194         a test isn't needed unless <stdint.h> isn't working, and is
97195         unlikely to be needed for any other reason, then don't do it
97196         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
97197         size_t, since we assume C89 freestanding at least.  Do not check
97198         for sig_atomic_t, wchar_t, or wint_t, since the code now does
97199         the right thing even if the types are not defined.  Instead use:
97200         (gl_STDINT_TYPE_PROPERTIES): New macro.
97201         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
97202         testing whether <sys/types.h> clashes, as Autoconf does this for
97203         us now.  All uses removed.
97204         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
97205         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
97206         (gl_CHECK_TYPE_SAME):
97207         Remove; no longer needed.
97208         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
97209         exists, since we'll return 0 anyway in that case.
97210         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
97212 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
97214         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
97215         possible collision with system files.
97216         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
97217         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
97218         WCHAR_MIN and WCHAR_MAX in this case.
97219         (<stddef.h>): Do not include; no longer needed.
97220         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
97221         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
97222         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
97223         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
97224         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
97225         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
97226         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
97227         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
97228         !defined(__c99))]: Include in this case too, since it's harmless
97229         now.
97230         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
97231         dangerous to do so.
97232         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
97233         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
97234         (_STDINT_MIN, _STDINT_MAX): New macros.
97235         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
97236         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
97237         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
97238         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
97239         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
97240         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
97241         macros, not typedefs; this simplifies things quite a bit.
97242         Use long int for all types narrower than int64_t.
97243         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
97244         Define in terms of long long int or int64_t or long int,
97245         not int64_t or int32_t.  This saves some compile-time testing.
97246         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
97247         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
97248         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
97249         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
97250         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
97251         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
97252         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
97253         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
97254         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
97255         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
97256         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
97257         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
97258         undef any previous version and define our own version, for
97259         simplicity and consistency with the new macros for types.
97260         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
97261         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
97262         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
97263         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
97264         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
97265         @WINT_T_SUFFIX@ to keep things simple here.
97266         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
97267         Simplify by assuming typical 8/16/32/64 host, since we're
97268         already doing that elsewhere anyway.
97269         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
97270         and assume long long int is 64 bits if available.  This
97271         speeds up 'configure'.
97273 2006-07-01  Eric Blake  <ebb9@byu.net>
97275         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
97276         Reported by Andreas Buening.
97278 2006-07-01  Eric Blake  <ebb9@byu.net>
97280         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
97282 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
97284         * lib/getaddrinfo.c: fixed typo
97286 2006-06-29  Jim Meyering  <jim@meyering.net>
97288         * modules/strftime (Maintainer): Add my name, since with the
97289         FPRINTFTIME changes strftime.c has forked from glibc.
97291 2006-06-29  Eric Blake  <ebb9@byu.net>
97293         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
97295 2006-06-29  Eric Blake  <ebb9@byu.net>
97297         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
97299 2006-06-29  Eric Blake  <ebb9@byu.net>
97301         * lib/stat_.h: New file.
97303 2006-06-29  Eric Blake  <ebb9@byu.net>
97305         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
97306         unused static function.
97308 2006-06-29  Eric Blake  <ebb9@byu.net>
97310         * doc/functions.texi (Function Portability): Document missing lstat
97311         on mingw.
97313 2006-06-29  Eric Blake  <ebb9@byu.net>
97315         * MODULES.html.sh: Add sys_stat.
97316         * modules/sys_stat: New module.
97317         * modules/mkstemp (Depends-on): Add sys_stat.
97319 2006-06-29  Derek R. Price  <derek@ximbiot.com>
97321         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
97323 2006-06-29  Derek R. Price  <derek@ximbiot.com>
97325         * m4/c-bs-a.m4: Removed.
97327 2006-06-29  Derek R. Price  <derek@ximbiot.com>
97329         * lib/strftime.c: Assume strftime() exists.
97331 2006-06-29  Derek Price  <derek@ximbiot.com>
97333         * modules/c-bs-a: Removed - \a is C89.
97334         * MODULES.html.sh: Remove c-bs-a.
97336 2006-06-29  Bruno Haible  <bruno@clisp.org>
97338         * modules/wcwidth (License): Change to LGPL.
97340 2006-06-28  Simon Josefsson  <jas@extundo.com>
97342         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
97343         on _WIN32.
97345         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
97346         getnameinfo.
97348 2006-06-28  Simon Josefsson  <jas@extundo.com>
97350         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
97352 2006-06-28  Simon Josefsson  <jas@extundo.com>
97354         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
97355         functions there.  It will succeed on Windows XP, but on Windows
97356         2000 and (presumably) earlier, it will fail, and use the internal
97357         re-implementation.
97358         (use_win32_p): New function.
97359         (getaddrinfo): Use strtoul on servname, to support numeric ports.
97360         Support AI_NUMERICSERV to disable getservbyname.
97361         (getnameinfo): New function, only supports
97362         NI_NUMERICHOST|NI_NUMERICSERV for now.
97364         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
97365         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
97366         getnameinfo.
97368 2006-06-28  Eric Blake  <ebb9@byu.net>
97370         * modules/wcwidth: New file.
97371         * modules/mbchar (Depends-on): Add wcwidth.
97372         * modules/mbswidth (Depends-on): Add wcwidth.
97373         * MODULES.html.sh: Add wcwidth.
97375 2006-06-28  Eric Blake  <ebb9@byu.net>
97377         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
97378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
97380 2006-06-28  Eric Blake  <ebb9@byu.net>
97382         * lib/xvasprintf.h: Fix comments.
97384 2006-06-28  Eric Blake  <ebb9@byu.net>
97386         * lib/mbchar.h (wcwidth): Include wcwidth.h.
97387         * lib/mbswidth.c (wcwidth): Move from here...
97388         * lib/wcwidth.h: ...to this new file.
97390 2006-06-28  Derek R. Price  <derek@ximbiot.com>
97392         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
97394         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
97395         it's obsolete.
97396         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
97398 2006-06-28  Derek R. Price  <derek@ximbiot.com>
97400         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
97401         Autoconf 2.60 says this stuff was obsolete.
97403 2006-06-28  Bruno Haible  <bruno@clisp.org>
97405         * modules/wcwidth (Files): Add m4/wchar_t.m4.
97407 2006-06-28  Bruno Haible  <bruno@clisp.org>
97409         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
97410         gt_TYPE_WCHAR_T.
97412 2006-06-28  Bruno Haible  <bruno@clisp.org>
97414         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
97415         declaration for wcwidth.
97416         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
97418 2006-06-28  Bruno Haible  <bruno@clisp.org>
97420         * lib/mkdtemp.c [MINGW]: Include <io.h>.
97421         (mkdir): Define using _mkdir.
97423 2006-06-28  Bruno Haible  <bruno@clisp.org>
97425         * lib/getaddrinfo.h: Fix POSIX URL.
97426         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
97427         _WIN32.
97428         (use_win32_p): Make static.
97429         (getaddrinfo): Reject service name if it is empty or does not consist
97430         solely of decimal digits, or if its value is > 65535.
97431         (getnameinfo): Remove useless casts.
97433 2006-06-27  Simon Josefsson  <jas@extundo.com>
97435         * modules/sys_select: New file, suggested by Bruno Haible, Paul
97436         Eggert and Martin Lambers.
97438 2006-06-27  Simon Josefsson  <jas@extundo.com>
97440         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
97441         Eggert and Martin Lambers.
97443 2006-06-27  Bruno Haible  <bruno@clisp.org>
97445         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
97446         result to 0, not to empty.
97447         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
97449 2006-06-27  Bruno Haible  <bruno@clisp.org>
97451         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
97453 2006-06-26  Simon Josefsson  <jas@extundo.com>
97455         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
97456         present.
97458 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
97460         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
97461         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
97462         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
97464 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
97466         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
97468 2006-06-26  Bruno Haible  <bruno@clisp.org>
97470         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
97472 2006-06-26  Bruno Haible  <bruno@clisp.org>
97474         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
97476 2006-06-26  Bruno Haible  <bruno@clisp.org>
97478         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
97479         SGI C compiler in pre-C99 mode.
97480         Suggested by Mark D. Baushke and Larry Jones.
97482 2006-06-26  Bruno Haible  <bruno@clisp.org>
97484         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
97485         WCHAR_MAX.
97486         Reported by Mark D. Baushke and Larry Jones.
97488 2006-06-26  Bruno Haible  <bruno@clisp.org>
97490         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
97491         in pre-C99 mode.
97492         Suggested by Mark D. Baushke and Larry Jones.
97494 2006-06-23  Simon Josefsson  <jas@extundo.com>
97495             Bruno Haible  <bruno@clisp.org>
97497         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
97498         Emit mostlyclean-local rule.
97499         (func_emit_tests_Makefile_am): Likewise.
97500         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
97502 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
97504         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
97506 2006-06-23  Bruno Haible  <bruno@clisp.org>
97508         * tests/test-stdint.c: Update to match ISO C 99 Technical
97509         Corrigendum 1.
97511 2006-06-23  Bruno Haible  <bruno@clisp.org>
97513         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
97515 2006-06-23  Bruno Haible  <bruno@clisp.org>
97517         * lib/stdint_.h: Treat IRIX like OpenBSD.
97519 2006-06-23  Bruno Haible  <bruno@clisp.org>
97521         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
97522         ISO C 99 Technical Corrigendum 1.
97524 2006-06-22  Simon Josefsson  <jas@extundo.com>
97526         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
97527         MinGW.
97529 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
97531         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
97532         needed.  Some compiler complained about some of them.  Problem reported
97533         by Larry Jones in
97534         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
97536 2006-06-21  Simon Josefsson  <jas@extundo.com>
97538         * tests/test-getaddrinfo.c: New file.
97540         * modules/getaddrinfo-tests: New file.
97542         * MODULES.html.sh: Add inet_pton.
97544         * modules/inet_pton: New file.
97546 2006-06-21  Simon Josefsson  <jas@extundo.com>
97548         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
97549         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
97550         of using the (limited) gnulib implementation on Windows XP.
97552         * m4/inet_pton.m4: New file.
97554 2006-06-21  Simon Josefsson  <jas@extundo.com>
97556         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
97557         variable.
97559         * lib/socket_.h: Don't define WINVER.
97561         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
97562         slightly modified to work in gnulib.
97564 2006-06-21  Simon Josefsson  <jas@extundo.com>
97566         * doc/gnulib.texi (Windows sockets): Add.
97568 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
97570         * lib/read-file.c (fread_file): Start with buffer allocation of
97571         0 bytes rather than 1 byte; this simplifies the code.
97572         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
97573         code to free buffer and save/restore errno.
97574         (internal_read_file): Remove unused local.
97576 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
97578         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
97579         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
97580         Problem reported by Denis Excoffier in
97581         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
97583 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97585         * modules/sys_socket, modules/socklen: Include sys/types since
97586         FreeBSD 4.x's sys/socket.h needs it.
97588 2006-06-19  Simon Josefsson  <jas@extundo.com>
97590         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
97592 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
97594         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
97596 2006-06-19  Bruno Haible  <bruno@clisp.org>
97598         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
97599         and FULL_PATH_INTTYPES_H in angle brackets.
97600         Reported by Mark D. Baushke <mdb@gnu.org>.
97602 2006-06-17  Eric Blake  <ebb9@byu.net>
97604         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
97605         errno.
97607 2006-06-17  Bruno Haible  <bruno@clisp.org>
97609         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
97610         <sys/inttypes.h>.
97612 2006-06-17  Bruno Haible  <bruno@clisp.org>
97614         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
97615         whether errno is declared. Assume <errno.h> declares errno.
97617 2006-06-17  Bruno Haible  <bruno@clisp.org>
97619         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
97621 2006-06-17  Bruno Haible  <bruno@clisp.org>
97623         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
97624         problem on Solaris 2.5.1.
97626 2006-06-16  Eric Blake  <ebb9@byu.net>
97628         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
97629         * lib/unicodeio.c [!defined errno]: Likewise.
97630         * lib/strtol.c [!defined errno]: Likewise.
97631         * lib/strtod.c [!defined errno]: Likewise.
97633 2006-06-15  Eric Blake  <ebb9@byu.net>
97635         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
97637 2006-06-15  Eric Blake  <ebb9@byu.net>
97639         * config/srclist.txt (ssize_t.m4): Lose sync.
97641 2006-06-15  Bruno Haible  <bruno@clisp.org>
97643         * modules/stdint (Files): Include m4/full-header-path.m4,
97644         m4/size_max.m4, m4/wchar_t.m4.
97645         (Makefile.am): Many more substitutions.
97646         * modules/stdint-tests: New file.
97647         * tests/test-stdint.c: New file.
97649 2006-06-15  Bruno Haible  <bruno@clisp.org>
97651         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
97652         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
97653         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
97654         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
97655         gl_CHECK_TYPE_SAME): New macros.
97657 2006-06-15  Bruno Haible  <bruno@clisp.org>
97659         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
97661 2006-06-15  Bruno Haible  <bruno@clisp.org>
97663         * lib/stdint_.h: Rewritten to be fully auto-configured.
97664         Fixes bug on HP-UX/IA64.
97666 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
97668         * lib/getdate.y (__attribute__): Don't define if already defined.
97669         Problem reported by Larry Jones.
97670         * lib/utimens.c (__attribute__): Likewise.
97672 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
97674         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
97675         reported by Andreas Schwab.
97677 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97678             Bruno Haible  <bruno@clisp.org>
97680         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
97681         check for the declaration of strnlen and a run test that exposes the
97682         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
97683         rpl_strndup.
97685 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97686             Bruno Haible  <bruno@clisp.org>
97688         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
97690 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97692         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
97693         compile test, for Tru64 4.0D.
97695 2006-05-28  Karl Berry  <karl@gnu.org>
97697         * config/srclist.txt (printf-args.c): lose sync.
97699 2006-05-26  Martin Lambers  <marlam@marlam.de>
97701         * lib/getpass.c: Updates the test for the native W32 API, and adds
97702         missing includes, thus fixing compilation warnings.
97704 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
97706         * lib/exclude.c (exclude_fnmatch): New function.
97707         (excluded_file_name): Call exclude_fnmatch.
97708         * lib/exclude.h (excluded_file_name): New prototype
97710 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
97712         * lib/tempname.c (small_open, large_open): New macros.
97713         (__open, __open64) [!_LIBC]: Remove.
97714         (__gen_tempname): Use small_open and large_open instead of __open
97715         and __open64.  This fixes a portability bug on HP-UX 11.11i
97716         reported by Simon Wing-Tang in
97717         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
97719 2006-05-24  Bruno Haible  <bruno@clisp.org>
97721         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
97722         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
97723         Reported by Thorsten Maerz <torte@netztorte.de> via
97724         Aaron Stone <aaron@serendipity.cx>.
97726 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
97728         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
97729         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
97730         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
97731         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
97732         not really conditional on the cache.
97733         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
97735 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
97737         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
97738         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
97739         (my_usleep): Don't mishandle maximum value.
97741 2006-05-19  Jim Meyering  <jim@meyering.net>
97743         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
97745 2006-05-17  Bruno Haible  <bruno@clisp.org>
97747         Cygwin portability.
97748         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
97750 2006-05-17  Bruno Haible  <bruno@clisp.org>
97752         * lib/stdint_.h: Fix recognition of Cygwin.
97754 2006-05-15  Bruno Haible  <bruno@clisp.org>
97756         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
97757         on libtool patch by Ralf Wildenhues.
97759 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
97761         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
97762         test for C99 conformance; (bool) 0.5 is an integer constant
97763         expression, but (bool) -0.5 is not.  Problem reported by Fedor
97764         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
97766 2006-05-11  Simon Josefsson  <jas@extundo.com>
97768         * m4/xvasprintf.m4: Fix obvious typo.
97770 2006-05-11  Jim Meyering  <jim@meyering.net>
97772         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
97773         James Lemley.
97775 2006-05-10  Simon Josefsson  <jas@extundo.com>
97777         * lib/md4.c: Typo fix, update copyright years.
97778         (K1, K2): Don't use L because it turn computations into 64-bit on
97779         64-bit platforms.
97781 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
97783         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
97784         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
97785         unwanted sign propagation, e.g., on hosts with 64-bit int.
97786         There still are some problems with reeelly weird theoretical hosts
97787         (e.g., 33-bit int) but it's not worth worrying about now.
97788         * lib/sha1.c (rol): Likewise.
97789         (K1, K2, K3, K4): Remove unnecessary L suffix.
97791 2006-05-10  Bruno Haible  <bruno@clisp.org>
97793         * lib/des.c: Cast to avoid warnings.
97795 2006-05-09  Bruno Haible  <bruno@clisp.org>
97797         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
97798         (Depends-on): Depend also on xsize, stdarg.
97799         (configure.ac): Add gl_XVASPRINTF.
97801 2006-05-09  Bruno Haible  <bruno@clisp.org>
97803         * m4/xvasprintf.m4: New file.
97805 2006-05-09  Bruno Haible  <bruno@clisp.org>
97807         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
97808         (EOVERFLOW): Define fallback value.
97809         (xstrcat): New function.
97810         (xvasprintf): Recognize the special case of a string concatenation.
97812 2006-05-08  Eric Blake  <ebb9@byu.net>
97814         * gnulib-tool (func_version): Base copyright year on CVS date.
97815         (func_emit_copyright_notice): New function.
97816         (func_emit_lib_Makefile_am): Use it.
97817         (func_emit_tests_Makefile_am): Likewise.
97818         (func_import): Likewise.
97820 2006-05-08  Bruno Haible  <bruno@clisp.org>
97822         * modules/stdarg: New file.
97823         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
97825 2006-05-08  Bruno Haible  <bruno@clisp.org>
97827         * m4/stdarg.m4: New file, from GNU gettext.
97829 2006-05-08  Bruno Haible  <bruno@clisp.org>
97831         * config/srclist.txt (build-aux/config.rpath): different from latest
97832         release.
97834 2006-05-08  Bruno Haible  <bruno@clisp.org>
97836         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
97838 2006-05-05  Jim Meyering  <jim@meyering.net>
97840         * m4/warning.m4: New file, derived from bison's file by the same name.
97842 2006-05-03  Bruno Haible  <bruno@clisp.org>
97844         * lib/stdint_.h: Shorter URL.
97845         * lib/inttypes.h: Likewise.
97847 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
97849         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
97851 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
97853         * lib/verify.h: Document the internals better.  Most of this change
97854         was written by Bruno Haible.
97856 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
97858         * doc/verify.texi: New file, partly based on a proposal by
97859         Bruno Haible.
97861 2006-05-02  Bruno Haible  <bruno@clisp.org>
97863         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
97864         test from here...
97865         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
97867 2006-04-29  Bruno Haible  <bruno@clisp.org>
97869         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
97870         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
97872 2006-04-29  Bruno Haible  <bruno@clisp.org>
97874         * gnulib-tool: Make --update option actually work.
97876 2006-04-29  Bruno Haible  <bruno@clisp.org>
97878         * doc/gcd.texi: New file.
97879         * doc/gnulib.texi: Include it.
97881 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
97883         * lib/getdate.y (get_date): When adding relative date, start with the
97884         initial time, not with the result of the first mktime call.
97886 2006-04-25  Bruno Haible  <bruno@clisp.org>
97888         * gnulib-tool (func_import): Output the include directives in three
97889         blocks, sorted separately.
97890         Reported by Ben Pfaff <blp@cs.stanford.edu>.
97892 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
97894         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
97895         to define main with arguments, for C++.  Reported by Eric Blake.
97896         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
97897         Prefer 'int main ()' to 'int main (void)', for C++.
97898         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
97899         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
97900         for 'main', for C99 and C++.
97902 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
97904         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
97905         Don't assume that exit status -1 is valid.
97906         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
97907         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
97908         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
97909         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
97910         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
97911         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
97912         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
97913         functions can be used without declaring them, or that you can
97914         exit with status -1.
97915         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
97917 2006-04-24  Karl Berry  <karl@gnu.org>
97919         * config/srclist.txt (longdouble.m4): sync lost.
97921 2006-04-24  Eric Blake  <ebb9@byu.net>
97923         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
97925 2006-04-24  Bruno Haible  <bruno@clisp.org>
97927         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
97928         poll() implementation in AIX.
97929         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97931 2006-04-24  Bruno Haible  <bruno@clisp.org>
97933         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
97934         assigned exactly once.
97936 2006-04-23  Claudio Fontana  <claudio@gnu.org>
97937             Bruno Haible  <bruno@clisp.org>
97939         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
97940         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
97941         for AM_CPPFLAGS.
97943 2006-04-23  Bruno Haible  <bruno@clisp.org>
97945         * modules/copy-file: Depend on unistd.
97946         * modules/execute: Likewise.
97947         * modules/fatal-signal: Likewise.
97948         * modules/findprog: Likewise.
97949         * modules/mkdtemp : Likewise.
97950         * modules/pipe: Likewise.
97951         * modules/wait-process: Likewise.
97953 2006-04-23  Bruno Haible  <bruno@clisp.org>
97955         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
97956         condition was already detected.
97957         Reported by Ben Pfaff <blp@cs.stanford.edu>.
97959 2006-04-23  Bruno Haible  <bruno@clisp.org>
97961         * lib/copy-file.c: Include <unistd.h> unconditionally.
97962         * lib/execute.c: Likewise.
97963         * lib/fatal-signal.c: Likewise.
97964         * lib/findprog.c: Likewise.
97965         * lib/mkdtemp.c: Likewise.
97966         * lib/pipe.h: Likewise.
97967         * lib/pipe.c: Likewise.
97968         * lib/wait-process.h: Likewise.
97970 2006-04-23  Bruno Haible  <bruno@clisp.org>
97972         * gnulib-tool (func_usage): Fix --import description. Document
97973         --update.
97974         (func_import): Create temporary file in a temporary directory, if
97975         --dry-run is specified. Silence errors from 'grep' when there are no
97976         m4 files in $m4dir.
97977         (func_create_testdir): Silence errors from 'grep' when there are no
97978         m4 files in $m4dir.
97979         Reported by Karl Berry <karl@freefriends.org>.
97981 2006-04-20  Bruno Haible  <bruno@clisp.org>
97983         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
97984         one argument, so that the code will be portable to Autoconf 2.60.
97985         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
97986         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
97987         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
97989 2006-04-19  Derek Price  <derek@ximbiot.com>
97990             Eric Blake  <ebb9@byu.net>
97992         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
97993         rather than "/full/path.h".  Update comment to match.  Shorten &
97994         generalize m4_translit call via AS_TR_CPP.
97996 2006-04-19  Derek Price  <derek@ximbiot.com>
97997             Eric Blake  <ebb9@byu.net>
97999         * lib/inttypes.h: Correct grammar in comment.
98001 2006-04-18  Derek Price  <derek@ximbiot.com>
98002             Paul Eggert  <eggert@cs.ucla.edu>
98004         * modules/inttypes: New file.
98005         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
98007 2006-04-18  Derek Price  <derek@ximbiot.com>
98008             Paul Eggert  <eggert@cs.ucla.edu>
98010         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
98011         New files.
98013 2006-04-18  Derek Price  <derek@ximbiot.com>
98014             Paul Eggert  <eggert@cs.ucla.edu>
98016         * lib/inttypes.h: New file.
98017         * lib/strtoimax.c: Assume <inttypes.h>.
98019 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
98021         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
98022         isn't mounted.  Problem reported by Kir Kolyshkin.
98024 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
98026         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
98027         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
98028         Derek R. Price.
98029         * lib/regex.h (RE_DUP_MAX): Update comment to match current
98030         implementation.
98032 2006-04-12  Eric Blake  <ebb9@byu.net>
98034         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
98035         is now done automatically by the corresponding Autoconf macro.
98037 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
98039         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
98040         time_r.h.
98042 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98044         Merge regex changes from libc, removing some of our
98045         POSIX-conformance changes that were rejected and redoing them in a
98046         less-intrusive way.
98048         * lib/regcomp.c (re_compile_internal, init_dfa):
98049         Length arg is now size_t, not Idx.  All uses changed.
98050         (peek_token): Forward decl now says internal_function.
98051         (__re_error_msgid, __re_error_msgid_idx):
98052         Now static rather than extern with attribute_hidden.
98053         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
98054         For some reason libc prefers K&R style defns for external functions.
98055         (regerror) [!defined _LIBC]: Likewise.
98056         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
98057         (seek_collating_symbol_entry, lookup_collation_sequence_value):
98058         (build_range_exp, build_collating_symbol):
98059         Use K&R-style defn.
98060         (re_compile_fastmap): Use '\0' to memset, not 0.
98061         (utf8_sb_map): Make the calculations more obvious.
98062         (init_dfa, parse_bracket_exp, build_charclass_op):
98063         Call calloc and cast result, as glibc does.
98064         (init_word_char, fetch_token, peek_token, peek_token_bracket):
98065         (build_range_exp, build_collating_symbol):
98066         Now internal functions.
98068         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
98070         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
98071         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
98072         Don't depend on VMS; depend on __VMS instead, for POSIX
98073         namespace cleanness.
98074         (regoff_t): Define to ssize_t, not long int.
98076         Remove the REG_ macros named below.  Instead, make the old names
98077         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
98078         __USE_GNU_REGEX.
98079         (REG_BACKSLASH_ESCAPE_IN_LISTS):
98080         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
98081         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
98082         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
98083         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
98084         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
98085         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
98086         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
98087         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
98088         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
98089         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
98090         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
98091         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
98092         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
98093         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
98094         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
98095         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
98096         (REG_NREGS):
98097         Remove.  All uses replaced by the old RE_* names.
98098         (RE_BACKSLASH_ESCAPE_IN_LISTS):
98099         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
98100         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
98101         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
98102         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
98103         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
98104         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
98105         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
98106         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
98107         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
98108         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
98109         Don't bother having these macros be independent of each others'
98110         values, since they no longer exist in the POSIX name space.
98112         Rename the following member names back to their old names,
98113         unless !__USE_GNU_REGEX.  All uses changed back.
98114         (buffer): Renamed from re_buffer.
98115         (allocated): Renamed from re_allocated.
98116         (used): Renamed from re_used.
98117         (syntax): Renamed from re_syntax.
98118         (fastmap): Renamed from re_fastmap.
98119         (translate): Renamed from re_translate.
98120         (can_be_null): Renamed from re_can_be_null.
98121         (regs_allocated): Renamed from re_regs_allocated.
98122         (fastmap_accurate): Renamed from re_fastmap_accurate.
98123         (no_sub): Renamed from re_no_sub.
98124         (not_bol): Renamed from re_not_bol.
98125         (not_eol): Renamed from re_not_eol.
98126         (newline_anchor): Renamed from re_newline_anchor.
98127         (num_regs): Renamed from rm_num_regs.
98128         (start): Renamed from rm_start.
98129         (end): Renamed from rm_end.
98131         (free_state): Move up a bit.
98133         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
98134         #define to be empty.
98135         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
98136         when that is what is intended.
98137         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
98138         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
98139         (MAX): New macro.
98140         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
98141         All uses changed back to re_malloc, etc.  It's now the caller's
98142         responsibility to check for overflow; all callers changed.
98143         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
98144         (re_x2nrealloc): Remove.
98145         (free_state): Remove decl.
98147         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
98148         (re_set_registers, re_exec):
98149         Use K&R-style defn.
98151         2006-01-31  Roland McGrath  <roland@redhat.com>
98153         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
98154         Reported by Mike Frysinger <vapier@gentoo.org>.
98156         2006-01-15  Andreas Jaeger  <aj@suse.de>
98158         [BZ #1950]
98159         * lib/regex_internal.c (re_string_reconstruct): Adjust for
98160         build_wcs_upper_buffer change.
98161         (build_wcs_upper_buffer): Change return type.
98163         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
98165         * lib/regex_internal.h: Include <stdint.h> if available.
98167         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
98169         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
98171         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
98173         * lib/regcomp.c: Adjust for changed secondary hash function.
98175         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
98177         * lib/regex.h: Pretty printing.
98178         Clean up namespace a bit.
98180         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
98182         * lib/regexec.c (update_cur_sifted_state, check_arrival,
98183         check_arrival_add_next_nodes): Avoid using uninitialized variable.
98185         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98186                     Ulrich Drepper  <drepper@redhat.com>
98188         [BZ #1302]
98189         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
98190         changed.
98191         (bitset_word_t): Renamed from bitset_word.  All uses changed.
98193         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
98195         [BZ #281]
98196         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
98197         * lib/regcomp.c: Remove unnecessary uses of
98198         unsigned RE_TRANSLATE_TYPE.
98199         * lib/regex_internal.h: Likewise.
98200         * lib/regex_internal.c: Likewise.
98201         * lib/regexec.c: Likewise.
98202         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
98204         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
98206         * lib/regexec.c (find_recover_state): Remove unnecessary
98207         initialization.
98208         (transit_state_bkref): Make DFA a const pointer.
98209         (get_subexp): Likewise.
98210         (check_arrival): Likewise.
98211         (update_cur_sifted_state): Likewise.
98212         (re_search_internal): Likewise.
98213         (prune_impossible_nodes): Likewise.
98214         (acquire_init_state_context): Likewise.
98215         (proceed_next_node): Likewise.
98216         (set_regs): Likewise.
98217         (free_fail_stack_return): Likewise.
98218         (check_arrival_expand_ecl): Mark DFA parameter as const.
98219         (check_arrival_expand_ecl_sub): Likewise.
98220         (check_subexp_limits): Likewise.
98221         (sub_epsilon_src_nodes):  Likewise.
98222         (add_epsilon_src_nodes):  Likewise.
98223         (merge_state_array): Likewise.
98224         (update_regs): Likewise.
98225         (build_trtable): Likewise.
98226         (sift_states_backward): Mark MCTX parameter as const.
98227         (build_sifted_states): Likewise.
98228         (update_cur_sifted_state): Likewise.
98229         (sift_states_mkref): Likewise.
98230         (check_arrival_expand_ecl): Mark eclosure as const.
98231         (check_dst_limits_calc_pos_1): Likewise.
98232         * lib/regex_internal.h (re_match_context_t): Make dfa a const
98233         pointer.
98235         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
98237         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
98238         (transit_state_sb): Likewise.
98239         (transit_state_mb): Likewise.
98240         (sift_states_iter_mb): Likewise.
98241         (check_arrival_add_next_nodes): Likewise.
98242         (check_node_accept_bytes): Change first parameter to pointer-to-const.
98243         [_LIBC] (re_search_2_stub): Use mempcpy.
98245         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
98246         mbrtowc for very simple UTF-8 case.
98248         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
98249         a pointer-to-const.
98250         (re_acquire_state_context): Likewise.
98251         * lib/regex_internal.h: Adjust prototypes.
98253         * lib/regex.c: Prevent using C++ compilers.
98255         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
98256         (re_acquire_state_context): Likewise.
98258 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98260         * modules/regex (Depends-on): Add ssize_t.
98262 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98264         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
98265         translation table.
98267 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98269         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
98271 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
98272             Bruno Haible  <bruno@clisp.org>
98274         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
98275         <sys/types.h> and <inttypes.h>.
98277 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98279         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
98280         `__error_t_defined', so argp.h will not typedef the former.
98282 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
98284         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
98285         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
98286         glibc names.  Even if glibc is changed to conform to POSIX, the
98287         traditional names will be available anyway, since regex depends on
98288         the extensions module.  Also, fix a longstanding typo in the
98289         implementation of Spencer ERE test #75 from grep 2.3.  Problems
98290         reported by Emanuele Giaquinta.  Also, change sense of cached
98291         variable, so that the message makes sense.
98293 2006-03-24  Simon Josefsson  <jas@extundo.com>
98295         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
98296         including some doc fixes.
98297         (base64_encode_alloc): Fix +1 bug on allocation failures.
98299 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98301         * lib/base64.c (base64_encode): Do not read past end of array with
98302         unsanitized input on systems with CHAR_BIT > 8.
98304 2006-03-24  Eric Blake  <ebb9@byu.net>
98306         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
98308 2006-03-22  Karl Berry  <karl@gnu.org>
98310         * config/srclist.txt (*setenv.[ch]): get from coreutils.
98311         * config/srclistvars.sh (COREUTILS): new var.
98313 2006-03-17  Jim Meyering  <jim@meyering.net>
98315         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
98316         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
98318 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
98320         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
98321         no longer needs it.  Instead, check that regoff_t is as least
98322         as wide as ptrdiff_t.
98324         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
98325         so that our regex.h stays compatible with the installed regex.
98326         This is helpful for installers who configure --without-included-regex.
98327         Problem reported by Emanuele Giaquinta.
98329 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
98331         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
98332         Typedef to long int, not to off_, as POSIX will likely change
98333         in that direction.
98335 2006-03-15  Eric Blake  <ebb9@byu.net>
98337         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
98339 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
98341         * lib/argp-help.c (validate_uparams): Fix typo
98342         * lib/argp-parse.c (argp_default_options): Consistently begin help
98343         messages with a lowercase letter.
98345 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
98347         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
98348         overrun buffers and shouldn't be used (much as gets shouldn't be
98349         used).
98350         * lib/time_r.c (asctime_r, ctime_r): Likewise.
98352 2006-03-08  Simon Josefsson  <jas@extundo.com>
98354         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
98355         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98357 2006-03-08  Simon Josefsson  <jas@extundo.com>
98359         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
98360         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98362 2006-03-08  Simon Josefsson  <jas@extundo.com>
98364         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
98365         signal that configure disabled the device.
98367 2006-03-08  Simon Josefsson  <jas@extundo.com>
98369         * build-aux/maint.mk: Fix refresh-po, to handle no translated
98370         languages.
98372 2006-03-07  Simon Josefsson  <jas@extundo.com>
98374         * modules/getopt (Depends-on): Add unistd.
98376         * modules/unistd: New file.
98378 2006-03-07  Simon Josefsson  <jas@extundo.com>
98380         * modules/gc-random: New file.
98382 2006-03-07  Simon Josefsson  <jas@extundo.com>
98384         * m4/unistd_h.m4: New file.
98386 2006-03-07  Simon Josefsson  <jas@extundo.com>
98388         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
98389         test to be side-effect free by storing the result in the cache
98390         variable gl_cv_lib_readline, and moving the assignment of
98391         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
98392         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98394 2006-03-07  Simon Josefsson  <jas@extundo.com>
98396         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
98397         error on missing devices (the functions will return an error).
98399         * m4/gc.m4: Move random stuff to gc-random.m4
98401 2006-03-07  Simon Josefsson  <jas@extundo.com>
98403         * lib/unistd_.h: New file.
98405 2006-03-07  Simon Josefsson  <jas@extundo.com>
98407         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
98409 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
98411         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
98412         Problem reported by Juan Manuel Guerrero.
98414 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
98416         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
98417         the unistd module.
98418         * lib/getlogin_r.c: Likewise.
98419         * lib/getlogin_r.h: Likewise.
98420         * lib/glob.c: Likewise.
98421         * lib/pagealign_alloc.c: Likewise.
98422         * lib/unistd_.h: Remove; no longer needed.
98424 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
98426         * MODULES.html.sh (Support for systems lacking POSIX:2001):
98427         Add unistd.
98428         * modules/c-stack (Depends-on): Add unistd.
98429         * modules/getlogin_r: Likewise.
98430         * modules/glob: Likewise.
98431         * modules/pagealign_alloc: Likewise.
98432         * modules/unistd (Files): Remove lib/unistd_.h.
98433         (EXTRA_DIST): Remove.
98434         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
98435         need unistd_.h.
98436         (MOSTLYCLEANFILES): Remove unistd.h-t.
98438 2006-03-03  Simon Josefsson  <jas@extundo.com>
98440         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
98442 2006-03-03  Simon Josefsson  <jas@extundo.com>
98444         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
98445         libidn and bison.
98447 2006-03-03  Simon Josefsson  <jas@extundo.com>
98449         * build-aux/maint.mk: Add indent target.
98451 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
98453         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
98454         our replacement poll.h in any case, to avoid a differing
98455         declaration from a system header.  Seen on AIX.
98457 2006-03-01  Simon Josefsson  <jas@extundo.com>
98459         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
98460         <kasal@ucw.cz>.
98462 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
98464         * modules/gettime (Depends-on): Add extensions module.
98465         * modules/nanosleep (Depends-on): Likewise.
98466         * modules/settime (Depends-on): Likewise.
98468 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
98470         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
98471         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
98472         pedantically.
98473         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
98474         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
98476         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
98477         not "==".  Reported by Ralf Wildenhues.
98479 2006-03-01  Karl Berry  <karl@gnu.org>
98481         * doc/Copyright/request-*: new files, synced from gnuorg.
98483 2006-03-01  Karl Berry  <karl@gnu.org>
98485         * config/srclist.txt (Copyright/*): new entries.
98487 2006-02-28  Simon Josefsson  <jas@extundo.com>
98489         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
98491 2006-02-27  Simon Josefsson  <jas@extundo.com>
98493         * lib/base64.h: Indent #define's.  From Jim Meyering
98494         <jim@meyering.net>.
98496 2006-02-27  Jim Meyering  <jim@meyering.net>
98498         Revert the change of 2006-02-24, so these files can continue
98499         to be sync'd from gettext.
98500         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
98501         of `config.h'.
98503 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
98505         * modules/intprops: New file.
98506         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
98507         Add intprops.
98508         * modules/getloadavg (Files): Remove lib/intprops.h.
98509         (Depends-on): Add intprops.
98510         * modules/human: Likewise.
98511         * modules/inttostr: Likewise.
98512         * modules/openat: Likewise.
98513         * modules/sig2str: Likewise.
98514         * modules/userspec: Likewise.
98515         * modules/utimecmp: Likewise.
98516         * modules/xnanosleep: Likewise.
98517         * modules/xstrtol: Likewise.
98519 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
98521         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
98522         * modules/lock-tests (TESTS): Use $(EXEEXT).
98523         * modules/tls-tests: Likewise.
98524         * modules/argp-tests: Likewise.
98525         (check_PROGRAMS): New var, replacing...
98526         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
98528 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98530         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
98531         `config.h'.
98533 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
98535         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
98537 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98539         Sync from coreutils.
98540         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
98541         gl_CHDIR_SAFER.
98543 2006-02-22  Jim Meyering  <jim@meyering.net>
98545         Sync from coreutils.
98546         * m4/chdir-safer.m4: New file.
98548 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
98550         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
98551         AT_FDCWD exceeds INT_MAX.
98552         * lib/openat.h (AT_FDCWD): Likewise.
98554 2006-02-17  Eric Blake  <address@hidden>
98556         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
98558 2006-02-16  Simon Josefsson  <jas@extundo.com>
98560         * modules/getaddrinfo (Depends-on): Add sys_socket.
98562 2006-02-15  Simon Josefsson  <jas@extundo.com>
98564         * build-aux/maint.mk: Add dsyntax-check rule.
98566 2006-02-15  Eric Blake  <ebb9@byu.net>
98568         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
98569         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
98570         'present but cannot compile' warnings on cygwin.
98571         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
98572         use ws2tcpip.h if sys/socket.h works.
98573         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
98574         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
98576 2006-02-14  Simon Josefsson  <jas@extundo.com>
98578         * modules/maintainer-makefile (Files): Rename.
98580         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
98581         and (the local) Makefile.cfg to maint-cfg.mk.
98583         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
98584         to the latter.
98586         * modules/maintainer-makefile: New module.
98588         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
98589         severaly stripped to make it possible to build it up from scratch
98590         with reliable tests.
98592         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
98593         fixes to permit overriding the default actions when configure and
98594         makefile are not available.
98596 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
98598         Sync from coreutils.
98599         * modules/lstat (Depends-on): Don't depend on xalloc.
98600         (License): Change from GPL to LGPL, since this is now simply a
98601         replacement for a libc function.
98603 2006-02-14  Jim Meyering  <jim@meyering.net>
98605         Sync from coreutils.
98607         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
98608         failure on deficient systems, and simplify gnulib lgpl dependencies.
98609         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
98610         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
98612         * lib/xalloc-die.c: Remove unused definition of N_.
98614 2006-02-14  Jim Meyering  <jim@meyering.net>
98616         Sync from coreutils.
98617         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
98618         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
98619         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
98620         double-quote uses of that variable, to accommodate the rare case in
98621         which getmntent is available in none of the libraries checked.  This
98622         happens at least on FreeBSD 5.0.
98624 2006-02-13  Simon Josefsson  <jas@extundo.com>
98626         * gnulib-tool (Usage): Fix --import, from
98627         karl@freefriends.org (Karl Berry).
98629 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
98631         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
98633 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
98635         * lib/argp-namefrob.h: Restore changes accidentally lost during the
98636         "autoupdate" on 2005-12-12.
98638 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
98640         * modules/closeout (Depends-on): Remove atexit.
98642 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
98644         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
98645         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
98647 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
98649         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
98650         __EXTENSIONS__ if this causes compilation to fail.  Problem
98651         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
98652         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
98654 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
98656         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
98657         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
98658         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
98659         All uses changed.
98661 2006-01-26  Simon Josefsson  <jas@extundo.com>
98663         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
98664         prototype is visible on mingw32.
98666         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
98667         for mingw32.
98669         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
98670         mingw32).
98672 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
98674         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
98675         attempt to open for write; this always fails, at least on POSIX
98676         hosts.  This reinstates the 2006-01-09 change, which was
98677         inadvertently removed.
98679 2006-01-26  Bruno Haible  <bruno@clisp.org>
98681         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
98682         Reported by Paul Eggert.
98684 2006-01-26  Bruno Haible  <bruno@clisp.org>
98685             Paul Eggert  <eggert@cs.ucla.edu>
98687         * lib/stdbool_.h (_Bool)
98688         [(! (defined __cplusplus || defined __BEOS__)
98689           && !defined __GNUC__
98690           && !(defined __HP_cc || defined __xlc__
98691                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
98692                || defined __sgi))]:
98693         #define to signed char in these cases too; this simplifies
98694         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
98695         etc., separately) and makes it more conservative.
98697 2006-01-25  Simon Josefsson  <jas@extundo.com>
98699         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
98700         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
98701         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
98703 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
98705         * lib/argp-namefrob.h: Bugfix. Remove stray #
98707 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
98709         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
98710         so that we test the test.
98711         Check for yet another HP-UX cc bug involving *bool |= bool.
98713 2006-01-25  Karl Berry  <karl@gnu.org>
98715         * config/srclist.txt (vasnprintf.c): sync lost.
98717 2006-01-25  Jim Meyering  <jim@meyering.net>
98719         Sync from the stable (b5) branch of coreutils:
98721         * lib/fts.c (fts_children): Don't let close() clobber errno from
98722         failed fchdir().
98724         * lib/fts.c (fts_stat): When following a symlink-to-directory,
98725         don't necessarily interpret stat-fails+lstat-succeeds as indicating
98726         a dangling symlink.  That can also happen at least for ELOOP.
98727         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
98728         FYI, this bug predates the inclusion of fts.c in coreutils.
98730         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
98731         in their own block, so pre-c99 compilers don't object.
98733         Avoid the double-free (first in fts_read, second in fts_close) that
98734         would occur when an `active' directory is made inaccessible (e.g.,
98735         via chmod a-x) during a traversal.
98736         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
98737         before returning.  Reproduce this failure by
98738         mkdir -p a/b; cd a; chmod a-x . b
98739         Reported by Stavros Passas.
98741 2006-01-25  Jim Meyering  <jim@meyering.net>
98743         * lib/fileblocks.c: Remove more useless parentheses.
98744         * lib/readutmp.h: Likewise.
98746 2006-01-25  Bruno Haible  <bruno@clisp.org>
98748         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
98749         warnings.
98750         Reported by Paul Eggert.
98752 2006-01-25  Bruno Haible  <bruno@clisp.org>
98754         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
98755         rid of a trap command. For Solaris sh.
98756         Reported by Mark D. Baushke <mdb@gnu.org>.
98758 2006-01-24  Simon Josefsson  <jas@extundo.com>
98760         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
98761         Bruno.
98763 2006-01-24  Karl Berry  <karl@gnu.org>
98765         * config/srclist.txt (argp-namefrob.h): sync lost.
98767 2006-01-24  Jim Meyering  <jim@meyering.net>
98769         * modules/openat (Files): Add lib/intprops.h.
98770         From Mark D. Baushke.
98772 2006-01-24  Jim Meyering  <jim@meyering.net>
98774         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
98775         Reported by Mark D. Baushke.
98777 2006-01-24  Jim Meyering  <jim@meyering.net>
98779         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
98781 2006-01-24  Bruno Haible  <bruno@clisp.org>
98783         * modules/strnlen (Maintainer): Change from glibc to all.
98785 2006-01-24  Bruno Haible  <bruno@clisp.org>
98787         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
98788         Patch by Paul Eggert.
98790 2006-01-24  Bruno Haible  <bruno@clisp.org>
98792         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
98793         already has it.
98794         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
98795         2005-11-26.
98797         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
98798         'signed char' to avoid problems with the built-in _Bool type.
98799         Reported by Paul Eggert on 2005-11-26.
98801 2006-01-24  Bruno Haible  <bruno@clisp.org>
98803         * gnulib-tool (func_import): Avoid constructing complicated sed
98804         expressions inside backquote.
98805         Report and solution by Mark D. Baushke <mdb@gnu.org>.
98807 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
98809         These changes imported from libc.
98810         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
98811         test and two separate function calls.
98812         * lib/strndup.c (__strndup): Add libc_hidden_def.
98814 2006-01-23  Simon Josefsson  <jas@extundo.com>
98816         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
98817         Remove the test_*_SOURCES variable: automake infers it by default.
98818         * modules/tls-tests: Likewise.
98820 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
98822         Work around porting bugs reported by Dieter in
98823         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
98824         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
98825         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
98826         Include "getopt.h" first, to check interface.
98827         (getenv): Declare only if defined HAVE_DECL_GETENV &&
98828         !HAVE_DECL_GETENV.
98829         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
98830         (__strndup): Revert to K&R-style function dfns, the glibc style.
98831         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
98832         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
98833         Include strnlen.h first, to get prototype properly.
98834         (strnlen): Renamed from __strnlen.
98835         Remove weak alias.
98837 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
98839         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
98841 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
98843         * config/srclist.txt: Adjust to reflect glibc reorganization.
98844         This affects only comments.
98846 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
98848          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
98849          Reported by Bruce Korb <bkorb@gnu.org>.
98851 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
98853         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
98854         to pacify gcc -Wswitch-default.
98856 2006-01-22  Bruno Haible  <bruno@clisp.org>
98858         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
98859         temporary buffer for sprintf, take into account the precision also
98860         for 'd', 'i', 'u', 'o', 'x', 'X'.
98862 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
98864         * modules/argp-tests: New module
98865         * tests/test-argp.c: New file
98866         * tests/test-argp-2.sh: New file
98868 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
98870         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
98871         (__argp_base_name): Removed
98872         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
98873         typo.
98874         (__argp_base_name): Provide macro definition or extern declaration
98875         depending on the configuration
98877 2006-01-20  Simon Josefsson  <jas@extundo.com>
98879         * modules/inet_ntop (Depends-on): Depend on sys_socket.
98881 2006-01-20  Simon Josefsson  <jas@extundo.com>
98883         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
98885 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
98887         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
98888         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
98889         Suggested by Bruno Haible.
98891 2006-01-20  Karl Berry  <karl@gnu.org>
98893         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
98894         until changes propagate, I guess.
98896 2006-01-19  Simon Josefsson  <jas@extundo.com>
98898         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
98900 2006-01-19  Simon Josefsson  <jas@extundo.com>
98902         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
98904 2006-01-19  Simon Josefsson  <jas@extundo.com>
98906         * gnulib-tool: Set check_PROGRAMS.
98908         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
98909         modules/des-tests, modules/gc-arcfour-tests,
98910         modules/gc-arctwo-tests, modules/gc-des-tests,
98911         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
98912         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
98913         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
98914         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
98915         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
98916         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
98917         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
98918         test_*_SOURCES.
98920 2006-01-18  Simon Josefsson  <jas@extundo.com>
98922         * modules/socklen (Depends-on): Depend on sys_socket.
98924 2006-01-18  Simon Josefsson  <jas@extundo.com>
98926         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
98927         modules/des-tests, modules/gc-arcfour-tests,
98928         modules/gc-arctwo-tests, modules/gc-des-tests,
98929         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
98930         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
98931         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
98932         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
98933         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
98934         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
98935         $(EXEEXT) to automake TESTS variable, for mingw32.
98937 2006-01-17  Simon Josefsson  <jas@extundo.com>
98939         * modules/socklen (Include): Need sys/socket.h.
98941 2006-01-17  Bruno Haible  <bruno@clisp.org>
98943         * modules/ssize_t (Include): Add <sys/types.h>.
98945 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
98947         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
98948         it's not portable and it doesn't work with cross-compiles.
98949         Problem reported by Bruno Haible.  Fix missing-$ typo in
98950         'test "gl_cv_ignore_unused_libraries" ...' that prevented
98951         -zignore from being used with Sun's C compiler.
98953 2006-01-12  Simon Josefsson  <jas@extundo.com>
98955         * lib/base64.c: Fix warning, reported by Bruno Haible
98956         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
98958 2006-01-12  Bruno Haible  <bruno@clisp.org>
98960         * modules/ldd: New file.
98961         * build-aux/ldd.sh.in: New file.
98962         * MODULES.html.sh (Support for building libraries and executables): Add
98963         ldd.
98965 2006-01-12  Bruno Haible  <bruno@clisp.org>
98967         * m4/ldd.m4: New file.
98969 2006-01-12  Bruno Haible  <bruno@clisp.org>
98971         * gnulib-tool (func_import, func_create_testdir): Don't go into an
98972         endless loop while replacing $auxdir with build-aux.
98974 2006-01-11  Simon Josefsson  <jas@extundo.com>
98976         * lib/stdint_.h (SIZE_MAX): Add missing (.
98978 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
98980         Sync from coreutils.
98981         * lib/md5.c: Fix commentary typos.
98982         (alignof, UNALIGNED_P): No need for a GCC-specific version.
98983         * lib/md5.h (__attribute__): Remove; unused.
98984         * lib/sha1.c: Fix commentary to match md5 better.
98985         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
98986         so that we don't need to worry about alignment.  All uses changed.
98987         This merges the 2005-10-28 md5 change into sha1.
98989 2006-01-11  Jim Meyering  <jim@meyering.net>
98991         Sync from coreutils.
98992         * lib/md5.c (OP): Fix spacing.
98994 2006-01-11  Bruno Haible  <bruno@clisp.org>
98996         Ensure automatic ordering between gl_LOCK and gl_ARGP.
98997         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
98998         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
99000 2006-01-11  Bruno Haible  <bruno@clisp.org>
99002         Ensure automatic ordering between gl_LOCK and gl_ARGP.
99003         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
99004         the "early" section as well.
99006 2006-01-11  Bruno Haible  <bruno@clisp.org>
99008         Avoid "ar: no archive members specified" error on MacOS X.
99009         * gnulib-tool (func_modules_add_dummy): New function.
99010         (func_import, func_create_testdir): Invoke it.
99012 2006-01-11  Bruno Haible  <bruno@clisp.org>
99014         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
99015         with $auxdir in AC_CONFIG_FILES statements.
99017 2006-01-11  Bruno Haible  <bruno@clisp.org>
99019         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99020         Initialize also noinst_HEADERS to empty.
99022 2006-01-11  Bruno Haible  <bruno@clisp.org>
99024         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
99025         variables.
99026         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
99027         autoreconf.
99029 2006-01-11  Bruno Haible  <bruno@clisp.org>
99031         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
99032         overridable by the user.
99033         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99035 2006-01-10  Simon Josefsson  <jas@extundo.com>
99037         * modules/sys_socket: New file.
99039 2006-01-10  Simon Josefsson  <jas@extundo.com>
99041         * m4/sys_socket_h.m4: New file.
99043 2006-01-10  Simon Josefsson  <jas@extundo.com>
99045         * lib/socket_.h: New file.
99047 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99049         * modules/readutmp (Maintainer): Add myself.
99051 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99053         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
99054         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
99055         People who are still concerned with buggy memcmp implementations
99056         can invoke gl_FUNC_MEMCMP themselves.
99058 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99060         * lib/regex_internal.h (BITSET_WORD_BITS):
99061         Work around a bug in 64-bit PGC (before version 6.1-2), where the
99062         preprocessor mishandles large unsigned values as if they were signed.
99063         Problem reported by Claudio Fontana in
99064         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
99066 2006-01-10  Jim Meyering  <jim@meyering.net>
99068         Avoid the double-free (first in fts_read, second in fts_close) that
99069         would occur when an `active' directory is made inaccessible (e.g.,
99070         via chmod a-x) during a traversal.
99071         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
99072         before returning.  Reproduce this failure by
99073         mkdir -p a/b; cd a; chmod a-x . b
99074         Reported by Stavros Passas.
99076         Sync from coreutils.
99077         * lib/sha1.c: Tweak grammar in a comment.
99079 2006-01-10  Jim Meyering  <jim@meyering.net>
99081         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
99082         Patch by Joerg Sonnenberger.
99084 2006-01-10  Bruno Haible  <bruno@clisp.org>
99086         * modules/readutmp: Depend on module free.
99087         * modules/strtok_r: Depend on module restrict.
99089 2006-01-10  Bruno Haible  <bruno@clisp.org>
99091         * modules/gettext (configure.ac): Add an invocation of
99092         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
99094 2006-01-10  Bruno Haible  <bruno@clisp.org>
99096         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
99097         Reported by Werner Lemberg <wl@gnu.org>.
99099 2006-01-10  Bruno Haible  <bruno@clisp.org>
99101         * lib/localcharset.c: Update from GNU gettext.
99103 2006-01-10  Bruno Haible  <bruno@clisp.org>
99105         * lib/argp.h (__const): Remove macro. Use const instead.
99106         * lib/argp-fmtstream.h (__const): Likewise.
99107         * lib/glob_.h (__const): Remove macro.
99108         * lib/glob-libc.h: Use const instead of __const.
99110 2006-01-10  Bruno Haible  <bruno@clisp.org>
99112         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
99113         variable.
99114         Needed to avoid an automake error regarding the 'gettext' module.
99116 2006-01-09  Simon Josefsson  <jas@extundo.com>
99118         * modules/inet_ntop (Depends-on): Add restrict.
99120 2006-01-09  Simon Josefsson  <jas@extundo.com>
99122         * modules/gc-rijndael-tests (License): Put under LGPL.
99124         * modules/gc-des-tests (License): Likewise.
99126         * modules/gc-arcfour-tests (License): Likewise.
99128         * modules/gc-arctwo-tests (License): Likewise.
99130         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
99132         * modules/gc-hmac-sha1-tests (Files): Likewise.
99134         * modules/gc-hmac-md5-tests (License): Likewise.
99136         * modules/gc-sha1-tests (License): Likewise.
99138         * modules/gc-md5-tests (License): Likewise.
99140         * modules/gc-md4-tests (License): Likewise.
99142         * modules/gc-md2-tests (License): Likewise.
99144         * modules/gc-tests (License): Likewise.
99146         * modules/des-tests (License): Likewise.
99148         * modules/md4-tests (License): Likewise.
99150         * modules/md2-tests (License): Likewise.
99152 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
99154         Sync from coreutils:
99156         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
99157         * modules/lib-ignore: New file.
99158         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
99159         chdir-safer.m4, lchmod.m4.
99160         * modules/openat: Add mkdirat.c, openat-priv.h.
99162 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
99164         Sync from coreutils.
99165         * m4/lib-ignore.m4: New file.
99166         * m4/lchmod.m4: New file.
99168 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
99170         Sync from coreutils.
99171         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
99172         for write access: POSIX says that must fail.
99173         * lib/fts.c (diropen): Likewise.
99174         * lib/save-cwd.c (save_cwd): Likewise.
99175         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
99176         well, for minor improvements on hosts that lack O_DIRECTORY.
99177         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
99178         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
99179         Fall back on chown if open failed with EACCES.
99181         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
99182         Report an error at compile-time if only a 1-second nominal clock
99183         resolution is found.
99185         * lib/lchmod.h: New file.
99186         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
99187         (make_dir_parents): Use lchown rather than chown, and
99188         lchmod rather than chmod.
99190         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
99191         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
99192         "proc" reported by n0dalus.
99194         * lib/mountlist.c: Include <limits.h>.
99195         (dev_from_mount_options)
99196         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
99197         New function.  It no longer assumes "dev=" has the System V meaning
99198         on Linux (since it doesn't).  It also parses "dev=" more carefully.
99199         (read_file_system_list)
99200         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
99201         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
99202         dev= in that case.
99204         * lib/posixtm.h (PDS_PRE_2000): New macro.
99205         * lib/posixtm.c (year): Arg is now syntax_bits rather than
99206         allow_century.  All usages changed.  Reject dates outside the range
99207         1969-1999 if PDS_PRE_2000 is used.
99209 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
99211         Sync from coreutils.
99212         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
99213         (Time of day items): Mention the possibility of leap seconds.
99214         Problem reported by Dr. David Alan Gilbert.
99216 2006-01-09  Jim Meyering  <jim@meyering.net>
99218         Sync from coreutils.
99220         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
99222         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
99224         * lib/modechange.c (mode_compile): Reject an invalid mode string
99225         that starts with an octal digit.  From Andreas Gruenbacher.
99227         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
99228         and dup to open_safer and dup_safer, respectively.
99229         (openat_permissive): Fix typo in comment.
99231         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
99232         "gettext.h"; either no longer needed or are guaranteed by openat.h.
99233         (_): Remove; no longer needed.
99234         (openat): Renamed from rpl_openat; no need for rpl_openat
99235         since openat.h renames openat for us.
99236         Replace most of the body with a call to openat_permissive,
99237         to avoid duplicate code.
99238         Port to (probably hypothetical) environments were mode_t is
99239         wider than int.
99240         (openat_permissive): Require mode arg, so that we can check
99241         types better.  Put it just after flags.  Change cwd failure
99242         indicator from pointer-to-bool to pointer-to-errno-value.
99243         All callers changed.
99244         Invoke openat_save_fail and/or openat_restore_fail if
99245         cwd_errno is null, so that openat can call us.
99246         (openat_permissive, fdopendir, fstatat, unlinkat):
99247         Simplify errno handling to avoid some duplicate code,
99248         as it's OK to set errno on success.
99249         * lib/openat.h: Revamp code so that function macros depend on
99250         __OPENAT_PREFIX only, not also on AT_FDCWD.
99251         (openat_ro): Remove.  Caller changed to use openat_permissive.
99252         (openat_permissive): Now a macro, if not a function.
99253         (openat_restore_fail, openat_save_fail): Now always functions,
99254         since mkdirat needs them even if __OPENAT_PREFIX is defined.
99256         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
99257         and openat.c.
99258         * lib/mkdirat.c: Include openat-priv.h.
99259         Remove definitions of macros defined therein.
99260         * lib/openat.c: Likewise.
99262         * lib/mkdirat.c (mkdirat): New file and function.
99263         * lib/openat.h (mkdirat): Declare.
99265         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
99267         * lib/openat.h (openat_permissive): Declare.
99268         (openat_ro): Define.
99270         * lib/openat.c (EXPECTED_ERRNO): New macro.
99271         (openat_permissive): New function -- used in remove.c rewrite.
99272         (all functions): Set errno just before returning, only if there
99273         was an actual failure.
99274         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
99276         Emulate openat-family functions using Linux's procfs, if possible.
99277         Idea and some code based on Ulrich Drepper's glibc changes.
99279         * lib/openat.c: (BUILD_PROC_NAME): New macro.
99280         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
99281         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
99282         before falling back on save_cwd and restore_cwd.
99283         (fdopendir, fstatat, unlinkat): Likewise.
99285         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
99286         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
99288         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
99289         as second argument to va_arg.  Otherwise, some versions of gcc
99290         warn that `if this code is reached, the program will abort'.
99292 2006-01-09  Jim Meyering  <jim@meyering.net>
99294         Sync from coreutils.
99295         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
99296         Require openat-priv.h.
99298 2006-01-09  Bruno Haible  <bruno@clisp.org>
99300         * modules/strnlen (Include): Use strnlen.h.
99302 2006-01-09  Bruno Haible  <bruno@clisp.org>
99304         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
99306 2006-01-09  Bruno Haible  <bruno@clisp.org>
99308         * lib/sysexit_.h (EX_OK): New macro.
99309         Suggested by Martin Lambers <marlam@marlam.de>.
99311 2006-01-09  Bruno Haible  <bruno@clisp.org>
99313         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
99314         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
99316 2006-01-09  Bruno Haible  <bruno@clisp.org>
99318         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
99319         numbers.
99321 2006-01-09  Bruno Haible  <bruno@clisp.org>
99323         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
99324         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
99325         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
99326         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
99328 2006-01-09  Bruno Haible  <bruno@clisp.org>
99330         * build-aux/javacomp.sh.in: New file, moved from lib/.
99331         * modules/javacomp-script (Files): Update.
99332         (configure.ac): Add AC_CONFIG_FILES invocation.
99333         (EXTRA_DIST): Remove variable.
99335         * build-aux/javaexec.sh.in: New file, moved from lib/.
99336         * modules/javaexec (Files): Update.
99337         (configure.ac): Add AC_CONFIG_FILES invocation.
99338         (EXTRA_DIST): Remove javaexec.sh.in.
99340         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
99341         * modules/csharpcomp-script (Files): Update.
99342         (configure.ac): Add AC_CONFIG_FILES invocation.
99343         (EXTRA_DIST): Remove variable.
99345         * build-aux/csharpexec.sh.in: New file, moved from lib/.
99346         * modules/csharpexec (Files): Update.
99347         (configure.ac): Add AC_CONFIG_FILES invocation.
99348         (EXTRA_DIST): Remove csharpexec.sh.in.
99350 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
99352         Sync from coreutils.
99354         Add POSIX ACL support
99355         * lib/acl.h (copy_acl, set_acl): Add declarations.
99356         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
99357         systems other than Linux.
99358         (chmod_or_fchmod): New function: use fchmod when possible,
99359         and chmod otherwise.
99360         (file_has_acl): Add a POSIX ACL implementation, with a
99361         Linux-specific subcase.
99362         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
99363         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
99364         acls are unsupported.
99365         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
99366         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
99367         are unsupported.
99369 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
99371         Sync from coreutils.
99372         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
99374 2006-01-07  Bruno Haible  <bruno@clisp.org>
99376         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
99377         gl_EARLY.
99379 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
99381         * lib/strftime.c (tzname): Don't declare if it is already #defined.
99382         Problem reported for Mingw by Mark Junker.
99384 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
99386         * README: Gnulib normally doesn't generate a tarball.
99388 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
99390         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
99391         long int, not int, for nanosecond counts, so that people who are
99392         used to POSIX struct timespec won't be surprised.  Reported by Jim
99393         Meyering.
99395 2005-12-28  Bruno Haible  <bruno@clisp.org>
99397         * build-aux/config.rpath: Update from GNU gettext.
99399 2005-12-16  Jim Meyering  <jim@meyering.net>
99401         * modules/fprintftime: New module.
99402         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
99404 2005-12-16  Jim Meyering  <jim@meyering.net>
99406         * m4/fprintftime.m4: New file.
99408 2005-12-16  Jim Meyering  <jim@meyering.net>
99410         * lib/fprintftime.c, lib/fprintftime.h: New files.
99412 2005-12-15  Simon Josefsson  <jas@extundo.com>
99414         * modules/socklen (configure.ac): Fix M4 macro name, to align with
99415         new m4/socklen.m4.
99417 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
99419         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
99420         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
99422 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
99424         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
99425         * lib/argp-help.c (fill_in_uparams): Check if the constructed
99426         struct uparams is valid. Fall back to the default values if it is
99427         not.
99429 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99431         * modules/argp (Files): Add argp-pin.c
99432         (Depends-on): dirname
99433         (lib_SOURCES): Add argp-pin.c
99435 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99437         * m4/argp.m4:  Check if program_invocation_name and
99438         program_invocation_short_name are declared and define appropriate
99439         macros if they are not.
99441 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99443         * lib/argp-help.c (__argp_base_name): New function
99444         (__argp_short_program_name): Rewrite using __argp_base_name
99445         * lib/argp-namefrob.h: Define program_invocation_name and
99446         program_invocation_short_name if requested
99447         (__argp_base_name): Add prototype
99448         * lib/argp-parse.c (argp_def): Use gettext wrappers
99449         (argp_default_parser): Use __argp_base_name
99450         * lib/argp-pin.c: New file. Defines program_invocation_name and
99451         program_invocation_short_name on systems that lack them.
99453 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
99455         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
99456         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
99457         porting problem reported by Georg Schwarz in
99458         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
99460 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
99462         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
99463         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
99464         porting problem reported by Georg Schwarz in
99465         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
99467 2005-12-05  Bruno Haible  <bruno@clisp.org>
99469         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
99470         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
99471         Reported by Mark Junker <mjscod@gmx.de>.
99473 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
99475         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
99476         Use implementation from Albert Chin, with some
99477         comments/corrections by Stepan Kasal and myself.
99479 2005-12-02  Bruno Haible  <bruno@clisp.org>
99481         * gnulib-tool (func_import): Accept GPLed build tool modules when
99482         --lgpl is given.
99483         * modules/csharpcomp-script: New file.
99484         * modules/csharpcomp: Depend on it.
99485         * modules/javacomp-script: New file.
99486         * modules/javacomp: Depend on it.
99487         Suggested by Simon Josefsson.
99489 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
99491         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
99492         statement, to work around an HP-UX 10.20 compiler bug reported by
99493         Peter O'Gorman.
99495 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
99497         * modules/savedir (Depends-on): Add openat.
99499 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
99501         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
99502         (uintmax_t) [defined uintmax_t]: Do not declare.
99503         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
99504         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
99505         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
99506         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
99507         sake of portability to weird hosts that C allows (though we don't
99508         know of any practical examples).
99510         * lib/savedir.h (fdsavedir): New decl.
99511         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
99512         contains most of the former guts of savedir.
99513         (savedir): Use savedirstream.
99514         Include "openat.h".
99516 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
99518         * modules/obstack (Files): Add m4/ulonglong.m4.
99519         Problem reported by Davide Angelocola.
99521 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
99523         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
99524         coreutils no longer futzes with rounding modes.
99526 2005-11-14  Jim Meyering  <jim@meyering.net>
99528         * lib/mkstemp-safer.c: Include <config.h>, required for possible
99529         replacement of mkstemp.
99531 2005-11-10  Simon Josefsson  <jas@extundo.com>
99533         * lib/readline.c: Remove EOL.
99535 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99537         * modules/gethrxtime (Depends-on): Add gettime.
99539 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99541         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
99542         or gettimeofday; no longer needed.
99544 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99546         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
99547         time business.
99548         (gethrxtime) [! (HAVE_NANOUPTIME
99549         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
99550         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
99551         our own approximation.
99553 2005-11-08  Eric Blake  <ebb9@byu.net>
99555         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
99557 2005-11-08  Eric Blake  <ebb9@byu.net>
99559         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
99561 2005-11-04  Bruno Haible  <bruno@clisp.org>
99563         * gnulib-tool: Implement --update mode.
99565 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
99567         Fix porting problem reported by Theodoros V. Kalamatianos.
99568         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
99569         Don't assume that futimes failing means we must fail.
99571 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
99573         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
99574         variables to suggest the intended function of the PATH_MAX check.
99576 2005-10-30  Kean Johnston  <jkj@sco.com>
99578         Trivial changes to support SCO systems.
99579         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
99580         as PATH_MAX.
99581         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
99582         where __ptr is null when no I/O is pending.
99584 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
99586         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
99587         leave errno alone.  Problem reported by Dmitry V. Levin.
99589 2005-10-28  Simon Josefsson  <jas@extundo.com>
99591         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
99592         Test more.
99594         * tests/test-gc-md2.c, tests/test-md2.c: New files.
99596         * modules/md2, modules/md2-tests: New files.
99598 2005-10-28  Simon Josefsson  <jas@extundo.com>
99600         * m4/inet_ntop.m4: More tests.
99602         * m4/gc-md2.m4, md2.m4: New file.
99604 2005-10-28  Simon Josefsson  <jas@extundo.com>
99606         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
99607         "restrict" keywords, as per POSIX.  Protect the function
99608         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
99609         Don't use K&R prototypes.  Check the sprintf return values.
99610         Re-define EAFNOSUPPORT if not present.  Indent.
99612         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
99613         suggested by Bruno Haible <bruno@clisp.org>.
99615         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
99617         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
99619         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
99620         libgcrypt).
99622         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
99624         * lib/md2.h, lib/md2.c: New files.
99626 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
99628         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
99629         errno alone.  Problem reported by Frederic Jolliton.
99631 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
99633         * modules/verify (License): Change from GPL to LGPL.  This is a
99634         tiny module and there are apparently near-equivalents that are
99635         under the BSD license.
99637 2005-10-24  Simon Josefsson  <jas@extundo.com>
99639         * modules/sha1: Relicense to LGPL.
99641 2005-10-24  Simon Josefsson  <jas@extundo.com>
99643         * lib/md4.h: Shrink buffer size, now that we changed the type.
99645 2005-10-23  Simon Josefsson  <jas@extundo.com>
99647         * gnulib-tool (func_import): Fix --tests-base.
99649 2005-10-22  Simon Josefsson  <jas@extundo.com>
99651         * modules/arcfour (Depends-on): Need stdint.
99653 2005-10-22  Simon Josefsson  <jas@extundo.com>
99655         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
99656         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
99658 2005-10-22  Simon Josefsson  <jas@extundo.com>
99660         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
99661         suggested by Bruno Haible <bruno@clisp.org>.
99663 2005-10-22  Simon Josefsson  <jas@extundo.com>
99665         * lib/crc.h: Include stddef.h, for size_t.
99667 2005-10-22  Simon Josefsson  <jas@extundo.com>
99669         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
99670         arcfour_context struct (simplify test vector testing in GNU
99671         Shishi).
99673 2005-10-21  Simon Josefsson  <jas@extundo.com>
99675         * modules/des, modules/des-tests: New files.
99677         * modules/gc-des, modules/gc-des-tests: New files.
99679         * tests/test-des.c, tests/test-gc-des.c: New file.
99681 2005-10-21  Simon Josefsson  <jas@extundo.com>
99683         * modules/arctwo, modules/arctwo-tests: New files.
99685         * tests/test-arctwo.c: New file.
99687         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
99689         * tests/test-gc-arctwo.c: New file.
99691 2005-10-21  Simon Josefsson  <jas@extundo.com>
99693         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
99694         Bruno Haible <bruno@clisp.org>.
99696         * m4/gc-des.m4: New file.
99698 2005-10-21  Simon Josefsson  <jas@extundo.com>
99700         * m4/arctwo.m4: New file.
99702         * m4/gc-arctwo.m4: New file.
99704 2005-10-21  Simon Josefsson  <jas@extundo.com>
99706         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
99707         block.
99709 2005-10-21  Simon Josefsson  <jas@extundo.com>
99711         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
99712         <bruno@clisp.org>.
99714         * lib/hmac-sha1.c (hmac_sha1): Likewise.
99716         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
99717         Bruno Haible <bruno@clisp.org>.
99719         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
99720         <bruno@clisp.org>.
99722 2005-10-21  Simon Josefsson  <jas@extundo.com>
99724         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
99726 2005-10-21  Simon Josefsson  <jas@extundo.com>
99728         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
99730 2005-10-21  Simon Josefsson  <jas@extundo.com>
99732         * lib/des.h, lib/des.c: New files.
99734         * lib/gc-gnulib.c: Support DES.c
99736 2005-10-21  Simon Josefsson  <jas@extundo.com>
99738         * lib/arctwo.h, lib/arctwo.c: New files.
99740         * lib/gc-gnulib.c: Support ARCTWO.
99742 2005-10-21  Simon Josefsson  <jas@extundo.com>
99744         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
99745         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99747 2005-10-21  Simon Josefsson  <jas@extundo.com>
99749         * gnulib-tool (func_import, func_create_testdir): Define automake
99750         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
99751         Makefile.am snippet),
99752         suggested by Bruno Haible <bruno@clisp.org>.
99754         * modules/gc (Makefile.am): Use it.
99756 2005-10-21  Bruno Haible  <bruno@clisp.org>
99758         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
99759         patch.
99761 2005-10-19  Simon Josefsson  <jas@extundo.com>
99763         * tests/test-gc-rijndael.c: New file.
99765         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
99767 2005-10-19  Simon Josefsson  <jas@extundo.com>
99769         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
99770         interface too.
99772 2005-10-19  Simon Josefsson  <jas@extundo.com>
99774         * tests/test-gc-arcfour.c: New file.
99776         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
99778 2005-10-19  Simon Josefsson  <jas@extundo.com>
99780         * modules/gc-md4, modules/gc-md4-tests: New file.
99782         * tests/test-gc-md4.c: New file.
99784 2005-10-19  Simon Josefsson  <jas@extundo.com>
99786         * m4/gc-md4.m4: New file.
99788 2005-10-19  Simon Josefsson  <jas@extundo.com>
99790         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
99791         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
99792         <kasal@ucw.cz>.
99794 2005-10-19  Simon Josefsson  <jas@extundo.com>
99796         * m4/gc-arcfour.m4: New file.
99798         * m4/gc-rijndael.m4: New file.
99800 2005-10-19  Simon Josefsson  <jas@extundo.com>
99802         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
99804 2005-10-19  Simon Josefsson  <jas@extundo.com>
99806         * lib/gc-gnulib.c: Support ARCFOUR.
99808 2005-10-19  Simon Josefsson  <jas@extundo.com>
99810         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
99811         support.
99813         * lib/gc.h: Add ECB enum type.
99815         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
99817 2005-10-18  Simon Josefsson  <jas@extundo.com>
99819         * tests/test-md5.c: New file.
99821         * modules/md5-tests: New file.
99823 2005-10-18  Simon Josefsson  <jas@extundo.com>
99825         * tests/test-md4.c: New file.
99827         * modules/md4, modules/md4-tests: New files.
99829 2005-10-18  Simon Josefsson  <jas@extundo.com>
99831         * m4/md4.m4: New file.
99833 2005-10-18  Simon Josefsson  <jas@extundo.com>
99835         * lib/md4.h, lib/md4.c: New files, based on md5.?.
99837 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
99839         * gnulib-tool (func_create_testdir): Omit the second check whether
99840         BUILT_SOURCES in nonempty.
99842 2005-10-17  Simon Josefsson  <jas@extundo.com>
99844         * tests/test-rijndael.c: New file.
99846 2005-10-17  Simon Josefsson  <jas@extundo.com>
99848         * modules/sha1: Depend on stdint instead of md5.
99850         * modules/md5: Depend on stdint, remove uint32_t.
99852 2005-10-17  Simon Josefsson  <jas@extundo.com>
99854         * modules/gc-sha1-tests: New file.
99856         * tests/test-gc-sha1.c: New file.
99858 2005-10-17  Simon Josefsson  <jas@extundo.com>
99860         * m4/md5.m4: Remove call to uint32_t.m4.
99862 2005-10-17  Simon Josefsson  <jas@extundo.com>
99864         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
99866         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
99867         md5.h.
99869         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
99871         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
99873 2005-10-17  Simon Josefsson  <jas@extundo.com>
99875         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
99877 2005-10-17  Simon Josefsson  <jas@extundo.com>
99879         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
99881 2005-10-17  Simon Josefsson  <jas@extundo.com>
99883         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
99885         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
99887 2005-10-17  Bruno Haible  <bruno@clisp.org>
99889         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
99890         that it can also be used in a test.
99892 2005-10-16  Bruno Haible  <bruno@clisp.org>
99894         * gnulib-tool (func_emit_tests_Makefile_am): Also define
99895         TESTS_ENVIRONMENT, so that individual tests can augment it.
99897         * gnulib-tool (func_create_testdir): Use an intermediate target for
99898         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
99899         macros, like $(ALLOCA_H), which cannot be passed through the command
99900         line.
99902 2005-10-15  Simon Josefsson  <jas@extundo.com>
99904         * modules/rijndael-tests: New file.
99906         * modules/rijndael: New file.
99908 2005-10-15  Simon Josefsson  <jas@extundo.com>
99910         * m4/rijndael.m4: New file.
99912 2005-10-15  Simon Josefsson  <jas@extundo.com>
99914         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
99916         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
99918 2005-10-14  Simon Josefsson  <jas@extundo.com>
99920         * tests/test-arcfour.c: New file.
99922         * modules/arcfour, modules/arcfour-tests: New files.
99924 2005-10-14  Simon Josefsson  <jas@extundo.com>
99926         * m4/arcfour.m4: New file.
99928 2005-10-14  Simon Josefsson  <jas@extundo.com>
99930         * lib/arcfour.h, lib/arcfour.c: New files.
99932 2005-10-14  Roland McGrath  <roland@redhat.com>
99934         Import from libc.  [BZ #1331]
99935         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
99936         macro argument.
99937         Reported by Matej Vela <vela@debian.org>.
99939 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
99941         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
99942         include <wchar.h>; no longer needed.
99944 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
99946         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
99948 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
99949         and  Ulrich Drepper  <drepper@redhat.com>
99951         Import from libc.
99952         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
99953         instead of inline stream orientation test and two separate
99954         function calls.  Pay no attention to USE_IN_LIBIO.
99956 2005-10-13  Simon Josefsson  <jas@extundo.com>
99958         * modules/gc-hmac-md5-tests: New file.
99960         * tests/test-gc-hmac-sha1.c: New file.
99962         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
99964         * modules/gc-hmac-md5-tests: New file.
99966         * tests/test-gc-md5.c: New file.
99968         * modules/gc-md5-tests: New file.
99970 2005-10-13  Simon Josefsson  <jas@extundo.com>
99972         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
99973         Move memory allocation outside of loop.
99975 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
99977         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
99978         intermediate directory is in a read-only file system.  Problem
99979         reported by Eric Blake.
99981 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
99983         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
99985 2005-10-12  Simon Josefsson  <jas@extundo.com>
99987         * tests/test-hmac-sha1.c: New file.
99989         * modules/hmac-sha1-tests: New file.
99991         * modules/hmac-sha1: New file.
99993 2005-10-12  Simon Josefsson  <jas@extundo.com>
99995         * modules/gc-sha1: New file.
99997 2005-10-12  Simon Josefsson  <jas@extundo.com>
99999         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
100001         * tests/test-gc-pbkdf2-sha1.c: New file.
100003 2005-10-12  Simon Josefsson  <jas@extundo.com>
100005         * modules/gc-md5, modules/gc-hmac-md5: New files.
100007         * modules/gc (Files): Remove md5, memxor and hmac files.
100009 2005-10-12  Simon Josefsson  <jas@extundo.com>
100011         * m4/gc-pbkdf2-sha1.m4: New file.
100013         * m4/gc-hmac-sha1.m4: New file.
100015         * m4/gc-sha1: New file.
100017         * m4/hmac-sha1.m4: New file.
100019 2005-10-12  Simon Josefsson  <jas@extundo.com>
100021         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
100023         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
100025 2005-10-12  Simon Josefsson  <jas@extundo.com>
100027         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
100028         suggested by Bruno Haible <bruno@clisp.org>.
100030 2005-10-12  Simon Josefsson  <jas@extundo.com>
100032         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
100034 2005-10-12  Simon Josefsson  <jas@extundo.com>
100036         * lib/gc-pbkdf2-sha1.c: New file.
100038         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
100040 2005-10-12  Simon Josefsson  <jas@extundo.com>
100042         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
100044         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
100046 2005-10-12  Simon Josefsson  <jas@extundo.com>
100048         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
100049         GC_USE_HMAC_MD5, respectively.
100051         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
100052         (gc_md5): Fix typo.
100054         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
100056         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
100058         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
100060 2005-10-12  Bruno Haible  <bruno@clisp.org>
100062         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
100063         Reported by Stepan Kasal <kasal@ucw.cz>.
100065 2005-10-11  Simon Josefsson  <jas@extundo.com>
100067         * tests/test-crc.c: New file.
100069         * modules/crc, modules/crc-tests: New files.
100071 2005-10-11  Simon Josefsson  <jas@extundo.com>
100073         * m4/crc.m4: New file.
100075 2005-10-11  Simon Josefsson  <jas@extundo.com>
100077         * lib/gc.h: Add gc_hash and gc_hash_buffer.
100079         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
100081         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
100083 2005-10-11  Simon Josefsson  <jas@extundo.com>
100085         * lib/crc.h, lib/crc.c: New files.
100087         * lib/gc.h (gc_hash_buffer): Add doc.
100089 2005-10-11  Bruno Haible  <bruno@clisp.org>
100091         * modules/c-strcasestr: New file.
100092         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
100094 2005-10-11  Bruno Haible  <bruno@clisp.org>
100096         * modules/c-strcase: New file.
100097         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
100099 2005-10-11  Bruno Haible  <bruno@clisp.org>
100101         * lib/strcasecmp.c: Include limits.h.
100102         (strcasecmp): Avoid integer overflow on exotic platforms.
100103         * lib/strncasecmp.c: Include limits.h.
100104         (strncasecmp): Avoid integer overflow on exotic platforms.
100105         Reported by Paul Eggert.
100107 2005-10-11  Bruno Haible  <bruno@clisp.org>
100109         * lib/c-strcasestr.h: New file, from GNU gettext.
100110         * lib/c-strcasestr.c: New file, from GNU gettext.
100112 2005-10-11  Bruno Haible  <bruno@clisp.org>
100114         * lib/c-strcase.h: New file, from GNU gettext.
100115         * lib/c-strcasecmp.c: New file, from GNU gettext.
100116         * lib/c-strncasecmp.c: New file, from GNU gettext.
100118 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
100120         * modules/mempcpy (License): GPL -> LGPL.
100121         * modules/strchrnul (License): Likewise.
100122         * modules/sysexits (License): Likewise.
100124 2005-10-08  Simon Josefsson  <jas@extundo.com>
100126         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
100128 2005-10-07  Simon Josefsson  <jas@extundo.com>
100130         * m4/memxor.m4: Remove gl_C_RESTRICT call.
100132 2005-10-06  Simon Josefsson  <jas@extundo.com>
100134         * tests/test-hmac-md5.c: New file.
100136         * modules/hmac-md5-tests: New file.
100138         * modules/hmac-md5: New file.
100140 2005-10-06  Simon Josefsson  <jas@extundo.com>
100142         * m4/hmac-md5.m4: New file.
100144         * m4/memxor.m4: Require gl_C_RESTRICT.
100146 2005-10-06  Simon Josefsson  <jas@extundo.com>
100148         * lib/memxor.c (memxor): Avoid casts and warnings.
100150 2005-10-06  Simon Josefsson  <jas@extundo.com>
100152         * lib/hmac-md5.c: New file.
100154         * lib/hmac.h: New file.
100156 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
100158         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
100159         promotes to int, not unsigned int, to catch the AIX 5.3
100160         compiler bug.
100162 2005-10-05  Simon Josefsson  <jas@extundo.com>
100164         * modules/memxor: New file.
100166         * modules/iconv (Files): Move config.rpath to havelib, it is used
100167         there.
100169         * modules/havelib (Files): Add config.rpath.
100171 2005-10-05  Simon Josefsson  <jas@extundo.com>
100173         * m4/memxor.m4: New file.
100175 2005-10-05  Simon Josefsson  <jas@extundo.com>
100177         * lib/memxor.c (memxor): Fix compiler error.
100179         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
100180         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
100182         * lib/memxor.h, lib/memxor.c: New files.
100184         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
100185         we assume all systems have it, suggested by Jim Meyering
100186         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
100187         any systems lack sys/socket.h; mingw32 is known to lack it, but we
100188         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
100189         same reasons.
100191 2005-10-05  Simon Josefsson  <jas@extundo.com>
100193         * config/srclist.txt: Add glibc bug 1423 for md5.h.
100195 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
100197         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
100198         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
100199         needed, since the source code now assumes these .h files.
100201 2005-10-05  Derek Price  <derek@ximbiot.com>
100203         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
100205 2005-10-05  Bruno Haible  <bruno@clisp.org>
100207         * modules/stdint (License): Change to LGPL.
100209 2005-10-04  Simon Josefsson  <jas@extundo.com>
100211         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
100212         D. Baushke" <mdb@gnu.org>.
100214 2005-10-04  Bruno Haible  <bruno@clisp.org>
100216         * lib/verify.h (verify_true): Provide alternative definition for C++.
100218 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
100220         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
100221         (SSIZE_MAX): New macro, if not already defined.
100222         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
100223         than 2 GiB.
100225 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
100227         Sync from coreutils.
100228         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
100229         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
100230         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
100231         ULLONG_MAX doesn't work with 2.7.2.1.
100233 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
100235         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
100236         From Ben Pfaff.
100238         * modules/exclude (Depends-on): Depend on verify.
100239         * modules/strtoimax (Depends-on): Likewise.
100240         * modules/utimecmp (Depends-on): Likewise.
100242 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
100244         * lib/exclude.c: Include verify.h.
100245         (verify): Remove.  All callers changed to use verify.h's version.
100246         * lib/strtoimax.c: Likewise.
100247         * lib/utimecmp.c: Likewis.e
100249         Sync from coreutils.
100250         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
100251         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
100252         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
100253         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
100254         bother returning ENOSYS if settimeofday or stime fails; just let
100255         them return whatever errno they want to return.
100256         * lib/utimens.c: Include unistd.h, for dup2.
100257         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
100258         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
100260 2005-10-02  Jim Meyering  <jim@meyering.net>
100262         Sync from coreutils.
100263         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
100264         from glibc-2.2.5 that fails for read-only files.
100266 2005-10-02  Jim Meyering  <jim@meyering.net>
100268         Sync from coreutils.
100269         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
100270         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
100271         `#if HAVE_CONFIG_H'.
100272         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
100273         Remove AT_FDCWD test.
100274         Do not consume the fd unless successful.
100275         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
100276         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
100277         block, so that we don't even try to compile it if settimeofday is
100278         available.  This works around a compilation failure on OSF1 V5.1,
100279         due to stime requiring a `long int*' while tv_sec is `int'.
100281 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
100283         Sync from coreutils.
100284         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
100285         against `yes', rather than just testing for nonempty.
100287 2005-10-01  Simon Josefsson  <jas@extundo.com>
100289         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
100290         and Darwin.
100292         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
100293         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
100294         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
100295         freeaddrinfo and gai_strerror are declared by the POSIX headers.
100296         Check if struct addrinfo is declared.
100298 2005-10-01  Simon Josefsson  <jas@extundo.com>
100300         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
100301         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
100302         AI_* and EAI_* definitions.  Protect function declarations.
100304 2005-10-01  Jim Meyering  <jim@meyering.net>
100306         Sync from coreutils.
100308         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
100309         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
100310         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
100311         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
100312         in the inet and nsl libraries.  Required on Solaris 5.7.
100314 2005-10-01  Jim Meyering  <jim@meyering.net>
100316         Sync from coreutils.
100317         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
100318         in the inet and nsl libraries.  Required on Solaris 5.7.
100320 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
100322         * lib/getdelim.c (getdelim): Remove unused variables.
100324 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
100326         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
100327         so that the code works even with ancient cpp.  Portability problem
100328         with GCC 2.7.2.1 reported by Thomas M.Ott.
100330 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
100332         * modules/regex (Depends-on): Add strcase.
100334         * modules/gethostname (Licence): Change from GPL to LGPL, since
100335         gethostname.c is a trivial implementation of a standard library
100336         function.
100337         * modules/poll (License): Change from GPL to LGPL, since it's
100338         derived from LGPL code.
100340 2005-09-27  Jim Meyering  <jim@meyering.net>
100342         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
100343         HAVE_CONFIG_H.
100345         * lib/intprops.h (signed_type_or_expr__): Define.
100346         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
100347         for unsigned types.
100349 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
100351         * lib/verify.h (verify_expr): Remove, replacing with:
100352         (verify_true): New macro that returns true instead of void.
100353         (verify_type__): Remove.
100354         (verify): Use verify_true rather than verify_type__.
100356 2005-09-26  Bruno Haible  <bruno@clisp.org>
100358         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
100359         is necessary.
100360         (lib_SOURCES): Remove mbchar.c.
100361         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
100362         (Files): Add m4/mbrtowc.m4.
100363         * modules/mbiter: Likewise.
100364         * modules/mbuiter: Likewise.
100366 2005-09-26  Bruno Haible  <bruno@clisp.org>
100368         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
100369         compile mbchar.c if they are not both present.
100370         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
100371         * m4/mbiter.m4 (gl_MBITER): Likewise.
100372         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
100373         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
100374         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
100376 2005-09-25  Jim Meyering  <jim@meyering.net>
100378         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
100379         also uses socklen_t.
100381 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
100383         * lib/utimens.c (ENOSYS): Define if not already defined.
100384         (futimens): Support having a null PATH if the file descriptor
100385         is nonnegative.
100387         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
100388         Remove.
100389         (__attribute): Define to empty unless GCC 3.1 or later.
100390         This works around a core dump on OpenBSD 3.4, which has GCC
100391         2.95.3, which dumps core when given __attribute__(()).  It also
100392         simplifies other tests, since we really don't want to bother with
100393         worrying about which ancient version of GCC supported what.
100394         Original problem reported by Yoann Vandoorselaere, with part of
100395         the fix suggested by Derek Price.
100397 2005-09-24  Jim Meyering  <jim@meyering.net>
100399         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
100400         so we can once again use a positive bitfield width of 1 -- now we
100401         don't have to explain why we were using a bitfield width of 2.
100403 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
100405         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
100406         and similarly for the other external symbols.  Problem reported
100407         by James Gallager.
100409         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
100410         bug reported by Jim Meyering.
100412         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
100413         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
100414         not needed, since socklen is a prerequisite module.
100416 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
100418         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
100419         Problem reported by Eric Blake.
100420         (getaddrinfo): Initialize se so that it's not garbage.
100421         Redo internal storage allocation so that it doesn't make unportable
100422         assumptions about alignment.
100423         Fix a memory leak.
100425         * lib/utimens.c (futimens): Use futimesat if available.
100426         Prefer it to futimes since it doesn't have the futimes bug.
100428         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
100429         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
100430         Instead, declare a function that returns a pointer to an array,
100431         and use verify_type__ to declare the size of the array.
100432         Problem and germ of a solution reported by Bruno Haible.
100433         (verify_type__): Use 2, not 1, for bitfield size, to avoid
100434         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
100436 2005-09-23  Jim Meyering  <jim@meyering.net>
100438         Sync from coreutils.
100439         Correct build failure (socklen_t not defined) on at least
100440         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
100441         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
100443 2005-09-23  Jim Meyering  <jim@meyering.net>
100445         * modules/getaddrinfo (Depends-on): Add socklen.
100447 2005-09-23  Bruno Haible  <bruno@clisp.org>
100449         * tests/test-verify.c: New file.
100451 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100453         Sync from coreutils.
100455         * modules/argmatch (Depends-on): Add verify.
100456         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
100457         unistd-safer.
100458         * modules/save-cwd (Depends-on): Likewise.
100460         * modules/openat (Files): Add lib/openat-die.c.
100461         (Depends-on): Remove error, exitfail.
100462         Add dirname.
100464         * modules/verify: New file.
100465         * MODULES.html.sh (Diagnostics <assert.h>): New section,
100466         with "verify" module.
100468 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100470         Sync from coreutils.
100472         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
100473         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
100474         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
100475         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
100476         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
100477         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
100478         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
100479         Don't bother checking for string.h, stdlib.h, unistd.h.
100480         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
100481         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
100482         module's job.
100483         * m4/jm-macros.m4 (gl_MACROS): Likewise.
100484         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
100486         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
100487         (gl_GETDATE): Use it.
100489         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
100491 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100493         Sync from coreutils.
100495         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
100496         stat-time.h.
100497         * lib/argmatch.h: Include verify.h
100498         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
100499         (ARGMATCH_ASSERT): Remove; unused.
100500         * lib/canonicalize.c: Assume STDC_HEADERS.
100501         * lib/exclude.c: Include "strcase.h".
100502         * lib/regex_internal.h [!defined _LIBC]: Likewise.
100503         * lib/getusershell.c: Include stdio--.h rather than stdio.h
100504         and stdio-safer.h.
100505         (getusershell): Call fopen, not fopen_safer.
100506         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
100507         Do not include unistd-safer.h.
100508         (save_cwd): Don't call fd_safer; no longer needed
100509         now that we include fcntl--.h.
100511         * lib/getdate.y (relative_time): New type.
100512         (RELATIVE_TIME_0): New constant.
100513         (parser_control): Use relative_time instead of doing it ourselves.
100514         (%union): Add new relative_time rel member.
100515         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
100516         Now typeless.
100517         (relunit, relunit_snumber): Now of type rel.
100518         (zone, rel, relunit, get_date): Adjust to above changes.
100520         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
100521         Do not include unistd-safer.h.
100522         (getloadavg): Don't call fd_safer; no longer needed
100523         now that we include fcntl--.h.
100525         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
100526         (make_dir_parents): Treat ENOSYS like EEXIST.
100528         Improve quality of diagnostics on restore_cwd failure.
100529         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
100530         (make_dir_parents): Last arg is now int * (for errno), not bool *.
100531         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
100532         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
100533         each time through the loop.  Do not diagnose restore_cwd failure;
100534         that is the caller's job (and perhaps the caller does not care).
100536         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
100537         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
100538         If the file already exists but is not a directory, don't bother
100539         to try to make its parents.
100540         Close potential file descriptor leak if we can't chdir("/") (!).
100541         Don't always return true if chdir($PWD) fails; return true only
100542         if the requested action was done successfully (except for the
100543         chdir($PWD)).
100544         Don't log final directory unless we actually made it.
100545         Refactor to avoid duplicate code to fix up permissions.
100546         Don't attempt to fix up parent permissions if chdir($PWD) fails.
100548         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
100549         to make it a bit faster and (I hope) clearer.
100550         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
100551         Fix bug in formats like %2N.
100553         * lib/verify.h: New file.
100555 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100557         Sync from coreutils.
100558         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
100560 2005-09-22  Jim Meyering  <jim@meyering.net>
100562         Sync from coreutils.
100564         * m4/lstat.m4 (gl_FUNC_LSTAT):
100565         Use AC_LIBSOURCES to require lstat.c and lstat.h.
100566         Remove obsolete comment.
100567         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
100568         * m4/xstrtod.m4: Likewise.
100570         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
100572 2005-09-22  Jim Meyering  <jim@meyering.net>
100574         Sync from coreutils.
100576         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
100578         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
100579         the .tm_year member, since otherwise gcc-4.0 would now warn about
100580         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
100582         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
100583         order to avoid an unsuppressible warning from gcc on 64-bit systems.
100585         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
100586         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
100587         when run in a time zone for which daylight savings time is in effect
100588         for the starting date.
100590         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
100591         stop us from restricting permissions of just-created absolute-named
100592         directories.
100593         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
100594         to restore initial working directory.
100595         * lib/mkdir-p.c (make_dir_parents): New parameter:
100596         different_working_dir, to tell caller if/when we change the working
100597         directory and are unable to return to the initial one.
100598         * lib/mkdir-p.h (make_dir_parents): Update prototype.
100599         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
100600         `return false'.  This fixes a bug introduced on 2004-07-30.
100602         * lib/openat.c (fdopendir): Be sure to close the supplied
100603         file descriptor before returning.  This makes our replacement
100604         implementation a little closer to Solaris's, where fdopendir
100605         ties the file descriptor to the returned DIR* pointer.
100606         * lib/openat.c (unlinkat): New function.
100607         * lib/openat.h (unlinkat): Add prototype.
100608         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
100609         (openat_restore_fail): Rename from openat_restore_die.
100610         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
100612         Provide an alternative to exiting immediately upon save_cwd or
100613         restore_cwd failure.  Now, an application can arrange e.g.,
100614         to perform a longjump in that case.
100615         * lib/openat.c: Include dirname.h.
100616         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
100617         (rpl_openat, fdopendir, fstatat): Call openat_save_die
100618         and openat_restore_die rather than calling error directly.
100619         Don't include "error.h" or "exitfail.h"; they're no longer needed.
100621         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
100622         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
100623         define.
100625         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
100626         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
100627                             int utc, int nanoseconds);
100628         Background:
100629         date should not have to allocate a megabyte of virtual memory to
100630         handle a format argument like +%1048575T.  When implemented with
100631         strftime, it must allocate such a buffer, use strftime to fill it
100632         in, print it, then free it.
100633         With fprintftime, it simply prints everything and exits.
100634         With no need for memory allocation, that's one fewer way to fail.
100635         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
100636         optional field width, not before, so we accept %9:z, not %:9z.
100637         (my_strftime): Be sure to use L_('x') for literals.
100639         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
100640         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
100641         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
100642         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
100643         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
100644         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
100645         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
100646         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
100647         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
100648         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
100649         * lib/xgethostname.c, lib/xreadlink.c:
100650         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
100652         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
100653         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
100654         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
100655         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
100656         and don't include <sys/file.h>).
100658 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
100660         Sync from coreutils.
100662         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
100663         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
100664         [!LDAV_DONE]: Avoid unused variable warning.
100666 2005-09-21  Bruno Haible  <bruno@clisp.org>
100668         * lib/unicodeio.h (unicode_to_mb): New declaration.
100670 2005-09-20  Derek Price  <derek@ximbiot.com>
100672         * lib/getaddrinfo.c: Don't include <netdb.h> included from
100673         getaddrinfo.h.
100675 2005-09-20  Bruno Haible  <bruno@clisp.org>
100677         * gnulib-tool: Remove trailing slashes from the values specified for
100678         --source-base, --m4-base, --tests-base, --aux-dir.
100679         Suggested by Simon Josefsson <jas@extundo.com>.
100681 2005-09-20  Bruno Haible  <bruno@clisp.org>
100683         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
100684         func_modules_to_filelist, func_import, func_create_testdir): Make all
100685         sorting results locale-independent, so that gnulib-cache.m4 doesn't
100686         change when gnulib-tool is invoked in a different locale.
100688 2005-09-19  Simon Josefsson  <jas@extundo.com>
100690         * m4/socklen.m4: Fix typo.
100692 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100694         Use a consistent style for including <config.h>.
100695         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
100696         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
100697         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
100698         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
100699         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
100700         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
100701         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
100702         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
100703         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
100704         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
100705         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
100706         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
100707         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
100708         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
100709         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
100710         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
100711         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
100712         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
100713         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
100714         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
100715         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
100716         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
100717         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
100718         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
100719         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
100720         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
100721         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
100722         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
100723         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
100724         lib/xstrtoumax.c, lib/yesno.c:
100725         Standardize inclusion of config.h.
100726         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
100727         lib/inttostr.h:  Removed inclusion of config.h from header files.
100728         * lib/inttostr.c:  Adjusted in-tree users.
100729         * lib/timespec.h: Remove superfluous warning to include config.h.
100730         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
100731         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
100732         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
100733         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
100734         config.h with HAVE_CONFIG_H.
100736 2005-09-19  Jim Meyering  <jim@meyering.net>
100738         * modules/pathmax (License): Change to LGPL.
100740 2005-09-19  Derek Price  <derek@ximbiot.com>
100742         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
100744 2005-09-19  Bruno Haible  <bruno@clisp.org>
100746         * gnulib-tool (import): Provide default for --tests-base.
100748 2005-09-19  Bruno Haible  <bruno@clisp.org>
100750         * doc/quote.texi: New file, extracted from gnulib.texi.
100751         * doc/ctime.texi: New file, extracted from gnulib.texi.
100752         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
100753         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
100754         * doc/gnulib.texi: Include them.
100756 2005-09-18  Bruno Haible  <bruno@clisp.org>
100758         Portability fix.
100759         * gnulib-tool (func_readlink): New function.
100760         (func_ln_if_changed): Use it.
100762 2005-09-18  Bruno Haible  <bruno@clisp.org>
100764         * gnulib-tool: Support --with-tests also with --import.
100765         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
100766         (func_import): Use variables $testsbase and $inctests. Emit a
100767         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
100768         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
100769         SUBDIRS += $testsdir.
100770         (func_create_testdir): Update.
100772 2005-09-18  Bruno Haible  <bruno@clisp.org>
100774         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
100775         instead of $dry_run.
100776         (func_cp_if_changed, func_mv_if_changed): Remove functions.
100777         (func_ln_if_changed): Don't handle dry-run here.
100778         (func_import): In dry-run mode, detect more precisely which actions
100779         would be performed, and don't use "...ing" verbs.
100781 2005-09-18  Bruno Haible  <bruno@clisp.org>
100783         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
100784         (func_import): Use join on two temporary files instead of three nested
100785         loops, in order to determine which files are new or old.
100787 2005-09-18  Bruno Haible  <bruno@clisp.org>
100789         * gnulib-tool (func_import): Comment out code that spits out the
100790         new files with --dry-run.
100792 2005-09-18  Bruno Haible  <bruno@clisp.org>
100794         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
100796 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
100798         * lib/stat-time.h: New file.
100799         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
100800         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
100801         in a different way.
100802         (timespec_cmp): New function.
100803         * lib/utimecmp.c: Include stat-time.h.
100804         (SYSCALL_RESOLUTION): Depend on whether various struct stat
100805         members exist, not on the obsolescent ST_MTIM_NSEC.
100806         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
100808 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
100810         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
100812 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
100814         * MODULES.html.sh (File system functions): Add stat-time.
100815         * modules/stat-time: New file.
100816         * modules/timespec (Files): Remove m4/st_mtim.m4; this
100817         is now done in a different way, by the stat-time module.
100818         * modules/utimecmp (Depends-on): Add stat-time.
100820 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
100822         * m4/st_mtim.m4: Remove.  Superseded by...
100823         * m4/stat-time.m4: New file.
100824         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
100825         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
100827 2005-09-15  Derek Price  <derek@ximbiot.com>
100829         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
100831 2005-09-15  Derek Price  <derek@ximbiot.com>
100833         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
100834         * lib/regex_internal.c: Ditto, using this...
100835         (__GNUC_PREREQ): ...new macro.
100836         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
100837         using...
100838         (__GNUC_PREREQ): ...this new macro.
100840         * lib/strstr.h: Include string.h. Define strstr as a macro here.
100842 2005-09-15  Derek Price  <derek@ximbiot.com>
100843             Paul Eggert  <eggert@cs.ucla.edu>
100845         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
100846         changes, consolidating in...
100847         * lib/regex_internal.h: ...this file.
100849 2005-09-13  Jim Meyering  <jim@meyering.net>
100851         * lib/canon-host.c: Filter through gnu indent and reword comments
100852         slightly.
100853         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
100855 2005-09-13  Derek Price  <derek@ximbiot.com>
100857         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
100858         failure.
100859         Reported by Jim Meyering  <jim@meyering.net>.
100861 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
100863         * lib/base64.c: Typo.
100864         (base64_encode): Put b64str in initialized data section.
100866 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
100868         Merge glibc and coreutils changes into gnulib, plus a few
100869         extra fixes.
100870         * lib/md5.c: Use #error rather than a string.
100871         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
100872         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
100873         (__attribute__): Define to empty for non recent-GCC.
100874         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
100875         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
100876         Renamed from their non-__ counterparts, with new macros replacing
100877         them if not _LIBC.  Add __THROW attribute.
100878         (rol): Remove.
100879         (struct md5_ctx): Align buffer if using GCC.
100880         * lib/sha1.h (struct sha1_ctx): Likewise.
100881         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
100882         The old name was backwards.
100883         (NOTSWAP): Remove; not used.
100884         (rol): New macro, moved here from md5.h.
100885         (sha1_process_block): Remove a FIXME that doesn't make sense.
100887 2005-09-12  Derek Price  <derek@ximbiot.com>
100889         Return usable errors from canon-host.
100890         * lib/canon-host.h: New file.
100891         * lib/canon-host.c (canon_host): Wrap...
100892         (canon_host_r): ...this new function, which now relies exclusively on
100893         getaddrinfo.
100894         (ch_strerror): New function.
100895         (last_cherror): New global.
100896         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
100897         interface.
100898         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
100899         void *.
100900         (freeaddrinfo): Free ai->ai_canonname when set.
100902 2005-09-12  Derek Price  <derek@ximbiot.com>
100904         Make canon-host require getaddrinfo.
100905         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
100906         AC_LIBSOURCE canon-host.h.  Call...
100907         (gl_PREREQ_CANON_HOST): ...this new function, which requires
100908         gl_GETADDRINFO.
100909         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
100911 2005-09-12  Derek Price  <derek@ximbiot.com>
100913         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
100914         LGPL.
100915         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
100917 2005-09-12  Derek Price  <derek@ximbiot.com>
100919         * lib/gai_strerror.c: Include config.h when available.  Include
100920         getaddrinfo.h before other headers to test interface.
100921         Reported by Larry Jones <lawrence.jones@ugs.com>.
100923 2005-09-12  Derek Price  <derek@ximbiot.com>
100924             Paul Eggert  <eggert@cs.ucla.edu>
100926         * modules/glob (Files): Add glob-libc.h.
100928 2005-09-12  Derek Price  <derek@ximbiot.com>
100929             Paul Eggert  <eggert@cs.ucla.edu>
100931         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
100932         glob_.h, glob-libc.h.
100933         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
100935 2005-09-12  Derek Price  <derek@ximbiot.com>
100936             Paul Eggert  <eggert@cs.ucla.edu>
100938         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
100939         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
100940         protecting things that should be done only in gnulib contexts.
100941         * lib/glob_.h: New file, containing only the glob things needed for
100942         gnulib.
100943         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
100944         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
100945         (glob, globfree, glob_pattern_p): Now defined simply in terms of
100946         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
100947         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
100948         and to respect the namespace rules better.
100950 2005-09-08  Simon Josefsson  <jas@extundo.com>
100952         * modules/socklen: New file.
100954 2005-09-08  Simon Josefsson  <jas@extundo.com>
100956         * m4/socklen.m4: New file.
100958 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
100960         * modules/utimens (Files): Add m4/utimbuf.m4, since
100961         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
100962         Reported by Sergey Poznyakoff.
100964 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
100966         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
100967         definitions, since that's the preferred style in glibc.
100968         Fix a minor spacing issue, and update copyright notice to match
100969         glibc's.
100971 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
100973         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
100975 2005-09-06  Simon Josefsson  <jas@extundo.com>
100977         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
100978         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
100980 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
100982         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
100983         warning.
100985 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
100987         * config/srclist.txt: Add glibc bug 1302.
100989 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
100991         Change bitset word type from unsigned int to unsigned long int,
100992         as this has better performance on typical 64-bit hosts.
100993         Port bitset code to hosts with unusual word sizes.
100994         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
100995         (build_collating_symbol):
100996         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
100997         argument is a bitset.  This is merely a style issue, but it makes
100998         it clearer that an entire array is expected.
100999         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
101000         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
101001         Port to the case where bitset_word is not the same as unsigned int.
101002         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
101003         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
101004         Likewise.
101005         * lib/regexec.c (check_dst_limits_calc_pos_1,
101006         check_subexp_matching_top):
101007         (build_trtable, group_nodes_into_DFAstates):
101008         Likewise.
101009         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
101010         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
101011         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
101012         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
101013         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
101014         * lib/regcomp.c (optimize_subexps, lower_subexp):
101015         Work even if bitset_word has holes in its bitwise representation.
101016         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
101017         * lib/regexec.c (check_dst_limits_calc_pos_1,
101018         check_subexp_matching_top):
101019         Likewise.
101020         * lib/regex_internal.c (re_string_reconstruct):
101021         Don't assume UCHAR_MAX == 255.
101022         * lib/regex_internal.h (bitset_set_all): Likewise.
101023         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
101024         All uses changed.
101025         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
101026         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
101027         All uses changed.
101028         (BITSET_WORD_MAX): New macro.
101029         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
101030         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
101031         (bitset_empty, bitset_copy):
101032         Prefer sizeof (bitset) to multiplying it out ourselves.
101033         (bitset_not_merge): Remove; unused.
101034         (bitset_contain): Return bool, not unsigned int with one bit on.
101035         All callers changed.
101036         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
101037         alignment than re_node_set; do this by defining a new internal
101038         type struct dests_alloc and using it to allocate memory.
101040 2005-09-05  Bruno Haible  <bruno@clisp.org>
101042         * gnulib-tool (func_import): Fix comparison in handling of symbolic
101043         links.
101045 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
101047         * modules/size_max (Makefile.am): Add size_max.h
101049 2005-09-04  Derek Price  <derek@ximbiot.com>
101051         * gnulib-tool (func_import): Fix reversed $symbolic logic.
101053 2005-09-03  Simon Josefsson  <jas@extundo.com>
101055         * gnulib-tool: Fix typo.
101057 2005-09-03  Simon Josefsson  <jas@extundo.com>
101059         * config/srclist.txt: Add glibc bug 1293.
101061 2005-09-03  Derek Price  <derek@ximbiot.com>
101063         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
101064         From Larry Jones <lawrence.jones@ugs.com>.
101066 2005-09-02  Simon Josefsson  <jas@extundo.com>
101068         * modules/socklen: New file.
101070 2005-09-02  Simon Josefsson  <jas@extundo.com>
101072         * modules/havelib: New module.
101074         * modules/gettext, modules/iconv, modules/lock, modules/readline:
101075         Use havelib.
101077 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
101079         Check for arithmetic overflow when calculating sizes, to prevent
101080         some buffer-overflow issues.  These patches are conservative, in the
101081         sense that when I couldn't determine whether an overflow was possible,
101082         I inserted a run-time check.
101083         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
101084         macros.
101085         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
101086         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
101087         (re_xnrealloc, re_x2nrealloc): New inline functions.
101088         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
101089         parse_bracket_exp):
101090         (build_equiv_class, build_charclass): Check for arithmetic overflow
101091         in size expression calculations.
101092         * lib/regex_internal.c (re_string_realloc_buffers):
101093         (build_wcs_upper_buffer, re_node_set_add_intersect):
101094         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
101095         (re_dfa_add_node, register_state): Likewise.
101096         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
101097         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
101098         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
101099         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
101101 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
101103         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
101104         m4/ulonglong.m4.  Problem reported by Martin Lambers.
101106 2005-09-02  Bruno Haible  <bruno@clisp.org>
101108         Support for lib vs. lib64 distinction on biarch platforms.
101109         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
101110         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
101111         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
101113 2005-09-02  Bruno Haible  <bruno@clisp.org>
101115         * gnulib-tool (import): In the other first-use case, provide defaults
101116         as well.
101118 2005-09-02  Bruno Haible  <bruno@clisp.org>
101120         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
101121         patches not yet found in the latest gettext release.
101123 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
101125         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
101126         to avoid a collision with bits/local_lim.h in glibc.
101127         All uses changed.  Problem reported by Dmitry V. Levin in
101128         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
101130         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
101131         bugs in int versus size_t comparisons.
101132         (re_string_context_at): Fix bug where the code assumed that
101133         Idx is signed.
101135         Use bool where appropriate.
101136         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
101137         All callers changed.
101138         (calc_eclosure_iter): Likewise, for ROOT arg.
101139         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
101140         (build_charclass_op): Likewise, for NON_MATCH arg.
101141         * lib/regex_internal.c (re_string_allocate, re_string_construct):
101142         (re_string_construct_common): Likewise, for ICASE arg.
101143         * lib/regexec.c (re_search_2_stub, re_search_stub):
101144         Likewise, for RET_LEN arg.
101145         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
101146         (set_regs): Likewise, for FL_BACKTRACK arg.
101147         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
101148         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
101149         (calc_eclosure_iter, parse_bracket_exp):
101150         Use bool for internal variables that are booleans.
101151         * lib/regexec.c (re_search_internal, check_matching,
101152         proceed_next_node):
101153         (set_regs, build_sifted_states, sift_states_bkref):
101154         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
101155         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
101156         (find_collation_sequence_value):
101157         Likewise.
101158         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
101159         (re_node_set_compare):
101160         Return bool, not int. All callers changed.
101161         * lib/regexec.c (check_halt_node_context, check_dst_limits):
101162         (build_trtable, check_node_accept): Likewise.
101163         * lib/regex_internal.h: Include stdbool.h.
101165         Fix bugs uncovered when converting to bool.
101166         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
101167         failure instead of charging ahead blindly.
101168         * lib/regex_internal.c (register_state): Likewise.
101169         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
101170         for freeing internal storage.
101171         (group_nodes_into_DFA_states): Use unsigned int, not int, for
101172         bitset pieces used as boolean, to avoid undefined behavior
101173         on hosts that do int overflow checking.
101175 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
101177         * config/srclist.txt: Add glibc bugs 1285-1287.
101179 2005-09-01  Jim Meyering  <jim@meyering.net>
101181         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
101182         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
101183         Require gl_STAT_MACROS, too.
101185 2005-09-01  Bruno Haible  <bruno@clisp.org>
101187         * gnulib-tool (import): In the first-use case, provide defaults.
101189 2005-09-01  Bruno Haible  <bruno@clisp.org>
101191         * gnulib-tool (func_import): Remove the .tmp files.
101193 2005-09-01  Bruno Haible  <bruno@clisp.org>
101195         * gnulib-tool (func_import): Fix handling of symbolic links.
101197 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
101199         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
101200         old glibc regex code mishandles strings longer than 2**31 bytes.
101201         This patch fixes this when the regex code is used in gnulib
101202         (i.e., outside glibc).
101204         This patch should not affect the use of the regex code inside
101205         glibc.  No doubt this problem also needs to be handled for glibc
101206         as well, but the result will be an incompatible change to the
101207         glibc ABI, and the old ABI will have to be supported too.  That
101208         can be the subject for another patch.
101210         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
101211         governing whether the rest of this patch is active.  By default,
101212         the macro is disabled and the patch has no effect.
101213         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
101214         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
101215         (struct re_pattern_buffer, re_search, re_search_2, re_match):
101216         (re_match_2, re_set_registers): Use the new types.
101217         * lib/regex_internal.h (Idx, re_hashval_t): New types.
101218         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
101219         New macros.
101220         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
101221         (re_string_context_at, bin_tree_t, re_dfastate_t):
101222         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
101223         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
101224         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
101225         (re_string_char_size_at, re_string_wchar_at):
101226         (re_string_elem_size_at):
101227         Use the new types and macros to port to 64-bit hosts.
101228         Use unsigned types for internal values, so that the code
101229         mostly works even for arrays larger than SSIZE_MAX.
101230         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
101231         (search_duplicated_node, calc_eclosure_iter, fetch_number):
101232         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
101233         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
101234         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
101235         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
101236         (calc_inveclosure, parse_dup_op, build_range_exp):
101237         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
101238         (fetch_number, create_token_tree, mark_opt_subexp):
101239         Likewise.
101240         * lib/regex_internal.c (re_string_construct_common,
101241         create_ci_newstate):
101242         (create_cd_newstate, re_string_allocate, re_string_construct):
101243         (re_string_realloc_buffers, build_wcs_upper_buffer):
101244         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
101245         (re_string_reconstruct, re_string_peek_byte_case):
101246         (re_string_fetch_byte_case, re_string_context_at):
101247         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
101248         (re_node_set_init_copy, re_node_set_add_intersect):
101249         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
101250         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
101251         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
101252         (re_acquire_state, re_acquire_state_context, register_state):
101253         Likewise.
101254         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
101255         search_cur_bkref_entry):
101256         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
101257         (re_search_internal, re_search_2_stub, re_search_stub)
101258         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
101259         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
101260         (update_cur_sifted_state, check_dst_limits):
101261         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
101262         (check_subexp_limits, sift_states_bkref, merge_state_array):
101263         (check_subexp_matching_top, get_subexp, get_subexp_sub):
101264         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
101265         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
101266         (expand_bkref_cache, check_node_accept_bytes):
101267         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
101268         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
101269         (acquire_init_state_context, check_halt_node_context):
101270         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
101271         (sift_states_backward, clean_state_log_if_needed):
101272         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
101273         (find_recover_state, transit_state_sb, transit_state_mb):
101274         (transit_state_bkref, build_trtable, match_ctx_clean):
101275         Likewise.
101276         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
101277         to work around an assumption that REG_MISSING is negative.
101279         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
101280         (seek_collating_symbol_entry) [defined _LIBC]:
101281         (lookup_collation_sequence_value) [defined _LIBC]:
101282         (build_range_exp, build_collating_symbol) [defined _LIBC]:
101283         Use prototypes rather than old-style function definitions.
101284         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
101285         (transit_state_sb) [0]:
101286         (find_collation_sequence_value) [defined _LIBC]: Likewise.
101288         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
101289         rm_eo.
101291         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
101292         (optimize_subexps, lower_subexp):
101293         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
101294         since the signed shift might overflow.  Use 1u<<31 instead.
101295         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
101296         Likewise.
101297         * lib/regexec.c (check_dst_limits_calc_pos_1,
101298         check_subexp_matching_top): Likewise.
101300         * lib/regcomp.c (optimize_subexps, lower_subexp):
101301         Use CHAR_BIT rather than 8, for clarity.
101302         * lib/regexec.c (check_dst_limits_calc_pos_1):
101303         (check_subexp_matching_top): Likewise.
101304         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
101305         have to worry about portability issues when shifting it left.
101306         Remove no-longer-needed test for table_size > 0.
101307         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
101308         in a word, as the resulting behavior is undefined.
101309         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
101310         in one case, a <= should have been an <, and in another case the
101311         whole test was missing.
101312         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
101313         the standard name CHAR_BIT.
101314         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
101315         this is not true on one's complement and signed-magnitude hosts.
101317         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
101318         next_last_offset.
101319         (struct re_dfa_t): Remove unused member states_alloc.
101320         * lib/regcomp.c (init_dfa): Don't initialize unused members.
101322 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
101324         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
101325         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
101326         and large-file glibc and in 32-bit large-file Solaris.
101328 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
101330         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
101331         lengths fit in regoff_t; this isn't true if regoff_t is the same
101332         width as size_t.
101333         * lib/regex.c (re_search_internal): 5th arg is LAST_START
101334         (= START + RANGE) instead of RANGE.  This avoids overflow
101335         problems when regoff_t is the same width as size_t.
101336         All callers changed.
101337         (re_search_2_stub): Check for overflow when adding the
101338         sizes of the two strings.
101339         (re_search_stub): Check for overflow when adding START
101340         to RANGE; if it occurs, substitute the extreme value.
101342 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
101344         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
101346 2005-08-31  Jim Meyering  <jim@meyering.net>
101348         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
101349         a pointer-to-const.
101350         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
101351         (register_state): Likewise.
101352         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
101353         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
101354         (group_nodes_into_DFAstates): Likewise.
101356 2005-08-31  Jim Meyering  <jim@meyering.net>
101358         * check-module: Add a FIXME comment.
101360 2005-08-31  Eric Blake  <ebb9@byu.net>
101362         * modules/unistd-safer (Files): Add unistd--.h.
101363         * modules/stdio-safer (Files): Add stdio--.h.
101365 2005-08-31  Derek Price  <derek@ximbiot.com>
101367         * lib/getdelim.c (getdelim): Return EOF on EOF.
101368         Reported by Larry Jones <lawrence.jones@ugs.com>.
101370 2005-08-31  Bruno Haible  <bruno@clisp.org>
101372         Avoid unnecessary diffs in the generated lib/Makefile.am.
101373         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
101374         the generated files.
101375         (func_import): Don't set cmd.
101377 2005-08-31  Bruno Haible  <bruno@clisp.org>
101379         * lib/strstr.c: Include <stddef.h>, for NULL.
101380         * lib/strcasestr.c: Likewise.
101381         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
101383 2005-08-31  Bruno Haible  <bruno@clisp.org>
101385         * gnulib-tool: New option --macro-prefix.
101386         (func_import): Use macro_prefix.
101387         (import): Handle option --macro-prefix.
101389 2005-08-31  Bruno Haible  <bruno@clisp.org>
101391         * gnulib-tool (import): Rename most ac_* variables to cached_*.
101392         Also use new variables cached_lgpl, cached_libtool.
101394 2005-08-31  Bruno Haible  <bruno@clisp.org>
101396         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
101397         always instantiating them.
101399 2005-08-31  Bruno Haible  <bruno@clisp.org>
101401         * gnulib-tool (func_import): Read the previous cached settings
101402         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
101403         earlier added by gnulib but are now dropped. Warn when a gnulib file
101404         overwrites a non-gnulib file.
101406 2005-08-31  Bruno Haible  <bruno@clisp.org>
101408         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
101409         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
101410         projects that don't keep autogenerated files in CVS. Put into
101411         actioncmd only the specified modules, not the transitive closure.
101413 2005-08-31  Bruno Haible  <bruno@clisp.org>
101415         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
101416         Create directories that shall be filled.
101417         (import): Don't look for gl_* macros in configure.ac. Recurse across
101418         all directories containing a gnulib-cache.m4 files, if meaningful.
101420 2005-08-31  Bruno Haible  <bruno@clisp.org>
101422         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
101423         (import): Set seen_libtool when we see gl_LIBTOOL.
101425 2005-08-31  Bruno Haible  <bruno@clisp.org>
101427         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
101428         declaration macro definitions from generated gnulib.m4.
101430 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
101432         * lib/iconvme.h: Add prototype for iconv_alloc.
101434 2005-08-29  Simon Josefsson  <jas@extundo.com>
101436         * lib/iconvme.c: Fix errno.
101438 2005-08-29  Bruno Haible  <bruno@clisp.org>
101440         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
101441         that it works when the directory contains spaces.
101443 2005-08-29  Bruno Haible  <bruno@clisp.org>
101445         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
101447 2005-08-29  Bruno Haible  <bruno@clisp.org>
101449         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
101450         Emit more advice.
101452 2005-08-29  Bruno Haible  <bruno@clisp.org>
101453         and Stepan Kasal  <kasal@ucw.cz>
101455         * check-module: If more parameters are given, check each of them
101456         separately; add more exceptions, as noted by Jim Meyering.
101457         (check_module): New procedure.
101458         (%exempt_header): Now contains all exceptions.
101460 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
101462         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
101464 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
101466         * lib/iconvme.c: Split iconv_string into iconv_alloc.
101468 2005-08-28  Bruno Haible  <bruno@clisp.org>
101470         * m4/gnulib-tool.m4: New file.
101472 2005-08-27  Jim Meyering  <jim@meyering.net>
101474         * modules/unistd-safer (Files): Add pipe-safer.c.
101475         * modules/fcntl-safer (Files): Add creat-safer.c.
101477 2005-08-27  Jim Meyering  <jim@meyering.net>
101479         * m4/stdlib-safer.m4: New file.  From coreutils.
101480         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
101481         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
101482         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
101483         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
101484         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
101486 2005-08-27  Jim Meyering  <jim@meyering.net>
101488         * lib/fopen-safer.c: Merge minor changes from coreutils.
101489         * lib/dup-safer.c: Likewise.
101490         * lib/fd-safer.c: Likewise.
101492         Merge from coreutils.
101493         * lib/stdio--.h: New file.
101494         * lib/stdlib--.h: New file.
101495         * lib/mkstemp-safer.c: New file.
101497         GNU tar needs these.
101498         * lib/pipe-safer.c: New file.
101499         * lib/creat-safer.c: New file.
101500         * lib/fcntl--.h (creat): Define to creat_safer.
101501         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
101502         * lib/unistd--.h (pipe): Define to pipe_safer.
101503         * lib/unistd-safer.h: Declare pipe_safer.
101505 2005-08-26  Simon Josefsson  <jas@extundo.com>
101507         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
101508         Haible <bruno@clisp.org>.
101510 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
101512         * lib/regex_internal.h: Remove all references to
101513         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
101514         or better.
101515         (bitset_not, bitset_merge, bitset_not_merge):
101516         (bitset_mask, re_string_allocate, re_string_construct):
101517         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
101518         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
101519         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
101520         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
101521         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
101522         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
101523         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
101524         (re_acquire_state_context):
101525         Remove unnecessary forward decls.
101526         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
101527         Put __attribute at function definition,
101528         now that the function decl has been removed.
101529         * lib/regex_internal.c (re_string_peek_byte_case):
101530         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
101531         Likewise.
101533 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
101535         * m4/regex.m4: Add AC_PREREQ(2.50).
101536         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
101538 2005-08-25  Simon Josefsson  <jas@extundo.com>
101540         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
101541         __fsetlocking.
101543 2005-08-25  Simon Josefsson  <jas@extundo.com>
101545         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
101546         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
101547         GLIBC specific code.
101549 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101551         Make regex safe for g++.  This fixes one real bug (an "err"
101552         that should have been "*err").  g++ problem reported by
101553         Sam Steingold.
101554         * lib/regex_internal.h (re_calloc): New macro, consistent with
101555         re_malloc etc.  All callers of calloc changed to use re_calloc.
101556         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
101557         not int.  All callers changed.
101558         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
101559         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
101560         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
101561         (find_recover_state): Change "err" to "*err"; this fixes what
101562         appears to be a real bug.
101563         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
101564         versus int.
101566 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101568         * modules/regex (Depends-on): Add malloc, since the code
101569         assumes that !malloc(0) means failure.
101571 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101573         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
101575         alloca modernization/simplification for regex.
101576         * lib/regex.c: Remove portability cruft for alloca.  This no longer
101577         needs to be at the start of the file, and can be moved into
101578         regex_internal.h and simplified.
101579         * lib/regex_internal.h: Include <alloca.h>.
101580         (__libc_use_alloca) [!defined _LIBC]: New macro.
101581         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
101582         now works outside glibc.
101584 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101586         * config/srclist.txt: Add glibc bugs 1241, 1245.
101588 2005-08-25  Jim Meyering  <jim@meyering.net>
101590         * lib/open-safer.c: Include <config.h>.
101591         Otherwise, we'd lose LARGEFILE support in any file using
101592         e.g. "fcntl--.h"
101594 2005-08-25  Bruno Haible  <bruno@clisp.org>
101596         * m4/minmax.m4: Require autoconf 2.52.
101597         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
101598         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
101599         alternatives of translit over the alphabet.
101600         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
101602 2005-08-24  Simon Josefsson  <jas@extundo.com>
101604         * tests/test-getpass.c: New file.
101606 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
101608         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
101609         for GNU regex features.
101611 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
101613         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
101614         * lib/regex.h (regerror): Likewise.
101616         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
101617         requires this.  (The code never needed it.)
101619         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
101620         All uses of recently-renamed identifiers changed to use the new,
101621         POSIX-compliant names.  The code will build and run just fine
101622         without these changes, but it's better to eat our own dog food
101623         and use the standard-conforming names.
101625         * lib/regex.h: Fix a multitude of POSIX name space violations.
101626         These changes have an effect only for programs that define
101627         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
101628         do not change anything for programs compiled in the normal way.
101629         Also, there is no effect on the ABI.
101631         (_REGEX_SOURCE): New macro.
101632         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
101633         defined and _GNU_SOURCE is not; this fixes a name space violation.
101635         Rename the following macros to obey POSIX requirements.
101636         The old names are still visible as macros if _REGEX_SOURCE is defined.
101637         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
101638         RE_BACKSLASH_ESCAPE_IN_LISTS.
101639         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
101640         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
101641         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
101642         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
101643         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
101644         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
101645         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
101646         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
101647         (REG_INTERVALS): renamed from RE_INTERVALS.
101648         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
101649         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
101650         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
101651         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
101652         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
101653         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
101654         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
101655         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
101656         RE_UNMATCHED_RIGHT_PAREN_ORD.
101657         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
101658         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
101659         (REG_DEBUG): renamed from RE_DEBUG.
101660         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
101661         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
101662         unusual, since we can't clash with the POSIX REG_ICASE.
101663         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
101664         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
101665         (REG_NO_SUB): renamed from RE_NO_SUB.
101666         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
101667         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
101668         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
101669         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
101670         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
101671         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
101672         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
101673         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
101674         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
101675         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
101676         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
101677         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
101678         RE_SYNTAX_POSIX_MINIMAL_BASIC.
101679         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
101680         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
101681         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
101682         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
101683         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
101684         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
101685         (REG_FIXED): Renamed from REGS_FIXED.
101686         (REG_NREGS): Renamed from RE_NREGS.
101688         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
101689         of other REG_* macros, since POSIX says the user is allowed to
101690         #undef these macros selectively.
101692         (reg_errcode_t): Update comment stating what other tables need
101693         to be consistent.
101695         Rename the following enum values to obey POSIX requirements.
101696         The old names are still visible as macros.
101697         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
101698         is not defined, since GNU is supposed to be a superset of POSIX as
101699         much as possible, and since we want reg_errcode_t to be a signed
101700         type for implementation consistency.
101701         (_REG_NOERROR): Renamed from REG_NOERROR.
101702         (_REG_NOMATCH): Renamed from REG_NOMATCH.
101703         (_REG_BADPAT): Renamed from REG_BADPAT.
101704         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
101705         (_REG_ECTYPE): Renamed from REG_ECTYPE.
101706         (_REG_EESCAPE): Renamed from REG_EESCAPE.
101707         (_REG_ESUBREG): Renamed from REG_ESUBREG.
101708         (_REG_EBRACK): Renamed from REG_EBRACK.
101709         (_REG_EPAREN): Renamed from REG_EPAREN.
101710         (_REG_EBRACE): Renamed from REG_EBRACE.
101711         (_REG_BADBR): Renamed from REG_BADBR.
101712         (_REG_ERANGE): Renamed from REG_ERANGE.
101713         (_REG_ESPACE): Renamed from REG_ESPACE.
101714         (_REG_BADRPT): Renamed from REG_BADRPT.
101715         (_REG_EEND): Renamed from REG_EEND.
101716         (_REG_ESIZE): Renamed from REG_ESIZE.
101717         (_REG_ERPAREN): Renamed from REG_ERPAREN.
101718         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
101719         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
101720         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
101721         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
101723         (_REG_RE_NAME, _REG_RM_NAME): New macros.
101724         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
101725         changed.  But support the old name if the new one is not defined
101726         and if _REGEX_SOURCE.
101728         Change the following member names in struct re_pattern_buffer.
101729         The old names are still supported if !_REGEX_SOURCE.
101730         The new names are always supported, regardless of _REGEX_SOURCE.
101731         (re_buffer): Renamed from buffer.
101732         (re_allocated): Renamed from allocated.
101733         (re_used): Renamed from used.
101734         (re_syntax): Renamed from syntax.
101735         (re_fastmap): Renamed from fastmap.
101736         (re_translate): Renamed from translate.
101737         (re_can_be_null): Renamed from can_be_null.
101738         (re_regs_allocated): Renamed from regs_allocated.
101739         (re_fastmap_accurate): Renamed from fastmap_accurate.
101740         (re_no_sub): Renamed from no_sub.
101741         (re_not_bol): Renamed from not_bol.
101742         (re_not_eol): Renamed from not_eol.
101743         (re_newline_anchor): Renamed from newline_anchor.
101745         Change the following member names in struct re_registers.
101746         The old names are still supported if !_REGEX_SOURCE.
101747         The new names are always supported, regardless of _REGEX_SOURCE.
101748         (rm_num_regs): Renamed from num_regs.
101749         (rm_start): Renamed from start.
101750         (rm_end): Renamed from end.
101752         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
101753         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
101754         Prepend __ to parameter names.
101756         Undo yesterday's changes.
101758 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
101760         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
101761         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
101762         lib/regex.c.
101764 2005-08-24  Jim Meyering  <jim@meyering.net>
101766         Sync from coreutils.
101767         * m4/fcntl-safer.m4: New file.
101769         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
101770         and object files for this module.
101772 2005-08-24  Jim Meyering  <jim@meyering.net>
101774         Sync from coreutils.
101775         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
101777 2005-08-24  Jim Meyering  <jim@meyering.net>
101779         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
101780         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
101782 2005-08-24  Jim Meyering  <jim@meyering.net>
101784         * modules/fcntl-safer: New module.
101785         * modules/fts (Depends-on): Add fcntl-safer.
101786         * MODULES.html.sh (File descriptor based Input/Output):
101787         Add fcntl-safer.
101789 2005-08-24  Bruno Haible  <bruno@clisp.org>
101791         Support for unit test modules.
101792         * modules/README: Mention tests modules.
101793         * modules/TEMPLATE-TESTS: New file.
101794         * gnulib-tool: New options --extract-tests-module, --with-tests and
101795         --tests-base (unused for the moment).
101796         (testsbase, inctests): New variables.
101797         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
101798         (func_verify_module): Exclude TEMPLATE-TESTS.
101799         (func_verify_nontests_module, func_verify_tests_module): New functions.
101800         (func_get_dependencies): Add implicit dependency for tests modules.
101801         (func_get_tests_module): New function.
101802         (func_modules_transitive_closure): When --with-tests was specified,
101803         include the unit tests as well, unless explicitly avoided.
101804         (func_emit_lib_Makefile_am): Ignore the tests modules here.
101805         (func_emit_tests_Makefile_am): New function.
101806         (func_create_testdir): When --with-tests was specified, emit a
101807         tests/ directory.
101808         * MODULES.html.sh (Future developments): Update.
101810 2005-08-24  Bruno Haible  <bruno@clisp.org>
101812         * modules/tls-tests: New file.
101813         * tests/test-tls.c: New file, from GNU gettext.
101815 2005-08-24  Bruno Haible  <bruno@clisp.org>
101817         * modules/lock-tests: New file.
101818         * tests/test-lock.c: New file, from GNU gettext.
101820 2005-08-24  Bruno Haible  <bruno@clisp.org>
101822         * lib/lock.h: Add multiple inclusion guard.
101823         * lib/tls.h: Add multiple inclusion guard.
101825 2005-08-24  Bruno Haible  <bruno@clisp.org>
101827         * gnulib-tool: Add support for the --aux-dir option to
101828         --create-testdir, --create-megatestdir, --test, --megatest.
101829         (func_create_testdir, func_create_megatestdir): Optionally emit a
101830         AC_CONFIG_AUX_DIR directive.
101831         (create-testdir, create-megatestdir, test, megatest): Provide a
101832         default value for $auxdir.
101834 2005-08-24  Bruno Haible  <bruno@clisp.org>
101836         * gnulib-tool (import): Use compound statement instead of subshell
101837         where possible.
101839 2005-08-24  Bruno Haible  <bruno@clisp.org>
101841         * gnulib-tool (import): Change --aux-dir default to "build-aux".
101843 2005-08-24  Bruno Haible  <bruno@clisp.org>
101845         * gnulib-tool (func_version): Update.
101847 2005-08-24  Bruno Haible  <bruno@clisp.org>
101849         * gnulib-tool (func_import, func_create_testdir,
101850         func_create_megatestdir): Quote all autoconf macro arguments.
101852 2005-08-24  Bruno Haible  <bruno@clisp.org>
101854         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
101855         option --force, because --force causes the aclocal.m4 of each
101856         subdirectory to be newer than the corresponding config.h.in.
101858 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
101860         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
101861         All contents moved to gl_REGEX.
101862         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
101863         assume that it does.
101865 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
101867         * lib/regex.h (REG_NOSYS)
101868         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
101869         Define, since POSIX requires it as of 2001.
101870         (_REG_ENOSYS)
101871         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
101872         New private symbol, used to keep the enum signed in all cases.
101873         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
101874         Youngman in
101875         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
101877         * lib/regex_internal.c (re_string_skip_chars, register_state):
101878         (calc_state_hash):
101879         Remove forward decls; no longer needed now that we use prototypes.
101880         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
101881         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
101882         (clean_state_log_if_needed): Likewise.
101884 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
101886         * config/srclist.txt: Add glibc bugs 1231-1233.
101888 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
101890         Fix problems reported by Sam Steingold in
101891         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
101892         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
101893         assumed that reg_errcode_t is a signed type, which is not
101894         necessarily true if _XOPEN_SOURCE is not defined.
101895         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
101896         since some compilers warn about it otherwise.
101898 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
101900         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
101901         (init_word_char, create_initial_state, duplicate_node_closure):
101902         (fetch_token, peek_token_bracket, build_range_exp):
101903         (build_collating_symbol): Remove forward decls; no longer needed
101904         now that we use prototypes.
101906         * lib/regcomp.c:
101907         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
101908         (re_compile_fastmap_iter, regcomp, regerror, regfree):
101909         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
101910         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
101911         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
101912         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
101913         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
101914         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
101915         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
101916         (build_range_exp, build_collating_symbol, parse_bracket_exp):
101917         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
101918         (build_charclass, build_charclass_op, fetch_number, create_tree):
101919         (create_token_tree, mark_opt_subexp, duplicate_tree):
101920         Use prototypes rather than old-style definitions.
101922         * lib/regex_internal.c:
101923         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
101924         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
101925         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
101926         (re_string_reconstruct, re_string_peek_byte_case):
101927         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
101928         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
101929         (re_node_set_init_copy, re_node_set_add_intersect):
101930         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
101931         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
101932         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
101933         (re_acquire_state, re_acquire_state_context, register_state):
101934         (create_ci_newstate, create_cd_newstate, free_state):
101935         Likewise.
101936         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
101937         re_search_2):
101938         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
101939         (re_search_internal, prune_impossible_nodes):
101940         (acquire_init_state_context, check_matching, static):
101941         (check_halt_node_context, check_halt_state_context, proceed_next_node):
101942         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
101943         (update_regs, sift_states_backward, build_sifted_states):
101944         (clean_state_log_if_needed, merge_state_array):
101945         (update_cur_sifted_state, add_epsilon_src_nodes):
101946         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
101947         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
101948         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
101949         (find_recover_state, check_subexp_matching_top, transit_state_mb):
101950         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
101951         (check_arrival, check_arrival_add_next_nodes):
101952         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
101953         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
101954         (check_node_accept_bytes, check_node_accept, extend_buffers):
101955         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
101956         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
101957         (sift_ctx_init):
101958         Likewise.
101960         * lib/regex_internal.h:
101961         (re_string_allocate, re_string_construct, re_string_reconstruct):
101962         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
101963         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
101964         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
101965         (re_string_context_at, re_string_peek_byte_case):
101966         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
101967         is defined, since we now use prototypes always.
101969         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
101970         C89 or better.  All uses removed.
101972 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
101974         * config/srclist.txt: Add glibc bugs 1220-1227.
101976 2005-08-20  Jim Meyering  <jim@meyering.net>
101978         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
101979         of unused local, dfa.
101981 2005-08-20  Bruno Haible  <bruno@clisp.org>
101983         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
101985 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101987         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
101988         (re_node_set_insert_last, re_dfa_add_node):
101989         Rename local variables to avoid GCC shadowing warnings.
101991 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101993         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
101994         [defined lint]: Suppress bogus uninitialized-variable warnings.
101996         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
101997         and let the caller return REG_ESPACE if out of space.  This
101998         removes an uninitialied-variable warning with GCC 4.0.1, and also
101999         avoids taking the address of a local variable.  All callers
102000         changed.
102002 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102004         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
102005         $LIBCSRC/posix/regexec.c.
102006         Add glibc bug 1217 for regcomp.c.
102008 2005-08-19  Jim Meyering  <jim@meyering.net>
102010         * lib/regexec.c (proceed_next_node): Redo local variables to
102011         avoid GCC shadowing warnings.
102013 2005-08-18  Bruno Haible  <bruno@clisp.org>
102015         * lib/strstr.c (strstr): Fix return value in multibyte case.
102016         * lib/strcasestr.c (strcasestr): Likewise.
102018 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
102020         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
102022 2005-08-17  Jim Meyering  <jim@meyering.net>
102024         Make the %s format (seconds since the epoch) work for a negative
102025         number and when used with a zero-padded field width, e.g. %015s.
102027         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
102028         label so that it precedes the code to set `digits'.  Otherwise,
102029         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
102030         print `00-22'.  Now, it prints `-0022', as it should.
102032 2005-08-17  Bruno Haible  <bruno@clisp.org>
102034         * modules/strstr (Files): Add m4/mbrtowc.m4.
102035         (Depends-on): Add mbuiter.
102037 2005-08-17  Bruno Haible  <bruno@clisp.org>
102039         * modules/strcasestr: New file.
102040         * MODULES.html.sh (String handling, based on ANSI C 89): Add
102041         strcasestr.
102043 2005-08-17  Bruno Haible  <bruno@clisp.org>
102045         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
102047 2005-08-17  Bruno Haible  <bruno@clisp.org>
102049         * modules/mbuiter: New file.
102050         * MODULES.html.sh (Extended multibyte and wide character utilities):
102051         Add mbuiter.
102053 2005-08-17  Bruno Haible  <bruno@clisp.org>
102055         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
102056         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
102058 2005-08-17  Bruno Haible  <bruno@clisp.org>
102060         * m4/strcasestr.m4: New file.
102062 2005-08-17  Bruno Haible  <bruno@clisp.org>
102064         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
102065         * lib/strstr.c: Completely rewritten, with multibyte locale support.
102067 2005-08-17  Bruno Haible  <bruno@clisp.org>
102069         * lib/strcasestr.h: New file.
102070         * lib/strcasestr.c: New file.
102072 2005-08-17  Bruno Haible  <bruno@clisp.org>
102074         * lib/strcasecmp.c: Use mbuiter.h.
102076 2005-08-17  Bruno Haible  <bruno@clisp.org>
102078         * lib/mbuiter.h: New file.
102080 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
102082         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
102083         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
102084         and gl_GETOPT are both invoked via different paths (as happens
102085         with GNU tar CVS because it uses both argp and getopt), the former
102086         wins.
102088 2005-08-16  Bruno Haible  <bruno@clisp.org>
102090         * modules/tls: New file.
102091         * MODULES.html.sh (Multithreading): Add tls.
102093 2005-08-16  Bruno Haible  <bruno@clisp.org>
102095         * modules/strnlen1: New file.
102096         * MODULES.html.sh (String handling): Add strnlen1.
102098 2005-08-16  Bruno Haible  <bruno@clisp.org>
102100         * modules/strcase (Files): Add m4/mbrtowc.m4.
102101         (Depends-on): Add strnlen1, mbchar.
102103 2005-08-16  Bruno Haible  <bruno@clisp.org>
102105         * modules/mbiter: New file.
102106         * MODULES.html.sh (Extended multibyte and wide character utilities):
102107         Add mbiter.
102109 2005-08-16  Bruno Haible  <bruno@clisp.org>
102111         * modules/mbfile: New file.
102112         * MODULES.html.sh (Extended multibyte and wide character utilities):
102113         Add mbfile.
102115 2005-08-16  Bruno Haible  <bruno@clisp.org>
102117         * modules/mbchar: New file.
102118         * MODULES.html.sh (Extended multibyte and wide character utilities):
102119         New section.
102121 2005-08-16  Bruno Haible  <bruno@clisp.org>
102123         * m4/tls.m4: New file, from GNU gettext.
102125 2005-08-16  Bruno Haible  <bruno@clisp.org>
102127         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
102128         always.
102129         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
102131 2005-08-16  Bruno Haible  <bruno@clisp.org>
102133         * m4/mbiter.m4: New file.
102135 2005-08-16  Bruno Haible  <bruno@clisp.org>
102137         * m4/mbfile.m4: New file.
102139 2005-08-16  Bruno Haible  <bruno@clisp.org>
102141         * m4/mbchar.m4: New file.
102143 2005-08-16  Bruno Haible  <bruno@clisp.org>
102145         * lib/tls.h: New file, from GNU gettext.
102146         * lib/tls.c: New file, from GNU gettext.
102148 2005-08-16  Bruno Haible  <bruno@clisp.org>
102150         * lib/strnlen1.h: New file.
102151         * lib/strnlen1.c: New file.
102153 2005-08-16  Bruno Haible  <bruno@clisp.org>
102155         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
102156         (mbi_init): Update.
102157         (mbi_avail, mbi_advance): Let the iteration end before the terminating
102158         NUL byte, not after it.
102160 2005-08-16  Bruno Haible  <bruno@clisp.org>
102162         * lib/strcase.h (strcasecmp): Add note in comments.
102163         * lib/strncasecmp.c: Use code from strcasecmp.c.
102164         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
102165         (strcasecmp): Work correctly in multibyte locales.
102167 2005-08-16  Bruno Haible  <bruno@clisp.org>
102169         * lib/mbiter.h: New file.
102171 2005-08-16  Bruno Haible  <bruno@clisp.org>
102173         * lib/mbfile.h: New file.
102175 2005-08-16  Bruno Haible  <bruno@clisp.org>
102177         * lib/mbchar.h: New file.
102178         * lib/mbchar.c: New file.
102180 2005-08-16  Bruno Haible  <bruno@clisp.org>
102182         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
102183         the valid ones. Makes the comparison operations transitive:
102184         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
102185         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
102187 2005-08-15  Simon Josefsson  <jas@extundo.com>
102189         * modules/ssize_t (License): Change to 'unlimited'.
102191         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
102193 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
102195         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
102196         Add comments for each pending glibc patch.
102198 2005-08-15  Bruno Haible  <bruno@clisp.org>
102200         * lib/regex.h (__restrict_arr): Don't define to __restrict if
102201         __cplusplus is defined.
102203 2005-08-14  Jim Meyering  <jim@meyering.net>
102205         Sync from coreutils.
102207         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
102208         Use the hash-table-based cycle-detection code not just when
102209         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
102210         Reported by James Youngman in
102211         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
102212         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
102213         FTS_TIGHT_CYCLE_CHECK.
102214         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
102215         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
102216         once again.
102217         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
102218         * lib/fts.c (fd_safer): Remove decl.
102219         Include fcntl--.h rather than unistd-safer.h
102220         (fts_safe_changedir): Don't call fd_safer; no longer needed
102221         now that we include fcntl--.h.
102223 2005-08-12  Simon Josefsson  <jas@extundo.com>
102225         * modules/getndelim2: Use ssize_t module.
102226         * modules/getnline: Likewise.
102227         * modules/safe-read: Likewise.
102228         * modules/xreadlink: Likewise.
102230         * modules/ssize_t: New file.
102232 2005-08-12  Simon Josefsson  <jas@extundo.com>
102234         * m4/readline.m4: Look for termcap, curses or ncurses if required.
102236 2005-08-12  Simon Josefsson  <jas@extundo.com>
102238         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
102239         ssize_t.
102241 2005-08-12  Simon Josefsson  <jas@extundo.com>
102243         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
102244         readline, getdelim and check_version.
102245         (Support for systems lacking ISO C 99: Sizes of integer types):
102246         Add size_max.
102248 2005-08-12  Bruno Haible  <bruno@clisp.org>
102250         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
102252 2005-08-11  Simon Josefsson  <jas@extundo.com>
102254         * modules/readline: New file.
102256         * modules/strnlen (Files): Add strnlen.h.
102258 2005-08-11  Simon Josefsson  <jas@extundo.com>
102260         * m4/readline.m4: New file.
102262 2005-08-11  Simon Josefsson  <jas@extundo.com>
102264         * lib/readline.h, readline.c: New file.
102266 2005-08-11  Simon Josefsson  <jas@extundo.com>
102268         * doc/gnulib.texi (Initial import, Finishing touches): Mention
102269         gl_AVOID.
102271 2005-08-11  Bruno Haible  <bruno@clisp.org>
102273         * lib/strnlen.h (strnlen): Change parameter name to match comment.
102275 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
102277         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
102279 2005-08-10  Simon Josefsson  <jas@extundo.com>
102281         * tests/test-iconvme.c: New file.
102283 2005-08-10  Simon Josefsson  <jas@extundo.com>
102285         * m4/strnlen.m4: New file.
102287         * m4/strndup.m4: Don't check for strnlen declaration, done in
102288         strnlen.m4.
102290 2005-08-10  Simon Josefsson  <jas@extundo.com>
102292         * lib/strndup.c: Use strnlen.h.
102294         * lib/strnlen.h: New file.
102296 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
102298         * README: Typos.
102300 2005-08-02  Simon Josefsson  <jas@extundo.com>
102302         * modules/readline: New file.
102304 2005-08-02  Simon Josefsson  <jas@extundo.com>
102306         * modules/getdelim: New file.
102308         * modules/getline: Rewrite, don't use getndelim2.
102310 2005-08-02  Simon Josefsson  <jas@extundo.com>
102312         * m4/getline.m4: Separate out getdelim stuff into separate module.
102314         * m4/getdelim.m4: New file.
102316 2005-08-02  Simon Josefsson  <jas@extundo.com>
102318         * lib/getline.h, getline.c: Rewrite.
102320         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
102322 2005-07-31  Bruno Haible  <bruno@clisp.org>
102324         * lib/lock.h (gl_lock_initializer): New macro.
102325         (gl_lock_define_initialized): Use it.
102326         (gl_rwlock_initializer): New macro.
102327         (gl_rwlock_define_initialized): Use it.
102328         (gl_recursive_lock_initializer): New macro.
102329         (gl_recursive_lock_define_initialized): Use it.
102331 2005-07-30  Karl Berry  <karl@gnu.org>
102333         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
102334         Report from Ben Pfaff, regarding getopt.
102336 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
102338         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
102339         normal way.
102340         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
102341         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
102342         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
102343         (gl_GETOPT): Use the new macros.  Most of the implementation
102344         is moved to the new macros.  This is for programs like Emacs
102345         that don't want all the functionality of gl_GETOPT.
102347 2005-07-26  Bruno Haible  <bruno@clisp.org>
102349         * m4/lock.m4: Update from GNU gettext.
102351 2005-07-26  Bruno Haible  <bruno@clisp.org>
102353         * lib/lock.h: Update from GNU gettext.
102354         * lib/lock.c: Update from GNU gettext.
102356 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
102358         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
102359         obsolescent AC_TRY_RUN.  Include the default includes files, for
102360         'exit'.
102362 2005-07-24  Bruno Haible  <bruno@clisp.org>
102364         * modules/visibility: New file.
102365         * MODULES.html.sh (Misc): Add visibility.
102367 2005-07-24  Bruno Haible  <bruno@clisp.org>
102369         * m4/visibility.m4: New file.
102371 2005-07-24  Bruno Haible  <bruno@clisp.org>
102373         * doc/visibility.texi: New file.
102375 2005-07-22  Bruno Haible  <bruno@clisp.org>
102377         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
102378         $(ALLOCA_H), redundant through BUILT_SOURCES.
102379         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
102380         redundant through BUILT_SOURCES.
102381         * modules/byteswap (Makefile.am): Remove explicit dependency on
102382         $(BYTESWAP_H), redundant through BUILT_SOURCES.
102383         * modules/fnmatch (Makefile.am): Remove explicit dependency on
102384         $(FNMATCH_H), redundant through BUILT_SOURCES.
102385         * modules/getopt (Makefile.am): Remove explicit dependency on
102386         $(GETOPT_H), redundant through BUILT_SOURCES.
102387         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
102388         redundant through BUILT_SOURCES.
102389         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
102390         redundant through BUILT_SOURCES.
102391         * modules/stdbool (Makefile.am): Remove explicit dependency on
102392         $(STDBOOL_H), redundant through BUILT_SOURCES.
102393         * modules/stdint (Makefile.am): Remove explicit dependency on
102394         $(STDINT_H), redundant through BUILT_SOURCES.
102395         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
102396         Remove explicit dependency on $(SYSEXITS_H).
102397         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
102399 2005-07-18  Simon Josefsson  <jas@extundo.com>
102401         * lib/check-version.c (check_version): Accept identical versions too.
102403 2005-07-18  Bruno Haible  <bruno@clisp.org>
102405         * modules/lock: New file.
102406         * MODULES.html.sh (Multithreading): New section.
102408 2005-07-18  Bruno Haible  <bruno@clisp.org>
102410         * m4/lock.m4: New file, from GNU gettext.
102412 2005-07-18  Bruno Haible  <bruno@clisp.org>
102414         * lib/lock.h: New file, from GNU gettext.
102415         * lib/lock.c: New file, from GNU gettext.
102417 2005-07-18  Bruno Haible  <bruno@clisp.org>
102419         * lib/lock.h (gl_once_t): New type.
102420         (gl_once_define, gl_once): New macros.
102421         * lib/lock.c (fresh_once): New variable.
102422         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
102423         functions.
102425 2005-07-16  Simon Josefsson  <jas@extundo.com>
102427         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
102428         workaround, suggested by Bruno.
102430 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
102432         * modules/xalloc (Depends-on): Add xalloc-die.
102433         * modules/xvasprintf (Depends-on): Add xalloc-die.
102435 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
102437         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
102438         with a minor change.
102440 2005-07-15  Bruno Haible  <bruno@clisp.org>
102442         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
102443         When using lib/poll.c, define poll as rpl_poll.
102445 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
102447         * modules/argp (Depends-on): Remove unlocked-io.
102449 2005-07-14  Derek Price  <derek@ximbiot.com>
102451         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
102452         for glob symlink bug.
102454 2005-07-14  Bruno Haible  <bruno@clisp.org>
102456         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
102457         Instead, test for *_unlocked function declarations directly.
102459 2005-07-11  Simon Josefsson  <jas@extundo.com>
102461         * modules/size_max: New file.
102463         * modules/xsize: Depend on size_max module for size_max.m4.
102465 2005-07-11  Simon Josefsson  <jas@extundo.com>
102467         * lib/size_max.h: New file.
102469 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
102471         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
102472         copyright symbol and the year.
102473         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
102474         (version_etc_va): Use parameterized copyright notice.
102475         Reword to conform to the current GNU coding standards.
102477 2005-07-11  Karl Berry  <karl@gnu.org>
102479         * doc/gnulib.texi (Quoting): new node.
102480         (Initial import): more info, from Patrice.
102482 2005-07-11  Bruno Haible  <bruno@clisp.org>
102484         * gnulib-tool (func_usage): Document option --avoid.
102485         (Command line options): Handle --avoid.
102486         (func_acceptable): New function.
102487         (func_modules_transitive_closure): Use it.
102489 2005-07-11  Bruno Haible  <bruno@clisp.org>
102491         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
102492         Reported by Jim Meyering.
102494 2005-07-10  Bruno Haible  <bruno@clisp.org>
102496         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
102497         Needed when size_t is smaller than 'unsigned int'.
102498         Reported by Paul Eggert.
102500 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102502         * modules/argp (Depends-on): Add unlocked-io
102504 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102506         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
102507         block of defines.
102509 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
102511         * config/srclist.txt: Comment out regcomp.c, since we have a porting
102512         fix now.
102514 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
102515         and Paul Eggert  <eggert@cs.ucla.edu>
102517         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
102518         in wint_t, not wchar_t.  Remove now-unnecessary cast.
102520 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102522         * modules/regex (Files): Add lib/regex_internal.c,
102523         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
102524         (Depends-on): Add extensions.
102525         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
102527 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102529         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
102530         pathconf.
102531         * m4/same.m4 (gl_SAME): Likewise.
102532         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
102534         * m4/regex.m4: Adjust to new libc regex implementation.
102535         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
102536         all the .c and .h parts of (the new) regex.
102537         Quote the m4 stuff better.
102538         Check for RE_ICASE bug of old gnulib.
102539         Check for REG_STARTEND of recent libc.
102540         Rename local variables from jm_* to gl_*.
102541         Quote operand of "test -f".
102542         Say "recent enough" version of libc, not "version 2".
102543         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
102544         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
102545         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
102546         Remove check for btowc, isascii.
102547         Require AM_LANGINFO_CODESET.
102549 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102551         * lib/regex.c, regex.h: Sync from libc.
102552         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
102553         * lib/regexec.c:
102554         New files, synced from libc, except that regex_internal.h
102555         currently has a small porting fix.
102557 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102559         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
102560         regex_internal.c, regexec.c.
102561         Add regex_internal.h too, but as a comment, since the libc version
102562         is currently broken in gnulib mode.
102564 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
102566         Support programs like Emacs that use gnulib but not gettext.
102567         * MODULES.html.sh (Internationalization functions): Add gettext-h.
102568         * modules/gettext-h: New file.
102569         * modules/gettext (Files): Remove lib/gettext.h.
102570         (Depends-on): Add gettext-h.
102571         (Makefile.am): Remove lib_SOURCES.
102572         * modules/argmatch, modules/c-stack, modules/closeout:
102573         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
102574         * modules/execute, modules/file-type, modules/getaddrinfo:
102575         * modules/getopt, modules/human, modules/javacomp:
102576         * modules/javaexec, modules/mkdir-p, modules/obstack:
102577         * modules/openat, modules/pagealign_alloc, modules/pipe:
102578         * modules/quotearg, modules/regex, modules/rpmatch:
102579         * modules/unicodeio, modules/userspec, modules/version-etc:
102580         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
102581         * modules/xsetenv:
102582         Depend on gettext-h, not gettext.
102584 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
102586         * gnulib-tool (func_import): Add support for 'public domain' license.
102587         * modules/alloca, modules/atexit, modules/memmove:
102588         Now public domain, not GPL.
102589         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
102590         * modules/realloc, modules/strerror, modules/strtod:
102591         Now LGPL, not GPL.
102593 2005-07-05  Bruno Haible  <bruno@clisp.org>
102595         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
102596         autoconf CVS. Needed for mingw.
102598 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
102600         Remove the dependency of the strftime module on the tzset module.
102601         * modules/strftime (Depends-on): Remove dependency on tzset.
102603 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
102605         Remove the dependency of the strftime module on the tzset module.
102606         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
102607         gl_FUNC_TZSET_CLOBBER.
102609 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
102611         Remove the dependency of the strftime module on the tzset module.
102612         * lib/strftime.c (my_strftime)
102613         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
102614         Copy the input structure, to work around some of the bug with
102615         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
102616         Solaris releases, you should also use the tzset module, but we won't
102617         require it as a dependency any more since we don't want LGPLed code
102618         to depend on GPLed code.
102620 2005-07-02  Jim Meyering  <jim@meyering.net>
102622         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
102623         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
102624         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
102625         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
102627 2005-07-02  Jim Meyering  <jim@meyering.net>
102629         * lib/backupfile.c (backup_args): Change a `0' to NULL.
102631 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
102633         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
102634         declares only 'struct timespec;' (!).
102636 2005-07-01  Jim Meyering  <jim@meyering.net>
102638         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
102639         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
102640         * lib/save-cwd.c, tempname.c:
102641         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
102642         and don't include <sys/file.h>).
102644 2005-06-29  Jim Meyering  <jim@meyering.net>
102646         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
102647         type name.  Use the variable name instead.
102648         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
102649         Likewise.
102651 2005-06-28  Simon Josefsson  <jas@extundo.com>
102653         * modules/check-version (Files): Add check-version.m4.
102655 2005-06-28  Simon Josefsson  <jas@extundo.com>
102657         * m4/check-version.m4: New file, suggested by Jim Meyering
102658         <jim@meyering.net>.
102660 2005-06-28  Simon Josefsson  <jas@extundo.com>
102662         * lib/check-version.h, lib/check-version.c: New files.
102664 2005-06-28  Simon Josefsson  <jas@extundo.com>
102666         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
102667         collision with global variable.  Better indentation.  Don't
102668         increment buffer pointer beyond buffer end.  Based on comments
102669         from Paul Eggert <eggert@cs.ucla.edu>.
102671         * lib/base64.h: Indent.
102673 2005-06-28  Simon Josefsson  <jas@extundo.com>
102675         * doc/gnulib.texi (Library version handling): New section.
102677 2005-06-28  Jim Meyering  <jim@meyering.net>
102679         * check-module (find_included_lib_files): Hard-code another
102680         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
102681         but modules/fts-lgpl (correctly) does not list those files.
102683         * modules/canonicalize (Files): Add lib/pathmax.h.
102685 2005-06-25  Simon Josefsson  <jas@extundo.com>
102687         * modules/check-version: New file.
102689 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
102691         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
102692         initializer of struct addrinfo, as an indication that we don't
102693         care how many members the structure has.
102695 2005-06-24  Derek Price  <derek@ximbiot.com>
102696         and Bruno Haible  <bruno@clisp.org>
102698         Remove stat module & update lstat.
102699         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
102700         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
102701         * m4/stat.m4: Remove this file.
102703 2005-06-24  Derek Price  <derek@ximbiot.com>
102704         and Bruno Haible  <bruno@clisp.org>
102706         Remove stat module & update lstat.
102707         * lib/stat.c: Remove this file...
102708         (slash_aware_lstat): ...moving this content and its support...
102709         * lib/lstat.c (rpl_lstat): ...into here.
102710         * lib/lstat.h: New file.
102712 2005-06-24  Derek Price  <derek@ximbiot.com>
102713         and Bruno Haible  <bruno@clisp.org>
102715         Remove stat module & update lstat.
102716         * config/srclist.txt (libc sources): Remove stat.
102718 2005-06-24  Derek Price  <derek@ximbiot.com>
102719         and Bruno Haible  <bruno@clisp.org>
102721         Remove stat module & update lstat.
102722         * MODULES.html.sh (stat): Remove.
102723         * MODULES.html: Regenerated.
102724         * modules/lstat (Description): Correct function name.
102725         (Files): Add "lstat.h".
102726         (Depends-on): Remove stat, add xalloc, stat-macros.
102727         * modules/stat: Remove this file.
102728         (Include): Add "lstat.h", remove <sys/stat.h>.
102730 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102732         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
102733         (ranged_convert): Don't save conversion in a temporary struct.
102734         This causes a warning with GCC 4.0.0, and anyway in the typical
102735         case it's not worth the extra 100 bytes or so of code.
102736         (ranged_convert, __mktime_internal): When calling a function via a
102737         pointer P, use P () rather than (*P) (), as we now assume C89 or
102738         better.
102740 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
102742         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
102743         "who -r" failed to give output.  Problem reported by Tim Waugh.
102745         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
102746         (xcalloc): Use it to avoid needless tests.
102747         Problem reported by Jim Meyering.
102749 2005-06-20  Derek Price  <derek@ximbiot.com>
102751         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
102752         unnecessary for Autoconfs > 2.59c.
102754 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102756         * lib/argp.h (__option_is_short): Check upper limit of
102757         __key. Isprint() requires its argument to have the value
102758         of an unsigned char or EOF.
102760 2005-06-16  Jim Meyering  <jim@meyering.net>
102762         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
102763         when either N or S is zero.
102765 2005-06-16  Derek Price  <derek@ximbiot.com>
102767         * m4/bison.m4: Declare YACC & YFLAGS precious.
102769 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
102771         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
102772         multibyte string or pattern, fall back on unibyte matching.
102773         Problem reported by James Youngman.
102775 2005-06-08  Bruno Haible  <bruno@clisp.org>
102777         * modules/csharpcomp: New file.
102778         * MODULES.html.sh (C#): Add csharpcomp.
102780 2005-06-08  Bruno Haible  <bruno@clisp.org>
102782         * m4/csharpcomp.m4: New file, from GNU gettext.
102784 2005-06-08  Bruno Haible  <bruno@clisp.org>
102786         * lib/csharpcomp.h: New file, from GNU gettext.
102787         * lib/csharpcomp.c: New file, from GNU gettext.
102788         * lib/csharpcomp.sh.in: New file, from GNU gettext.
102790 2005-06-08  Bruno Haible  <bruno@clisp.org>
102792         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
102793         warning on mingw.
102795 2005-06-07  Derek Price  <derek@ximbiot.com>
102797         Sync from CVS.
102798         * lib/glob_.h: Indent nested #ifdef.
102800 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
102802         Sync from coreutils.
102803         Use "file name" when talking about file names, instead of "filename"
102804         or "path", as per the GNU coding standards.
102805         * lib/mkdir-p.c: Renamed from makepath.c.
102806         (make_dir_parents): Renamed from make_path.  All callers changed.
102807         * lib/mkdir-p.h: Likewise.  All includers changed.
102808         * lib/filenamecat.c: Renamed from path-concat.c.
102809         (file_name_concat): Renamed from path_concat.  All callers changed.
102810         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
102811         * lib/filenamecat.h: Likewise.  All includers changed.
102812         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
102813         in comments or local variable names.
102814         * lib/basename.c: Likewise.
102815         * lib/canonicalize.c, canonicalize.h: Likewise.
102816         * lib/dirname.c, dirname.h: Likewise.
102817         * lib/euidaccess.c: Likewise.
102818         * lib/exclude.c: Likewise
102819         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
102820         * lib/fsusage.c, fsuage.h: Likewise.
102821         * lib/fts.c, fts_.h: Likewise.
102822         * lib/getcwd.c: Likewise.
102823         * lib/getloadavg.c: Likewise.
102824         * lib/mkstemp.c: Likewise.
102825         * lib/mountlist.c, mountlist.h: Likewise.
102826         * lib/openat.c, openat.h: Likewise.
102827         * lib/readlink-stub.c: Likewise.
102828         * lib/readutmp.c, readutmp.h: Likewise.
102829         * lib/rename.c: Likewise.
102830         * lib/rmdir.c: Likewise.
102831         * lib/same.c: Likewise.
102832         * lib/savedir.c: Likewise.
102833         * lib/stripslash.c: Likewise.
102834         * lib/tempname.c: Likewise.
102835         * lib/xreadlink.c: Likewise.
102836         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
102837         All uses changed.
102838         * lib/exclude.h: Likewise.
102840         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
102841         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
102842         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
102843         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
102844         * lib/pathmax.h: Include <limits.h> unconditionally, since other
102845         files have been getting away with it for years (MORE/BSD 4.3
102846         is extinct now).
102847         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
102848         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
102850         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
102851         Define to 256, not 255, as per modern POSIX.
102853 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
102855         Sync from coreutils.
102856         Use "file name" when talking about file names, instead of "filename"
102857         or "path", as per the GNU coding standards.
102858         * MODULES.html.sh: mkdir-p renamed from makepath.
102859         filenamecat renamed from path-concat.
102860         * modules/filenamecat: Renamed from modules/path-concat.
102861         (Files): filenamecat.h and filenamecat.c renamed from
102862         path-concat.h and path-concat.c.
102863         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
102864         (Include): filenamecat.h, not path-concat.h.
102865         * modules/mkdir-p: Renamed from modules/makepath.
102866         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
102867         makepath.c.
102868         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
102869         (Include): mkdir-p.h, not makepath.h.
102871 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
102873         Sync from coreutils.
102874         * m4/mkdir-p.m4: Renamed from makepath.m4.
102875         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
102876         Rename files from makepath.c to mkdir-p.c, and from
102877         makepath.h to mkdir-p.h.
102878         * m4/filenamecat.m4: Renamed from path-concat.m4.
102879         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
102880         Rename files from path-concat.c to filenamecat.c,
102881         and from path-concat.h to filenamecat.h.
102882         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
102883         "file name" in local variables or comments.
102884         * m4/rename.m4: Likewise.
102886 2005-06-01  Bruno Haible  <bruno@clisp.org>
102888         * modules/csharpexec: New file.
102889         * MODULES.html.sh (C#): New section.
102891 2005-06-01  Bruno Haible  <bruno@clisp.org>
102893         * m4/csharp.m4: New file, from GNU gettext.
102894         * m4/csharpexec.m4: New file, from GNU gettext.
102896 2005-06-01  Bruno Haible  <bruno@clisp.org>
102898         * lib/csharpexec.h: New file, from GNU gettext.
102899         * lib/csharpexec.c: New file, from GNU gettext.
102900         * lib/csharpexec.sh.in: New file, from GNU gettext.
102902 2005-05-31  Derek Price  <derek@ximbiot.com>
102903             Paul Eggert  <eggert@cs.ucla.edu>
102905         Sync from cvs.
102906         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
102908 2005-05-31  Derek Price  <derek@ximbiot.com>
102909             Paul Eggert  <eggert@cs.ucla.edu>
102911         Sync from cvs.
102912         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
102914 2005-05-29  Derek Price  <derek@ximbiot.com>
102916         * config/srclist.txt (glob_.h, glob.c): Add these files.
102918 2005-05-29  Derek Price  <derek@ximbiot.com>
102920         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
102921         * modules/glob: New file.
102922         * modules/getlogin_r: Add link to POSIX spec in description.
102924 2005-05-29  Derek Price  <derek@ximbiot.com>
102925             Paul Eggert  <eggert@cs.ucla.edu>
102927         * m4/glob.m4: New file.
102929 2005-05-29  Derek Price  <derek@ximbiot.com>
102930             Paul Eggert  <eggert@cs.ucla.edu>
102932         * lib/glob_.h, lib/glob.c: New files.
102934 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
102936         * modules/fts (Files): Remove m4/inttypes-pri.m4.
102937         * modules/fts-lgpl (Depends-on): Remove gettext.
102939 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
102941         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
102942         and don't require gt_INTTYPES_PRI.
102944 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
102946         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
102948         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
102949         the configuration hassle isn't worth it.
102950         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
102951         (LONGEST_MODIFIER, PRIuMAX): Remove.
102953 2005-05-27  Bruno Haible  <bruno@clisp.org>
102955         * lib/getlogin_r.h: Remove second include of <stddef.h>.
102957 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
102959         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
102960         _POSIX_PTHREAD_SEMANTICS for Solaris.
102962 2005-05-25  Derek Price  <derek@ximbiot.com>
102964         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
102966 2005-05-25  Derek Price  <derek@ximbiot.com>
102967             Paul Eggert  <eggert@cs.ucla.edu>
102969         * modules/getlogin_r, m4/getlogin_r.m4: New files.
102970         * lib/getlogin_r.c, getlogin_r.h: New files.
102972 2005-05-25  Bruno Haible  <bruno@clisp.org>
102973             Derek Price  <derek@ximbiot.com>
102975         * lib/getlogin_r.h: Simplify API documentation.
102977 2005-05-23  Derek Price  <derek@ximbiot.com>
102979         * modules/minmax (Files): Add m4/minmax.m4.
102980         (configure.ac): Add gl_MINMAX.
102982 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
102984         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
102985         so that unistd-safer.h (GPL'ed code) need not be included.
102987 2005-05-22  Bruno Haible  <bruno@clisp.org>
102989         * m4/minmax.m4: New file.
102990         Based on a patch by Derek Price <derek@ximbiot.com>.
102992 2005-05-22  Bruno Haible  <bruno@clisp.org>
102994         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
102995         (INT64_MIN): Fix definition.
102996         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
102998         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
102999         NEED_SIGNED_INT_TYPES.
103001         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
103002         HAVE_SYSTEM_INTTYPES.
103004 2005-05-22  Bruno Haible  <bruno@clisp.org>
103006         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
103007         Also include <sys/param.h> if it defines MIN, MAX.
103008         Based on a patch by Derek Price <derek@ximbiot.com>.
103010 2005-05-21  Jim Meyering  <jim@meyering.net>
103012         * modules/fts (Files): Add m4/inttypes-pri.m4.
103013         (Depends-on): Add lstat and remove gettext.  Alphabetize.
103015 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103017         New fts module.
103018         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
103019         (setup_dir, free_dir): New functions.
103020         (enter_dir, leave_dir): Define trivial
103021         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
103022         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
103023         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
103024         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
103025         Move to fts-cycle.c.
103026         (fts_open): Use setup_dir.
103027         (fts_close): Use free_dir.
103028         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
103029         This adds a label and some gotos, but the alternatives were messier.
103030         Check for memory allocation failure when entering a dir.
103031         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
103032         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
103033         (FTS): New member fts_cycle, that is a union that contains the
103034         old active_dir_ht and cycle_state.  All uses changed to mention
103035         fts_cycle.ht and fts_cycle.state.
103036         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
103037         fts.c, with the following changes:
103038         (setup_dir, free_dir): New functions.
103039         (enter_dir): Now returns bool.  Return true if successful, false
103040         if memory exhausted.  All callers changed.
103041         Do not bother partly cleaning up on
103042         memory allocation failure; that is free_dir's job.
103043         However, free ad if hash_insert fails, to avoid memory leak.
103044         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
103045         fts->fts_options to see which union member to use.
103047 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103049         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
103050         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
103052 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103054         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
103056 2005-05-20  Jim Meyering  <jim@meyering.net>
103058         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
103059         Now a macro, to pacify GCC.
103061 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
103063         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
103064         of -1.
103066 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
103068         * lib/chown.c (rpl_chown): Return -1 on failure.
103070 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
103072         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
103073         Don't check for stddef.h.
103074         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
103075         don't use its results.
103076         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
103077         since we include them unconditionally.  Don't require
103078         AM_STDBOOL_H, since stdbool is a prerequisite.
103079         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
103080         since we assume C89 or better.
103081         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
103082         as we don't use their results.
103083         Don't check for fchdir, memmove, memset, strrchr, as we use
103084         them unconditionally.
103085         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
103086         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
103088 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
103090         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
103091         Include <stddef.h> unconditionally, since we assume C89 now.
103092         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
103093         * lib/fts.c: Include fts_.h first, to check interface.
103094         Do not include intprops.h; no longer needed.
103095         Include cycle-check.h and hash.h, since fts_.h no longer does.
103096         Remove unnecessary casts of closedir to void.
103097         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
103098         decide whether to decrement nlinks.
103099         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
103100         (FTS): Use struct hash_table * instead of Hash_table, so that
103101         we no longer need to include hash.h here.
103103 2005-05-18  Jim Meyering  <jim@meyering.net>
103105         * modules/dirfd (License): Change to LGPL.  Most of the code
103106         is already in the public domain.
103108 2005-05-18  Jim Meyering  <jim@meyering.net>
103110         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
103111         Reported by Yoann Vandoorselaere.
103113 2005-05-17  Jim Meyering  <jim@meyering.net>
103115         * m4/fts.m4: New file, from coreutils.
103117 2005-05-17  Jim Meyering  <jim@meyering.net>
103119         * lib/fts.c, lib/fts_.h: New files, from coreutils.
103121 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
103123         Sync from coreutils.
103124         * m4/unlinkdir.m4: New file.
103126 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
103128         Sync from coreutils.
103129         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
103130         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
103131         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
103132         White space changes only.
103133         * lib/makepath.c (make_path): Port to hosts where leading "//" is
103134         special.
103135         * lib/yesno.c: Include getline.h, not ctype.h.
103136         (yesno): Don't remove leading white space; POSIX doesn't allow it.
103137         Use getline to remove arbitrary restriction on response length.
103139 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
103141         * config/srclist-update: Spell out "Street" in FSF postal
103142         mail address; this is the style the FSF seems to prefer.
103144         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
103145         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
103146         this updates FSF postal mail address.
103148         Sync from coreutils.
103149         * modules/unlinkdir: New file.
103150         * modules/yesno (Depends-on): Add getline.
103151         * MODULES.html.sh (File system functions): Add unlinkdir.
103153 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
103155         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
103156         lib/strsep.h:
103157         Change the initial comment to refer to GPL, not LGPL.
103158         gnulib-tool will change it to LGPL as needed.
103160         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
103161         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
103162         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
103163         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
103164         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
103165         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
103166         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
103167         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
103168         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
103169         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
103170         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
103171         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
103172         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
103173         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
103174         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
103175         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
103176         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
103177         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
103178         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
103179         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
103180         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
103181         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
103182         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
103183         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
103184         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
103185         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
103186         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
103187         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
103188         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
103189         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
103190         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
103191         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
103192         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
103193         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
103194         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
103195         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
103196         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
103197         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
103198         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
103199         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
103200         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
103201         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
103202         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
103203         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
103204         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
103205         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
103206         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
103207         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
103208         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
103209         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
103210         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
103211         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
103212         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
103213         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
103214         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
103215         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
103216         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
103217         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
103218         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
103219         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
103220         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
103221         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
103222         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
103223         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
103224         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
103225         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
103226         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
103227         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
103228         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
103229         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
103230         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
103231         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
103232         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
103233         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
103234         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
103235         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
103236         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
103237         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
103238         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
103239         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
103240         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
103241         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
103242         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
103243         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
103244         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
103245         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
103246         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
103247         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
103248         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
103249         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
103250         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
103251         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
103252         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
103253         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
103254         lib/yesno.c, lib/yesno.h:
103255         Update FSF postal mail address.
103257 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
103259         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
103260         tests/test-memmem.c, tests/test-stpncpy.c:
103261         Update FSF postal mail address.
103263 2005-05-13  Bruno Haible  <bruno@clisp.org>
103265         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
103266         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
103267         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
103268         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
103269         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
103270         Add support for 64-bit integers in the MSVC compiler.
103272 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103274         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
103276 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
103278         * gnulib-tool (func_import): Sort and uniquify recommended includes.
103280 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
103282         * doc/getdate.texi (General date syntax): Don't say that date
103283         date --iso-8601=ns generates acceptable dates; it doesn't yet.
103284         Problem reported by Nic Ferrier.
103286 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103288         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
103289         specified in ai_socktype. Fix invalid ai_protocol
103290         check. ai_protocol is usually set to 0 or depending on
103291         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
103292         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
103293         ai_socktype / ai_protocol in the returned addrinfo structure.
103295 2005-05-10  Simon Josefsson  <jas@extundo.com>
103297         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
103298         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
103300 2005-05-10  Karl Berry  <karl@gnu.org>
103302         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
103303         (from http://www.gnu.org/licenses).
103304         * doc/COPYING.LIB: also rename to COPYING.LESSER.
103305         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
103306         fdl.texi suffices.
103308 2005-05-10  Karl Berry  <karl@gnu.org>
103310         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
103311         (COPYING.DOC): remove.
103313         * config/srclist-update: new FSF address.
103315 2005-05-10  Derek Price  <derek@ximbiot.com>
103317         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
103318         possible.
103320 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103321             Bruno Haible  <bruno@clisp.org>
103323         * modules/inet_ntop: New file.
103324         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103325         inet_ntop.
103327 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103328             Bruno Haible  <bruno@clisp.org>
103330         * m4/inet_ntop.m4: New file.
103332 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103333             Bruno Haible  <bruno@clisp.org>
103335         * lib/inet_ntop.h: New file.
103336         * lib/inet_ntop.c: New file, from glibc with modifications.
103338 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
103340         * modules/time_r (License): Change to LGPL.
103341         * modules/extensions (License): Change to LGPL.  Actually,
103342         the license is more permissive than that, but currently gnulib-tool
103343         doesn't know how to handle more-permissive licenses.
103345         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
103346         Problem reported by Dave Love.
103348 2005-05-08  Jim Meyering  <jim@meyering.net>
103350         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
103351         blank.
103353 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
103355         * modules/argmatch (Depends-on): Add stdbool.
103356         * modules/backupfile (Depends-on): Likewise.
103357         * modules/chdir-long (Depends-on): Likewise.
103358         * modules/closeout (Depends-on): Likewise.
103359         * modules/cycle-check (Depends-on): Likewise.
103360         * modules/dirname (Depends-on): Likewise.
103361         * modules/fnmatch (Depends-on): Likewise.
103362         * modules/fsusage (Depends-on): Likewise.
103363         * modules/fwriteerror (Depends-on): Likewise.
103364         * modules/getcwd (Depends-on): Likewise.
103365         * modules/getloadavg (Depends-on): Likewise.
103366         * modules/hard-locale (Depends-on): Likewise.
103367         * modules/makepath (Depends-on): Likewise.
103368         * modules/mountlist (Depends-on): Likewise.
103369         * modules/nanosleep (Depends-on): Likewise.
103370         * modules/posixtm (Depends-on): Likewise.
103371         * modules/quotearg (Depends-on): Likewise.
103372         * modules/readtokens (Depends-on): Likewise.
103373         * modules/readtokens0 (Depends-on): Likewise.
103374         * modules/readutmp (Depends-on): Likewise.
103375         * modules/save-cwd (Depends-on): Likewise.
103376         * modules/strftime (Depends-on): Likewise.
103377         * modules/userspec (Depends-on): Likewise.
103378         * modules/utimecmp (Depends-on): Likewise.
103379         * modules/xgetcwd (Depends-on): Likewise.
103380         * modules/xnanosleep (Depends-on): Likewise.
103381         * modules/xstrtod (Depends-on): Likewise.
103382         * modules/yesno (Depends-on): Likewise.
103384 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
103386         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
103387         needless checks.
103389 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103391         Merge from coreutils.  Among other things,
103392         add bulletproofing for cases where stdin, stdout, or stderr are closed.
103393         * lib/fd-safer.c: New file.
103394         * lib/fcntl-safer.h, open-safer.c: Remove.
103395         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
103396         * lib/dup-safer.c: Include unistd-safer.h first.
103397         Don't include errno.h.
103398         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
103399         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
103400         * lib/file-type.c: Rely on file-type.h change.
103401         * lib/getloadavg.c: Include unistd-safer.h.
103402         (getloadavg): Use safer open.
103403         * lib/getusershell.c: Include "stdio-safer.h".
103404         (getusershell): Use safer fopen.
103405         * lib/long-options.c (long_options): Use NULL rather than 0.
103406         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
103407         'free'.
103408         * lib/modechange.c: Likewise.
103409         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
103410         (MODE_DONE): New constant.
103411         (struct mode_change): Remove 'next' member.
103412         (make_node_op_equals): New function; like the old one of the
103413         same name, except it allocates an array.
103414         (mode_compile, mode_create_from_ref): Use it.
103415         (mode_compile): Allocate result as an array, not a linked list.
103416         Parse octal string ourself, so that we catch mistakes like "+0".
103417         (mode_adjust): Arg is an array, not a linked list.
103418         * lib/modechange.c: Include stat-macros.h, xalloc.h.
103419         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
103420         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
103421         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
103422         Remove.  This is now stat-macros.h's job.
103423         (talloc): Remove.  All callers replaced by xalloc, so that
103424         our invokers don't have to worry about reporting memory failures.
103425         (make_node_op_equals): Remove.
103426         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
103427         New constants.
103428         (struct mode_change): Moved here from modechange.h.
103429         (mode_append_entry): Remove.
103430         (mode_compile): Remove MASKED_OPS arg, since it encouraged
103431         apps to have incorrect behavior.  Use simpler algorithm for head
103432         and tail.  Don't futz with umask; that's now the job of mode_adjust.
103433         Detect more invalid usages rather than having somewhat-random behavior.
103434         Don't insert an "a=" action, as that leads to incorrect behavior.
103435         (mode_compile, mode_create_from_ref): Return NULL on error instead
103436         of an enum, since now there's only one way to have an error.  All
103437         callers changed.
103438         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
103439         at the correct time.  Simplify calculation of "+u" and its ilk.
103440         Don't mishandle "+X".
103441         (mode_free): Remove "register" and localize decls.
103442         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
103443         (struct mode_change): Move to modechange.c; callers don't
103444         need to see this stuff.
103445         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
103446         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
103447         (mode_change, mode_adjust): Reflect the new signatures noted above.
103448         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
103449         that might redefine system include files.
103450         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
103451         (my_usleep): Use NULL rather than (void *) 0.
103452         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
103453         Use siginterrupt to specify that system calls should be interrupted.
103454         (rpl_nanosleep): Move initialization of suspended closer to call of
103455         my_usleep.
103456         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
103457         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
103458         (desirable_utmp_entry): New function.
103459         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
103460         using x2nrealloc, to simplify logic.
103461         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
103462         size calculation.  Do not assume utmp file is a regular file.
103463         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
103464         (READ_UTMP_CHECK_PIDS): New constant.
103465         * lib/save-cwd.c: Include unistd-safer.h.
103466         (save_cwd): Use fd_safer.
103467         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
103468         [!_LIBC] Include "stat-macros.h" instead.
103469         * lib/unistd-safer.h (fd_safer): New decl.
103471 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103473         * modules/getloadavg (Depends-on): Add unistd-safer.
103474         * modules/getusershell (Depends-on): Add stdio-safer.
103475         * modules/lstat (Depends-on): Remove xalloc.
103476         * modules/mkstemp (Depends-on): Add stat-macros.
103477         * modules/modechange (Depends-on): Remove xstrtol.
103478         Add stat-macros, xalloc.
103479         * modules/save-cwd (Depends-on): Add unistd-safer.
103480         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
103481         * modules/unistd-safer (Files): Add lib/fd-safer.c
103482         (Makefile.am): Remove lib_SOURCES.
103484         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
103485         Remove fcntl-safer; unistd-safer supersedes it.
103487 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103489         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
103490         AC_HEADER_STAT.
103491         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
103492         (gl_PREREQ_CHOWN): Remove.
103493         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
103494         it.  Don't require AC_HEADER_STAT.
103495         (gl_PREREQ_LSTAT): Remove.
103496         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
103497         Don't require AC_HEADER_STAT.
103498         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
103499         (gl_PREREQ_RMDIR): Remove.
103500         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
103501         mention stat-macros.h or AC_HEADER_STAT, since we'll make
103502         the stat-macros module a prerequisite.
103503         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
103504         * m4/filemode.m4 (gl_FILEMODE): Likewise.
103505         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
103506         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
103507         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
103508         variable names.
103509         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
103510         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
103511         variable prefixes.
103512         * m4/fcntl-safer.m4: Remove.
103513         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
103514         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
103515         Invoke gl_PREREQ_FD_SAFER.
103516         (gl_PREREQ_FD_SAFER): New macro.
103517         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
103518         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
103519         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
103520         Remove duplicate call to AC_LIBOBJ(readutmp).
103521         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
103523         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
103524         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
103526 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103528         * MODULES.html.sh (Misc): Add byteswap.
103530 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103532         * modules/getcwd (Depends-on): Add extensions.
103533         * modules/openat (Depends-on): Likewise.
103535 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103537         * modules/byteswap: New file.
103539 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103541         * m4/byteswap.m4: New file.
103543 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103545         * lib/byteswap_.h: New file.
103547 2005-04-25  Karl Berry  <karl@gnu.org>
103549         * m4/gettext.m4: Update from GNU gettext 0.14.4.
103551 2005-04-25  Albert Chin  <china@thewrittenword.com>
103553         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
103554         Toolkit C bug.
103556 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
103558         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
103559         (func_ln_if_changed): Remove forcibly for no error message
103560         in case file does not exist.
103562 2005-04-19  Simon Josefsson  <jas@extundo.com>
103564         * gnulib-tool (Options): Make --symlink mean --symbolic.
103566 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
103568         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
103570 2005-04-16  Simon Josefsson  <jas@extundo.com>
103572         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
103574 2005-04-15  Simon Josefsson  <jas@extundo.com>
103576         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
103578 2005-04-15  Simon Josefsson  <jas@extundo.com>
103580         * gnulib-tool: Rename --symlink to --symbolic.
103582 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
103584         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
103585         symbolic links to files instead of copying/moving.  Add --aux-dir,
103586         specifying directory relative --dir where auxiliary build tools
103587         are placed.
103589 2005-04-14  Bruno Haible  <bruno@clisp.org>
103591         * modules/allocsa (License): Change to LGPL.
103592         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
103594 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
103596         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
103597         that "UTC +1 second" continues to work.  Problem reported
103598         by Dmitry V. Levin.
103599         (relunit_snumber): New rule.
103600         (relunit): Use it.
103602 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
103604         * lib/getdate.y (universal_time_zone_table): New constant.
103605         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
103606         universal_time_zone_table.
103607         (lookup_zone): Prefer universal_time_zone_table to
103608         local_time_zone_table, so that "GMT" time stamps are allowed in
103609         London during the summer.  Problem reported by Ian Abbott.
103611 2005-04-12  Jim Meyering  <jim@meyering.net>
103613         * lib/human.c (humblock): Set *options even when returning due to
103614         xstrtoumax conversion failure.  Thanks to a used-uninitialized
103615         warning from gcc-4.
103617 2005-04-09  Jim Meyering  <jim@meyering.net>
103619         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
103620         -Wuninitialized: initialize tm0.tm_year.
103622 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
103624         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
103625         count, since there's no maximum.  All uses changed.
103626         Add member dsts_seen.
103627         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
103628         not being INT_MAX.
103629         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
103630         Use pc_rels_seen to decide whether a date is absolute.
103632         * lib/getdate.y (number): Don't overwrite year.
103633         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
103634         check.
103636 2005-04-02  Simon Josefsson  <jas@extundo.com>
103638         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
103639         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
103641 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
103643         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
103644         where no absolute path name can be longer than PATH_MAX.
103646 2005-03-27  Jim Meyering  <jim@meyering.net>
103648         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
103650 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
103652         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
103653         "one's complement" -> "ones' complement" in comment, as per Knuth.
103654         "value of type" -> "type or expression" in comment.
103655         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
103657 2005-03-26  Jim Meyering  <jim@meyering.net>
103659         Comment nits.
103660         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
103661         Correct typos: s/or/of/.
103663 2005-03-26  Jim Meyering  <jim@meyering.net>
103665         * modules/check-include-files: Move to ../ and rename to...
103666         * check-module: ...this.
103668 2005-03-25  Jim Meyering  <jim@meyering.net>
103670         * modules/xvasprintf (Files): Add xalloc.h.
103672 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
103674         * modules/gettext (Files): config/config.rpath ->
103675         build-aux/config.rpath
103676         * modules/iconv (Files): Likewise.
103677         Problem reported by Oskar Liljeblad.
103679 2005-03-23  Jim Meyering  <jim@meyering.net>
103681         * modules/check-include-files: New script to check for
103682         missing dependencies, multiple includes, etc.
103684         * modules/c-strtold (Depends-on): Add xalloc.
103685         * modules/c-strtod (Depends-on): Add xalloc.
103686         * modules/hash (Depends-on): Add xalloc.
103687         (Files): Remove lib/xalloc.h.
103689         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
103690         * modules/userspec (Files): Add lib/inttostr.h.
103692 2005-03-23  Jim Meyering  <jim@meyering.net>
103694         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
103696 2005-03-22  Jim Meyering  <jim@meyering.net>
103698         * modules/stat-macros: New module.
103699         * modules/canonicalize, modules/euidaccess, modules/file-type,
103700         * modules/filemode, modules/lchown, modules/makepath,
103701         * modules/rmdir, modules/stat: Depend on new stat-macros module
103702         rather than listing lib/stat-macros.h manually.
103703         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
103705 2005-03-22  Jim Meyering  <jim@meyering.net>
103707         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
103709 2005-03-22  Bruno Haible  <bruno@clisp.org>
103711         * config/srclist.txt: Replace target directory 'config' with
103712         'build-aux'.
103713         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
103714         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
103715         ../build-aux/.
103717 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
103719         * modules/chdir-long (Depends-on): Add mempcpy.
103721         * modules/acl, modules/backupfile, modules/c-strtod,
103722         modules/c-strtold, modules/canon-host, modules/canonicalize,
103723         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
103724         modules/exclude, modules/exitfail, modules/file-type,
103725         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
103726         modules/getdate, modules/getline, modules/getpagesize,
103727         modules/getpass, modules/getugroups, modules/group-member,
103728         modules/hard-locale, modules/hash, modules/human, modules/idcache,
103729         modules/inttostr, modules/long-options, modules/makepath,
103730         modules/md5, modules/memcasecmp, modules/memcoll,
103731         modules/modechange, modules/mountlist, modules/path-concat,
103732         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
103733         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
103734         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
103735         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
103736         modules/strftime, modules/strndup, modules/strverscmp,
103737         modules/timespec, modules/unlocked-io, modules/userspec,
103738         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
103739         modules/yesno:
103740         Remove lib_SOURCES line from Makefile.am section, as this is now
103741         done automatically by the corresponding Autoconf macro.
103743 2005-03-21  Jim Meyering  <jim@meyering.net>
103745         Changes imported from coreutils.
103747         * lib/cycle-check.c: Don't include xalloc.h.
103749         * lib/path-concat.c: Don't include assert.h.
103750         (path_concat): Remove assertion that would have triggered
103751         for ABASE starting with more than one slash.
103752         Reported by Andreas Schwab.
103754         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
103755         properly when ABASE is an absolute file name.
103756         Correct the description of this function.
103757         Include <assert.h>.
103758         Add an assertion and a test driver.
103759         This fixes a bug introduced on 2004-07-02.
103760         Andreas Schwab reported the resulting failure of cp --parents:
103761         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
103763 2005-03-21  Jim Meyering  <jim@meyering.net>
103765         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
103766         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
103768 2005-03-21  Jim Meyering  <jim@meyering.net>
103769         and  Paul Eggert  <eggert@cs.ucla.edu>
103771         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
103772         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
103773         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
103774         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
103775         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
103776         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
103777         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
103778         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
103779         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
103780         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
103781         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
103782         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
103783         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
103784         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
103785         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
103786         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
103787         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
103788         for these modules.
103790 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
103792         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
103793         (which shouldn't happen), generate nothing instead of returning 0
103794         immediately, so that nstrftime (NULL, ...) doesn't return 0.
103796 2005-03-16  Bruno Haible  <bruno@clisp.org>
103798         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
103799         HAVE_LONGLONG_64BIT.
103801 2005-03-16  Bruno Haible  <bruno@clisp.org>
103803         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
103804         HAVE_LONGLONG_64BIT.
103806 2005-03-16  Bruno Haible  <bruno@clisp.org>
103808         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
103809         HAVE_LONGLONG_64BIT.
103811 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
103813         * lib/strftime.c (my_strftime): Prepend space to format so that we can
103814         reliably distinguish strftime failure from empty output on POSIX
103815         hosts.
103817 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
103819         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
103820         (iconv_string): Don't guess a size-zero buffer, as that might cause
103821         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
103822         result would be 'too large', where 'too large' is (heuristically)
103823         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
103824         overflow concerns.  This will prevent some unwanted malloc failures
103825         when the inputs are very large.
103827 2005-03-15  Karl Berry  <karl@gnu.org>
103829         * config/srclist.txt (config.rpath): from gettext.
103830         * config/config.rpath: update.
103832 2005-03-15  Bruno Haible  <bruno@clisp.org>
103834         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
103835         to 'negate'.
103837         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
103838         variable.
103840         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
103841         results.
103843 2005-03-14  Simon Josefsson  <jas@extundo.com>
103845         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
103846         <fx@gnu.org>.
103848 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
103850         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
103851         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
103852         intprops.h.
103853         * lib/strtol.c: Likewise.
103855 2005-03-14  Jim Meyering  <jim@meyering.net>
103857         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
103858         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
103859         to be nonzero so that we (and caller) can detect the difference
103860         between a valid zero-length expansion and an error return, even
103861         when the underlying strftime fails before writing anything into
103862         that location.
103864 2005-03-14  Bruno Haible  <bruno@clisp.org>
103866         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
103867         Update from GNU gettext 0.14.3.
103869 2005-03-10  Jim Meyering  <jim@meyering.net>
103871         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
103873 2005-03-10  Jim Meyering  <jim@meyering.net>
103875         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
103876         so that this module works on systems without fchdir.
103878 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
103880         Factor int-properties macros into a single file, except for
103881         glibc-related files.
103882         * lib/intprops.h: New file.
103883         * lib/getloadavg.c: Include it instead of limits.h.
103884         (INT_STRLEN_BOUND): Remove.
103885         * lib/human.c: Include intprops.h.
103886         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
103887         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
103888         302/1000.
103889         * lib/inttostr.h: Include intprops.h instead of limits.h.
103890         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
103891         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
103892         for consistency with intprops.h.
103893         (time_t_is_integer, twos_complement_arithmetic): Use them.
103894         * lib/sig2str.h: Include <signal.h>, intprops.h.
103895         (INT_STRLEN_BOUND): Remove.
103896         * lib/strftime.c (TYPE_SIGNED): Remove.
103897         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
103898         * lib/strtol.c: Adjust comments to match intprops.h.
103899         * lib/userspec.c: Include intprops.h.
103900         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
103901         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
103902         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
103903         instead of rolling our own expressions.
103904         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
103906         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
103907         instead of int.
103908         (my_strftime): Do not mishandle years close to INT_MAX, by doing
103909         the right thing even if adding 1900 would overflow.  Similarly
103910         for tm_mon + 1 and tm_yday + 1.
103911         Make %Y always equivalent to %C%y, and similarly for %G and %g.
103912         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
103913         (DO_SIGNED_NUMBER): New macro.
103914         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
103916 2005-03-07  Bruno Haible  <bruno@clisp.org>
103918         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
103920 2005-03-07  Bruno Haible  <bruno@clisp.org>
103922         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
103924 2005-03-04  Derek R. Price  <derek@ximbiot.com>
103926         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
103927         (func_import): Only replace files via --import when they have actually
103928         changed.
103930 2005-03-03  Derek R. Price  <derek@ximbiot.com>
103932         * m4/mmap-anon.m4: New file.
103933         * m4/pagealign_alloc.m4: New file.
103935 2005-03-03  Derek R. Price  <derek@ximbiot.com>
103936             Bruno Haible  <bruno@clisp.org>
103938         * modules/pagealign_alloc: New file.
103939         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
103941 2005-03-03  Derek R. Price  <derek@ximbiot.com>
103942             Bruno Haible  <bruno@clisp.org>
103944         * lib/pagealign_alloc.h: New file.
103945         * lib/pagealign_alloc.c: New file.
103947 2005-03-03  Bruno Haible  <bruno@clisp.org>
103949         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
103950         Use an all-permissive copyright notice, recommended by RMS.
103952 2005-03-02  Bruno Haible  <bruno@clisp.org>
103954         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
103955         of AIX, the replacement has to be done only after <string.h> is
103956         included, therefore not in config.h. stpncpy.h does the replacement,
103957         and stpncpy.c uses it.
103959 2005-03-02  Bruno Haible  <bruno@clisp.org>
103961         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
103962         stpncpy.c uses it.
103964 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103966         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
103967         The workaround isn't strictly needed for POSIX conformance, and
103968         it's too much of a pain to configure and maintain.  We'll ask
103969         people to fix their kernels instead.
103970         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
103971         (NANOSLEEP_BUG_WORKAROUND): Remove.
103972         (xnanosleep): Remove the workaround.
103974 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103976         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
103977         Reported by Derek Price.
103978         (Include): Add "timespec.h".
103980         * modules/xnanosleep (Depends-on): Remove gethrxtime.
103982 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103984         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
103985         to detect nanosleep bug.
103987 2005-03-01  Bruno Haible  <bruno@clisp.org>
103989         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
103991 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
103993         * modules/gethrxtime: New file.
103994         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
103995         (Depends-on): Add gethrxtime.
103996         (configure.ac): Add gl_XNANOSLEEP.
103997         (Makefile.am): Remove lib_SOURCES line.
103999 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104001         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
104002         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
104004 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104006         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
104007         * lib/timespec.h (gettime): Return void, since it always
104008         succeeds now.  All uses changed.
104009         * lib/gettime.c (gettime): Likewise.
104010         [HAVE_NANOTIME]: Prefer nanotime.
104011         Assume gettimeofday succeeds, as POSIX requires.
104012         Assime time () succeeds, since other code already does.
104013         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
104014         (timespec_subtract): Remove.
104015         (NANOSLEEP_BUG_WORKAROUND): New constant.
104016         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
104017         things considerably.  Use it only on GNU/Linux hosts, since the
104018         workaround shouldn't be needed elsewhere.
104020 2005-02-24  Bruno Haible  <bruno@clisp.org>
104022         * modules/gettext (Files): Add m4/glibc2.m4.
104024 2005-02-24  Bruno Haible  <bruno@clisp.org>
104026         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
104027         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
104028         * m4/progtest.m4:
104029         Update from GNU gettext 0.14.2.
104030         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
104032 2005-02-24  Bruno Haible  <bruno@clisp.org>
104034         * lib/localcharset.c: Update from GNU gettext 0.14.2.
104035         * lib/config.charset: Update from GNU gettext 0.14.2.
104037 2005-02-24  Bruno Haible  <bruno@clisp.org>
104039         * lib/gettext.h: Update from GNU gettext 0.14.2.
104041 2005-02-23  Simon Josefsson  <jas@extundo.com>
104043         * m4/iconvme.m4: New file.
104045 2005-02-23  Jim Meyering  <jim@meyering.net>
104047         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
104048         change.
104049         Thanks to Bruno Haible for catching it.
104051 2005-02-22  Simon Josefsson  <jas@extundo.com>
104053         * modules/iconvme: New file.
104055         * MODULES.html.sh: Add iconvme.
104057 2005-02-22  Simon Josefsson  <jas@extundo.com>
104059         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
104061 2005-02-22  Simon Josefsson  <jas@extundo.com>
104063         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
104065 2005-02-22  Jim Meyering  <jim@meyering.net>
104067         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
104068         s/ifndef/ifdef/.
104070 2005-02-20  Neil Conway  <neilc@samurai.com>
104072         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
104073         returned by OSX/Darwin if the specified buffer is not large
104074         enough for the hostname.
104076 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104078         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
104079         pass it to _help, otherwise the latter coredumps trying to
104080         dereference state.root_argp.
104082 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104084         * modules/chdir-long (Depends-on): Add memrchr.
104085         * modules/memrchr (Files): Add lib/memrchr.h.
104086         (Include): "memrchr.h".
104088 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104090         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
104092 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104094         * lib/memrchr.h: New file.
104095         * lib/chdir-long.c: Include it.
104096         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
104097         Don't bother including stddef.h.
104099 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
104101         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
104102         inclusion.
104103         Include <sys/types.h>, for dev_t.
104104         (ME_DUMMY, ME_REMOTE): Move from here....
104105         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
104106         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
104107         Dmitry V. Levin.
104108         Include mountlist.h first, to test the interface.
104110 2005-01-29  Bruno Haible  <bruno@clisp.org>
104112         * lib/progname.c (program_name): Initialize.
104113         Needed when linking statically on MacOS X.
104115 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104117         Sync from coreutils.
104118         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
104119         (Depends-on): Add c-strtod.
104120         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
104122 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104124         Sync from coreutils.
104125         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
104127         Remove files that are specific to coreutils.
104128         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
104130 2005-01-28  Bruno Haible  <bruno@clisp.org>
104132         * modules/javacomp: New file.
104133         * MODULES.html.sh (Java): Add javacomp.
104135 2005-01-28  Bruno Haible  <bruno@clisp.org>
104137         * m4/javacomp.m4: New file, from GNU gettext.
104139 2005-01-28  Bruno Haible  <bruno@clisp.org>
104141         * lib/javacomp.sh.in: New file, from GNU gettext.
104142         * lib/javacomp.h: New file, from GNU gettext.
104143         * lib/javacomp.c: New file, from GNU gettext.
104145 2005-01-26  Simon Josefsson  <jas@extundo.com>
104147         * lib/gai_strerror.c: Use GPL in header.
104149 2005-01-26  Bruno Haible  <bruno@clisp.org>
104151         * modules/javaexec: New file.
104152         * MODULES.html.sh (Java): Add javaexec.
104154 2005-01-26  Bruno Haible  <bruno@clisp.org>
104156         * m4/javaexec.m4: New file, from GNU gettext.
104158 2005-01-26  Bruno Haible  <bruno@clisp.org>
104160         * lib/javaexec.sh.in: New file, from GNU gettext.
104161         * lib/javaexec.h: New file, from GNU gettext.
104162         * lib/javaexec.c: New file, from GNU gettext.
104164 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104166         * modules/lchown (Depends-on): Remove lchown.h
104168 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104170         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
104171         must be defined if the header file was not found, in order
104172         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
104174 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104176         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
104177         initializers for struct pentry_state.
104178         (__argp_error): Check return value of __asprintf
104179         (__argp_failure): Translate error message
104181         * lib/argp-parse.c: Removed braces around the expansion of N_()
104183 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
104185         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
104186         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
104187         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
104188         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
104189         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
104190         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
104191         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
104192         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
104193         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
104194         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
104195         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
104196         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
104197         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
104198         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
104199         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
104200         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
104201         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
104202         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
104203         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
104204         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
104205         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
104206         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
104207         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
104208         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
104209         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
104210         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
104211         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
104212         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
104213         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
104214         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
104215         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
104216         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
104217         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
104218         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
104219         xstrtol.m4, xstrtoumax.m4, yesno.m4:
104220         Use an all-permissive copyright notice, recommended by RMS.
104222 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
104224         * modules/chdir-long (Depends-on): Remove mempcpy.
104226 2005-01-21  Jim Meyering  <jim@meyering.net>
104228         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
104229         same value as for Solaris 9.
104231         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
104232         component length.  This included changing the parameter to be
104233         of type `char *' rather than `char const *'.
104234         * lib/chdir-long.h (chdir_long): Update prototype.
104236         * lib/openat.c (fdopendir, fstatat): New functions.
104237         * lib/openat.h: Include headers required for use of DIR and struct
104238         stat.
104239         [AT_SYMLINK_NOFOLLOW]: Define.
104240         (fdopendir, fstatat): Add prototypes.
104242 2005-01-21  Bruno Haible  <bruno@clisp.org>
104244         * modules/classpath: New file.
104245         * MODULES.html.sh (Java): Add classpath.
104247 2005-01-21  Bruno Haible  <bruno@clisp.org>
104249         * lib/classpath.h: New file, from GNU gettext.
104250         * lib/classpath.c: New file, from GNU gettext.
104252 2005-01-20  Simon Josefsson  <jas@extundo.com>
104254         * modules/version-etc-fsf: New file.
104256 2005-01-20  Simon Josefsson  <jas@extundo.com>
104258         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
104259         * lib/version-etc.c: Remove version_etc_copyright.
104260         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
104261         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
104263 2005-01-20  Simon Josefsson  <jas@extundo.com>
104265         * lib/base64.h (isbase64): Add.
104267         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
104268         using a unsigned prototype, don't inline.
104269         (base64_decode): Use it.
104271 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
104273         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
104274         it.
104276 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
104278         * lib/save-cwd.c (save_cwd): Remove code to support the case
104279         where fchdir is missing or flaky.
104281 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
104283         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
104285 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
104287         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
104288         AC_LIBSOURCES now does this.
104289         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
104290         with new ullong_max module.
104292 2005-01-19  Bruno Haible  <bruno@clisp.org>
104294         * modules/sh-quote: New file.
104295         * MODULES.html.sh (Executing programs): Add sh-quote.
104297 2005-01-19  Bruno Haible  <bruno@clisp.org>
104299         * lib/sh-quote.h: New file, from GNU gettext.
104300         * lib/sh-quote.c: New file, from GNU gettext.
104302 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
104304         Merge from coreutils.
104305         * m4/ullong_max.m4: New file.
104306         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
104307         (gl_MACROS): Assume localeconv exists.
104309 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
104311         Merge changes from coreutils, as described below in several
104312         changelogs dated today.
104314         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
104315         (O_DIRECTORY): Remove; not needed here, since "." must be
104316         a directory.  All uses removed.
104317         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
104318         universal on Suns, and we also need to test for IRIX.
104319         Revamp code to use 'if' rather than '#if'.
104320         Avoid unnecessary comparison of cwd->desc to 0.
104322         * lib/utimens.c (futimens): Robustify the previous patch, by checking
104323         for known valid error numbers rather than observed invalid ones.
104325 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
104327         * modules/ullong_max: New file.
104329         * modules/chdir-long, modules/openat: New files.
104330         * modules/save-cwd (Depends-on): Depend on chdir-long.
104331         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
104333 2005-01-18  Jim Meyering  <jim@meyering.net>
104335         Merge from coreutils.
104336         * m4/chdir-long.m4, m4/openat.m4: New files.
104337         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
104338         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
104339         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
104340         is sane and DOES follow symlinks.  Besides, testing 20 different
104341         systems found no broken chown implementations.
104342         Prompted by a change in rsync's copy of this macro.
104343         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
104345         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
104347         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
104348         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
104349         NULL-means-set-to-current-time semantics.
104350         Remove temporary file immediately, rather than waiting
104351         for configure's at-exit trap code to do it.
104353 2005-01-18  Jim Meyering  <jim@meyering.net>
104355         * lib/version-etc.c (version_etc_copyright): Update copyright date.
104357         * lib/utimens.c (futimens): Account for the fact that futimes
104358         can also fail with errno == ENOSYS or errno == ENOENT.
104359         Patch from Dmitry V. Levin.
104361         Change the name of the robust chdir function from chdir to chdir_long.
104362         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
104363         (restore_cwd): Use chdir_long, not chdir.
104364         * lib/chdir-long.c: Renamed from chdir.c.
104365         * lib/chdir-long.h: Renamed from chdir.h.
104366         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
104367         Hurd.
104369 2005-01-18  Bruno Haible  <bruno@clisp.org>
104371         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
104372         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
104373         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
104374         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
104375         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
104376         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
104377         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
104378         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
104379         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
104380         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
104381         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
104382         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
104383         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
104384         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
104385         Use an all-permissive copyright notice, recommended by RMS.
104387 2005-01-18  Bob Proulx  <bob@proulx.com>
104389         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
104390         simplify offsetof() macro construct to avoid compile failure with
104391         native HP-UX 11.0 ANSI C compiler.
104393 2005-01-17  Bruno Haible  <bruno@clisp.org>
104395         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
104396         redundant because stpncpy.m4 takes care of it.
104398 2005-01-17  Bruno Haible  <bruno@clisp.org>
104400         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
104402 2005-01-17  Bruno Haible  <bruno@clisp.org>
104404         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
104405         used.
104407 2005-01-17  Bruno Haible  <bruno@clisp.org>
104409         * lib/fwriteerror.h (fwriteerror): Change specification to include
104410         fclose.
104411         * lib/fwriteerror.c: Include <stdbool.h>.
104412         (fwriteerror): At the end, close the file stream. Record whether
104413         stdout was already closed.
104415 2005-01-17  Bruno Haible  <bruno@clisp.org>
104417         * lib/execute.c (environ): Declare if needed.
104418         * lib/pipe.c (environ): Likewise.
104419         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
104421 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104423         * modules/argp: Depend on vsnprintf
104425 2005-01-10  Jim Meyering  <jim@meyering.net>
104427         * modules/closeout (Depends-on): Add atexit.
104429 2005-01-06  Bruno Haible  <bruno@clisp.org>
104431         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
104433 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
104435         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
104436         definitions to be after all include files, to avoid collisions.
104437         Problem reported by Bob Proulx.
104439 2005-01-04  Jim Meyering  <jim@meyering.net>
104441         Changes imported from coreutils.
104442         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
104443         as the mkstemp template, use a temporary directory and an
104444         8.3-friendly template to avoid trouble on systems like DJGPP.
104445         Reported by Juan M. Guerrero via Stepan Kasal.
104446         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
104447         close. Remove the temporary directory right away, rather than waiting
104448         for configure's at-exit trap code to do it.
104449         Suggestion from Stepan Kasal.
104451 2005-01-01  Simon Josefsson  <jas@extundo.com>
104453         * gnulib-tool: Print #include directives when --import'ing.
104455 2004-12-28  Simon Josefsson  <jas@extundo.com>
104457         * tests/test-base64.c: Include required header files.  Remove
104458         unused variables.
104460 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
104462         * modules/error (Depends-on): Remove gettext.
104464 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
104466         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
104467         not needed.  This removes a dependency on the gettext module.
104468         [defined _LIBC]: Do not include <libintl.h>; not needed.
104470 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
104472         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
104473         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
104475 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
104477         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
104478         HAVE_DECL_STRTOLD.
104480 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
104482         * modules/getdate (Depends-on): Remove alloca-opt.
104484 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
104486         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
104488 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
104490         * lib/argp-parse.c: Include <stddef.h>.
104491         (alignof, alignto): New macros.
104492         (parser_init): Don't assume that void * is aligned sufficiently
104493         for struct option.
104495         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
104496         need to extend the stack.
104497         (YYINITDEPTH): New macro, so that the initial stack isn't overly
104498         large.
104500 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104502         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
104504 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
104506         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
104507         (2004-10-24) change.  Apparently this was a false alarm.
104509         * modules/getdate: Depend on alloca-opt, not alloca.
104511 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
104513         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
104514         Remove now-obsolete comment about AIX.
104515         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
104516         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
104517         (YYMAXDEPTH): New macro.
104519 2004-12-18  Simon Josefsson  <jas@extundo.com>
104521         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
104523 2004-12-18  Bruno Haible  <bruno@clisp.org>
104525         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
104527 2004-12-18  Bruno Haible  <bruno@clisp.org>
104529         * lib/fatal-signal.c (fatal_signals): Make non-const.
104530         (init_fatal_signals): New function.
104531         (uninstall_handlers, install_handlers): Ignore signals that were set to
104532         SIG_IGN.
104533         (at_fatal_signal): Call init_fatal_signals.
104534         (init_fatal_signal_set): Likewise. Ignore signals that were set to
104535         SIG_IGN.
104536         Reported by Paul Eggert.
104538 2004-12-18  Bruno Haible  <bruno@clisp.org>
104540         * doc/alloca.texi: New file.
104541         * doc/alloca-opt.texi: New file.
104543 2004-12-17  Jim Meyering  <jim@meyering.net>
104545         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
104546         Otherwise, install-sh could exit with improper exit status when
104547         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
104549 2004-12-16  Simon Josefsson  <jas@extundo.com>
104551         * tests/test-base64.c: Add license.
104553 2004-12-15  Stepan Kasal  <address@hidden>
104555         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
104557 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
104559         * modules/getcwd (Files): Add m4/d-ino.m4.
104560         Suggested by Mark D. Baushke.
104562 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
104564         * lib/getdate.y (textint): New member "negative".
104565         (time_zone_hhmm): New function.
104566         Expect 14 shift-reduce conflicts, not 13.
104567         (o_colon_minutes): New rule.
104568         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
104569         (yylex): Set the "negative" member of signed numbers.
104571 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
104573         * doc/getdate.texi (Time of day items, Time zone items):
104574         Describe new formats +00:00, UTC+00:00.
104576 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
104578         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
104579         spurious "-l"s.  Problem reported by Stepan Kasal.
104581 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
104583         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
104584         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
104586 2004-12-04  Simon Josefsson  <jas@extundo.com>
104588         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
104589         Vandoorselaere <yoann@prelude-ids.org>.
104591 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
104593         Changes imported from coreutils.
104594         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
104595         exist.
104596         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
104598 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
104600         Changes imported from coreutils.
104601         * lib/hard-locale.c: Assume <locale.h> exists.
104602         Include "strdup.h".
104603         (GLIBC_VERSION): New macro.
104604         (hard_locale): Assume setlocale exists.
104605         Rewrite to avoid #ifdef.
104606         Use strdup rather than malloc + strcpy.
104607         * lib/human.c: Assume <locale.h> exists.
104608         (human_readable): Assume localeconv exists.
104610 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
104612         * modules/hard-locale (Depends-on): Add strdup.
104614 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
104616         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
104617         convert T2, not T.  (Imported from libc.)
104619 2004-11-30  Simon Josefsson  <jas@extundo.com>
104621         * modules/restrict (License): Change to LGPL.
104623 2004-11-30  Simon Josefsson  <jas@extundo.com>
104625         * m4/restrict.m4: Add copyright and copying conditions.
104627 2004-11-30  Simon Josefsson  <jas@extundo.com>
104629         * m4/base64.m4: New file.
104631 2004-11-30  Simon Josefsson  <jas@extundo.com>
104633         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
104634         base64.
104636         * tests/test-base64.c: New file.
104638         * modules/base64: New file.
104640 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
104642         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
104643         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
104645         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
104647 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
104649         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
104650         (__getcwd.c): Don't restore errno; glibc doesn't.
104651         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
104652         first, falling back to our code only if its results look suspicious.
104653         Ensure that the resulting buffer is only as large as necessary.
104655         * lib/readutmp.c: Include readutmp.h first.
104656         Include <errno.h>, since readutmp.h no longer does that.
104657         * lib/readutmp.h: Don't include <errno.h>,
104658         <sys/param.h>, <time.h>; not needed to establish interface.
104659         (errno): Remove decl.
104660         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
104661         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
104662         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
104664 2004-11-28  Simon Josefsson  <jas@extundo.com>
104666         * lib/base64.h, base64.c: New file.
104668 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
104670         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
104672 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
104674         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
104675         (Depends-on): Remove pathmax, same.  Add mempcpy.
104676         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
104677         (Makefile.am): Append getcwd.h to lib_SOURCES.
104678         (Include): Add getcwd.h.
104679         (Maintainer): Change from Jim Meyering to "all, glibc",
104680         since getdate now uses intended-for-glibc code.
104681         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
104682         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
104684 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
104686         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
104687         HP's ANSI C compiler.
104688         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
104689         Declaring int functions causes warnings on some modern systems and
104690         shouldn't be needed to compile on ancient ones.
104691         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
104692         defined.
104694         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
104695         with the following changes.
104696         (__set_errno): Parenthesize properly.
104697         Include <stdbool.h>.
104698         (MIN, MAX, MATCHING_INO): New macros.
104699         (__getcwd): Define with prototype, not K&R form.
104700         Use heuristics to allocate default buffer on stack if possible.
104701         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
104702         behavior, and to avoid the PATH_MAX limit when computing
104703         ../../../../...
104704         Use MATCHING_INO to compare inode number to file.
104705         Check for arithmetic overflow in size calculations.
104706         Fix bug in reallocation of dot array that caused getcwd to fail
104707         on directories nested deeper than 75.
104708         Be more careful about saving errno on error.
104709         Do not use realloc; use only free+malloc, as this is a bit
104710         more flexible and avoids a needless copy operation.
104711         Do not inspect st_dev and st_ino for symbolic links; POSIX
104712         doesn't specify the latter.
104713         Check for closedir errors.
104714         Avoid needless casts.
104715         Use "#ifdef weak_alias" around weak_alias, to be like other
104716         glibc code.
104717         The following changes to getcwd.c have effect only when used in
104718         gnulib; they have no effect inside glibc proper.
104719         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
104720         as alloca isn't used.
104721         (alloca, __alloca): Likewise.
104722         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
104723         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
104724         unconditionally, as gnulib assumes C89 or better.
104725         Do not include <sys/param.h>.
104726         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
104727         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
104728         better.
104729         (NULL) [!defined NULL]: Remove; we assume C89 or better.
104730         Include <dirent.h> in a way that is compatible with modern Autoconf.
104731         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
104732         New macros, if not already defined.
104733         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
104734         Use "_LIBC", not "defined _LIBC", for consistency.
104735         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
104736         a mempcpy module.
104737         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
104738         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
104739         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
104740         credit only to Jim Meyering and adjust the copyright dates.
104741         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
104742         <stdlib.h>, <unistd.h>, "pathmax.h".
104743         Instead, include "xgetcwd.h" (first) and "getcwd.h".
104744         (INITIAL_BUFFER_SIZE): Remove.
104745         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
104747 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
104749         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
104750         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
104751         Use the _ONCE methods, for efficiency.
104752         Check for fcntl.h.  In test program, include <errno.h>
104753         and <fcntl.h> if available.  Remove old K&R cruft from
104754         test program.  Check for common errors in GNU/Linux,
104755         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
104756         don't do AC_LIBOBJ, as that's getcwd.m4's job.
104757         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
104758         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
104759         name accordingly.
104760         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
104761         accommodate new getcwd.c.
104762         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
104763         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
104764         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
104765         that's all we need now.
104767 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104769         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
104770         argp-parse.c depends on getopt internals, that means we should
104771         always use our getopt, to be on the safe side.
104772         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
104773         order not to spoil the result of an eventual previous invocation
104774         of gl_GETOPT_SUBSTITUTE.
104776 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104778         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
104779         redefinition warnings. To avoid them, include the defines
104780         in `#if !defined __need_getopt ... #endif'. The only place
104781         where __getopt_argv_const is used is in definitions
104782         of getopt_long and getopt_long_only below, which are as well
104783         protected by `#ifndef __need_getopt'.
104784         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
104785         __need_getopt after including <stdio.h> and <unistd.h> These
104786         headers might have defined it.
104788 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
104790         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
104792 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
104794         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
104795         (futimens): New function, which uses futimes if available.
104796         (futimens, utimens): Support timespec==NULL, with same semantics
104797         as utime and utimens.
104798         * lib/utimens.h (futimens): New decl.
104800 2004-11-23  Jim Meyering  <jim@meyering.net>
104802         * lib/getopt_.h: Remove trailing blanks.
104804 2004-11-23  Jim Meyering  <jim@meyering.net>
104806         * lib/__fpending.c: Add comment.
104808 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
104810         * modules/canonicalize (Depends-on): Add xreadlink.
104811         Problem reported by James Youngman.
104813 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
104815         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
104816         New macros.
104817         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
104818         optopt): Use them instead of invoking ## directly; otherwise, the
104819         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
104821 2004-11-19  Bruno Haible  <bruno@clisp.org>
104823         * lib/strtok_r.c: Move comments from here...
104824         * lib/strtok_r.h: ... to here.
104826 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
104828         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
104829         implementations that mishandle size_t overflow.
104831 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
104833         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
104834         might fail.  Problem reported by Yoann Vandoorselaere.
104835         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
104836         implementations that mishandle size_t overflow.
104838 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
104840         * modules/canon-host (Depends-on): Add strdup.
104842 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
104844         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
104846 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
104848         * lib/canon-host.c: Include "strdup.h".
104849         (canon_host): Use getaddrinfo if available, so that IPv6 works.
104850         Use strdup instead of malloc/strcpy to duplicate strings.
104852         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
104853         (human_space_before_unit): New constant.
104854         * lib/human.c (human_readable): Support it.
104856         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
104857         (xgetcwd): Set errno correctly when failing.
104858         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
104859         the failure is actually due to a PATH_MAX problem.
104861         Further getopt changes to make it more likely that glibc will
104862         buy the changes back.
104863         * lib/getopt.c (POSIXLY_CORRECT): New constant.
104864         (getopt): Use it, so to preserve glibc semantic
104865         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
104866         when compiling for libc.
104867         * lib/getopt_.h (__getopt_argv_const): Bring it back.
104868         (getopt_long, getopt_long_only): Use it.
104870         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
104871         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
104872         (getopt): Argv is now char * const *, as per standard.
104873         (_getopt_internal_r, _getopt_internal): Argv is now char **,
104874         not char *__getopt_argv_const *.
104875         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
104876         _getopt_long_only_r): Likewise.
104877         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
104878         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
104879         _getopt_long_r, _getopt_long_only_r): Likewise.
104880         * lib/getopt_.h (__getopt_argv_const): Remove.
104881         (getopt): Argv is now char * const *, as per standard.
104883         * lib/getdate.y (tORDINAL): New token.
104884         (day, relunit): Allow it for relative times.
104885         (relative_time_table): Use tORDINAL for ordinals.
104887 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
104889         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
104890         Document that "second" isn't allowed as an ordinal number.
104892 2004-11-16  Jim Meyering  <jim@meyering.net>
104894         * modules/closeout (Depends-on): Add fpending.
104896 2004-11-15  Jim Meyering  <jim@meyering.net>
104898         * lib/closeout.c: Include "__fpending.h" once again.
104899         Include <stdbool.h>.
104900         (close_stdout): Don't fail just because stdout was closed initially,
104901         since some programs don't write to stdout in the normal course of
104902         operation (other than --version and --help), and we don't want this
104903         function to make e.g. `touch file >&-' fail.
104904         But do fail if it was closed and someone has tried to write to it.
104905         E.g., `printf foo >&-' must fail.
104907 2004-11-13  Jim Meyering  <jim@meyering.net>
104909         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
104911 2004-11-12  Simon Josefsson  <jas@extundo.com>
104913         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
104914         small doc fix is still pending.
104916 2004-11-11  Simon Josefsson  <jas@extundo.com>
104918         * modules/strtok_r: New file.
104920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104921         strtok_r.
104923 2004-11-11  Simon Josefsson  <jas@extundo.com>
104925         * m4/strtok_r.m4: New file.
104927         * m4/getopt.m4: Replace opterr.
104929 2004-11-11  Simon Josefsson  <jas@extundo.com>
104931         * lib/strtok_r.h, strtok_r.c: New file.
104933 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
104935         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
104936         of replacing opterr, getopt, etc.  This should handle the
104937         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
104939 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
104941         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
104942         we can stop lying to compilers about the constness of argv when we
104943         are compiled outside glibc.
104944         (getopt, getopt_long, getopt_long_only): Use it.
104945         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
104946         _getopt_internal, getopt): Likewise.
104947         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
104948         _getopt_long_only_r): Likewise.
104949         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
104950         _getopt_long_r, _getopt_long_only_r): Likewise.
104952         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
104953         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
104954         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
104955         the other external symbols.
104956         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
104957         declaration, since the above renaming now works around collisions.
104959 2004-11-11  Jim Meyering  <jim@meyering.net>
104961         * lib/linebreak.c: Remove trailing blanks.
104962         * lib/alloca_.h: Likewise.
104963         * lib/acosl.c: Likewise.
104964         * lib/euidaccess.c: Likewise.
104965         * lib/allocsa.h: Likewise.
104967 2004-11-10  Simon Josefsson  <jas@extundo.com>
104969         * m4/getaddrinfo.m4: New file.
104971 2004-11-10  Simon Josefsson  <jas@extundo.com>
104973         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
104975 2004-11-10  Simon Josefsson  <jas@extundo.com>
104977         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104978         getaddrinfo.
104980         * modules/getaddrinfo: New file.
104982 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
104984         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
104986 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
104988         * lib/mktime.c (SHR): New macro, which is a portable
104989         substitute for >> that should work even on Crays.
104990         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
104991         Problem reported by Mark D. Baushke in
104992         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
104993         * lib/getdate.y (SHR): Likewise.
104994         (tm_diff): Use it.
104995         * lib/strftime.c (SHR): Likewise.
104996         (tm_diff): Use it.
104997         * lib/quotearg.c (struct quoting_options): Use unsigned int for
104998         quote_these_too, so that right shifts are well defined.  All uses
104999         changed.
105001 2004-11-10  Jim Meyering  <jim@meyering.net>
105003         Ensure that no close failure goes unreported.
105004         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
105005         return early when it seems there's nothing to flush.
105006         Don't include __fpending.h.
105008 2004-11-10  Jim Meyering  <jim@meyering.net>
105010         * modules/closeout (Depends-on): Remove fpending.
105012 2004-11-10  Jim Meyering  <jim@meyering.net>
105014         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
105016 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
105018         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
105019         gl_FUNC_STRFTIME.
105020         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
105021         and AC_REQUIRE when possible, to avoid duplicate checks.
105022         Check for <wchar.h>.
105024 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
105026         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
105028 2004-11-09  Bruno Haible  <bruno@clisp.org>
105030         * m4/sockpfaf.m4: New file.
105032 2004-11-05  Bruno Haible  <bruno@clisp.org>
105034         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
105035         Reported by Mark D. Baushke <mdb@cvshome.org>.
105037 2004-11-04  Bruno Haible  <bruno@clisp.org>
105039         2004-09-11  Bruno Haible  <bruno@clisp.org>
105040                 * allocsa.valgrind: New file.
105041         2004-02-06  Bruno Haible  <bruno@clisp.org>
105042                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
105043                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
105044                 Reported by Christopher Seip <chris.seip@hp.com>.
105046 2004-11-04  Bruno Haible  <bruno@clisp.org>
105048         * modules/allocsa (Files): Add lib/allocsa.valgrind.
105049         (Makefile.am): Distribute it.
105051 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
105053         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
105054         with errno == ERANGE if the buffer is too small.
105055         Problem reported by Mark D. Baushke.
105057 2004-11-03  Albert Chin  <china@thewrittenword.com>
105058             Paul Eggert  <eggert@cs.ucla.edu>
105060         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
105061         equivalent, substitute $ac_type for equivalent type rather than
105062         blindly using uint32_t *always* which won't work if uint32_t is not
105063         available.  Define _UINT32_T to work around typedef of uint32_t if
105064         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
105065         2.5.1.
105067 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
105069         * m4/jm-macros.m4: Sync from coreutils.
105070         (gl_MACROS): Check for mbrlen, for pathchk.
105071         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
105073 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
105075         * lib/xreadlink.c (MAXSIZE): New macro.
105076         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
105077         size does not exceed MAXSIZE.  Avoid cast.
105078         As suggested by Mark D. Baushke in
105079         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
105080         if readlink fails with buffer size just under MAXSIZE, try again
105081         with MAXSIZE.
105083 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
105085         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
105087 2004-11-02  Derek R. Price  <derek@ximbiot.com>
105088         and  Paul Eggert  <eggert@cs.ucla.edu>
105090         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
105091         (get_date): Overparenthesize to avoid GCC warning.
105093 2004-11-02  Bruno Haible  <bruno@clisp.org>
105095         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
105096         returns void.
105098 2004-11-02  Bruno Haible  <bruno@clisp.org>
105100         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
105101         function returns void.
105103 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
105105         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
105106         fflush_unlocked, flockfile, funlockfile, funlockfile,
105107         fputs_unlocked, putc_unlocked.
105109 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
105111         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
105112         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
105113         already declared.
105115 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
105117         * modules/getdate (Files): Add doc/getdate.texi.
105118         (Depends-on): Add setenv, xalloc.
105120 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
105122         * lib/getdate.y: Add support for TZ="foo" within a date string.
105123         Fix some bugs near time_t boundaries.  Reject dates with
105124         out-of-range components, e.g., "Sept 31".
105125         Include <stdlib.h>, "setenv.h", "xalloc.h".
105126         (ISDIGIT_LOCALE): Remove; unused.
105127         Note that the TZ and time functions used here are not reentrant.
105128         (mktime_ok, get_tz): New functions.
105129         (TZBUFSIZE): New constant.
105130         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
105131         This requires that we sometimes generate our own TZ="XXX..." setting.
105133 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
105135         * doc/getdate.texi: New file, from coreutils with modifications for
105136         the new TZ parsing.
105138 2004-10-27  Derek R. Price  <derek@ximbiot.com>
105140         * lib/mktime.c (not_equal_tm): Remove redundant check.
105142 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
105144         * modules/regex (lib_SOURCES): Add regex.c.
105145         Reported by James Youngman in
105146         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
105148 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
105150         * lib/getdate.y: Use Bison 1.875 features, and some minor
105151         code cleanups.  This change does not affect semantics.
105152         Don't include <stdlib.h>; no longer needed.
105153         Don't include unlocked-io.h; only the "#if TEST" code uses
105154         stdio, and performance isn't crucial there.
105155         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
105156         Bison 1.875 features as described below.
105157         All uses of "PC." replaced by "pc->".
105158         (YYSTYPE): Add a forward declaration.
105159         (yylex, yyerror): Use full prototypes in forward decls.
105160         Use "%pure-parser" rather than obsolescent "%pure_parser".
105161         Use %parse-param and %lex-param instead of obsolescent
105162         YYPARSE_PARAM and YYLEX_PARAM.
105163         (meridian_table, month_and_day_table, time_units_table,
105164         relative_time_table, time_zone_table, military_table,
105165         lookup_zone, lookup_word, get_date):
105166         Use NULL instead of 0 where appropriate.
105167         (to_hour): Avoid abort (), to avoid a dependency on
105168         stdlib.h.
105169         (yyerror, yylex): Now accepts parser_control * arg.
105170         (main) [TEST]: Use '\0' rather than 0 for char.
105172 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
105174         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
105176 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
105178         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
105179         It's now the caller's responsibility to handle the case where
105180         !HAVE_GETPAGESIZE && !defined getpagesize.
105182         * lib/mktime.c (leapyear): Arg is long int, not int.
105184 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
105186         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
105188 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
105190         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
105191         missing.  Problem reported by James Youngman.
105193 2004-10-16  Simon Josefsson  <jas@extundo.com>
105195         * gnulib-tool: Fix comments.  Fix parse problem.
105196         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
105198 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
105200         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
105201         implementation of getopt_long.  Problem reported by Alexander Taler in:
105202         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
105204 2004-10-15  Bruno Haible  <bruno@clisp.org>
105206         * gnulib-tool: Untabify. Initialize supplied_libname.
105207         (func_usage): More homogenous output.
105208         (func_modules_transitive_closure, func_modules_to_filelist,
105209         func_emit_lib_Makefile_am): New functions.
105210         (func_import): New function, extracted from big case statement. Use
105211         func_get_license, func_modules_transitive_closure,
105212         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
105213         opt_lgpl. Don't use test -a, as it's not portable.
105214         (func_create_testdir): Use func_modules_transitive_closure,
105215         func_modules_to_filelist, func_emit_lib_Makefile_am.
105217 2004-10-15  Bruno Haible  <bruno@clisp.org>
105219         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
105221 2004-10-15  Bruno Haible  <bruno@clisp.org>
105223         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
105224         the portions belonging to each module.
105225         Suggested by Derek Robert Price <derek@ximbiot.com>.
105227 2004-10-12  Simon Josefsson  <jas@extundo.com>
105229         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
105230         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
105231         to real functions.
105233 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105235         * modules/vsnprintf: New file.
105237 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105239         * m4/vsnprintf.m4: New file.
105241 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105243         * lib/vsnprintf.h: New file.
105244         * lib/vsnprintf.c: New file.
105246 2004-10-11  Bruno Haible  <bruno@clisp.org>
105248         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
105249         vsnprintf.
105251 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
105253         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
105255 2004-10-07  Bruno Haible  <bruno@clisp.org>
105257         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
105258         fits into the provided buffer.
105260 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
105262         * lib/diacrit.c, diacrit.h: Add GPL notice.
105264         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
105265         notice.
105266         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
105267         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
105268         This avoids a potential constant-folding bug.
105270 2004-10-05  Bruno Haible  <bruno@clisp.org>
105272         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
105273         for the declaration of strsep.
105275 2004-10-05  Bruno Haible  <bruno@clisp.org>
105277         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
105279 2004-10-04  Simon Josefsson  <jas@extundo.com>
105281         * modules/memmem: New file.
105282         * tests/test-memmem.c: New file.
105283         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
105285 2004-10-04  Simon Josefsson  <jas@extundo.com>
105287         * m4/memmem.m4: New file.
105289 2004-10-04  Simon Josefsson  <jas@extundo.com>
105291         * lib/memmem.h: New file.
105292         * lib/memmem.c: New file, taken from glibc.
105294 2004-10-04  Simon Josefsson  <jas@extundo.com>
105296         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
105297         '#ifdef USE_UNLOCKED_IO'.
105299 2004-10-04  Simon Josefsson  <jas@extundo.com>
105301         * config/srclist.txt: Add memmem from glibc.
105303 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
105305         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
105307         * modules/argmatch, modules/argp, modules/closeout, modules/error,
105308         modules/exclude, modules/getdate, modules/getline,
105309         modules/getndelim2, modules/getpass, modules/getpass-gnu,
105310         modules/getusershell, modules/linebuffer, modules/md5,
105311         modules/mountlist, modules/posixtm, modules/readtokens,
105312         modules/readutmp, modules/regex, modules/sha1,
105313         modules/version-etc, modules/yesno:
105314         Remove dependency on unlocked-io.
105316 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
105318         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
105320         * m4/unlocked-io.m4: Add copyright notice.
105321         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
105323 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
105325         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
105326         * lib/xmalloc.c (xmemdup): Likewise.
105327         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
105328         XFREE): Remove these long-obsolescent macros.
105329         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
105330         * lib/xstrdup.c: Remove.
105332         * lib/regex.c (re_comp): Cast gettext return value to char *,
105333         Problem reported by Martin Neitzel via Mark D. Baushke.
105335 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
105337         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
105338         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
105339         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
105340         regex.c, sha1.c, version-etc.c, yesno.c:
105341         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
105342         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
105343         the includer's responsibility.
105345         Sync from coreutils.
105347         * lib/modechange.c (mode_compile): Don't decrement a pointer that
105348         points to the start of a string, as the C Standard says the
105349         resulting behavior is undefined.
105351         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
105352         simple -> simple_backups, numbered_existing ->
105353         numbered_existing_backups, numbered -> numbered_backups
105354         to avoid shadowing problems.  All uses changed.
105355         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
105356         * lib/backupfile.c (check_extension, numbered_backup):
105357         Rename locals to avoid shadowing 'basename'.
105358         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
105359         once.
105361         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
105362         * lib/.cvsignore: Add getopt.h.
105364 2004-10-04  Bruno Haible  <bruno@clisp.org>
105366         * modules/README: New file.
105367         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
105368         not a module.
105370 2004-10-02  Jim Meyering  <jim@meyering.net>
105372         * lib/dirfd.h, getpagesize.h: Add copyright notice.
105374 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105376         * modules/strsep: New file.
105378 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105380         * m4/strsep.m4: New file.
105382 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105384         * lib/strsep.h: New file.
105385         * lib/strsep.c: New file.
105387 2004-10-01  Simon Josefsson  <jas@extundo.com>
105389         * lib/snprintf.c (snprintf): Handle size==0.
105391 2004-10-01  Simon Josefsson  <jas@extundo.com>
105392             Bruno Haible  <bruno@clisp.org>
105394         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
105395         (snprintf): Declare 'args'.
105397 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
105399         * lib/snprintf.c: Remove comments as to why each header is needed.
105401 2004-10-01  Bruno Haible  <bruno@clisp.org>
105403         * MODULES.html.sh: Add strsep.
105405 2004-09-30  Simon Josefsson  <jas@extundo.com>
105407         * modules/snprintf: New file.
105409 2004-09-30  Simon Josefsson  <jas@extundo.com>
105411         * m4/snprintf.m4: New file.
105413 2004-09-30  Simon Josefsson  <jas@extundo.com>
105415         * lib/snprintf.h, lib/snprintf.c: New files.
105417 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105419         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
105420         (hol_entry_help): Never translate an empty string.
105421         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
105422         * lib/argp.h (OPTION_NO_TRANS): New option.
105424 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
105426         * modules/argp (Maintainer): Replace Simon Josefsson
105427         by Sergey Poznyakoff.
105429 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
105431         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
105432         changes merged back into glibc.
105434 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
105436         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
105438 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
105440         * lib/xvasprintf.c: Include xalloc.h.
105441         (xvasprintf): Use xalloc_die, not xmalloc_die.
105443 2004-09-29  Bruno Haible  <bruno@clisp.org>
105445         * modules/alloca-opt: New file, derived from modules/alloca.
105446         * modules/allocsa: Depend on alloca-opt instead of alloca.
105447         * modules/setenv: Likewise.
105448         * modules/vasnprintf: Likewise.
105449         * MODULES.html.sh: Add alloca-opt.
105451 2004-09-28  Simon Josefsson  <jas@extundo.com>
105453         * gnulib-tool: New parameter --lgpl, to asseert that modules are
105454         LGPL, and to replace license template from GPL to LGPL.
105456 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
105458         * modules/dummy: Change license to LGPL.
105460 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
105462         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
105464 2004-09-24  Simon Josefsson  <jas@extundo.com>
105466         * modules/minmax (License): Change from GPL to LGPL.
105468 2004-09-23  Simon Josefsson  <jas@extundo.com>
105470         * gnulib-tool (--import): Typo.
105472 2004-09-23  Simon Josefsson  <jas@extundo.com>
105474         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
105476 2004-09-22  Bruno Haible  <bruno@clisp.org>
105478         * modules/*: Add 'License' field.
105479         * gnulib-tool: Accept --extract-license option.
105480         (func_get_license): New function.
105482 2004-09-21  Bruno Haible  <bruno@clisp.org>
105484         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
105485         Reported by Simon Josefsson.
105487 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
105489         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
105490         gl_AC_TYPE_LONG_LONG.
105492 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
105494         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
105496 2004-09-18  Simon Josefsson  <jas@extundo.com>
105497         and  Paul Eggert  <eggert@cs.ucla.edu>
105499         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
105500         calls with autoreconf.  Define GL_LIB.
105502 2004-09-14  Karl Berry  <karl@gnu.org>
105504         * config/srclist.txt: unsync setenv.c, sigh.
105506 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
105508         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
105509         Problem reported by Bruno Haible in:
105510         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
105512 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
105514         * config/srclist.txt: Comment out argp-pvh.c.
105516 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
105518         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
105519         in case some system header has #define'd it.  Problem reported by
105520         Soeren D. Schulze in
105521         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
105523 2004-09-09  Karl Berry  <karl@gnu.org>
105525         * regex.[ch]: delete from the root.  These were supposed to be
105526                 synced with emacs cvs, but this has not happened for about
105527                 a year, and anyway nothing else uses emacs regex.[ch].
105528                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
105529                 lib/regex[.ch] is untouched.
105531 2004-09-09  Bruno Haible  <bruno@clisp.org>
105533         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
105535 2004-09-09  Bruno Haible  <bruno@clisp.org>
105537         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
105538         modifications.
105539         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
105541 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
105543         * modules/xvasprintf: New file.
105544         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
105546 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
105548         * lib/xvasprintf.h: New file.
105549         * lib/xvasprintf.c: New file.
105550         * lib/xasprintf.c: New file.
105552 2004-09-08  Bruno Haible  <bruno@clisp.org>
105554         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
105556 2004-09-08  Bruno Haible  <bruno@clisp.org>
105558         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
105559         length is > INT_MAX.
105560         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
105561         more.
105563 2004-09-08  Bruno Haible  <bruno@clisp.org>
105565         * lib/stdint_.h: New file, taken from GNU clisp.
105567 2004-09-08  Bruno Haible  <bruno@clisp.org>
105568             Oskar Liljeblad  <oskar@osk.mine.nu>
105570         * modules/stdint: New file.
105571         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
105573 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105575         Import from coreutils.
105576         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
105577         strings on unbounded length.  alloca's performance benefits aren't
105578         that important here.
105579         (V_STRDUP): Remove.
105580         (parse_with_separator): New function, with most of the internals
105581         of the old parse_user_spec.  Allow user to omit both user and group,
105582         for compatibility with FreeBSD.
105583         Clone only the user name, not the entire spec.
105584         Do not set *uid, *gid unless entirely successful.
105585         Avoid memory leak in some failing cases.
105586         Fix regression for USER.GROUP reported by Dmitry V. Levin in
105587         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
105588         (parse_user_spec): Rewrite to use parse_with_separator.
105590 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105592         * modules/userspec: Don't depend on alloca.
105594 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105596         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
105598 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
105600         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
105601         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
105602         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
105604 2004-08-16  Simon Josefsson  <jas@extundo.com>
105606         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
105607         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
105608         Add --dry-run for --import.
105609         Let user provided command line parameters override configure.ac
105610         settings.
105612 2004-08-12  Simon Josefsson  <jas@extundo.com>
105614         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
105615         as discussed with Paul Eggert in threads rooted at
105616         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
105617         and
105618         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
105619         Before, the test was empty, and relied on ELIDE_CODE in source
105620         code.)
105621         (gl_PREREQ_GETOPT): New macro.
105622         (gl_GETOPT): Use them.
105624 2004-08-12  Simon Josefsson  <jas@extundo.com>
105626         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
105627         * lib/getopt_.h: Renamed from getopt.h.
105629 2004-08-12  Simon Josefsson  <jas@extundo.com>
105631         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
105632         Change default library name from libfoo to libgnu.
105633         Now, if you have a configure.ac that says:
105634                 gl_SOURCE_BASE(gl)
105635                 gl_M4_BASE(gl/m4)
105636                 gl_MODULES(error getopt etcetera)
105637                 gl_INIT
105638         you can import all you need by running:
105639                 ../gnulib/gnulib-tool --import
105641         * modules/getopt (Files): Rename getopt.h to getopt_.h.
105642         (Makefile.am): Rewrite, use logic from argz.
105643         (Include): Use <getopt.h> instead of "getopt.h".
105645 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105647         * modules/argp (Files): Add m4/unlocked-io.m4.
105648         (Depends-on): Add extensions.
105650 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105652         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
105653         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
105654         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
105655         Check for program_invocation_name, program_invocation_short_name,
105656         flockfile, funlockfile, features.h, _getopt_long_only_r.
105658 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105660         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
105661         its complicated substitute.
105662         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
105663         and program_invocation_name.
105664         (__argp_basename) [!_LIBC]: Remove; the only use was
105665         replaced by its body.
105666         (__argp_short_program_name): Change condition from
105667         !defined __argp_short_program_name to
105668         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
105669         to match argp-namefrob.h.
105670         (__argp_failure): Don't assume strerror_r returns char *.
105671         * lib/argp-parse.c (N_): Define unconditionally.
105672         (argp_default_options): Fill out initializers with 0 to avoid
105673         gcc warnings.
105675 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105677         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
105678         getopt1.c.
105680 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
105682         Merge from coreutils.
105684         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
105686         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
105687         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
105689 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
105691         Merge from coreutils.
105693         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
105694         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
105695         for Reliant Unix 5.43.
105697         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
105698         (union fooround): Use uintmax_t, not long int.
105699         The rest is a merge from libc:
105700         [defined _LIBC]: Include <shlib-compat.h>.
105701         (_obstack) [defined _LIBC]: Remove after 2.3.4.
105703         * lib/settime.c (settime): Recode to avoid warning with
105704         Sun Forte C 6U2.
105706         * lib/strverscmp.c: Convert to UTF-8.
105708 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
105710         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
105711         m4/uintmax_t.m4.
105713 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
105715         * modules/xalloc-die: New file.
105716         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
105718         * modules/md5 (Files): Add m4/uint32_t.m4.
105719         * modules/sha1: Renamed from modules/sha.
105720         (Files):
105721         Rename lib/sha.h to lib/sha1.h.
105722         Rename lib/sha.c to lib/sha1.c.
105723         Rename m4/sha.m4 to m4/sha1.m4.
105724         (lib_SOURCES): Likewise.
105725         (configure.ac): Rename gl_SHA to gl_SHA1.
105726         (Include): sha.h -> sha1.h.
105728 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
105730         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
105731         * m4/sha1.m4: Renamed from sha.m4.
105732         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
105734 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
105736         * lib/obstack.h (obstack_empty_p):
105737         Don't assume that chunk->contents is suitably aligned.
105738         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
105739         Likewise. Problem reported by Benno in
105740         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
105742         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
105743         readable.  This could be improved further but it'd take some work.
105745 2004-08-08  Simon Josefsson  <jas@extundo.com>
105747         * modules/xgethostname (Depends-on): Remove exit and error (not
105748         used).
105750         * modules/getpass-gnu: Add getpass.h.
105751         (Depends-on): Add stdbool.
105752         * modules/getpass: Add getpass.h.
105754 2004-08-08  Simon Josefsson  <jas@extundo.com>
105756         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
105757         Check getpass declaration.
105759 2004-08-08  Simon Josefsson  <jas@extundo.com>
105761         * lib/xgethostname.c: Don't include error.h (not used).
105763         * lib/getpass.h: Add.
105764         * lib/getpass.c: Include getpass.h first.
105766 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
105768         * lib/xalloc-die.c: New file.
105769         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
105770         All uses removed.
105771         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
105772         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
105773         xalloc-die.c.
105774         (_, N_, xalloc_die): Move to xalloc-die.c.
105775         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
105776         so that we needn't mess with xalloc_msg_memory_exhausted.
105778         * lib/sha1.h: Renamed from sha.h.
105779         (SHA1_H): Renamed from _SHA_H.
105780         (sha1_ctx): Renamed from sha_ctx.
105781         (sha1_init_ctx): Renamed from sha_init_ctx.
105782         (sha1_process_block): Renamed from sha_process_block.
105783         (sha1_process_bytes): Renamed from sha_process_bytes.
105784         (sha1_finish_ctx): Renamed from sha_finish_ctx.
105785         (sha1_read_ctx): Renamed from sha_read_ctx.
105786         (sha1_stream): Renamed from sha_stream.
105787         (sha1_buffer): Renamed from sha_buffer.
105788         * lib/sha1.c: Likewise; renamed from sha.c.
105789         Do not include <sys/types.h>.
105790         Include <stddef.h> rather than <stdlib.h>.
105792 2004-08-08  Bruno Haible  <bruno@clisp.org>
105794         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
105795         FILESYSTEM_PREFIX_LEN.
105796         * lib/progreloc.c: Likewise.
105797         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
105799 2004-08-06  Simon Josefsson  <jas@extundo.com>
105801         * modules/progname (Depends-on): Don't depend on stdbool.
105803 2004-08-06  Simon Josefsson  <jas@extundo.com>
105805         * modules/getsubopt: New file.
105806         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105807         getsubopt.
105809 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
105811         More merge from coreutils.
105813         * m4/utimens.m4, m4/utimecmp.m4: New files.
105814         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
105815         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
105816         prereq.m4, sha.m4: Import changes from coreutils.
105818 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
105820         More merge from coreutils.
105821         * modules/raise, modules/readtokens0, modules/utimens:
105822         * modules/utimecmp, module/xnanosleep: New files.
105823         * modules/strftime: Add lib/strftime.h.
105824         Change include from <time.h> to "strftime.h".
105825         * modules/yesno: Add lib/yesno.h.
105826         * modules/backupfile: Remove lib/addext.c.
105827         * modules/euidaccess: Add stat-macros.h.
105828         * modules/canonicalize, modules/euidaccess,
105829         modules/filemode, modules/lchown, modules/makepath,
105830         modules/rmdir, modules/stat: Likewise.
105832 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
105834         Merge from tar.
105835         * lib/argp-help.c (make_hol, hol_append): Don't assume that
105836         SIZE_MAX is a valid preprocessor constant.
105837         (__argp_basename): Change from "#ifndef _LIBC"
105838         to "#ifndef __argp_short_program_name", so that
105839         we don't compile these functions for tar.
105841         More merges from coreutils.
105842         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
105843         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
105844         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
105845         * lib/addext.c: Remove; no longer needed.
105846         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
105847         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
105848         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
105849         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
105850         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
105851         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
105852         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
105853         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
105854         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
105855         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
105856         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
105857         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
105858         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
105859         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
105860         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
105861         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
105862         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
105863         Import changes from coreutils.
105865 2004-08-05  Simon Josefsson  <jas@extundo.com>
105867         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
105869 2004-08-05  Simon Josefsson  <jas@extundo.com>
105871         * m4/getsubopt.m4: New file.
105873 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
105875         Merge from coreutils.
105877         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
105878         * m4/getcwd-path-max.m4: New files.
105880         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
105881         FILESYSTEM_PREFIX_LEN ->
105882         FILE_SYSTEM_PREFIX_LEN.
105883         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
105884         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
105885         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
105886         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
105888         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
105889         prerequisite modules now handle the DOS stuff.
105890         Don't check for unistd.h.
105892 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
105894         Merge from coreutils.
105896         * lib/.gdb-history: Remove; this doesn't belong here.
105898         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
105899         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
105900         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
105901         * lib/getcwd.c: New files.
105903         * lib/dirname.h: Include <stdbool.h>.
105904         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
105905         for consistency with POSIX terminology.  All uses changed.
105906         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
105907         (strip_trailing_slashes): Use bool for booleans.
105908         * lib/stripslash.c (strip_trailing_slashes): Likewise.
105910         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
105911         sometimes returns a positive errno value even when it succeeds.
105912         (print_errno_message) [!LIBC]: Fall back on strerror if
105913         __strerror_r fails.
105915         * lib/path-concat.c (mempcpy): Don't define if a system header defines
105916         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
105917         (longest_relative_suffix): New function.
105918         (path_concat): Use it.  Assume first argument is not NULL.
105919         Port to DOS.  Omit redundant separators.
105920         Report an error instead of returning NULL.
105921         Use mempcpy instead of memcpy.
105922         (xpath_concat): Remove: not declared or used.
105924         * lib/same.h: Include <stdbool.h>
105925         (same_name): Return bool, not int.
105926         * lib/same.c (same_name): Likewise.
105927         (errno): Don't declare; we assume C89 or better now.
105929         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
105930         if not already defined.
105932         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
105933         * lib/dup-safer.c (errno): Likewise.
105935 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
105937         Merge from coreutils.
105938         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
105939         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
105940         * modules/path-concat: Don't depend on strdup.
105942 2004-08-03  Simon Josefsson  <jas@extundo.com>
105944         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
105945         * lib/progname.h: Don't include stdbool.h.
105947 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
105949         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
105950         * MODULES.html.sh (func_all_modules): Remove fatal.
105952 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
105954         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
105956 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
105958         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
105959         working.
105961 2004-08-02  Simon Josefsson  <jas@extundo.com>
105963         * lib/getsubopt.h: New file, with comments from Bruno Haible.
105964         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
105965         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
105967 2004-08-01  Simon Josefsson  <jas@extundo.com>
105969         * lib/xgetdomainname.c: Include stdlib.h, for free().
105971 2004-07-19  Bruno Haible  <bruno@clisp.org>
105973         * MODULES.html.sh (func_all_modules): Add dummy.
105975 2004-07-16  Simon Josefsson  <jas@extundo.com>
105977         * modules/dummy: New file.
105979 2004-07-16  Simon Josefsson  <jas@extundo.com>
105981         * lib/dummy.c: New file.
105983 2004-07-16  Bruno Haible  <bruno@clisp.org>
105985         * lib/backupfile.h: Add extern "C" for C++.
105986         * lib/closeout.h: Likewise.
105987         * lib/copy-file.h: Likewise.
105988         * lib/findprog.h: Likewise.
105989         * lib/full-write.h: Likewise.
105990         * lib/pathname.h: Likewise.
105991         * lib/progname.h: Likewise.
105992         * lib/stpcpy.h: Likewise.
105993         * lib/stpncpy.h: Likewise.
105994         * lib/strcase.h: Likewise.
105995         * lib/strstr.h: Likewise.
105996         * lib/xalloc.h: Likewise.
105998         * lib/mbswidth.h: Add extern "C" for C++.
105999         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
106001 2004-07-13  Robert Millan  <robertmh@gnu.org>
106003         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
106005 2004-07-09  Simon Josefsson  <jas@extundo.com>
106007         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
106008         failed without this.)
106010 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
106012         * modules/chown (Files): Add lib/fchown-stub.c, since
106013         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
106015 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
106017         * lib/fchown-stub.c: New file.
106019 2004-06-24  Jim Meyering  <jim@meyering.net>
106021         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
106023 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106025         * modules/argz: Omit "#include".
106027         * MODULES.html.sh (func_all_modules): Add calloc, to match
106028         2004-06-01 addition of calloc module.
106030 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106032         * m4/argz.m4: New file, which is autoupdated from libtool.
106034 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106036         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
106037         libtool.
106039 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106041         * config/srclist-update: Don't insist on "USA." before the
106042         close-comment, as libtool omits the period and puts the */ on a
106043         separate line.
106044         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
106045         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
106047 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
106049         * modules/argz: New file.
106050         * MODULES.html.sh (func_all_modules): Add argz.
106052 2004-06-12  Jim Meyering  <jim@meyering.net>
106053         and  Paul Eggert  <eggert@cs.ucla.edu>
106055         * modules/hash (Files): Add lib/xalloc.h.
106056         * modules/pipe (Depends-on): Add wait-process.
106057         * modules/stat (Depends-on): Add xalloc.
106058         * modules/userspec (Files): Add lib/userspec.h.
106059         * modules/xstrto
106061         Upgrade from gettext-0.13.
106062         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
106063         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
106064         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
106066 2004-06-10  Jim Meyering  <jim@meyering.net>
106068         * lib/calloc.c: New file.
106070 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
106072         * lib/getdate.y (yylex): Allow space between sign and number.
106073         Problem reported by Dan Jacobson.
106075 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
106077         Merge from coreutils CVS.
106079         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
106080         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
106081         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
106082         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
106083         xstrtol.m4: Fix copyright date and/or serial number.
106085         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
106086         See if we need an fchown replacement.
106087         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
106088         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
106089         and use the replacement function if we detect either defect.
106091         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
106092         gl_UTIMECMP.
106094 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
106095         and  Jim Meyering  <jim@meyering.net>
106097         Merge from coreutils CVS.
106099         * lib/stat-macros.h: New file, with contents from file-type.h
106100         and coreutils' system.h.
106101         * lib/file-type.c: Include "stat-macros.h".
106102         * lib/file-type.h (file_type): Move all macro definitions to new file,
106103         stat-macros.h.
106105         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
106106         Wrap old code with this conditional.
106107         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
106108         function that does not dereference symlinks.
106109         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
106111         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
106112         dependency problems.
106113         (xreadlink): Accept new arg SIZE, for efficiency.
106114         All decls and uses changed.
106115         * lib/xreadlink.h: Include <stddef.h>, for size_t.
106117         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
106118         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
106120         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
106121         sysexits.h.
106123 2004-06-01  Jim Meyering  <jim@meyering.net>
106125         * m4/calloc.m4: New file.
106127 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
106129         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
106130         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
106131         Also, fix a typo in a diagnostic.
106133 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
106135         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
106136         or AC_FUNC_REALLOC.
106138 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
106140         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
106141         macros to be defined.
106142         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
106143         the allocator returns NULL because the requested size is zero.
106145 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106147         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
106148         var.  Add comment explaining why libc still defines it.  This
106149         merges the following patch from glibc:
106150         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
106152 2004-05-20  Andreas Schwab  <schwab@suse.de>
106154         * m4/free.m4: Replace free if it not known to work, not the other
106155         way round.
106157 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
106159         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
106160         present in glibc since revision 1.1 of this file.
106161         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
106162         obstack_alignment_mask, obstack_alloc, obstack_base,
106163         obstack_blank, obstack_blank_fast, obstack_chunk_size,
106164         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
106165         obstack_grow0, obstack_init, obstack_int_grow,
106166         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
106167         obstack_next_free, obstack_object_size, obstack_ptr_grow,
106168         obstack_ptr_grow_fast, obstack_room): Remove declarations of
106169         nonexistent functions.
106171 2004-05-18  Karl Berry  <karl@gnu.org>
106173         * config/srclist.txt: break link for vasnprintf.c.
106175 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
106177         Port obstack to the AS/400, where pointers are 16 bytes wide and
106178         you cannot cast an integer to a valid pointer.  This patch is
106179         currently waiting to be integrated into glibc; see
106180         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
106182         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
106183         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
106184         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
106185         (struct obstack): temp member is now a union of a pointer and
106186         an integer, instead of an integer.  All integer uses changed.
106187         This does not affect the physical layout of struct obstack,
106188         except on hosts (like the AS/400) where the size or alignment of
106189         void * is greater than that of ptrdiff_t.
106190         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
106191         __STDC__)]: Store temporary in pointer member of union, not
106192         integer member.
106193         * lib/obstack.c: Include <stddef.h>, for offsetof.
106194         (struct fooalign): Remove; it doesn't need a name.
106195         (union fooround): Change double to long double, and add void *.
106196         (DEFAULT_ALIGNMENT): Use offsetof to compute.
106197         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
106198         not a macro.  Hence the values are always int; so remove all
106199         casts-to-int in uses.
106201 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
106203         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
106204         we can get this patch merged into glibc.
106206 2004-05-17  Derek R. Price  <derek@ximbiot.com>
106207             Paul Eggert  <eggert@cs.ucla.edu>
106209         * m4/argp: Depend on alloca.
106211 2004-05-17  Derek R. Price  <derek@ximbiot.com>
106212             Paul Eggert  <eggert@cs.ucla.edu>
106214         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
106215         freecoding.
106217 2004-05-17  Bruno Haible  <bruno@clisp.org>
106219         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
106220         precision that consists of a '.' followed by an empty digit string.
106221         Patch by Tor Lillqvist <tml@iki.fi>.
106223 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
106225         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
106226         for backward compatibility with older code.  We need our own
106227         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
106228         it under some other name, and our alloca.h will define it.
106230 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
106231             Derek Price  <derek@ximbiot.com>
106233         * lib/alloca.c: Include <alloca.h>, to get our interface.
106234         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
106235         include <alloca.h> first.  Use C89 prototype for alloca; this
106236         requires including <stddef.h> for size_t.  Use extern "C" if C++.
106237         Use #elif for simplicity, since we can assume C89 now.
106238         Don't try to source the system alloca.h since it will not be found
106239         and to prevent recursively including its replacement.
106240         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
106241         * lib/regex.c: Likewise.
106243 2004-05-16  Derek Price  <derek@ximbiot.com>
106244             Paul Eggert  <eggert@cs.ucla.edu>
106246         getline cleanup.  This changes the getndelim2 API: both order of
106247         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
106248         no delimiter).
106250         * lib/getline.c: Don't include stddef.h or stdio.h, since our
106251         interface does that.
106252         (getline): Always use getdelim, so that we don't have two
106253         copies of this code.
106254         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
106255         if available.
106256         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
106257         (GETNDELIM2_MAXIMUM): New macro.
106258         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
106259         instead of the old practice of delim2==0.  All callers changed.
106260         Return -1 on overflow, instead of returning junk.
106261         Do not set *linesize unless allocation succeeds.
106262         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
106263         that we include sys/types.h.
106264         * lib/getnline.h: Likewise.
106265         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
106266         (getndelim2): Reorder arguments.
106267         * lib/getnline.c (getnline, getndelim):
106268         Don't discard the NMAX argument.
106269         (getnline): Invoke getndelim, to avoid code duplication.
106270         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
106271         of (size_t) -1 by callers of the getnline family.
106273 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106275         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
106276         Check for gettimeofday.
106277         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
106278         Check for settimeofday, stime.
106280 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106282         * lib/nanosleep.c (suspended): Change its type from int to
106283         sig_atomic_t volatile.
106284         (first_call): Make it private to rpl_nanosleep, and have it
106285         be zero initially as that's a bit faster.
106286         (my_usleep): Round up fractional times instead of truncating them,
106287         as this is the usual meaning for 'sleep'.
106289         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
106290         doesn't work.
106291         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
106292         (ENOSYS): Define if not defined.
106293         (settime): Fall back on stime if it exists and settimeofday fails.
106294         But don't bother with fallbacks if a method fails with errno == EPERM.
106296 2004-05-11  Jim Meyering  <jim@meyering.net>
106298         Prior to this change, the save_cwd caller required read access to the
106299         current directory on most systems (ones with the fchdir function).
106301         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
106302         fails, try write-only, and finally, resort to using xgetcwd.
106304 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
106306         * lib/obstack.c, obstack.h: Import changes from libc.
106308 2004-04-28  Bruno Haible  <bruno@clisp.org>
106310         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
106311         also implicitly appends .exe to executables.
106312         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
106313         accepts Windows pathnames.
106314         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
106315         Treat Cygwin like Windows, since it now accepts Windows pathnames.
106316         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
106317         Treat Cygwin like Windows, since it now accepts Windows pathnames.
106318         Reported by Derek Robert Price <derek@ximbiot.com>.
106320 2004-04-21  Karl Berry  <karl@gnu.org>
106322         * config/srclist.txt (localcharset.c): break sync.
106324 2004-04-20  Paul Eggert  <eggert@twinsun.com>
106326         * m4/host-os.m4: Add a copyright notice.
106328 2004-04-20  Jim Meyering  <jim@meyering.net>
106330         Change UTILS_ to gl_ in AC_DEFINE'd names.
106331         Change utils_- and jm_-prefixed variables, too.
106332         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
106333         UTILS_FUNC_MKDIR_TRAILING_SLASH.
106334         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
106336         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
106337         Don't emit trailing blanks.
106338         Also rename jm_-prefixed variables to have gl_ prefix.
106340         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
106341         Also rename jm_-prefixed variables to have gl_ prefix.
106343         * m4/jm-macros.m4: Reflect the renamings.
106344         * m4/prereq.m4: Likewise.
106346 2004-04-20  Jim Meyering  <jim@meyering.net>
106348         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
106349         memory.
106351 2004-04-20  Jim Meyering  <jim@meyering.net>
106352             Bruno Haible  <bruno@clisp.org>
106354         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
106355         memory when realloc fails.
106357 2004-04-19  Jim Meyering  <jim@meyering.net>
106359         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
106360         now that readutmp.c may call `free (0)'.
106362 2004-04-19  Bruno Haible  <bruno@clisp.org>
106364         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
106365         * m4/inttypes_h.m4: Likewise.
106366         * m4/stdint_h.m4: Likewise.
106367         * m4/intmax_t.m4: Likewise.
106368         * m4/uintmax_t.m4: Likewise.
106370 2004-04-18  Jim Meyering  <jim@meyering.net>
106372         * m4/prereq.m4: Don't forbid jm_ prefix.
106374         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
106375         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
106376         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
106377         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
106378         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
106379         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
106380         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
106381         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
106382         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
106383         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
106384         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
106385         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
106386         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
106387         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
106388         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
106389         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
106390         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
106391         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
106392         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
106394 2004-04-18  Jim Meyering  <jim@meyering.net>
106396         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
106397         failure, don't leak memory and do call END_UTMP_ENT.
106399 2004-04-16  Jim Meyering  <jim@meyering.net>
106401         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
106402         coreutils' stat program.
106403         (gl_PREREQ): Don't require jm_PREREQ_STAT.
106405 2004-04-11  Paul Eggert  <eggert@twinsun.com>
106407         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
106408         C89.
106409         (CHAR_BIT): Remove, since we assume C89.
106410         Include <stdint.h> if available, as per current Autoconf CVS advice.
106412 2004-03-31  Jim Meyering  <jim@meyering.net>
106414         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
106415         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
106416         * m4/xalloc.m4: Likewise.
106418 2004-03-30  Paul Eggert  <eggert@twinsun.com>
106420         Merge from coreutils.
106422         * m4/inttostr.m4: New file.
106423         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
106424         Require AM_STDBOOL_H and gl_TIMESPEC instead.
106425         Require gl_CLOCK_TIME.
106426         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
106428 2004-03-30  Paul Eggert  <eggert@twinsun.com>
106430         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
106431         not bool, to be more consistent with Unix conventions.
106432         Suggested by Bruno Haible.
106434         Merge from coreutils.
106436         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
106437         * lib/umaxtostr.c: New files.
106439         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
106440         the usual <time.h> dance.
106441         (get_date): Change signature to support fractional time stamps.
106442         All callers changed.
106443         * lib/getdate.y: Include "getdate.h" first, as we can now
106444         assume C89 and don't need to worry about 'const'.
106445         Similarly, include "unlocked-io.h" near start, not in middle.
106446         Include <limits.h>.
106447         (textint.value): Use long int rather than int.
106448         (textint.digits): Use size_t rather than int.
106449         (BILLION, LOG10_BILLION): New constants.
106450         (parser_control): New member rel_ns.  Members day_ordinal,
106451         time_zone, month, day, hour, minutes, rel_year, rel_month,
106452         rel_day, rel_hour, rel_minutes, rel_seconds
106453         are now long int, not int.  Member seconds is now struct timespec,
106454         not int.  New member timespec_seen.  Members dates_seen, days_seen,
106455         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
106456         not int.
106457         (%union.intval): Now long int, not int.
106458         New member timespec.
106459         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
106460         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
106461         (spec): Now is a timespec or an item list.
106462         (timespec, items): New nonterminals.
106463         (time, rel, relunit, number, get_date):
106464         Add support for fractional seconds.
106465         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
106466         (gmtime, localtime, mktime): Remove decls; not needed with C89.
106467         (to_hour): First arg is now long int, not int.
106468         (to_year): Returns long int, not int.
106469         Don't treat year -70 like 70.
106470         (tm_diff): Returns long int, not int.
106471         (lookup_word): Use bool instead of int when appropriate.
106472         (yylex): Use size_t for count, not int.
106473         Detect overflow when parsing large integer constants.
106474         Add support for fractions.
106475         (get_date): Make pointers 'const' if possible.
106476         Use more-portable code to detect integer overflow.
106477         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
106478         Don't use ctime; it's not reliable if the year has >4 digits.
106480         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
106481         This is for compatibility with BSD.
106483         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
106484         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
106485         From coreutils' system.h.
106487         * lib/userspec.c: Don't include "posixver.h".
106488         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
106489         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
106490         compatible extension.  Simplify code by removing a boolean int
106491         that was always nonzero if a string was nonnull.
106493 2004-03-30  Jim Meyering  <jim@meyering.net>
106495         Merge from coreutils.
106497         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
106498         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
106499         on some systems one must include <grp.h> before it.
106500         Reported by Christian Krackowizer.
106502 2004-03-30  Jim Meyering  <jim@meyering.net>
106504         Merge from coreutils.
106506         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
106508         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
106509         an empty input stream.
106511         * lib/readtokens.c: Include <stdbool.h>.
106512         (readtoken): Use `size_t' rather than int/long.
106513         All callers adjusted.
106514         Use `bool' rather than `int' where appropriate.
106515         Use memset rather than an explicit loop.
106516         Use x2nrealloc rather than xrealloc.
106517         Allow the use of `\0' as a delimiter.
106518         (readtokens): Likewise.
106519         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
106521 2004-03-30  Jim Meyering  <jim@meyering.net>
106523         * m4/realloc.m4: Remove file, since now it does no more than
106524         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
106525         the `configure.ac' section of module/realloc.
106526         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
106528 2004-03-30  Bruno Haible  <bruno@clisp.org>
106530         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
106531         nonnull.
106533 2004-03-29  Paul Eggert  <eggert@twinsun.com>
106535         Merge changes to getloadavg.c from coreutils and Emacs.
106537         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
106538         Define to an expression, not to the empty string.
106539         Include cloexec.h and xalloc.h.
106540         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
106541         Use set_cloexec_flag rather than rolling our own.
106542         * lib/cloexec.c, lib/cloexec.h: New files.
106544 2004-03-29  Paul Eggert  <eggert@twinsun.com>
106546         * m4/cloexec.m4: New file.
106548 2004-03-18  Paul Eggert  <eggert@twinsun.com>
106550         * lib/getopt.h: Sync with libc CVS.
106552 2004-03-18  Paul Eggert  <eggert@twinsun.com>
106553             Bruno Haible  <bruno@clisp.org>
106555         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
106556         mbswidth.
106558 2004-03-18  Paul Eggert  <eggert@twinsun.com>
106559             Bruno Haible  <bruno@clisp.org>
106561         * lib/mbswidth.h: Include <wchar.h> only if
106562         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
106563         <wchar.h>.
106564         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
106566 2004-03-09  Paul Eggert  <eggert@twinsun.com>
106568         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
106569         Sync with libc CVS.
106570         * lib/getopt_int.h: New file, also synced from libc.
106572 2004-03-09  Paul Eggert  <eggert@twinsun.com>
106574         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
106575         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
106576         Bring back getopt.c, getopt.h, getopt1.c.
106578 2004-03-07  Paul Eggert  <eggert@twinsun.com>
106580         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
106581         All uses changed.  Check for sa_sigaction member; this fixes
106582         a bug first reported by Jason Andrade in
106583         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
106585 2004-03-07  Paul Eggert  <eggert@twinsun.com>
106587         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
106588         '#if' expressions.  Unlike the code it replaces, it does not
106589         depend on (defined _SC_PAGESIZE).  However, it does depend on
106590         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
106591         first reported by Jason Andrade in
106592         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
106594 2004-02-25  Simon Josefsson  <jas@extundo.com>
106596         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
106598 2004-02-25  Simon Josefsson  <jas@extundo.com>
106600         * lib/strdup.h: New file.
106601         * lib/strdup.c: Include it.
106602         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
106603         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
106605 2004-02-23  Karl Berry  <karl@gnu.org>
106607         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
106608         (from fencepost.gnu.org:/gd/gnuorg).
106610 2004-02-23  Karl Berry  <karl@gnu.org>
106612         * config/srclistvars.sh (GNUORG) [karl]: redefine.
106613         * config/srclist.txt: add maintain/standards documents.
106615 2004-02-18  Bruno Haible  <bruno@clisp.org>
106617         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
106618         Reported by Derek Robert Price <derek@ximbiot.com>.
106620 2004-02-16  Karl Berry  <karl@gnu.org>
106622         * config/mkinstalldirs, install-sh: update from automake.
106624 2004-02-06  Karl Berry  <karl@gnu.org>
106626         * m4/po.m4: update from gettext 0.14.1.
106628 2004-02-06  Karl Berry  <karl@gnu.org>
106630         * lib/config.charset: update from gettext 0.14.1.
106632 2004-02-05  Paul Eggert  <eggert@twinsun.com>
106634         Add comments and code, prompted by suggestions from Bruno Haible
106635         for sh-quote.
106636         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
106637         describing the enum quoting_style values.
106638         * lib/quotearg.c (quotearg_alloc): New function.
106639         (quotearg_buffer_restyled): Treat lone { and } as special.
106640         Treat = as special.  Work around bug with older shells
106641         that "see" a '\' that is really the 2nd byte of a multibyte char.
106642         Quote empty string with shell_quoting_style.
106644 2004-02-03  Bruno Haible  <bruno@clisp.org>
106646         * m4/pipe.m4: New file, from GNU gettext.
106648 2004-02-03  Bruno Haible  <bruno@clisp.org>
106650         * lib/pipe.h: New file, from GNU gettext.
106651         * lib/pipe.c: New file, from GNU gettext.
106653 2004-01-27  Bruno Haible  <bruno@clisp.org>
106655         * m4/execute.m4: New file, from GNU gettext.
106657 2004-01-27  Bruno Haible  <bruno@clisp.org>
106659         * lib/execute.h: New file, from GNU gettext.
106660         * lib/execute.c: New file, from GNU gettext.
106661         * lib/w32spawn.h: New file, from GNU gettext.
106663 2004-01-24  Paul Eggert  <eggert@twinsun.com>
106665         Merge from diffutils.
106667         * lib/file-type.c (file_type): Add typed memory objects.
106668         * lib/file-type.h (S_TYPEISTMO): New macro.
106670         * lib/c-stack.h (c_stack_action): Remove argv argument.
106671         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
106672         (die): Don't calculate message unless segv_action returns.
106673         (get_stack_location, min_address_from_argv, max_address_from_argv,
106674         volatile stack_base, volatile_stack_size): Remove.
106675         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
106676         that every segmentation violation is a stack overflow.  (Ouch!)
106677         See Debian bug 136249 (still outstanding) for more info about why
106678         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
106680 2004-01-24  Paul Eggert  <eggert@twinsun.com>
106682         Exit-status fix from coreutils.
106684         Use exit_failure consistently in place of EXIT_FAILURE,
106685         so that program exit statuses are consistent on failure.
106687         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
106688         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
106689         * lib/argmatch.h: Comment fix to match the above.
106690         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
106691         Now a macro referring to exit_failure, instead of a separate
106692         variable.  Include "exitfail.h" to get it.
106693         * lib/xstrtol.h: Include "exitfail.h".
106694         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
106696         * lib/long-options.c (parse_long_options): Use prototype
106697         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
106698         for clarity.
106700 2004-01-21  Jim Meyering  <jim@meyering.net>
106702         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
106703         so as not to conflict with a different-sized __mktime_internal
106704         function in GNU libc.
106705         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
106706         Problem building statically-linked `ls' reported by Michael Brunnbauer.
106708 2004-01-20  Karl Berry  <karl@gnu.org>
106710         * config/config.guess: update from config.
106712         * config/srclistvars.sh: GNUWWWLICENSES for karl.
106714 2004-01-20  Bruno Haible  <bruno@clisp.org>
106716         Safer stack allocation.
106717         * lib/setenv.c: Include allocsa.h.
106718         (alloca): Remove fallback definition.
106719         (freea): Remove macro.
106720         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
106721         instead of freea.
106723 2004-01-20  Bruno Haible  <bruno@clisp.org>
106725         * m4/eealloc.m4: New file, from GNU gettext.
106727 2004-01-20  Bruno Haible  <bruno@clisp.org>
106729         * m4/allocsa.m4: New file, from GNU gettext.
106731 2004-01-20  Bruno Haible  <bruno@clisp.org>
106733         * lib/xallocsa.h: New file, from GNU gettext.
106734         * lib/xallocsa.c: New file, from GNU gettext.
106736 2004-01-20  Bruno Haible  <bruno@clisp.org>
106738         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
106740 2004-01-20  Bruno Haible  <bruno@clisp.org>
106742         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
106743         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
106744         specially.
106746 2004-01-20  Bruno Haible  <bruno@clisp.org>
106748         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
106749         patch.
106751 2004-01-20  Bruno Haible  <bruno@clisp.org>
106753         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
106755 2004-01-20  Bruno Haible  <bruno@clisp.org>
106757         * lib/eealloc.h: New file.
106759 2004-01-20  Bruno Haible  <bruno@clisp.org>
106761         * lib/binary-io.h: Avoid warnings on Cygwin.
106763 2004-01-20  Bruno Haible  <bruno@clisp.org>
106765         * lib/allocsa.h: New file, from GNU gettext.
106766         * lib/allocsa.c: New file, from GNU gettext.
106768 2004-01-18  Karl Berry  <karl@gnu.org>
106770         * doc/gpl.texi, doc/lgpl.texi: new files.
106772 2004-01-18  Karl Berry  <karl@gnu.org>
106774         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
106775         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
106777 2004-01-15  Paul Eggert  <eggert@twinsun.com>
106779         Merge from coreutils.
106781         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
106782         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
106783         (gl_DEFAULT_POSIX2_VERSION): Move
106784         the documentation from 'configure' into 'config.hin',
106785         so that 'configure --help' isn't burdened by it and
106786         we don't have to worry about its formatting there.
106787         Reword the documentation so that it's more succinct
106788         and can be run together into a single paragraph.
106789         * m4/same.m4 (gl_SAME): Check for pathconf.
106791 2004-01-15  Paul Eggert  <eggert@twinsun.com>
106793         Merge from coreutils.
106795         * lib/posixver.c: Include posixver.h.
106797         * lib/same.c: Include <stdbool.h>, <limits.h>.
106798         (_POSIX_NAME_MAX): Define if not defined.
106799         (MIN): New macro.
106800         (same_name): If file names are silently truncated, report
106801         that the file names are the same if they are the same after
106802         the silent truncation.
106804         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
106805         conversion function.
106806         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
106807         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
106808         longer needed.
106810 2004-01-15  Jim Meyering  <jim@meyering.net>
106812         Merge from coreutils.
106814         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
106815         if no library is required.
106816         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
106817         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
106818         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
106819         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
106820         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
106821         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
106822         value, $ac_cv_search_crypt, if it's "none required".
106823         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
106824         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
106825         not gl_FUNC_GETLOADAVG.
106826         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
106827         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
106829 2004-01-15  Jim Meyering  <jim@meyering.net>
106831         Merge from coreutils.
106833         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
106834         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
106835         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
106837         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
106838         optional configure-time default.
106840         * lib/version-etc.c (version_etc_copyright): Update copyright date.
106842         * lib/xreadlink.c (xreadlink): Correct outdated comment.
106844 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
106846         Merge from coreutils.
106848         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
106849         value, $ac_cv_search_nanosleep, if it's "none required".
106851 2004-01-14  Paul Eggert  <eggert@twinsun.com>
106853         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
106854         with like-named macro in fnmatch.c.
106855         (EXT): Use an internal constant instead.
106857         Merge fnmatch patches from glibc.
106858         * lib/fnmatch.c (mbsinit): Remove define.
106859         Add libc_hidden_ver (__fnmatch, fnmatch).
106860         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
106861         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
106863 2004-01-14  Karl Berry  <karl@gnu.org>
106865         * config/install-sh: update from automake.
106867 2004-01-13  Karl Berry  <karl@gnu.org>
106869         * config/install-sh: update from automake.
106871 2004-01-09  Karl Berry  <karl@gnu.org>
106873         * config/install-sh: update from automake.
106875 2004-01-05  Karl Berry  <karl@gnu.org>
106877         * config/config.{sub,guess}: update from config.
106879 2003-12-31  Karl Berry  <karl@gnu.org>
106881         * config/depcomp: update from automake.
106883 2003-12-14  Karl Berry  <karl@gnu.org>
106885         * lib/config.charset: update from gettext-runtime.
106887 2003-12-03  Paul Eggert  <eggert@twinsun.com>
106889         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
106890         Bug reported by Alfred M. Szmidt.
106892 2003-12-03  Bruno Haible  <bruno@clisp.org>
106894         * m4/gettext.m4: Upgrade from gettext-0.13.
106895         * m4/po.m4: Upgrade from gettext-0.13.
106896         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
106897         * m4/intmax.m4: New file, from gettext-0.13.
106898         * m4/printf-posix.m4: New file, from gettext-0.13.
106900 2003-11-29  Karl Berry  <karl@gnu.org>
106902         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
106904 2003-11-25  Paul Eggert  <eggert@twinsun.com>
106905             Bruno Haible  <bruno@clisp.org>
106907         * lib/printf-parse.h: Don't include sys/types.h.
106908         (ARG_NONE): New macro.
106909         (char_directive): Change type of *arg_index fields to size_t.
106910         * lib/printf-parse.c: Don't include sys/types.h.
106911         (SSIZE_MAX): Remove macro.
106912         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
106913         Remove unnecessary overflow check.
106914         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
106915         fields.
106917 2003-11-25  Bruno Haible  <bruno@clisp.org>
106919         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
106921 2003-11-25  Bruno Haible  <bruno@clisp.org>
106923         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
106924         gt_TYPE_SSIZE_T.
106926 2003-11-24  Paul Eggert  <eggert@twinsun.com>
106928         * modules/alloca: Remove dependency on xalloc.
106930 2003-11-24  Paul Eggert  <eggert@twinsun.com>
106932         * lib/alloca.c: Remove dependency on xalloc module.
106933         (xalloc_die): Remove.
106934         (memory_full) [!defined emacs]: New macro.
106935         [!defined emacs]: Don't include xalloc.h.
106936         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
106937         address arithmetic overflows.  Change datatypes a bit to avoid
106938         unnecessary casts.
106940 2003-11-22  Jim Meyering  <jim@meyering.net>
106942         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
106943         s/size/size_t/.
106945 2003-11-21  Karl Berry  <karl@gnu.org>
106947         * config/config.{sub,guess}: update from config.
106949 2003-11-18  Karl Berry  <karl@gnu.org>
106951         * config/config.{sub,guess}: update from config.
106953         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
106955 2003-11-17  Paul Eggert  <eggert@twinsun.com>
106957         * README: Mention that S+T cannot overflow if S is the size of
106958         an existing object and T is sufficiently small.
106960 2003-11-17  Jim Meyering  <jim@meyering.net>
106962         On systems without utime and without a utimes function capable of
106963         dealing with a NULL struct utimbuf* argument, this utime replacement
106964         could -- in unusual circumstances -- leak a file descriptor.
106965         * lib/utime.c: Include <unistd.h> and <errno.h>.
106966         (utime_null): Be sure to close `fd' and to preserve errno.
106967         Reported by Geoff Collyer via Arnold Robbins.
106969 2003-11-17  Bruno Haible  <bruno@clisp.org>
106971         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
106972         (Depends-on): Add xsize.
106974 2003-11-17  Bruno Haible  <bruno@clisp.org>
106976         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
106978 2003-11-17  Bruno Haible  <bruno@clisp.org>
106980         * lib/vasnprintf.c (alloca): Remove fallback definition.
106981         (freea): Remove definition.
106982         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
106983         Reported by Paul Eggert.
106985 2003-11-16  Paul Eggert  <eggert@twinsun.com>
106986             Bruno Haible  <bruno@clisp.org>
106988         Protect against address arithmetic overflow.
106989         * lib/printf-args.h: Include stddef.h.
106990         (arguments): Change type of field 'count' to size_t.
106991         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
106992         'unsigned int' where appropriate.
106993         * lib/printf-parse.h: Include sys/types.h.
106994         (char_directive): Change type of *arg_index fields to ssize_t.
106995         (char_directives): Change type of fields 'count', max_*_length to
106996         size_t.
106997         * lib/printf-parse.c: Include sys/types.h and xsize.h.
106998         (SSIZE_MAX): Define fallback value.
106999         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
107000         instead of 'int' where appropriate. Check a_allocated, d_allocated
107001         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
107002         * lib/vasnprintf.c: Include xsize.h.
107003         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
107004         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
107005         overflow. Avoid wraparound when converting a width or precision from
107006         decimal to binary.
107008 2003-11-16  Bruno Haible  <bruno@clisp.org>
107010         Update from GNU gettext.
107011         * lib/printf-parse.c: Generalize to it can be compiled for wide
107012         strings.
107013         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
107014         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
107015         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
107016         SNPRINTF): New macros.
107017         Don't include <alloca.h> if the file is used inside libintl.
107018         (local_wcslen): New function, for Solaris 2.5.1.
107019         (VASNPRINTF): Use it instead of wcslen.
107021 2003-11-16  Bruno Haible  <bruno@clisp.org>
107023         * lib/xsize.h (xmax): New function.
107024         (xsum, xsum3, xsum4): Declare as "pure" functions.
107026 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107028         * modules/xalloc (Files): Undo latest change, since xalloc.h
107029         no longer needs SIZE_MAX or PTRDIFF_MAX.
107031 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107033         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
107034         gl_PTRDIFF_MAX.
107036 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107038         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
107039         "return", to pacify some unknown compiler.  Problem reported
107040         by Joerg Schilling.
107042 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107044         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
107045         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
107046         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
107047         heuristic is just as accurate as far as we know, and it removes a
107048         dependency on size_max.m4 and ptrdiff_max.m4.
107050 2003-11-11  Bruno Haible  <bruno@clisp.org>
107052         * modules/xsize (Files): Add m4/size_max.m4.
107053         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
107055 2003-11-11  Bruno Haible  <bruno@clisp.org>
107057         * m4/size_max.m4: New file.
107058         * m4/ptrdiff_max.m4: New file.
107059         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
107060         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
107061         (gl_XALLOC): Invoke it.
107063 2003-11-11  Bruno Haible  <bruno@clisp.org>
107065         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
107066         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
107067         defined.
107069 2003-11-10  Paul Eggert  <eggert@twinsun.com>
107071         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
107072         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
107073         rejected some allocations of exactly SIZE_MAX - 2 bytes.
107074         From Bruno Haible.
107075         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
107076         not (size_t) -1, since it's defined here.
107078 2003-11-09  Karl Berry  <karl@gnu.org>
107080         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
107082 2003-11-06  Paul Eggert  <eggert@twinsun.com>
107084         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
107085         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
107086         Reject sizes of exactly SIZE_MAX bytes.
107087         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
107088         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
107090 2003-11-05  Bruno Haible  <bruno@clisp.org>
107092         * lib/xsize.h: Include limits.h, to avoid a possible collision with
107093         SIZE_MAX defined in <limits.h> on Solaris.
107095 2003-11-04  Jim Meyering  <jim@meyering.net>
107097         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
107098         variable names, rather than @VAR@.
107099         * modules/poll: Likewise.
107101 2003-11-04  Bruno Haible  <bruno@clisp.org>
107103         * modules/xsize: New file.
107104         * modules/linebreak: Depend on xsize.
107105         * MODULES.html.sh (func_all_modules): Add xsize.
107107 2003-11-04  Bruno Haible  <bruno@clisp.org>
107109         * m4/xsize.m4: New file.
107111 2003-11-04  Bruno Haible  <bruno@clisp.org>
107113         * lib/xsize.h: New file.
107114         * lib/linebreak.c: Include xsize.h.
107115         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
107116         argument for overflow.
107117         Suggested by Paul Eggert.
107119 2003-11-03  Karl Berry  <karl@gnu.org>
107121         * config/config.{guess,sub}: update from config.
107123 2003-11-03  Jim Meyering  <jim@meyering.net>
107125         * modules/userspec (lib_SOURCES): Add userspec.h.
107126         (Include): Add "userspec.h".
107127         Improve description.
107129 2003-11-03  Jim Meyering  <jim@meyering.net>
107131         * lib/userspec.c: Include "userspec.h".
107132         * lib/userspec.h: New file.
107134 2003-11-03  Bruno Haible  <bruno@clisp.org>
107136         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
107138 2003-11-03  Bruno Haible  <bruno@clisp.org>
107140         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
107141         available, to avoid (extremely rare) race condition.
107142         Suggested by Paul Eggert.
107144 2003-11-02  Karl Berry  <karl@gnu.org>
107146         * config/srclist.txt (vasprintf.c): sync broken, sigh.
107148 2003-10-31  Paul Eggert  <eggert@twinsun.com>
107150         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
107151         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
107152         (read_filesystem_list): Set and use me_type_malloced.
107153         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
107154         whatever the type happens to be), for brevity and consistency.
107155         Check for size calculation overflow on Alphas running OSF/1.
107157 2003-10-31  Jim Meyering  <jim@meyering.net>
107159         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
107161         * lib/linebuffer.c: Include <string.h> for declaration of memset.
107163 2003-10-30  Paul Eggert  <eggert@twinsun.com>
107164             Bruno Haible  <bruno@clisp.org>
107166         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
107167         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
107169 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
107171         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
107172         netbsd*-gnu*.  Suggested by Robert Millan.
107174 2003-10-29  Paul Eggert  <eggert@twinsun.com>
107176         * modules/group-member: Depend on stdbool.
107178 2003-10-29  Paul Eggert  <eggert@twinsun.com>
107180         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
107182 2003-10-29  Paul Eggert  <eggert@twinsun.com>
107184         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
107185         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
107186         after the 'gnu' in these cases.  This fixes some bugs in the
107187         previous change, and is based on suggestions by Robert Millan.
107189 2003-10-29  Paul Eggert  <eggert@twinsun.com>
107191         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
107192         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
107193         no longer needed.
107194         * lib/quotearg.c (quotearg_n_options): Use it.
107195         * lib/group-member.c: Include <stdbool.h>.
107196         (free_group_info): Arg is now const *; don't free arg.
107197         (get_group_info): Now returns bool and accepts struct group_info *,
107198         rather than returning a malloc'ed struct group_info *.
107199         All uses changed.  Check for overflow in internal size calculation.
107201         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
107202         rather than xmalloc/xrealloc.
107203         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
107204         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
107205         conformance bug: the old code used a pointer after freeing the
107206         storage that it addressed.
107207         * lib/hash.c (hash_initialize): Simplify the code by using
107208         xalloc_oversized rather than doing it by hand.
107209         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
107210         the buffer preserved.  Use free and xmalloc instead.
107211         * lib/quotearg.c (quotearg_n_options): Likewise.
107212         Use a simpler test for size overflow.  Don't use xalloc_oversized
107213         because unsigned int might be wider than size_t (!); this suggests
107214         that we should switch from unsigned int to size_t for slot numbers.
107216 2003-10-28  Paul Eggert  <eggert@twinsun.com>
107218         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
107219         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
107220         NetBSD kernels.  Requested by Richard Stallman.
107222 2003-10-27  Paul Eggert  <eggert@twinsun.com>
107224         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
107225         to allocate the returned structure.  Do not allocate a subarray,
107226         as x2nrealloc will do that.
107227         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
107228         instead of xnrealloc.
107229         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
107231 2003-10-27  Bruno Haible  <bruno@clisp.org>
107233         * lib/stdbool_.h: Better support for BeOS.
107235 2003-10-26  Paul Eggert  <eggert@twinsun.com>
107237         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
107238         now uses inline.
107240 2003-10-26  Paul Eggert  <eggert@twinsun.com>
107242         * lib/xalloc.h (xalloc_oversized): New static inline function, for
107243         callers that want to do their own size-overflow checking.  Include
107244         <stdbool.h>, since xalloc_oversized returns bool.
107245         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
107246         to use xalloc_oversized.
107248         Add two functions x2realloc, x2nrealloc, for programs that grow
107249         arrays dynamically by doubling their sizes.
107250         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
107251         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
107252         New functions.
107254         Port to C99 semantics for 'inline' of external functions.
107255         Bug reported by Bruno Haible.
107256         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
107257         with the old contents of xnmalloc.
107258         (xnmalloc, xmalloc): Use it.
107259         (xnrealloc_inline): New static inline function,
107260         with the old contents of xnrealloc.
107261         (xnrealloc, xrealloc): Use it.
107263         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
107264         that.
107266 2003-10-26  Karl Berry  <karl@gnu.org>
107268         * config/srclist.txt (COPYING.DOC): no longer available from
107269         /gd/gnuorg; don't know where the ultimate source is.
107271 2003-10-25  Paul Eggert  <eggert@twinsun.com>
107273         Fix several address-calculation bugs in the hash modules,
107274         plus some minor code cleanup.
107276         * lib/hash.h: Include <stdbool.h>, for bool.
107277         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
107278         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
107279         hash_get_n_entries, hash_get_max_bucket_length,
107280         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
107281         hash_rehash): Use size_t rather than unsigned.
107282         * lib/hash.c (struct hash_table, hash_get_n_buckets,
107283         hash_get_n_buckets_used, hash_get_n_entries,
107284         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
107285         hash_get_entries, hash_do_for_each, hash_string, is_prime,
107286         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
107287         Likewise.
107288         (SIZE_MAX): Define if not defined.
107289         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
107290         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
107291         hash_print):
107292         Use const * when possible.
107293         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
107294         (check_tuning): Fix bug: if tuning parameters were very close to
107295         0 or 1, rounding errors could have caused subscript violations.
107296         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
107297         (hash_initialize): Add 'fail:' label
107298         to free table and return NULL, and use it to simplify code.
107299         Use calloc rather than clearing the storage ourself.
107300         (hash_initialize, hash_rehash): Check for arithmetic overflow in
107301         buffer size calculations.
107302         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
107303         Include <stddef.h>, for size_t.
107304         * lib/hash-pjw.c (hash_pjw): Likewise.
107305         Switch to method described by Bruno Haible.
107306         Include <limits.h>, for CHAR_BIT.
107307         (SIZE_BITS): New macro.
107309 2003-10-23  Paul Eggert  <eggert@twinsun.com>
107311         * m4/getline.m4 (AM_FUNC_GETLINE):
107312         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
107313         hosts.  Problem reported by Derek Robert Price in
107314         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
107315         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
107316         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
107318 2003-10-21  Paul Eggert  <eggert@twinsun.com>
107320         * lib/getndelim2.c (getndelim2): When size calculation overflows,
107321         ceiling the allocation at NMAX bytes rather than silently
107322         discarding input bytes before NMAX is reached.  This makes
107323         a difference only if NMAX exceeds SIZE_MAX / 2.
107325         * lib/obstack.c: Merge from glibc.
107326         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
107327         Add libc_hidden_def (_obstack_newchunk).
107328         (_obstack_free) [! defined _LIBC]: Remove.
107329         [defined _LIBC]: Make a strong alias from obstack_free, rather than
107330         a clone of the function body.
107331         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
107332         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
107334         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
107335         glibc.
107336         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
107337         arg to memcpy.
107339         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
107340         (obstack_ptr_grow_fast, obstack_int_grow_fast):
107341         Don't use lvalue casts, as GCC plans to remove support for them
107342         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
107343         was also present in the non-GCC version, indicating that this
107344         code had always been buggy and had never been widely used.
107345         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
107346         Use the fast variant of each macro, rather than copying the
107347         definiens of the fast variant; that way, we'll be more likely to
107348         catch future bugs in the fast variants.
107350 2003-10-20  Bruno Haible  <bruno@clisp.org>
107352         * modules/wait-process: New file.
107353         * MODULES.html.sh (func_all_modules): Add wait-process.
107355 2003-10-20  Bruno Haible  <bruno@clisp.org>
107357         * m4/wait-process.m4: New file.
107359 2003-10-20  Bruno Haible  <bruno@clisp.org>
107361         * lib/wait-process.h: New file, from GNU gettext.
107362         * lib/wait-process.c: New file, from GNU gettext.
107364 2003-10-19  Jim Meyering  <jim@meyering.net>
107366         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
107367         HPUX 10.20.
107369 2003-10-18  Karl Berry  <karl@gnu.org>
107371         * config/config.guess: update from config.
107373 2003-10-16  Paul Eggert  <eggert@twinsun.com>
107375         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
107376         (getgroups): First arg is int, not size_t.
107377         Don't let 'free' mangle errno.
107379 2003-10-16  Paul Eggert  <eggert@twinsun.com>
107381         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
107383 2003-10-16  Karl Berry  <karl@gnu.org>
107385         * config/config.{guess,sub}: update from config.
107387 2003-10-16  Jim Meyering  <jim@meyering.net>
107389         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
107390         memcpy.
107392 2003-10-15  Paul Eggert  <eggert@twinsun.com>
107394         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
107395         (SIZE_MAX): Remove.
107396         (new_exclude, add_exclude_file): Initial size no longer needs to
107397         be a power of 2.
107398         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
107399         our own address arithmetic overflow checking.
107401         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
107402         (fnmatch): Do not alloca more than 2000 wide characters;
107403         instead, use malloc for large buffers.
107404         Check for address arithmetic overflow, and return -1
107405         with errno set to ENOMEM in that case.
107406         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
107407         (NEW_PATTERN): Do not alloca more than 8000 bytes;
107408         instead, return -1.  Check for address arithmetic overflow.
107410 2003-10-14  Paul Eggert  <eggert@twinsun.com>
107412         Handle invalid suffixes and overflow independently, so that
107413         callers can treat them independently as needed.  Fix some bugs in
107414         suffix handling, e.g., "100k@" was not diagnosed as an invalid
107415         suffix for a human-readable blocksize.  The major caller-visible
107416         change is the addition of a new
107417         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
107418         that both overflow and suffix chars were found.
107420         * lib/human.c (humblock): Don't check separately for invalid suffix
107421         char; that is xstrtoumax's job (now that its bug is fixed).
107422         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
107423         INTMAX_MAX]: New macros.
107424         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
107425         TYPE_MAXIMUM): New macros.
107426         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
107427         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
107428         if overflow occurs, as it's what __strtol does and it's more useful
107429         in practice.
107430         (__xstrtol): If __strtol reports some error other than ERANGE,
107431         reflect it to the caller as LONGINT_INVALID.  If it reports
107432         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
107433         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
107434         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
107435         value.
107436         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
107437         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
107438         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
107439         [defined UINTMAX_MAX]: New macros.
107441 2003-10-14  Bruno Haible  <bruno@clisp.org>
107443         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
107445 2003-10-14  Bruno Haible  <bruno@clisp.org>
107447         * m4/sig_atomic_t: New file, from GNU gettext.
107448         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
107450 2003-10-14  Bruno Haible  <bruno@clisp.org>
107452         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
107453         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
107454         Also use volatile where needed.
107456 2003-10-12  Paul Eggert  <eggert@twinsun.com>
107458         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
107459         Change maintainer from Bruno Haible to 'all'.
107461 2003-10-12  Paul Eggert  <eggert@twinsun.com>
107463         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
107465 2003-10-12  Paul Eggert  <eggert@twinsun.com>
107467         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
107468         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
107469         and define in terms of the other primitives.
107470         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
107471         (SIZE_MAX): Define if not already defined.
107472         (array_size_overflow): New function.
107473         (xalloc_die): Abort instead of exiting if 'error' returns.
107474         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
107475         (xmalloc, xrealloc): Use them.
107476         (xcalloc): Check for address arithmetic overflow.
107477         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
107478         a bit faster than strcpy.
107480 2003-10-10  Simon Josefsson  <jas@extundo.com>
107482         * modules/argp (Depends-on): Add restrict and strcase.
107484 2003-10-10  Simon Josefsson  <jas@extundo.com>
107486         * m4/argp.m4: Add AC_C_INLINE.
107488 2003-10-08  Paul Eggert  <eggert@twinsun.com>
107490         Merge getpass from libc, plus a few fixes.
107492         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
107493         Include <stdbool.h>.
107494         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
107495         __fsetlocking to empty.
107496         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
107497         do include <bits/libc-lock.h>.
107498         Do not include <fcntl.h>; not needed.
107499         [_LIBC]: Include <wchar.h>.
107500         (NOTCANCEL_MODE): New macro.
107501         (flockfile, funlockfile) [_LIBC]: New macros.
107502         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
107503         [!_LIBC]: New macros.
107504         (call_fclose): New function.
107505         (getpass): Use it.  Save tty stream separately; this simplifies the
107506         code and makes it more reliable if stdin happens to equal stdout.
107507         Invoke __fsetlocking on tty.
107508         Handle thread cancellation if needed.
107509         Namespace cleanup (use __tcgetattr, __getline).
107510         Use bool for Booleans.
107511         [USE_IN_LIBIO]: Handle wide streams.
107512         [!_LIBC]: Unconditionally do the fseek, since we don't know what
107513         stream might go where.
107515         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
107516         doesn't have to include <stdio.h> before us.
107517         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
107518         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
107519         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
107520         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
107521         if not declared, so that we can use getpass.c code from libc without
107522         rewriting it.
107523         (flockfile, ftrylockfile, funlockfile): New macros.
107525 2003-10-08  Paul Eggert  <eggert@twinsun.com>
107527         * modules/getpass: Depend on stdbool.
107529 2003-10-08  Paul Eggert  <eggert@twinsun.com>
107531         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
107533 2003-10-07  Karl Berry  <karl@gnu.org>
107535         * config/config.{guess,sub}: update from config.
107537 2003-10-06  Jim Meyering  <jim@meyering.net>
107538             Bruno Haible  <bruno@clisp.org>
107540         This lets translators provide better translations for the
107541         "Written by ..." part of --version output.
107542         * lib/version-etc.h: Include stdarg.h.
107543         (version_etc_copyright): Declare as readonly.
107544         (version_etc): Make this function variadic with a NULL-terminated list
107545         of author name strings.
107546         (version_etc_va): New declaration.
107547         * lib/version-etc.c: Include stdarg.h, stdlib.h.
107548         (version_etc_copyright): Declare as readonly.
107549         (version_etc_va): New function. Provide a different translatable string
107550         for each possible number of authors < 10. Abbreviate when there are 10
107551         authors or more.
107552         (version_etc): Make this function variadic. Call version_etc_va.
107553         Suggestion from Gary V. Vaughan.
107555         * lib/long-options.h (parse_long_options): Change prototype: the
107556         authors string is moved to the end and becomes variadic.
107557         * lib/long-options.c: Include stdarg.h.
107558         (parse_long_options): Make this function variadic, too.
107559         Call version_etc_va, not version_etc.
107561 2003-10-06  Bruno Haible  <bruno@clisp.org>
107563         * modules/version-etc-2: Remove file.
107564         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
107566 2003-10-06  Bruno Haible  <bruno@clisp.org>
107568         * modules/fatal-signal: New file.
107569         * MODULES.html.sh (func_all_modules): Add fatal-signal.
107571 2003-10-06  Bruno Haible  <bruno@clisp.org>
107573         * m4/fatal-signal.m4: New file.
107574         * m4/signalblocking.m4: New file, from GNU gettext.
107576 2003-10-06  Bruno Haible  <bruno@clisp.org>
107578         * lib/version-etc-2.h: Remove file.
107579         * lib/version-etc-2.c: Remove file.
107581 2003-10-06  Bruno Haible  <bruno@clisp.org>
107583         * lib/fatal-signal.h: New file, from GNU gettext.
107584         * lib/fatal-signal.c: New file, from GNU gettext.
107586 2003-10-05  Paul Eggert  <eggert@twinsun.com>
107588         * README: Rework advice for preventing empty .o files.
107589         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
107590         not <sys/types.h>.
107592 2003-10-04  Karl Berry  <karl@gnu.org>
107594         * lib/argp*: update from libc.
107596 2003-10-04  Karl Berry  <karl@gnu.org>
107598         * config/config.{guess,sub}: update from config.
107600 2003-10-02  Bruno Haible  <bruno@clisp.org>
107602         * modules/lchown (Include): Add lchown.h.
107603         * modules/time_r (Include): Use "..." syntax.
107604         * modules/xgetdomainname (Include): Add xgetdomainname.h.
107606 2003-10-01  Simon Josefsson  <jas@extundo.com>
107608         * MODULES.html.sh (func_all_modules): Move gethostname from section
107609         'based on' to section 'lacking' POSIX:2001.
107611 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
107613         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
107614         to output mode on the same stream.
107616 2003-09-29  Paul Eggert  <eggert@twinsun.com>
107618         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
107619         Fix arg typo in previous patch.
107621 2003-09-28  Jim Meyering  <jim@meyering.net>
107623         * lib/error.c: Correct cpp indentation.
107625 2003-09-27  Paul Eggert  <eggert@twinsun.com>
107627         * modules/free: New file.
107629 2003-09-27  Paul Eggert  <eggert@twinsun.com>
107631         * m4/free.m4: New file.
107633 2003-09-27  Paul Eggert  <eggert@twinsun.com>
107635         * lib/minmax.h (MIN, MAX)
107636         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
107637         Omit the special code that used __typeof__, since we worry that
107638         it could be more trouble than it's worth.  See:
107639         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
107640         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
107642         * lib/free.c: New file.
107644 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
107646         Trivial fixes to Makefile.am parts of module listings.
107647         * modules/strstr: Append strstr.h to lib_SOURCES.
107648         * modules/strcase: Likewise, for strcase.h.
107650 2003-09-27  Karl Berry  <karl@gnu.org>
107652         * config/mkinstalldirs: update from automake.
107654 2003-09-26  Paul Eggert  <eggert@twinsun.com>
107656         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
107657         (error_tail): Do not loop, reallocating temporary buffer, since
107658         the output cannot contain more wide characters than the input
107659         contains bytes, the size must be big enough already.  This avoids
107660         one potential size overflow calculation.  Check for size overflow
107661         when calculating temporary buffer size.  Free temporary buffer
107662         when done, if it was allocated with malloc; this plugs a memory
107663         leak.  Remove casts from void * to pointers, that are no longer
107664         needed now that we're assuming C89 or better.
107666         Merge error changes from glibc.
107668         * lib/error.c, error.h: Update copyright notice header to match glibc.
107669         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
107670         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
107671         Disable cancellation while printing error.
107672         * lib/error.h: Prepend __ to parameter names.
107674 2003-09-26  Jim Meyering  <jim@meyering.net>
107676         * lib/error.c (error_tail): Move some declarations
107677         into inner scope where the local variables are used.
107679 2003-09-26  Bruno Haible  <bruno@clisp.org>
107681         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
107682         stpncpy().
107683         Don't define stpncpy through config.h; it's now done through stpncpy.h.
107685 2003-09-26  Bruno Haible  <bruno@clisp.org>
107687         * lib/stpncpy.h (gnu_stpncpy): New declaration.
107688         (stpncpy): Define as alias for gnu_stpncpy.
107689         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
107691 2003-09-25  Simon Josefsson  <jas@extundo.com>
107693         * lib/xgetdomainname.h: New file.
107694         * lib/xgetdomainname.c: New file.
107696 2003-09-25  Simon Josefsson  <jas@extundo.com>
107697             Bruno Haible  <bruno@clisp.org>
107699         * modules/getdomainname: New file.
107700         * modules/xgetdomainname: New file.
107701         * MODULES.html.sh (func_all_modules): Add getdomainname,
107702         xgetdomainname.
107704 2003-09-25  Simon Josefsson  <jas@extundo.com>
107705             Bruno Haible  <bruno@clisp.org>
107707         * m4/getdomainname.m4: New file.
107709 2003-09-25  Simon Josefsson  <jas@extundo.com>
107710             Bruno Haible  <bruno@clisp.org>
107712         * lib/getdomainname.h: New file.
107713         * lib/getdomainname.c: New file.
107715 2003-09-25  Karl Berry  <karl@gnu.org>
107717         * lib/argp-fmtstream.c, argp-help.c: update from libc.
107719 2003-09-25  Karl Berry  <karl@gnu.org>
107721         * config/install-sh: update from automake.
107723 2003-09-25  Bruno Haible  <bruno@clisp.org>
107725         * modules/version-etc-2: New file, from modules/version-etc with
107726         modifications.
107727         * MODULES.html.sh (func_all_modules): Add version-etc-2.
107729 2003-09-25  Bruno Haible  <bruno@clisp.org>
107731         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
107732         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
107734 2003-09-24  Simon Josefsson  <jas@extundo.com>
107736         * modules/xgethostname: Add xgethostname.h.
107738 2003-09-24  Paul Eggert  <eggert@twinsun.com>
107740         * lib/linebuffer.c (freebuffer): Don't free the argument, just
107741         the buffer associated with the argument.  Bug reported by
107742         Simon Josefsson.
107744 2003-09-24  Paul Eggert  <eggert@twinsun.com>
107746         * README: Document assumptions that 'int' is at least 32 bits
107747         wide, that integer arithmetic is 2's complement without overflow,
107748         that there are no holes in integer values, that adding sizes of
107749         two nonoverlapping objects can't overflow, and that all-bits-zero
107750         yields scalar zero.  Fix spelling and capitalization typos.
107752 2003-09-19  Karl Berry  <karl@gnu.org>
107754         * lib/argp.h: update from libc.
107756 2003-09-17  Paul Eggert  <eggert@twinsun.com>
107758         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
107759         to avoid spurious warnings like "AC_RUN_IFELSE was called before
107760         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
107762 2003-09-17  Paul Eggert  <eggert@twinsun.com>
107764         * gnulib-tool: Use "test -h", not "test -L", for portability
107765         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
107766         (tags_regexp): Remove, since \| doesn't conform to POSIX.
107767         (sed_extract_prog): Issue s commands one-by-one, rather than
107768         using \| in one s command.
107770 2003-09-16  Paul Eggert  <eggert@twinsun.com>
107772         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
107773         input error, instead of returning NULL the next time we are called
107774         (and therefore losing track of errno).
107776 2003-09-16  Bruno Haible  <bruno@clisp.org>
107778         * gnulib-tool (func_create_testdir): Warn about duplicated
107779         dependencies.
107781 2003-09-15  Paul Eggert  <eggert@twinsun.com>
107783         * modules/argmatch, modules/fatal, modules/obstack,
107784         modules/xalloc, modules/xgethostname: Sort dependencies by
107785         importance, not alphabetically.
107787 2003-09-15  Paul Eggert  <eggert@twinsun.com>
107789         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
107790         fails, so that the caller gets the proper errno.
107792         * lib/readutmp.c (read_utmp): Likewise.
107793         Check for fstat error.  Close stream and free storage
107794         when failing.
107796 2003-09-14  Karl Berry  <karl@gnu.org>
107798         * config/srclist.txt (strdup.c): disable for c89 changes.
107800 2003-09-14  Jim Meyering  <jim@meyering.net>
107802         * lib/getloadavg.c: Correct cpp indentation.
107803         * lib/strdup.c: Likewise.
107804         * lib/vasnprintf.c: Likewise.
107806 2003-09-14  Bruno Haible  <bruno@clisp.org>
107808         * modules/fwriteerror: New file.
107809         * MODULES.html.sh (func_all_modules): Add fwriteerror.
107811 2003-09-14  Bruno Haible  <bruno@clisp.org>
107813         * lib/fwriteerror.h: New file.
107814         * lib/fwriteerror.c: New file.
107816 2003-09-12  Paul Eggert  <eggert@twinsun.com>
107818         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
107819         modules/xgethostname, modules/xalloc: Depend on exit.
107821 2003-09-12  Paul Eggert  <eggert@twinsun.com>
107823         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
107825         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
107826         and AC_MINIX, too, so that their extensions are available.
107828         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
107829         This macro has been superseded by gl_BACKUPFILE.
107831         More patches to assume C89 or better.
107833         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
107835         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
107836         unconditionally.
107837         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
107838         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
107839         Include <string.h>, <stdlib.h> unconditionally.
107840         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
107841         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
107842         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
107843         headers or for string.h.
107844         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
107845         or strtoul.
107847         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
107848         headers.
107849         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
107850         * m4/userspec.m4 (gl_USERSPEC): Likewise.
107851         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
107852         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
107853         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
107854         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
107855         memcpy, memset.
107856         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
107857         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
107858         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
107859         strtol.
107860         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
107861         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
107862         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
107863         strtoul.
107865 2003-09-12  Paul Eggert  <eggert@twinsun.com>
107867         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
107868         * lib/obstack.c [!defined _LIBC]: Likewise.
107869         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
107870         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
107871         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
107873         More changes to assume C89 or better.
107875         * lib/error.c (error_tail): Assume vprintf.
107877         * lib/argmatch.c (getenv): Remove decl.
107878         * lib/progreloc.c (get_full_program_name): Define via prototype.
107879         * lib/setenv.c (clearenv): Likewise.
107880         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
107881         needed.
107882         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
107883         (malloc, memcpy): Remove decls.
107884         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
107885         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
107886         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
107887         (memcpy): Remove macro.
107888         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
107889         (__P): Remove.  All uses removed.
107890         (PTR): Remove.  All uses changed to void *.
107891         (CHAR_BIT, NULL): Remove.
107892         (spaces, zeros, memset_space, memset_zero)
107893         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
107894         Remove.
107895         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
107896         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
107897         Define with prototype.
107898         Remove now-unnecessary prototype decl.
107899         (extra_args_spec): Assume ANSI C.  All uses changed.
107900         (extra_args_spec_iso): Remove.
107901         (my_strftime, emacs_strftimeu): Define via prototype.
107902         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
107903         unconditionally.
107904         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
107905         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
107906         (strtoul, strtol): Remove decls.
107907         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
107908         LONG_MAX): Remove.
107909         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
107910         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
107911         (LOCALE_PARAM_PROTO): New macro.
107912         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
107913         (INTERNAL (strtol), strtol): Define with a prototype.
107914         (PARAMS): Remove.  All uses removed.
107915         * lib/tempname.c: Include <string.h> unconditionally.
107916         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
107917         * lib/xgethostname.c (main): Define with a prototype.
107918         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
107919         Include <stdlib.h> unconditionally.
107920         (calloc, malloc, realloc, free): Remove decls.
107921         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
107922         Include <stdlib.h> unconditionally.  Sort include file names.
107923         (strtod): Remove.
107924         (xstrtod): Define with a prototype.
107925         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
107926         (strtol, strtoul): Remove decls.
107928 2003-09-11  Paul Eggert  <eggert@twinsun.com>
107930         More patches to assume C89 or better.
107931         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
107932         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
107933         string.h, memchr, STDC_HEADERS.
107935 2003-09-11  Paul Eggert  <eggert@twinsun.com>
107937         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
107938         Include <stdlib.h>, <string.h> unconditionally.
107939         Remove now-unnecessary cast to char *.
107940         * lib/strnlen.c: Include <string.h> unconditionally.
107941         * lib/yesno.c (yesno): Define with a prototype.
107943 2003-09-11  Bruno Haible  <bruno@clisp.org>
107945         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
107947 2003-09-10  Jim Meyering  <jim@meyering.net>
107949         * lib/error.c: Correct indentation of cpp directives.
107951 2003-09-10  Bruno Haible  <bruno@clisp.org>
107953         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
107954         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
107955         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
107956         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
107957         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
107958         <stdlib.h> and <string.h> checks.
107959         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
107960         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
107962 2003-09-10  Bruno Haible  <bruno@clisp.org>
107964         * lib/strcspn.c: Include <string.h> unconditionally.
107965         * lib/strpbrk.c: Include <string.h> unconditionally.
107966         * lib/strstr.c: Include <string.h> unconditionally.
107967         * lib/unicodeio.c: Include <string.h> unconditionally.
107968         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
107969         * lib/unsetenv.c: Likewise.
107970         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
107971         * lib/yesno.c: Include <stdlib.h> unconditionally.
107972         (rpmatch): Add prototype.
107974 2003-09-09  Paul Eggert  <eggert@twinsun.com>
107976         More patches to assume C89 or better.
107977         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
107978         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
107979         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
107980         or for string.h.
107981         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
107982         stdlib.h.
107983         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
107984         C headers.
107985         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
107986         string.h.
107987         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
107988         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
107989         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
107990         or for string.h.
107991         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
107992         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
107993         C headers.
107994         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
107995         memcpy.
107996         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
107997         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
107998         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
107999         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
108000         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
108001         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
108002         string.h, free.
108003         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
108004         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
108005         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
108006         C headers, or for string.h.
108007         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
108008         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
108009         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
108010         headers, memory.h, stdlib.h, string.h, strings.h.
108011         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
108012         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
108013         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
108014         strchr.
108015         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
108016         headers, memory.h, string.h.
108017         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
108018         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
108019         free.
108020         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
108021         headers.
108022         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
108023         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
108024         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
108025         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
108026         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
108028 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108030         More K&R removal.
108032         * lib/acosl.c (main): Use a prototype.
108033         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
108034         tanl.c: Likewise.
108036         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
108038         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
108039         (getopt, etopt_long, getopt_long_only, _getopt_internal)
108040         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
108041         with a prototype.
108042         * lib/getopt.c (const): Remove macro.
108043         Include <string.h> unconditionally.
108044         (my_index): Remove; all uses changed to strchr.
108045         (strlen): Remove decl.
108046         (exchange): Remove forward decl; no longer needed.
108047         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
108048         Define with prototype.
108049         * lib/getopt1.c (const): Remove macro.
108050         (getopt_long, getopt_long_only, main): Define with prototype.
108052         * lib/getugroups.c: Include <string.h> unconditionally.
108054         * lib/getusershell.c: Include <stdlib.h> unconditionally.
108055         (getusershell, setusershell, endusershell, readname, main):
108056         Define with prototypes.
108058         * lib/group-member.c: Include group-member.h first.
108059         Include <stdlib.h> unconditionally.
108061         * lib/hard-locale.c: Include hard-locale.h first.
108062         Include <stdlib.h>, <string.h> unconditionally.
108064         * lib/hash.c (free, malloc): Remove decls.
108065         Include <stdlib.h> unconditionally.
108067         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
108068         (getenv): Do not declare.
108070         * lib/idcache.c: Include <string.h> unconditionally.
108072         * lib/long-options.c: Include long-options.h first, to test interface.
108073         Include <stdlib.h> unconditionally.
108075         * lib/makepath.c: Include makepath.h first, to test interface.
108076         Include <stdlib.h> and <string.h> unconditionally.
108078         * lib/linebuffer.c: Include <stdlib.h>.
108079         (free): Remove decl.
108081         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
108082         stddef.h. rpl_malloc returns void *, not char *.
108083         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
108084         prototype.
108086         * lib/md5.h: Include <limits.h> unconditionally.
108087         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
108088         (__P): Remove; all uses removed.
108089         * lib/md5.c: Include "md5.h" first.
108090         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
108091         md5_buffer, md5_process_bytes, md5_process_block):
108092         Define with prototypes.
108093         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
108094         * lib/sha.c: Include "sha.h" first.
108095         Include <stdlib.h>, <string.h> unconditionally.
108097         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
108098         * lib/memcmp.c (__ptr_t): Likewise.
108099         * lib/memrchr.c (__ptr_t): Likewise.
108100         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
108101         Include <string.h> unconditionally.
108102         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
108103         * lib/memchr.c: Include <stdlib.h> unconditionally.
108104         * lib/memchr.c (LONG_MAX): Remove.
108105         * lib/memrchr.c (LONG_MAX): Likewise.
108106         * lib/memchr.c (__memchr): Define via a prototype.
108107         * lib/memrchr.c (__memrchr): Likewise.
108108         * lib/memcmp.c (__P): Remove, and remove all uses.
108109         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
108110         Remove forward decls; no longer needed.
108111         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
108112         Use types required by C89 in prototype.
108114         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
108115         * lib/savedir.c: Likewise.
108116         * lib/mkdir.c (free): Remove decl.
108117         * lib/rmdir.c (rmdir): Define with a prototype.
108118         * lib/savedir.c: Include savedir.h first, to test interface.
108120         * lib/mktime.c (STDC_HEADERS): Remove.
108121         Include <stdlib.h>, <string.h> unconditionally.
108123         * lib/modechange.c: Include <stdlib.h> unconditionally.
108124         (malloc): Remove decl.
108126         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
108127         (free): Remove decl.
108129         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
108130         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
108131         (This type really should be intptr_t, but that's a C99ism.)
108132         (_obstack_memcpy): Remove: all uses changed to memcpy.
108133         Include <string.h> unconditionally.
108134         (struct obstack): Assume __STDC__ for types of members
108135         chunkfun, freefun, extra_arg.
108136         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
108137         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
108138         obstack_begin, obstack_specify_allocation,
108139         obstack_specify_allocation_with_arg, obstack_chunkfun,
108140         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
108141         Remove unprototyped decls and the macros that use them.
108142         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
108143         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
108144         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
108145         (defined __STDC__ && __STDC__)]:
108146         Remove nonprototyped code.
108147         Include <stdlib.h> unconditionally.
108148         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
108149         _obstack_allocated_p, _obstack_free, obstack_free,
108150         _obstack_memory_used, print_and_abort):
108151         Define using prototypes.
108152         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
108153         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
108154         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
108155         obstack_next_free, obstack_object_size, obstack_room) [0]:
108156         Remove unused, unprototyped code.
108158         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
108160         * lib/physmem.c (physmem_total, physmem_available, main): Define
108161         with prototypes.
108163         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
108164         (main): Define with a prototype.
108166         * lib/posixver.c (getenv): Remove decl.
108168         * lib/putenv.c (malloc): Returns void *, not char *.
108169         Include <string.h> unconditionally.
108170         (strchr, memcpy, NULL): Do not define.
108172         * lib/readtokens.c: Include readtokens.h first, to test interface.
108173         Include <stdlib.h>, <string.h> unconditionally.
108174         (init_tokenbuffer): Define with a prototype.
108176         * lib/regex.c (PARAMS): Remove.  All uses removed.
108177         All uses of _RE_ARGS removed, too.
108178         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
108179         unconditionally.
108180         (bzero): Assume memset exists.
108181         (memcmp, memcpy, NULL): Remove.
108182         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
108183         char, or assignments to local vars of type signed char.
108184         (init_syntax_once, PREFIX(extract_number_and_incr),
108185         PREFIX(print_partial_compiled_pattern),
108186         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
108187         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
108188         PREFIX(regex_grow_registers), PREFIX(regex_compile),
108189         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
108190         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
108191         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
108192         wcs_compile_range, byte_compile_range, truncate_wchar,
108193         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
108194         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
108195         count_mbs_length, wcs_re_match_2_internal,
108196         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
108197         PREFIX(alt_match_null_string_p),
108198         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
108199         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
108200         regfree, PREFIX(extract_number)): Define with prototype.  Remove
108201         now-unnecessary declaration, if any.
108202         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
108203         regcomp, regexec):
108204         Remove now-unnecessary casts among pointer types.
108205         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
108207         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
108208         (free): Remove decl.
108210         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
108212         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
108213         (free): Remove decl.
108215         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
108216         * lib/xgetcwd.c: Likewise.
108218         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
108219         (free): Remove decl.
108221         * lib/strchrnul.c (strchrnul): Define with a prototype.
108222         Fix bug: c_in was not converted to char before searching.
108224         The following changes are not K&R related:
108226         * lib/group-member.h: Include <sys/types.h>, so that this file is
108227         self-contained.
108228         * lib/makepath.h: Likewise.
108230         * lib/getusershell.c (readname, default_index, line_size, readname):
108231         Use size_t, not int, for sizes.
108232         (readname): If the size overflows, report an error instead of
108233         looping forever.
108235 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108237         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
108238         libc.
108240 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108242         * README: New section: portability guidelines.
108244 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
108246         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
108247         C89 spec.
108249 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
108251         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
108253 2003-09-08  Paul Eggert  <eggert@twinsun.com>
108255         Assume C89 or better; remove K&R cruft.
108256         A few of these changes were first proposed by Derek Robert Price
108257         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
108259         * lib/addext.c: Include <string.h> unconditionally.
108260         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
108261         Don't declare getenv or malloc.
108263         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
108264         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
108265         (NULL): Remove.
108266         (find_stack_direction, alloca): Use prototypes.
108268         * lib/atexit.c (atexit): Define using a prototype.
108270         * lib/basename.c, dirname.c, stripslash.c:
108271         Include <string.h> unconditionally.
108273         * lib/bcopy.c: Include <stddef.h>.
108274         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
108276         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
108278         * lib/error.h (error, error_at_line, error_print_progname)
108279         [! (defined (__STDC__) && __STDC__)]: Remove decls.
108280         * lib/error.c: Include error.h first, to check interface.
108281         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
108282         (VA_START): Remove; all uses changeed to va_start.
108283         (exit, strerror): Remove decls.
108284         (error_print_progname): Prototype uncondionally.
108285         Don't include <errno.h>; no longer needed.
108286         (private_strerror): Remove.
108287         (error_tail): Always define.
108288         (error, error_at_line): Assume C89 or better; always use prototypes.
108289         * lib/fatal.c: Include "fatal.h" first, to test interface.
108290         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
108291         (VA_START): Remove; all uses changed to va_start.
108292         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
108293         this case.
108294         (exit): Remove decl.
108295         (fatal): Prototype unconditionally.  Assume va_start works.
108296         Abort at end, to pacify gcc.
108298         * lib/euidaccess.c (main): Define with a prototype.
108300         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
108302         * lib/exitfail.c: Include <stdlib.h> unconditionally.
108304         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
108305         prototypes.
108306         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
108307         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
108308         (getenv): Remove decl.
108309         (fnmatch): Define using a prototype.
108310         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
108311         (FCT): Define using a prototype.
108313         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
108315         * lib/gethostname.c: Include <stddef.h>.
108316         (gethostname): Define with prototype.  Length is size_t, not int.
108318 2003-09-08  Paul Eggert  <eggert@twinsun.com>
108320         Assume C89 or better; remove K&R cruft.
108321         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
108322         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
108323         string.h, getenv, malloc.
108324         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
108325         headers.
108326         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
108327         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
108328         do not check for strerror.
108329         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
108330         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
108331         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
108332         do not check for doprnt or vprintf.
108333         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
108334         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
108336 2003-09-08  Paul Eggert  <eggert@twinsun.com>
108338         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
108339         getversion.c should have been removed then, but was accidentally
108340         preserved.
108342         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
108343         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
108345 2003-09-08  Karl Berry  <karl@gnu.org>
108347         * config/config.sub, config.guess, srclistvars.sh: update from savannah
108348                 config, forget about prep.
108350         * config/depcomp, missing: update from automake.
108352 2003-09-07  Paul Eggert  <eggert@twinsun.com>
108354         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
108355         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
108357 2003-09-07  Paul Eggert  <eggert@twinsun.com>
108359         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
108360         copy_tm_result.  Bug reported by Simon Josefsson in
108361         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
108363 2003-09-06  Paul Eggert  <eggert@twinsun.com>
108365         * m4/time_r.m4: New file.
108366         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
108367         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
108368         is. Check for timegm declaration.
108369         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
108370         Do not check for gmtime_r.
108371         Replace mktime if __mktime_internal does not exist and if mktime
108372         hasn't been replaced already.
108374 2003-09-06  Paul Eggert  <eggert@twinsun.com>
108376         * lib/time_r.c, lib/time_r.h: New files.
108378         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
108379         __localtime_r.
108380         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
108381         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
108383         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
108384         __gmtime_r.
108385         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
108386         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
108387         Include <time_r.h>.
108389         * lib/timegm.c: Switch to glibc implementation, with the following
108390         changes:
108391         [defined HAVE_CONFIG_H]: Include <config.h>.
108392         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
108393         (__mktime_internal) [!defined _LIBC]: New decl.
108394         (__gmtime_r) [!defined _LIBC]: New macro and function.
108395         (timegm): Use a prototype, since gnulib assumes C89.
108396         Do not bother declaring tmp to be const, as it's not really usefu.
108397         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
108398         (timegm): Declare only if HAVE_DECL_TIMEGM.
108400 2003-09-06  Paul Eggert  <eggert@twinsun.com>
108402         * MODULES.html.sh (func_all_modules): Add time_r.
108403         * modules/time_r: New file.
108404         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
108405         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
108407 2003-09-03  Paul Eggert  <eggert@twinsun.com>
108409         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
108410         Bug reported by Lute Kamstra in
108411         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
108413         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
108414         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
108415         course with correspondingly smaller numbers for tomorrow and
108416         yesterday.  From Tadayoshi Funaba.  Originally installed into
108417         sh-utils on 1999-08-07, but the patch got lost (I guess during the
108418         coreutils merge?).
108420 2003-08-31  Simon Josefsson  <jas@extundo.com>
108422         * modules/timegm: New file.
108423         * MODULES.html.sh (func_all_modules): Add timegm.
108425 2003-08-31  Simon Josefsson  <jas@extundo.com>
108427         * m4/timegm.m4: New file.
108429 2003-08-31  Simon Josefsson  <jas@extundo.com>
108431         * lib/timegm.h: New file.
108432         * lib/timegm.c: New file.  Based on
108433         wget-1.8.2/src/http.c:mktime_from_utc.
108435 2003-08-31  Karl Berry  <karl@gnu.org>
108437         * lib/argp.h: update from libc.
108439 2003-08-28  Bruno Haible  <bruno@clisp.org>
108441         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
108442         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
108443         followed by '#define fnmatch fnmatch_posix' gives an error.
108445 2003-08-28  Bruno Haible  <bruno@clisp.org>
108447         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
108448         warning on QNX, which defines O_BINARY to 000000.
108450 2003-08-27  Jim Meyering  <jim@meyering.net>
108452         * m4/mkstemp.m4: Require that the system mkstemp be able to create
108453         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
108454         would fail after 32.  Reported by Danny Levinson.  Details here:
108455         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
108457 2003-08-24  Bruno Haible  <bruno@clisp.org>
108459         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
108460         MSVC7 <stdio.h> is included later.
108462 2003-08-22  Simon Josefsson  <jas@extundo.com>
108464         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
108466 2003-08-20  Karl Berry  <karl@gnu.org>
108468         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
108470 2003-08-20  Bruno Haible  <bruno@clisp.org>
108472         * modules/progname: New file.
108473         * MODULES.html.sh (func_all_modules): Add progname.
108475 2003-08-20  Bruno Haible  <bruno@clisp.org>
108477         * lib/progname.h: New file, from GNU gettext.
108478         * lib/progname.c: New file, from GNU gettext.
108479         * lib/progreloc.c: New file, from GNU gettext.
108481 2003-08-19  Jim Meyering  <jim@meyering.net>
108483         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
108484         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
108486 2003-08-19  Bruno Haible  <bruno@clisp.org>
108488         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
108489         more.
108491 2003-08-19  Bruno Haible  <bruno@clisp.org>
108493         * lib/xstrdup.c: Assume <string.h> exists.
108495 2003-08-18  Paul Eggert  <eggert@twinsun.com>
108497         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
108498         in makefile rules.
108500 2003-08-18  Jim Meyering  <jim@meyering.net>
108502         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
108503         * m4/lib-ld.m4: Likewise.
108505 2003-08-18  Jim Meyering  <jim@meyering.net>
108507         * lib/setenv.h: Indent nested cpp directive.
108508         * lib/vasnprintf.c: Remove trailing blanks.
108510 2003-08-17  Simon Josefsson  <jas@extundo.com>
108512         * modules/xstrndup: New file.
108513         * MODULES.html.sh (func_all_modules): Add xstrndup.
108515 2003-08-17  Simon Josefsson  <jas@extundo.com>
108517         * modules/argp: Fix autoconf macro name. Add more dependencies.
108519 2003-08-17  Simon Josefsson  <jas@extundo.com>
108521         * m4/xstrndup.m4: New file.
108523 2003-08-17  Simon Josefsson  <jas@extundo.com>
108525         * m4/argp.m4: New file.
108527 2003-08-17  Simon Josefsson  <jas@extundo.com>
108528             Bruno Haible  <bruno@clisp.org>
108530         * lib/xstrndup.h: New file.
108531         * lib/xstrndup.c: New file.
108533 2003-08-17  Bruno Haible  <bruno@clisp.org>
108535         * modules/strndup (Files, Include): Add lib/strndup.h.
108537 2003-08-17  Bruno Haible  <bruno@clisp.org>
108539         * modules/euidaccess (Files): Add lib/euidaccess.h.
108541 2003-08-17  Bruno Haible  <bruno@clisp.org>
108543         * lib/strndup.h: New file.
108545 2003-08-17  Bruno Haible  <bruno@clisp.org>
108547         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
108548         like AC_GNU_SOURCE.
108549         * modules/extensions (configure.ac): Comment out the invocation of
108550         gl_USE_SYSTEM_EXTENSIONS.
108552 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108554         Merges from coreutils, etc.
108555         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
108556         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
108557         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
108558         fixing a typo.
108559         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
108560         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
108562 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108564         Document merge from coreutils.
108565         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
108566         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
108567         * modules/utime: Add m4/utimes-null.m4.
108569 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108571         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
108572         space, undoing this 2003-08-12 change:
108573         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
108575 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108577         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
108578         strtoul.c from libc, undoing this 2003-08-12 change:
108579         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
108581 2003-08-16  Jim Meyering  <jim@meyering.net>
108583         Merges from coreutils.
108584         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
108585         prefix.  Adjust cache variables similarly.  Create 500 rather than
108586         just 300 files, to exercise bug on Darwin6.5, too.
108587         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
108588         $missing_dir.
108589         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
108590         AM_SYS_POSIX_TERMIOS.
108591         Reported by mkc@mathdogs.com.
108592         Also change use of $am_cv_sys_posix_termios
108593         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
108594         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
108595         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
108596         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
108597         in /proc/mounts until it finds one with matching device number.  This
108598         is unnecessary when the FILE argument *is* a mount point.  No stat call
108599         is necessary in that case.  So, disable the statvfs-testing code on
108600         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
108601         as RedHat bug# 84846.
108602         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
108603         to 1MB, so as not to render systems with no stack size limit (e.g.,
108604         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
108605         Include <unistd.h>.  On some systems,
108606         it is required for the definition of _SC_PAGESIZE.
108608 2003-08-16  Jim Meyering  <jim@meyering.net>
108610         Merge from coreutils.
108611         * lib/xstrtoimax.c: #else #if -> #elif.
108612         * lib/xstrtoumax.c: Likewise.
108614 2003-08-16  Jim Meyering  <jim@meyering.net>
108616         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
108617         * m4/utimes.m4: Removed.
108618         * m4/utimes-null.m4: Renamed from utimes.m4.
108620         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
108621         to 1MB, so as not to render systems with no stack size limit (e.g.,
108622         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
108623         Include <unistd.h>.  On some systems,
108624         it is required for the definition of _SC_PAGESIZE.
108626 2003-08-16  Jim Meyering  <jim@meyering.net>
108627         and Paul Eggert  <eggert@cs.ucla.edu>
108629         Merges from coreutils, etc.
108631         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
108632         using the latest version from cvs.  This avoids problems with #line
108633         directives using a vendor (Sun) compiler.
108634         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
108635         Don't set GETGROUPS_LIB here; now it's
108636         done via getgroups.m4's wrapper function.
108637         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
108638         rather than just in sh-util/configure.in, so that the
108639         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
108640         same.
108641         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
108642         AC_FUNC_GETLOADAVG where to find getloadavg.c.
108643         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
108644         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
108645         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
108646         Remove code that is now done by the newly-required macros.
108647         Append $(EXEEXT) to DF_PROG.
108648         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
108649         Do not invoke or require the following here,
108650         since prereq.m4 or some gnulib .m4 now does this for us:
108651         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
108652         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
108653         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
108654         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
108655         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
108656         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
108657         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
108658         AC_FUNC_OBSTACK.
108659         Do not replace the following functions, as this is now the job
108660         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
108661         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
108662         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
108663         atexit getpass, strdup, getpagesize.
108664         Replace 'raise'.
108665         Do not check for the following functions, as this is now the job
108666         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
108667         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
108668         setregid.
108669         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
108670         Check for sys/sysctl.h.
108671         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
108672         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
108673         of checking for ssize_t ourselves.
108675         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
108676         Require every macro that gnulib/modules/* suggests for us.
108677         (jm_PREREQ_ADDEXT): New macro.
108678         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
108679         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
108681         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
108682         (gl_PHYSMEM): Use it.
108683         Also check for `table' function.
108684         Check for new headers and functions.
108685         Add check for sys/sysmp.h.
108686         With suggestions from Kaveh Ghazi.
108687         Ignore headers that are present but cannot be compiled.  This
108688         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
108689         C 5.4.
108691 2003-08-15  Paul Eggert  <eggert@twinsun.com>
108693         Document merge from coreutils.
108694         * modules/userspec: Depend on posixver.
108695         * modules/strftime: Depend on tzset.
108697 2003-08-15  Paul Eggert  <eggert@twinsun.com>
108699         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
108700         rather than tab, after '#' in shell-script copyright notices.
108701         Suggested by Bruno Haible.
108703 2003-08-15  Paul Eggert  <eggert@twinsun.com>
108705         * config/srclist-update: Use three spaces, rather than tab, after '#'
108706         in shell-script copyright notices.  Suggested by Bruno Haible.
108707         Remove unnecessary parenthesization in regular expression.
108709 2003-08-15  Jim Meyering  <jim@meyering.net>
108711         Merge from coreutils.
108712         * lib/xgethostname.c: Include <stdlib.h>.
108713         (xghostname): Don't exit for anything other than memory-related
108714         failure; just return NULL.
108715         * lib/userspec.c: Include "posixver.h".
108716         (parse_user_spec): Accept `.' as a separator only
108717         in pre-POSIX-200112 mode.
108718         * lib/strtoimax.c: Use #elif rather than #else #if.
108719         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
108720         Remove function, now that we can rely on a working tzset function.
108721         [!_LIBC]: Ensure that the required autoconf test has been run.
108722         [!defined _NL_CURRENT && HAVE_STRFTIME]:
108723         Use underlying_strftime for %r.
108724         * lib/sha.c: Merge in some clean-up and optimization changes from
108725         glibc.
108726         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
108727         Ensure that it is a multiple of 64.
108728         Rearrange loop exit tests so as to avoid performing an
108729         additional fread after encountering an error or EOF.
108730         * lib/realloc.c: Update copyright date.
108732 2003-08-15  Jim Meyering  <jim@meyering.net>
108733         and Paul Eggert  <eggert@twinsun.com>
108735         Merge from coreutils.
108736         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
108737         member but strut utmpx does not.  Needed for AIX 4.3.3.
108738         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
108740 2003-08-15  Jim Meyering  <jim@meyering.net>
108741         and Paul Eggert  <eggert@cs.ucla.edu>
108743         Merges from coreutils, etc.
108744         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
108745         Require gl_FUNC_TZSET_CLOBBER.
108746         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
108747         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
108748         members.
108750 2003-08-14  Paul Eggert  <eggert@twinsun.com>
108752         Help the merge from coreutils.
108753         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
108754         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
108755         * m4/tzset.m4: Use it too.
108757 2003-08-14  Paul Eggert  <eggert@twinsun.com>
108759         * modules/tzset: New file.
108761 2003-08-14  Jim Meyering  <jim@meyering.net>
108763         Merges from coreutils.
108764         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
108765         variable names, rather than @FNMATCH_H@.
108766         * modules/alloca: Likewise for $(ALLOCA_H).
108768         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
108769         the three copies of the literal target, `fnmatch.h'.
108770         * modules/alloca (alloca.h): Likewise.
108772 2003-08-14  Jim Meyering  <jim@meyering.net>
108774         Merge from coreutils.
108775         * m4/tzset.m4: New file.
108776         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
108777         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
108778         otherwise, AIX 5.1 systems would end up using the latter.
108779         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
108780         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
108781         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
108782         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
108784 2003-08-14  Jim Meyering  <jim@meyering.net>
108786         Merge from coreutils.
108787         * lib/obstack.h: Whitespace changes.
108788         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
108789         and xcalloc return values.
108790         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
108791         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
108792         hang on OSF/1 5.1 for DIR on both local and remote file systems.
108793         Reported by (and fix confirmed by) Nelson H. F. Beebe.
108794         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
108795         error from mntctl.
108796         Use mntctl's return value to drive the entry-processing loop, since
108797         we can't rely on the value of the vmt_length member in the last
108798         entry.  On some systems doing so could result in exhausting
108799         virtual memory.  Based in part on a patch from Mike Jetzer.
108801 2003-08-14  Jim Meyering  <jim@meyering.net>
108802         and Paul Eggert  <eggert@twinsun.com>
108804         Merges from coreutils, plus other fixes.
108805         * lib/physmem.c: Merge in portability changes from gcc/libiberty
108806         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
108807         for credits and details.  Thanks to Kaveh Ghazi for helping
108808         to keep these files in sync.
108809         (ARRAY_SIZE): Define it.
108810         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
108811         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
108812         (memcasecmp): Don't assume size_t fits in unsigned int.
108813         Remove casts and duplicate code.
108814         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
108815         (memcpy): Remove definition.
108816         Merge in some clean-up and optimization changes from glibc.
108817         [BLOCKSIZE]: Move definition to top of file.
108818         Ensure that it is a multiple of 64.
108819         Rearrange loop exit tests so as to avoid performing an
108820         additional fread after encountering an error or EOF.
108821         * lib/md5.h (md5_uintptr): Define.
108822         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
108823         return to the initial working directory.  Preserve errno
108824         for caller.
108825         * lib/idcache.c: Include "xalloc.h".
108826         (xmalloc, xrealloc): Remove decls.
108827         (getuser): Remove casts no longer required in C89.
108828         * lib/human.c: Include stdio.h, for sprintf.
108829         * lib/group-member.c: Include "xalloc.h".
108830         (xmalloc, xrealloc): Remove decls.
108831         (get_group_info): Remove casts no longer required in C89.
108832         * lib/getusershell.c (readname): Remove casts no longer required in
108833         C89.
108834         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
108835         * lib/getline.c: Whitespace fix, from coreutils.
108837 2003-08-13  Paul Eggert  <eggert@twinsun.com>
108839         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
108840         Check for isascii.
108842         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
108843         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
108844         Undo previous (whitespace-only) change.
108846 2003-08-13  Paul Eggert  <eggert@twinsun.com>
108848         * lib/exclude.c: Include <ctype.h>
108849         (IN_CTYPE_DOMAIN): New macro.
108850         (is_space): New fn.
108851         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
108852         and empty lines.
108854         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
108855         Undo previous (whitespace-only) change.
108857 2003-08-13  Paul Eggert  <eggert@twinsun.com>
108859         * config/srclist-update: Change update back to the old behavior,
108860         leaving whitespace alone.  Use one 'sed' command rather than a
108861         pipeline.
108862         (fixlicense): Now a variable, not a function.
108863         (remove_trailing_blanks): Remove.
108864         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
108865         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
108866         Undo previous (whitespace-only) change.
108868 2003-08-12  Paul Eggert  <eggert@twinsun.com>
108870         Merge from coreutils.
108871         * modules/euidaccess: Add lib_SOURCES, include for new
108872         file euidaccess.h
108874 2003-08-12  Paul Eggert  <eggert@twinsun.com>
108876         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
108877         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
108878         Normalize leading white space and remove trailing white space.
108880         Merge from coreutils
108881         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
108883         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
108884         0.12.1.  These files are now being upgraded automatically by
108885         ../config/srclist-update.
108887 2003-08-12  Paul Eggert  <eggert@twinsun.com>
108889         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
108890         Normalize leading white space and remove trailing white space.
108891         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
108892         notice, as per ../config/srclist-update.
108894         Merge from coreutils.
108895         * lib/euidaccess.h: New file.
108896         * lib/euidaccess.c: Include it.
108897         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
108898         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
108899         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
108901 2003-08-12  Paul Eggert  <eggert@twinsun.com>
108903         * config/srclist-update: Add copyright notice.
108904         (remove_id_lines, remove_trailing_blanks): New constants.
108905         (fixfile): Use them to normalize spacing a bit in copied files.
108906         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
108907         Normalize leading white space and remove trailing white space.
108909         * config/texinfo.tex: Sync with texinfo.
108911         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
108912         strtoul.c from libc, to merge coreutils whitespace changes.
108914         * config/srclist.txt: Get the following m4 files from gettext:
108915         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
108916         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
108917         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
108918         wint_t.m4.
108920 2003-08-12  Karl Berry  <karl@gnu.org>
108922         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
108923         been made.
108925 2003-08-11  Paul Eggert  <eggert@twinsun.com>
108927         * modules/gnu-source, m4/gnu-source.m4:
108928         Remove; we're assuming Autoconf 2.54 or later now.
108929         Suggested by Bruno Haible.
108930         * MODULES.html.sh (func_all_modules): Remove gnu-source.
108932 2003-08-11  Bruno Haible  <bruno@clisp.org>
108934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
108936 2003-08-11  Bruno Haible  <bruno@clisp.org>
108938         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
108939         (vasnprintf): Use it instead of wcslen.
108941 2003-08-11  Bruno Haible  <bruno@clisp.org>
108943         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
108944         value to ensure that _Bool promotes to int. Use #define for _Bool when
108945         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
108947 2003-08-10  Karl Berry  <karl@gnu.org>
108949         * lib/regex.h: update from libc (whitespace fix).
108951 2003-08-09  Paul Eggert  <eggert@twinsun.com>
108953         Merge some files from coreutils.  These changes were
108954         originally made by Jim Meyering.
108955         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
108956         many older Unixes require this.
108957         * lib/alloca.c (alloca): Remove cast to argument of free;
108958         no longer needed in C89.
108959         * lib/alloca_.h, regex.h: Fix white space to match
108960         what GNU indent does.
108962 2003-08-09  Paul Eggert  <eggert@twinsun.com>
108964         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
108965         apparently Emacs's Unicode mode got confused before my 2003-08-05
108966         checkin.
108968 2003-08-08  Paul Eggert  <eggert@twinsun.com>
108970         * m4/extensions.m4: New file.
108971         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
108972         Require gl_USE_SYSTEM_EXTENSIONS.
108973         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
108974         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
108976 2003-08-08  Paul Eggert  <eggert@twinsun.com>
108978         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
108979         * modules/extensions, modules/gnu-source: New files.
108980         * modules/timespec, modules/unlocked-io: Depend on extensions.
108982 2003-08-07  Paul Eggert  <eggert@twinsun.com>
108984         * modules/restrict: New file.
108985         * MODULES.html.sh (func_all_modules): Add restrict.
108986         * modules/regex: Depend on restrict.
108988 2003-08-07  Paul Eggert  <eggert@twinsun.com>
108990         * m4/restrict.m4: New file.
108991         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
108993 2003-08-07  Bruno Haible  <bruno@clisp.org>
108995         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
108996         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
108998 2003-08-07  Bruno Haible  <bruno@clisp.org>
109000         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
109001         makes the module 'getndelim2' compatible with the module 'getline'.
109003 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109005         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
109006         byte with "\201" to avoid glitches when editing that source file
109007         with multi-gnome-terminal.
109009 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109011         * lib/bumpalloc.h: Remove.
109013 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109015         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
109016         * modules/bumpalloc: Remove.
109018 2003-08-04  Paul Eggert  <eggert@twinsun.com>
109020         * lib/getloadavg.c: Change copyright notice and spacing to conform to
109021         GNU coding style.
109023         Merge from coreutils.
109024         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
109025         1. From glibc.
109026         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
109027         from Karl Berry, implemented by Jim Meyering.
109028         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
109029         from Dmitry V. Levin.
109030         Remove anachronistic cast of xrealloc.
109031         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
109032         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
109033         type. Otherwise, it wouldn't compile with at least /bin/cc on
109034         ymp-cray-unicos9.0.2.X.
109035         Combine two mostly-identical uses of alloca into one.
109036         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
109038 2003-08-04  Dave Love  <d.love@dl.ac.uk>
109040         [From Emacs.]
109042         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
109043         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
109044         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
109045         obsolete NLIST_NAME_UNION.
109046         [__GNU__]: Undef BSD and FSCALE.
109047         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
109049 2003-08-03  Paul Eggert  <eggert@twinsun.com>
109051         * lib/stdbool_.h (_Bool): Make it signed char, instead of
109052         an enum type, so that it's guaranteed to promote to int.  See:
109053         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
109055 2003-08-03  Karl Berry  <karl@gnu.org>
109057         * config/depcomp: update from automake.
109059 2003-07-31  Paul Eggert  <eggert@twinsun.com>
109061         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
109062         (strerror): Don't assume that a printable int fits in 14 bytes.
109064 2003-07-31  Bruno Haible  <bruno@clisp.org>
109066         * modules/getpass-gnu: New file.
109067         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
109069 2003-07-31  Bruno Haible  <bruno@clisp.org>
109071         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
109073 2003-07-24  Karl Berry  <karl@gnu.org>
109075         * config/missing: update from automake.
109077 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
109078             Bruno Haible  <bruno@clisp.org>
109080         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
109081         * lib/getline.c (getline, getdelim): Likewise.
109082         Remove _GNU_SOURCE define; now it's defined in config.h through
109083         m4/getline.m4.
109085 2003-07-23  Karl Berry  <karl@gnu.org>
109087         * config/config.sub: update from prep.
109089 2003-07-22  Paul Eggert  <eggert@twinsun.com>
109091         * modules/xalloc (Depends-on): Add exitfail.
109092         * modules/xmemcoll: Likewise.
109094 2003-07-22  Paul Eggert  <eggert@twinsun.com>
109096         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
109097         over-parenthesization in macros.
109099         Sync with coreutils.
109101         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
109102         required by C99.
109104         Use `exit_failure' for xalloc and xmemcoll instead of their own
109105         private exit-failure variables.
109106         * lib/xalloc.h (xalloc_exit_failure): Remove.
109107         * lib/xmalloc.c: Likewise.  Include exitfail.h.
109108         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
109109         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
109110         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
109111         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
109113 2003-07-20  Jim Meyering  <jim@meyering.net>
109115         * modules/closeout (Depends-on): Add exitfail.
109116         Suggestion from Bruno Haible.
109118 2003-07-19  Karl Berry  <karl@gnu.org>
109120         * config/config.sub: update from prep.
109122 2003-07-18  Paul Eggert  <eggert@twinsun.com>
109124         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
109125         Remove.
109126         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
109127         to test that it can stand by itself.  Include "exitfail.h".
109128         Clients should set exit_failure instead.
109129         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
109131 2003-07-18  Bruno Haible  <bruno@clisp.org>
109133         * modules/getndelim2: New file.
109134         * modules/getline: Share files with module getndelim2.
109135         * modules/getnline: Depend on getndelim2 instead of sharing files with
109136         it. Add getnline.c to lib_SOURCES.
109137         * MODULES.html.sh (func_all_modules): Add getndelim2.
109139 2003-07-18  Bruno Haible  <bruno@clisp.org>
109141         * m4/getndelim2.m4: New file.
109142         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
109143         invoke gl_PREREQ_GETNDELIM2.
109144         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
109145         gl_PREREQ_GETNDELIM2.
109146         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
109147         gl_GETNDELIM2.
109149 2003-07-18  Bruno Haible  <bruno@clisp.org>
109151         * lib/getndelim2.h: New file.
109152         * lib/getndelim2.c: Make into a module of its own. Include config.h,
109153         getndelim2.h.
109154         (getndelim2): Make non-static. Change return type to ssize_t.
109155         * lib/getline.h: Change argument names.
109156         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
109157         * lib/getnline.c: Include getndelim2.h.
109159 2003-07-18  Andreas Schwab  <schwab@suse.de>
109161         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
109163 2003-07-17  Karl Berry  <karl@gnu.org>
109165         * config/config.sub: update from prep.
109167 2003-07-17  Bruno Haible  <bruno@clisp.org>
109169         * modules/getnline: New file.
109170         * modules/getline: Add lib/getndelim2.c to source file list.
109171         * MODULES.html.sh (func_all_modules): Add getnline.
109173 2003-07-17  Bruno Haible  <bruno@clisp.org>
109175         * m4/getnline.m4: New file.
109177 2003-07-17  Bruno Haible  <bruno@clisp.org>
109179         * m4/Makefile.am.in: Remove file.
109180         * m4/Makefile.am: Remove file.
109181         * m4/Makefile.in: Remove file.
109183 2003-07-17  Bruno Haible  <bruno@clisp.org>
109185         * lib/getnline.h: New file.
109186         * lib/getnline.c: New file.
109187         * lib/getndelim2.c: New file, extracted from getline.c.
109188         (getndelim2): Renamed from getdelim2, with added nmax argument.
109189         * lib/getline.c: Include getndelim2.c.
109190         (getdelim2): Moved out to getndelim2.c.
109191         (getline, getdelim): Update.
109193 2003-07-17  Bruno Haible  <bruno@clisp.org>
109195         * lib/Makefile.am: Remove file.
109196         * lib/Makefile.in: Remove file.
109198 2003-07-17  Bruno Haible  <bruno@clisp.org>
109200         * configure.in: Remove file.
109201         * Makefile.in: Remove file.
109203 2003-07-17  Bruno Haible  <bruno@clisp.org>
109205         * MODULES.html.sh: Put the </BODY> right before </HTML>.
109207 2003-07-16  Karl Berry  <karl@gnu.org>
109209         * config/srclist-update: was running fixlicense twice, which caused
109210                 texinfo.tex to be nullified for some reason.  Simplify,
109211                 $gplsrc is no longer needed as far as I can see?
109213 2003-07-16  Jim Meyering  <jim@meyering.net>
109215         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
109217 2003-07-15  Paul Eggert  <eggert@twinsun.com>
109219         * config/srclist.txt: Get the following files from gettext-runtime/intl
109220         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
109221         ref-del.sin.  From Bruno Haible.
109222         * config/srclist-update (fixfile): Change grep pattern again, since the
109223         previous fix didn't work (there was another trailing $).  Use
109224         '[$]' to escape the $s.
109226 2003-07-15  Karl Berry  <karl@gnu.org>
109228         * lib/vasnprintf.c: update from gettext.
109230 2003-07-15  Karl Berry  <karl@gnu.org>
109232         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
109233         gets expanded when surrounded by '$'.
109235 2003-07-15  Jim Meyering  <jim@meyering.net>
109237         * modules/save-cwd: Don't depend on error.  From Derek Price.
109239 2003-07-15  Jim Meyering  <jim@meyering.net>
109241         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
109243 2003-07-14  Simon Josefsson  <jas@extundo.com>
109245         * modules/mempcpy: New file.
109246         * MODULES.html.sh (func_all_modules): Add mempcpy.
109248 2003-07-14  Simon Josefsson  <jas@extundo.com>
109250         * m4/mempcpy.m4: New file.
109252 2003-07-14  Simon Josefsson  <jas@extundo.com>
109254         * lib/mempcpy.h: New file.
109255         * lib/mempcpy.c: New file.
109257 2003-07-14  Paul Eggert  <eggert@twinsun.com>
109259         * modules/getdate, modules/posixtm: Depend on mktime.
109261 2003-07-14  Paul Eggert  <eggert@twinsun.com>
109263         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
109264         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
109265         unicodeio.c, unicodeio.h, unlocked-io.h:
109266         Switch from LGPL to GPL.
109268 2003-07-14  Paul Eggert  <eggert@twinsun.com>
109270         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
109271         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
109272         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
109273         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
109274         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
109275         updated automatically by ../config/srclist-update.  This changes
109276         their license from LPGL to GPL.
109278 2003-07-14  Paul Eggert  <eggert@twinsun.com>
109280         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
109281         assumed to refer to the root of the most recent stable gettext version.
109282         * config/srclistvars.sh: Add defaults for eggert.
109283         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
109284         Match "This program" as well as "The program".  This is needed
109285         for gettext.
109287 2003-07-14  Jim Meyering  <jim@meyering.net>
109289         Don't emit diagnostics.  Let callers do that.
109290         * lib/save-cwd.c: Don't include "error.h".
109291         (save_cwd): Don't call error.  Ensure that errno is valid
109292         when returning nonzero.
109294         * lib/save-cwd.h (restore_cwd): Update prototype.
109295         * lib/save-cwd.c (restore_cwd): Remove two parameters.
109296         Simplify.  Don't call error upon failure.  Let callers do that.
109297         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
109298         when auditing is enabled.  But don't bother updating the #if.
109300 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
109302         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
109303         it breaks C++ compilation.
109304         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
109306 2003-07-10  Simon Josefsson  <jas@extundo.com>
109308         * modules/strchrnul (Makefile.am): Add strchrnul.h.
109310 2003-07-10  Jim Meyering  <jim@meyering.net>
109312         * m4/clock_time.m4: Remove trailing blank.
109313         * m4/intmax_t.m4: Likewise.
109315 2003-07-10  Jim Meyering  <jim@meyering.net>
109317         * lib/vasnprintf.c: Remove trailing blanks.
109318         Make cpp indentation consistent.
109320 2003-07-09  Paul Eggert  <eggert@twinsun.com>
109322         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
109323         posixver.c, strftime.c, strnlen.c, strverscmp.c:
109324         Switch from LGPL to GPL.
109326 2003-07-09  Paul Eggert  <eggert@twinsun.com>
109328         * config/srclist.txt: Sort sublists.  Add
109329         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
109330         that differ from gnulib for one reason or another; we'd like this list
109331         to be smaller but for now let's document what we have.
109333 2003-07-08  Paul Eggert  <eggert@twinsun.com>
109335         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
109336         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
109337         and sweeter "eval x=$x".
109338         * config/srclist.txt: Get lib/argp* from glibc.
109340 2003-07-07  Paul Eggert  <eggert@twinsun.com>
109342         * lib/mktime.c: Fix some boundary cases and remove need for floating
109343         point.
109345         Issue a compile-time diagnostic if time_t is floating point, or if
109346         two's complement arithmetic is not in effect, or if arithmetic
109347         right shift does not propagate the sign.  These assumptions were
109348         all in the original code but they weren't checked.
109350         (TIME_T_MIDPOINT, verify): New macros.
109351         (__isleap): Remove; it has integer overflow problems.
109352         (leapyear): New function, without those problems.
109353         (ydhms_tm_diff): Remove; splitting into two parts.
109354         (ydhms_diff): New function, containing the arithmetic part of
109355         the old ydhms_tm_diff function.  Issue a compile-time
109356         diagnostic if we are not using C99 integer division.
109357         Avoid casts when possible.
109358         (guess_time_tm): New function, containing the checking part of
109359         the old ydhms_tm_diff function.  Return the new value, rather than
109360         the difference between it and the old.  Accept a new argument T
109361         so that *T specifies the old value.  Check for overflow in the result.
109363         (__mktime_internal): Use a time_t offset, not a long int offset.
109364         This undoes the 2003-06-04 change, which is no longer needed now
109365         that we have better overflow checking.
109366         (localtime_offset): Likewise.
109368         (__mktime_internal): Avoid harmful overflow on hosts where time_t
109369         and long are 64-bit but int is only 32-bit.
109370         (ydhms_diff): Use long int to store year1 and yday1.
109371         Issue a compile-time diagnostic if long int is not wide enough.
109373         (__mktime_internal): Use long int to store adjusted year and yday.
109374         Use plain C rather than preprocessor commands, if that doesn't
109375         affect efficiency.
109376         Check for overflow (and try to repair) after each probe
109377         rather than checking only at the very end.  This avoids some bugs
109378         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
109379         does not equal GMT offset at maximum time).
109380         Use integer to check for overflow rather than floating point; this
109381         is more portable to non-IEEE hosts, and is a tad faster.
109382         When we detect that we are oscillating between two values,
109383         don't check whether tm_isdst has the requested value, since
109384         we already know the answer.  When tm_isdst has the wrong value,
109385         use a different heuristic to find the right one, based on the
109386         extreme values actually observed in practice in tz2003a,
109387         rather than the (overly optimistic) "previous 3 calendar quarters".
109389         (not_equal_tm, print_tm, check_result): Use "const T" rather than
109390         "T const" to accommodate glibc style.
109391         (check_result): Use less-confusing report format.  "long" -> "long int.
109392         (main): Likewise.
109393         Don't loop if the iteration overflows time_t.
109394         Allow a negative step in the iteration.
109396 2003-07-06  Karl Berry  <karl@gnu.org>
109398         * config/depcomp: update from automake.
109399         * config/config.sub: update from prep.
109401 2003-07-03  Karl Berry  <karl@gnu.org>
109403         * config/config.guess: update from prep.
109405 2003-07-01  Paul Eggert  <eggert@twinsun.com>
109407         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
109408         xreadlink.c now includes it unconditionally.
109410 2003-07-01  Paul Eggert  <eggert@twinsun.com>
109412         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
109413         having it depend on HAVE_SYS_TYPES_H.
109415 2003-07-01  Bruno Haible  <bruno@clisp.org>
109417         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
109418         <sys/types.h> should be sufficient.
109419         Reported by Paul Eggert.
109421 2003-06-26  Karl Berry  <karl@gnu.org>
109423         * config/depcomp: update from automake.
109425 2003-06-26  Bruno Haible  <bruno@clisp.org>
109427         * modules/human: Depend on module stdbool.
109429 2003-06-25  Bruno Haible  <bruno@clisp.org>
109431         * modules/readlink: New file.
109432         * modules/xreadlink: Depend on it.
109433         * MODULES.html.sh (func_all_modules): Add readlink.
109435 2003-06-25  Bruno Haible  <bruno@clisp.org>
109437         * m4/readlink.m4: New file.
109439 2003-06-25  Bruno Haible  <bruno@clisp.org>
109441         * lib/readlink.c: New file.
109443 2003-06-22  Karl Berry  <karl@gnu.org>
109445         * config/srclist.txt: update mkinstalldirs from automake.
109446         * config/mkinstalldirs: update.
109448 2003-06-22  Bruno Haible  <bruno@clisp.org>
109450         Portability to mingw32.
109451         * m4/ssize_t.m4: New file, from GNU gettext.
109452         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
109453         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
109455 2003-06-22  Bruno Haible  <bruno@clisp.org>
109457         * modules/safe-read: Add m4/ssize_t.m4.
109458         * modules/xreadlink: Add m4/ssize_t.m4.
109460 2003-06-20  Bruno Haible  <bruno@clisp.org>
109462         Assume C89, so PARAMS isn't needed.
109463         * lib/unicodeio.h (PARAMS): Remove.
109464         * lib/unicodeio.c: Don't use PARAMS.
109466 2003-06-18  Karl Berry  <karl@gnu.org>
109468         * config/config.{guess,sub}: update from prep.
109470 2003-06-18  Jim Meyering  <jim@meyering.net>
109472         Merge changes from coreutils.
109473         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
109474         Remove explicit declarations of xmalloc and realloc.
109475         Include xalloc.h.
109476         (read_utmp): Remove anachronistic cast of xmalloc.
109478 2003-06-17  Paul Eggert  <eggert@twinsun.com>
109480         Assume C89, so PARAMS isn't needed.
109481         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
109482         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
109483         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
109484         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
109485         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
109486         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
109487         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
109488         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
109489         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
109490         lib/xstrtod.h, lib/xstrtol.h: Likewise.
109491         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
109492         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
109493         no longer needed. Anyway, config.h should always be included before any
109494         other file.
109496 2003-06-11  Simon Josefsson  <jas@extundo.com>
109498         * modules/sysexits: New file.
109499         * MODULES.html.sh (func_all_modules): Add sysexits.
109501 2003-06-11  Simon Josefsson  <jas@extundo.com>
109503         * lib/sysexit_.h: New file.
109505 2003-06-11  Derek Price  <derek@ximbiot.com>
109507         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
109508         necessary.
109510 2003-06-11  Bruno Haible  <bruno@clisp.org>
109512         * m4/sysexits.m4: New file.
109514 2003-06-10  Simon Josefsson  <jas@extundo.com>
109516         * lib/argp.h: New file, from glibc.
109517         * lib/argp-ba.c: New file, from glibc.
109518         * lib/argp-eexst.c: New file, from glibc.
109519         * lib/argp-fmtstream.c: New file, from glibc.
109520         * lib/argp-fmtstream.h: New file, from glibc.
109521         * lib/argp-fs-xinl.c: New file, from glibc.
109522         * lib/argp-help.c: New file, from glibc.
109523         * lib/argp-namefrob.h: New file, from glibc.
109524         * lib/argp-parse.c: New file, from glibc.
109525         * lib/argp-pv.c: New file, from glibc.
109526         * lib/argp-pvh.c: New file, from glibc.
109527         * lib/argp-xinl.c: New file, from glibc.
109529 2003-06-10  Simon Josefsson  <jas@extundo.com>
109531         * modules/strchrnul: New file.
109533 2003-06-10  Simon Josefsson  <jas@extundo.com>
109535         * modules/argp: New file.
109537 2003-06-10  Simon Josefsson  <jas@extundo.com>
109539         * m4/strchrnul.m4: New file.
109541 2003-06-10  Simon Josefsson  <jas@extundo.com>
109543         * lib/strchrnul.h: New file.
109544         * lib/strchrnul.c: New file.
109546 2003-06-10  Bruno Haible  <bruno@clisp.org>
109548         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
109550 2003-06-07  Karl Berry  <karl@gnu.org>
109552         * config/config.{guess,sub}: update from prep.
109554 2003-06-07  Jim Meyering  <jim@meyering.net>
109556         * modules/strtod: Use $(...) notation, not @...@ for
109557         AC_REPLACE'd variables.
109558         * modules/localcharset: Likewise.
109560 2003-06-07  Jim Meyering  <jim@meyering.net>
109562         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
109563         in place of my name in the copyright comment.
109564         Remove definition and uses of __P.
109566         From coreutils.
109567         * lib/stat.c: Don't declare xmalloc explicitly.
109568         Instead, include "xalloc.h".
109569         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
109570         xrealloc, and xcalloc return values.
109571         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
109572         Improve comment.
109573         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
109575 2003-06-07  Bruno Haible  <bruno@clisp.org>
109577         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
109578         avoid AC_CONFIG_LINKS.
109579         * modules/fnmatch (Makefile.am): Use explicit creation rule for
109580         fnmatch.h, to avoid AC_CONFIG_LINKS.
109581         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
109583 2003-06-07  Bruno Haible  <bruno@clisp.org>
109585         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
109586         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
109587         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
109588         directory.
109589         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
109590         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
109591         directory.
109593 2003-06-06  Jim Meyering  <jim@meyering.net>
109595         Merge from coreutils.
109596         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
109597         Consolidate declarations and initializations of *_base* locals.
109599         Merge from coreutils.
109600         This avoids a core dump on systems without GNU putenv,
109601         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
109602         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
109603         (unsetenv): New static function, from GNU libc.
109604         (rpl_putenv): Use it.
109606         * lib/modechange.c: Remove trailing blanks.
109608         Merge from coreutils.
109609         * lib/fsusage.c: Remove declaration of statfs.
109610         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
109612         * lib/posixtm.c: Include <stdbool.h> unconditionally.
109614 2003-06-06  Jim Meyering  <jim@meyering.net>
109616         * lib/stdbool_.h: Renamed from stdbool.h.in.
109618 2003-06-06  Jim Meyering  <jim@meyering.net>
109619             Bruno Haible  <bruno@clisp.org>
109621         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
109622         Adjust Makefile.am snippet not to redirect directly to target.
109623         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
109625 2003-06-05  Paul Eggert  <eggert@twinsun.com>
109627         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
109628         mismatch, look in future quarters as well as past.  This fixes a
109629         bug when processing fall-backwards gaps immediately after a long
109630         period of daylight-saving time.
109632         * lib/mktime.c: Assume freestanding C89 or better.
109633         (HAVE_LIMITS_H): Remove.  Assume it's 1.
109634         (__P): Remove; not used.
109635         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
109636         (mktime, not_equal_tm, print_tm, check_result,
109637         main): Use prototypes.  Use const * where appropriate.
109638         (main): Fix typo in testing code that uncovered by above changes.
109639         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
109641 2003-06-04  Paul Eggert  <eggert@twinsun.com>
109643         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
109644         locale.h, localeconv.  This merges changes from coreutils.
109646         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
109647         It can be removed after the next Autoconf is released.
109648         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
109649         needed.
109651 2003-06-04  Paul Eggert  <eggert@twinsun.com>
109653         * lib/mktime.c: Fix Debian bug 177940
109654         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
109655         (localtime_offset): Now long int, not time_t, because we want it
109656         to be guaranteed to be signed.  All uses changed.
109657         (__mktime_internal): If overflow would occur when adding offset,
109658         don't add it.
109660         Merge 'human' changes from coreutils.  Rewrite to support
109661         locale-specific notations like thousands separators.
109662         * lib/human.c: Simplify authorship notice.
109663         Include human.h immediately after config.h.
109664         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
109665         <limits.h>: Do not include, since human.h does.
109666         (SIZE_MAX, UINTMAX_MAX): New macros.
109667         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
109668         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
109669         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
109670         (power_letter): Renamed from suffixes.
109671         (generate_suffix_backwards): Remove.
109672         (adjust_value): Now takes int style (because of human.h changes)
109673         and long double value (for greater precision on some platforms).
109674         (group_number): New function.
109675         (human_readable): Use it.  Use integer options, not enum.
109676         Put the options before the sizes in the arg list.
109677         Support all the new options.
109678         The old human_readable function has been removed;
109679         use inttostr.h instead.
109680         (human_readable, default_block_size, humblock):
109681         Use uintmax_t, not int, for block sizes.
109682         (human_readable_inexact, block_size_types): Remove.
109683         (block_size_opts): New constant.
109684         (human_options): Renamed from human_block_size, with new signature
109685         that allows block sizes up to UINTMAX_MAX.  All callers changed.
109686         * lib/human.h: Add copyright and authorship notice.
109687         Include <limits.h> and <stdbool.h> unconditionally.
109688         (PARAMS): Remove.  All uses removed.
109689         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
109690         (enum human_inexact_style): Remove tag; now a nameless enum.
109691         (human_floor, human_ceiling, human_round_to_even): Now have
109692         values 2, 0, 1 rather than -1, 1, 0.
109693         (human_group_digits, human_suppress_point_zero, human_autoscale,
109694         human_base_1024, human_SI, human_B): New constants.
109695         (human_readable_inexact, human_block_size): Remove.
109696         (human_readable): Size args are now uintmax_t, not int.
109697         (human_options): New decl.
109699         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
109700         unnecessary now that we assume C89 or better.  This change
109701         imported from coreutils.
109703         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
109704         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
109705         in the 2003-05-30 sync from glibc.
109707         .h files should stand alone, but we shouldn't include <sys/types.h>
109708         if we can get away with just <stddef.h>.
109710         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
109711         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
109712         rather than <sys/types.h>, as we merely need size_t.
109713         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
109714         to get size_t.
109715         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
109716         Include <stdio.h>, to get FILE.
109717         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
109718         memcasecmp.h has included <stddef.h> and all we need is size_t.
109719         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
109720         our interface, instead of including <sys/types.h>
109722 2003-06-04  Paul Eggert  <eggert@twinsun.com>
109724         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
109725         now, as glibc mktime is buggy on non-glibc systems.
109727 2003-06-03  Karl Berry  <karl@gnu.org>
109729         * config/config.sub: update from prep.
109731 2003-06-02  Paul Eggert  <eggert@twinsun.com>
109733         [from coreutils]
109734         Fix some minor time-related bugs with POSIX time arguments.
109735         Some valid time stamps were being rejected (notably -1, and
109736         time stamps before 1900 on 64-bit hosts).  And some invalid
109737         time stamps were being accepted, e.g. September 31.
109739         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
109740         that we can return (time_t) -1 successfully.
109741         * lib/posixtm.c: Likewise.
109742         [HAVE_STDBOOL_H]: Include <stdbool.h>.
109743         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
109744         (t): Remove static var.
109745         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
109746         of static var.  All uses changed.
109747         (year): Do not reject years before 1900; they can occur with
109748         64-bit time_t.
109749         (posix_time_parse): Do not check for out-of-range components;
109750         that is now the caller's responsibility, since our checks were
109751         only approximations.
109752         (posixtime): Use mktime to check for out-of-range components,
109753         since it knows them exactly.
109754         If mktime returns (time_t) -1, check whether an error actually occurred
109755         by invoking localtime on -1.
109756         (main) [TEST_POSIXTIME]: Check for input data errors, and report
109757         posixtime failures better.
109758         Improve the test data (in comments only).
109760 2003-06-02  Karl Berry  <karl@gnu.org>
109762         * config/mkinstalldirs (version): new variable.
109763         (--version): new option.
109764         (usage): improve message.
109766 2003-05-30  Karl Berry  <karl@gnu.org>
109768         * lib/mktime.c: update from libc.
109770 2003-05-30  Bruno Haible  <bruno@clisp.org>
109772         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
109773         * config/config.rpath: Upgrade to gettext-0.12.1.
109775 2003-05-30  Bruno Haible  <bruno@clisp.org>
109777         * m4/gettext.m4: Upgrade to gettext-0.12.1.
109778         * m4/nls.m4: New file, from gettext-0.12.1.
109779         * m4/po.m4: New file, from gettext-0.12.1.
109780         * m4/progtest.m4: Upgrade to gettext-0.12.1.
109782 2003-05-30  Bruno Haible  <bruno@clisp.org>
109784         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
109785         * lib/localcharset.h: Likewise.
109786         * lib/localcharset.c: Likewise.
109788 2003-05-29  Karl Berry  <karl@gnu.org>
109790         * config/config.rpath: update from gettext.
109792 2003-05-28  Paul Eggert  <eggert@twinsun.com>
109794         Assume the headers required for C89 freestanding compilers.
109795         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
109796         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
109797         * m4/human.m4 (gl_HUMAN): Likewise.
109798         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
109799         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
109800         * m4/userspec.m4 (gl_USERSPEC): Likewise.
109801         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
109802         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
109803         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
109805 2003-05-28  Paul Eggert  <eggert@twinsun.com>
109807         Assume the headers required for C89 freestanding compilers.
109808         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
109809         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
109810         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
109811         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
109812         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
109813         define, since <limits.h> is guaranteed to do that.
109814         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
109815         * lib/exclude.c: Include <stdbool.h> unconditionally.
109816         * lib/tempname.c: Include <stddef.h> unconditionally.
109817         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
109818         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
109819         <stddef.h> does that.
109820         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
109821         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
109822         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
109823         needed.
109824         * lib/xstrtol.c: Likewise.
109825         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
109826         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
109828         * lib/addext.c (addext): Use assignment rather than cast, to avoid
109829         warnings on some platforms.
109831         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
109832         arbitrarily.
109834 2003-05-26  Jim Meyering  <jim@meyering.net>
109836         Merge in a change from coreutils:
109837         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
109838         that is guaranteed to be `no'.  Use `no_such_member' to indicate
109839         that condition, rather than `-1' which is slightly misleading.
109840         Change the name of the cache variable to have the gl_ prefix.
109841         Prompted by a patch from Richard Dawe for DJGPP.
109843 2003-05-24  Karl Berry  <karl@gnu.org>
109845         * config/config.guess: update from prep.
109847 2003-05-22  Karl Berry  <karl@gnu.org>
109849         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
109851 2003-05-20  Karl Berry  <karl@gnu.org>
109853         * config/config.guess: update from prep.
109855 2003-05-18  Karl Berry  <karl@gnu.org>
109857         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
109858         might actually be set by the user.
109860         * config/depcomp, install-sh, mdate-sh: update from automake.
109862 2003-05-17  Bruno Haible  <bruno@clisp.org>
109864         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
109865         invalid expansion for AC_EGREP_CPP.
109866         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
109867         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
109868         Suggested by Akim Demaille <akim@epita.fr> in
109869         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
109871 2003-05-12  Jim Meyering  <jim@meyering.net>
109873         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
109874         the space-padded-by-default conversion specifiers, %e, %k, %l.
109876 2003-05-12  Bruno Haible  <bruno@clisp.org>
109878         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
109879         the string is longer than 4 KB.
109881 2003-05-11  Karl Berry  <karl@gnu.org>
109883         * config/config.{guess,sub}: update from prep.
109885 2003-05-09  Bruno Haible  <bruno@clisp.org>
109887         * modules/error: Add m4/strerror_r.m4 to file list.
109889 2003-05-03  Bruno Haible  <bruno@clisp.org>
109891         Upgrade to Unicode-4.0.
109892         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
109893         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
109894         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
109895         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
109896         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
109897         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
109898         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
109899         Change width of U+E0100..U+E01EF from 1 to 0.
109901 2003-04-25  Jim Meyering  <jim@meyering.net>
109903         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
109904         of type size_t, not int.
109906 2003-04-25  Bruno Haible  <bruno@clisp.org>
109908         * lib/copy-file.c: Include <stddef.h>, for size_t.
109910 2003-04-21  Paul Eggert  <eggert@twinsun.com>
109912         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
109913         code which expansion is under static control.  Patch imported from
109914         Akim Demaille's patch to Bison; see
109915         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
109917 2003-04-14  Bruno Haible  <bruno@clisp.org>
109919         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
109921 2003-04-11  Jim Meyering  <jim@meyering.net>
109923         Merge changes from Coreutils.
109925         2003-03-22  Jim Meyering  <jim@meyering.net>
109927         * lib/strftime.c (widen): Cast alloca return value to proper type.
109929         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
109931         From GNU libc.
109932         * lib/strftime.c (my_strftime): Handle very large width
109933         specifications for numeric values correctly.  Improve checks for
109934         overflow.
109936         2003-01-19  Jim Meyering  <jim@meyering.net>
109938         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
109939         definitions.
109940         (nl_get_alt_digit) [! defined my_strftime]: Define.
109941         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
109942         _nl_get_alt_digit and _nl_get_walt_digit.
109944         * lib/strftime.c (my_strftime): Merge in locale-related changes from
109945         libc. These changes have no effect outside of _LIBC.
109947 2003-04-10  Bruno Haible  <bruno@clisp.org>
109949         * modules/findprog: New file.
109950         * MODULES.html.sh (func_all_modules): Add it.
109952 2003-04-10  Bruno Haible  <bruno@clisp.org>
109954         * m4/findprog.m4: New file.
109955         * m4/eaccess.m4: New file.
109957 2003-04-10  Bruno Haible  <bruno@clisp.org>
109959         * lib/findprog.h: New file, from GNU gettext.
109960         * lib/findprog.c: New file, from GNU gettext.
109962 2003-04-05  Jim Meyering  <jim@meyering.net>
109964         Merge changes from Coreutils.
109966         * lib/exclude.h (PARAMS): Remove definition and uses.
109967         * lib/exclude.c: Remove uses of `PARAMS'.
109969         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
109970         Add test-cases for DOS filenames. Declare program_name.
109971         (main): Set up program_name.  Patch by Rich Dawe.
109973         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
109974         error from mntctl.
109975         Use mntctl's return value to drive the entry-processing loop, since
109976         we can't rely on the value of the vmt_length member in the last
109977         entry.  On some systems doing so could result in exhausting
109978         virtual memory.  Based in part on a patch from Mike Jetzer.
109980 2003-04-04  Bruno Haible  <bruno@clisp.org>
109982         * modules/linebreak: New file.
109983         * MODULES.html.sh (func_all_modules): Add it.
109985 2003-04-04  Bruno Haible  <bruno@clisp.org>
109987         * m4/linebreak.m4: New file.
109989 2003-04-04  Bruno Haible  <bruno@clisp.org>
109991         * lib/linebreak.h: New file, from GNU gettext.
109992         * lib/linebreak.c: New file, from GNU gettext with slight
109993         modifications.
109994         * lib/lbrkprop.h: New file, from GNU gettext.
109996 2003-04-03  Bruno Haible  <bruno@clisp.org>
109998         * modules/utf8-ucs4: New file.
109999         * modules/utf16-ucs4: New file.
110000         * modules/ucs4-utf8: New file.
110001         * modules/ucs4-utf16: New file.
110002         * MODULES.html.sh (func_all_modules): Add them.
110004 2003-04-03  Bruno Haible  <bruno@clisp.org>
110006         * m4/utf-ucs4.m4: New file.
110007         * m4/ucs4-utf.m4: New file.
110009 2003-04-03  Bruno Haible  <bruno@clisp.org>
110011         * lib/utf8-ucs4.h: New file, from GNU gettext.
110012         * lib/utf16-ucs4.h: New file, from GNU gettext.
110013         * lib/ucs4-utf8.h: New file, from GNU gettext.
110014         * lib/ucs4-utf16.h: New file, from GNU gettext.
110016 2003-04-02  Bruno Haible  <bruno@clisp.org>
110018         * modules/binary-io: New file.
110019         * MODULES.html.sh (func_all_modules): Add it.
110021 2003-04-02  Bruno Haible  <bruno@clisp.org>
110023         * lib/binary-io.h: New file, from GNU gettext.
110025 2003-04-01  Bruno Haible  <bruno@clisp.org>
110027         * modules/pathname: New file.
110028         * MODULES.html.sh (func_all_modules): Add it.
110030 2003-04-01  Bruno Haible  <bruno@clisp.org>
110032         * lib/pathname.h: New file, from GNU gettext.
110033         * lib/concatpath.c: New file, from GNU gettext.
110035 2003-03-30  Bruno Haible  <bruno@clisp.org>
110037         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
110039 2003-03-30  Bruno Haible  <bruno@clisp.org>
110041         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
110042         function chown() doesn't exist.
110044 2003-03-28  Bruno Haible  <bruno@clisp.org>
110046         * modules/copy-file: New file.
110047         * MODULES.html.sh (func_all_modules): Add it.
110049 2003-03-28  Bruno Haible  <bruno@clisp.org>
110051         * m4/copy-file.m4: New file.
110053 2003-03-28  Bruno Haible  <bruno@clisp.org>
110055         * lib/copy-file.h: New file, from GNU gettext.
110056         * lib/copy-file.c: New file, from GNU gettext.
110058 2003-03-18  Jim Meyering  <jim@meyering.net>
110060         * lib/quote.c (quote_n): Fix typo in comment.
110062 2003-03-18  Bruno Haible  <bruno@clisp.org>
110064         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
110065         checking.
110066         * m4/onceonly_2_57.m4: Likewise.
110068 2003-03-17  Bruno Haible  <bruno@clisp.org>
110070         * m4/onceonly.m4: Require autoconf 2.54 or newer.
110071         (m4_quote): Remove macro.
110072         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
110074 2003-03-14  Jim Meyering  <jim@meyering.net>
110076         Merge changes from Coreutils.
110077         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
110078         to be const, in order to avoid warnings.
110079         (obstack_room): Likewise.
110080         (obstack_empty_p): Likewise.
110082 2003-03-14  Bruno Haible  <bruno@clisp.org>
110084         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
110085         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
110087 2003-03-13  Paul Eggert  <eggert@twinsun.com>
110089         Merge changes from Bison.
110090         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
110091         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
110092         when compiling Bison 1.875's `bitset bset = obstack_alloc
110093         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
110094         * lib/hash.c: Include <stdbool.h> unconditionally.
110096 2003-03-13  Paul Eggert  <eggert@twinsun.com>
110098         * m4/onceonly.m4 (m4_quote): New macro.
110099         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
110100         Quote AC_FOREACH variable-expansions properly.
110102 2003-03-13  Paul Eggert  <eggert@twinsun.com>
110104         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
110106 2003-03-09  Paul Eggert  <eggert@twinsun.com>
110108         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
110109         Reported by Bruce Becker; see:
110110         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
110112 2003-03-03  Paul Eggert  <eggert@twinsun.com>
110113             Bruno Haible  <bruno@clisp.org>
110115         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
110116         Reported by John Hughes, see
110117         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
110119 2003-02-20  Bruno Haible  <bruno@clisp.org>
110121         * MODULES.html.sh (func_all_modules): Add poll.
110123 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
110125         * modules/poll: New file.
110127 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
110129         * lib/poll_.h: New file.
110130         * lib/poll.c: New file.
110132 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
110134         * m4/poll.m4: New file.
110136 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
110138         * modules/mathl: New file.
110140 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
110142         * lib/mathl.h: New file.
110143         * lib/acosl.c: New file.
110144         * lib/asinl.c: New file.
110145         * lib/atanl.c: New file.
110146         * lib/ceill.c: New file.
110147         * lib/cosl.c: New file.
110148         * lib/expl.c: New file.
110149         * lib/floorl.c: New file.
110150         * lib/frexpl.c: New file.
110151         * lib/ldexpl.c: New file.
110152         * lib/logl.c: New file.
110153         * lib/sincosl.c: New file.
110154         * lib/sinl.c: New file.
110155         * lib/sqrtl.c: New file.
110156         * lib/tanl.c: New file.
110157         * lib/trigl.c: New file.
110158         * lib/trigl.h: New file.
110160 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
110162         * m4/mathl.m4: New file.
110164 2003-02-18  Bruno Haible  <bruno@clisp.org>
110166         * MODULES.html.sh (func_all_modules): Add mathl.
110168 2003-02-17  Bruno Haible  <bruno@clisp.org>
110170         * modules/mkdtemp: New module.
110171         * MODULES.html.sh (func_all_modules): Add it.
110173 2003-02-17  Bruno Haible  <bruno@clisp.org>
110175         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
110177 2003-02-17  Bruno Haible  <bruno@clisp.org>
110179         * lib/mkdtemp.h: New file, from GNU gettext.
110180         * lib/mkdtemp.c: New file, from GNU gettext.
110182 2003-02-02  Jim Meyering  <jim@meyering.net>
110184         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
110185         e.g. glibc-2.2.93.
110187 2003-01-31  Bruno Haible  <bruno@clisp.org>
110189         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
110190         'rpl_rename'.
110191         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
110192         'rpl_strnlen'.
110193         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
110194         'rpl_strtod'.
110195         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
110196         'rpl_utime'.
110198 2003-01-31  Bruno Haible  <bruno@clisp.org>
110200         * lib/rename.c: #undef rename before defining rpl_rename.
110201         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
110203 2003-01-30  Bruno Haible  <bruno@clisp.org>
110205         * modules/vasnprintf, modules/vasprintf: New modules.
110206         * MODULES.html.sh (func_all_modules): Add them.
110208 2003-01-30  Bruno Haible  <bruno@clisp.org>
110210         * m4/signed.m4: New file, from GNU gettext.
110211         * m4/longdouble.m4: New file, from GNU gettext.
110212         * m4/wchar_t.m4: New file, from GNU gettext.
110213         * m4/wint_t.m4: New file, from GNU gettext.
110214         * m4/vasnprintf.m4: New file.
110215         * m4/vasprintf.m4: New file.
110217 2003-01-30  Bruno Haible  <bruno@clisp.org>
110219         * lib/printf-args.h: New file, from GNU gettext.
110220         * lib/printf-args.c: New file, from GNU gettext.
110221         * lib/printf-parse.h: New file, from GNU gettext.
110222         * lib/printf-parse.c: New file, from GNU gettext.
110223         * lib/vasnprintf.h: New file, from GNU gettext.
110224         * lib/vasnprintf.c: New file, from GNU gettext.
110225         * lib/asnprintf.c: New file, from GNU gettext.
110226         * lib/vasprintf.h: New file, from GNU gettext with modifications.
110227         * lib/vasprintf.c: New file, from GNU gettext.
110228         * lib/asprintf.c: New file, from GNU gettext.
110230 2003-01-29  Bruno Haible  <bruno@clisp.org>
110232         * modules/stpncpy: New module.
110233         * MODULES.html.sh (func_all_modules): Add it.
110235 2003-01-29  Bruno Haible  <bruno@clisp.org>
110237         * m4/stpncpy.m4: New file.
110239 2003-01-29  Bruno Haible  <bruno@clisp.org>
110241         * lib/stpncpy.h: New file, from GNU gettext with modifications.
110242         * lib/stpncpy.c: New file, from GNU gettext with modifications.
110244 2003-01-28  Bruno Haible  <bruno@clisp.org>
110246         * modules/c-ctype: New module.
110247         * MODULES.html.sh (func_all_modules): Add it.
110249 2003-01-28  Bruno Haible  <bruno@clisp.org>
110251         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
110252         Paul Eggert.
110253         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
110254         Paul Eggert.
110256 2003-01-27  Bruno Haible  <bruno@clisp.org>
110258         * modules/xsetenv: New module.
110259         * MODULES.html.sh (func_all_modules): Add it.
110261 2003-01-27  Bruno Haible  <bruno@clisp.org>
110263         * lib/xsetenv.h: New file, from GNU gettext.
110264         * lib/xsetenv.c: New file, from GNU gettext.
110266 2003-01-23  Jim Meyering  <jim@meyering.net>
110268         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
110269         from working on systems without dirfd (at least Irix and OSF1/Tru64).
110271 2003-01-23  Bruno Haible  <bruno@clisp.org>
110273         * modules/minmax: New module.
110274         * MODULES.html.sh (func_all_modules): Add it.
110276 2003-01-23  Bruno Haible  <bruno@clisp.org>
110278         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
110279         Eggert.
110281 2003-01-22  Bruno Haible  <bruno@clisp.org>
110283         * modules/exit: New module.
110284         * MODULES.html.sh (func_all_modules): Add it.
110286 2003-01-22  Bruno Haible  <bruno@clisp.org>
110288         * lib/exit.h: New file, from GNU gettext.
110290 2003-01-19  Bruno Haible  <bruno@clisp.org>
110292         * gnulib-tool: Recognize option --extract-maintainer.
110293         (func_get_maintainer): New function.
110294         * modules/*: Add Maintainer entry.
110296 2003-01-16  Jim Meyering  <jim@meyering.net>
110298         * m4/regex.m4: The `regex' struct is both input and output.
110299         Initialize it before each use.  Patch by Tim Waugh.
110301 2003-01-16  Bruno Haible  <bruno@clisp.org>
110303         * MODULES.html.sh: Add a table of contents. Add the module name as
110304         leftmost column. Add hyperlinks.
110306 2003-01-15  Bruno Haible  <bruno@clisp.org>
110308         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
110310 2003-01-15  Bruno Haible  <bruno@clisp.org>
110312         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
110313         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
110314         suffix.
110316 2003-01-15  Bruno Haible  <bruno@clisp.org>
110318         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
110320 2003-01-15  Bruno Haible  <bruno@clisp.org>
110322         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
110323         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
110325 2003-01-14  Jim Meyering  <jim@meyering.net>
110327         * lib/same.c (same_name): Tweak a comment.
110329 2003-01-14  Bruno Haible  <bruno@clisp.org>
110331         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
110332         when a string comparison is sufficient.
110334 2003-01-14  Bruno Haible  <bruno@clisp.org>
110336         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
110337         'unsigned int'.
110339 2003-01-14  Bruno Haible  <bruno@clisp.org>
110341         * lib/hash-pjw.c: Add comment about low quality of this function.
110343 2003-01-13  Bruno Haible  <bruno@clisp.org>
110345         * modules/stpcpy: Distribute lib/stpcpy.h.
110346         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
110348 2003-01-13  Bruno Haible  <bruno@clisp.org>
110350         * modules/*: Add a description.
110351         * modules/strpbrk: Fix Makefile.am snippet.
110352         * modules/strtoimax: Fix dependencies.
110353         * modules/strtoumax: Likewise.
110355 2003-01-13  Bruno Haible  <bruno@clisp.org>
110357         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
110358         * modules/alloca (Makefile.am): All object files depend on alloca.h.
110359         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
110361 2003-01-13  Bruno Haible  <bruno@clisp.org>
110363         * gnulib-tool (func_create_testdir): Store config/* files in the main
110364         directory.
110365         * config.rpath: Move to ...
110366         * config/config.rpath: ... here.
110367         * modules/gettext: Contains config/config.rpath, not config.rpath.
110368         * modules/iconv: Likewise.
110370 2003-01-12  Paul Eggert  <eggert@twinsun.com>
110372         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
110373         to avoid collisions with libcurses and libreadline.
110375         * m4/getstr.m4: Remove.
110376         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
110378 2003-01-12  Paul Eggert  <eggert@twinsun.com>
110380         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
110381         to avoid collisions with libcurses and libreadline.
110383         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
110384         * lib/getstr.h, getstr.c: Remove.
110385         * lib/getline.c: Include "getline.h", to check interface.
110386         Move body of old getstr.c here: this defines MIN_CHUNK and
110387         declares getdelim2, which is renamed from getstr.
110388         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
110390         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
110391         All uses changed.
110392         * lib/linebuffer.h: Likewise.
110393         (readline): Remove backward-compatibility macro.
110395 2003-01-12  Paul Eggert  <eggert@twinsun.com>
110397         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
110398         to avoid collisions with libcurses and libreadline.
110399         * getstr: Remove.
110400         * MODULES.html.sh: Remove getstr.
110401         * modules/getline: Depend on unlocked-io, not getstr.
110403 2003-01-12  Jim Meyering  <jim@meyering.net>
110405         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
110407 2003-01-10  Bruno Haible  <bruno@clisp.org>
110409         * modules/alloca: Change Makefile.am requirements. Simplify Include
110410         requirements. Add lib/alloca_.h to file list.
110412 2003-01-10  Bruno Haible  <bruno@clisp.org>
110414         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
110416 2003-01-10  Bruno Haible  <bruno@clisp.org>
110418         * lib/alloca_.h: New file.
110419         * lib/getdate.y: Unconditionally include alloca.h.
110420         * lib/makepath.c: Likewise.
110421         * lib/setenv.c: Likewise.
110422         * lib/userspec.c: Likewise.
110424 2003-01-09  Karl Berry  <karl@gnu.org>
110426         * MODULES.html.sh: include `dirname $0` in PATH, to find
110427         gnulib-tool.
110429 2003-01-09  Bruno Haible  <bruno@clisp.org>
110431         * modules/stdbool: Change configure.ac, Makefile.am requirements.
110432         Simplify Include requirements. Add lib/stdbool.h.in to file list.
110434 2003-01-09  Bruno Haible  <bruno@clisp.org>
110436         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
110438 2003-01-09  Bruno Haible  <bruno@clisp.org>
110440         * lib/stdbool.h.in: New file.
110442 2003-01-09  Bruno Haible  <bruno@clisp.org>
110444         * gnulib-tool (func_all_modules): Ignore files ending in ~.
110445         * MODULES.html.sh: Likewise.
110447 2003-01-08  Jim Meyering  <jim@meyering.net>
110449         * lib/full-write.c: Undefine and define-away `const' after inclusion
110450         of errno.h, not before.  Suggestion from Bruno Haible.
110452 2003-01-08  Bruno Haible  <bruno@clisp.org>
110454         * modules/full-read: Depend on full-write.
110456 2003-01-08  Bruno Haible  <bruno@clisp.org>
110458         * lib/safe-read.c: Include specification header first, to ensure its
110459         selfcontainedness.
110460         * lib/full-write.c: Likewise.
110462 2003-01-07  Jim Meyering  <jim@meyering.net>
110464         * lib/full-write.c: Rework so that it may serve to define full_read,
110465         too.
110466         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
110468 2003-01-07  Bruno Haible  <bruno@clisp.org>
110470         * lib/strtoimax.c: Include <stdint.h> as an alternative to
110471         <inttypes.h>.
110472         * lib/xstrtol.h: Likewise.
110473         * lib/xstrtoimax.c: Likewise.
110474         * lib/xstrtoumax.c: Likewise.
110475         * lib/human.h: Likewise.
110477         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
110478         on systems that have <inttypes.h> but not <stdint.h>.
110480 2003-01-07  Bruno Haible  <bruno@clisp.org>
110482         * MODULES.html.sh: Add copyright notice.
110483         (missed_files): Omit CVS directory entries.
110484         (func_module): Make it work with sed-3.02.
110485         * MODULES.txt: Remove file.
110487 2003-01-06  Jim Meyering  <jim@meyering.net>
110489         * lib/version-etc.c: Update year in translatable copyright string.
110491 2003-01-03  Karl Berry  <karl@gnu.org>
110493         * config/config.{guess,sub}: update from prep.
110495 2003-01-02  Karl Berry  <karl@gnu.org>
110497         * doc/COPYING.DOC: belatedly updated to 1.2.
110499 2003-01-01  Karl Berry  <karl@gnu.org>
110501         * gnulib-tool (func_verify_module): report module name $module in
110502         error message, not $1.
110503         * gnulib-tool (create-testdir): don't complain if destdir couldn't
110504         be created, only if it doesn't exist.
110505         * gnulib-tool (last_checkin_date): don't expand the $Date here.
110507 2002-12-31  Paul Eggert  <eggert@twinsun.com>
110509         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
110511 2002-12-31  Paul Eggert  <eggert@twinsun.com>
110513         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
110514         memcmp if strcoll doesn't work.
110516 2002-12-31  Bruno Haible  <bruno@clisp.org>
110518         * lib/utime.c (utime_null): No need to call ftruncate if the file was
110519         nonempty.
110521 2002-12-31  Bruno Haible  <bruno@clisp.org>
110523         * lib/memcoll.c (STRCOLL): New macro.
110524         (memcoll): Use it.
110526 2002-12-31  Bruno Haible  <bruno@clisp.org>
110528         * lib/localcharset.h: New file.
110529         * lib/localcharset.c: Include it.
110530         * lib/unicodeio.c: Likewise.
110532 2002-12-31  Bruno Haible  <bruno@clisp.org>
110534         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
110535         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
110537 2002-12-31  Bruno Haible  <bruno@clisp.org>
110539         * lib/getline.h: Include <stddef.h>, for size_t.
110541         * lib/unicodeio.h: Include <stddef.h>, for size_t.
110542         * lib/unicodeio.c: Don't include <stddef.h>.
110544 2002-12-31  Bruno Haible  <bruno@clisp.org>
110546         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
110547         HAVE_TM_ZONE.
110549 2002-12-24  Karl Berry  <karl@gnu.org>
110551         * config/config.guess: update from prep.
110553 2002-12-24  Bruno Haible  <bruno@clisp.org>
110555         General infrasructure.
110556         * m4/README: Rewritten.
110557         * m4/onceonly.m4: New file.
110558         * m4/onceonly_2_57.m4: New file.
110560         Module atexit.
110561         * m4/atexit.m4: New file.
110563         Module strtod.
110564         * m4/strtod.m4: New file.
110566         Module strtol.
110567         * m4/strtol.m4: New file.
110569         Module strtoul.
110570         * m4/strtoul.m4: New file.
110572         Module memchr.
110573         * m4/memchr.m4: New file.
110575         Module memcmp.
110576         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
110577         (jm_FUNC_MEMCMP): Invoke it.
110579         Module memcpy.
110580         * m4/memcpy.m4: New file.
110582         Module memmove.
110583         * m4/memmove.m4: New file.
110585         Module memset.
110586         * m4/memset.m4: New file.
110588         Module strcspn.
110589         * m4/strcspn.m4: New file.
110591         Module strpbrk.
110592         * m4/strpbrk.m4: New file.
110594         Module strstr.
110595         * m4/strstr.m4: New file.
110597         Module strerror.
110598         * m4/strerror.m4: New file.
110600         Module mktime.
110601         * m4/mktime.m4: Renamed from jm-mktime.m4.
110602         (gl_PREREQ_MKTIME): New macro.
110603         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
110605         Module malloc.
110606         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
110607         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
110608         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
110610         Module realloc.
110611         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
110612         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
110613         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
110615         Module strftime.
110616         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
110617         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
110618         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
110619         gl_TM_GMTOFF.
110620         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
110622         Module xalloc.
110623         * m4/xalloc.m4: New file.
110625         Module alloca.
110626         * m4/alloca.m4: New file.
110628         Module putenv.
110629         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
110630         (jm_FUNC_PUTENV): Invoke it.
110632         Module setenv.
110633         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
110634         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
110635         when invoked twice.
110636         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
110637         gt_FUNC_SETENV.
110639         Module memrchr.
110640         * m4/memrchr.m4: New file.
110642         Module stpcpy.
110643         * m4/stpcpy.m4: New file.
110645         Module strcase.
110646         * m4/strcase.m4: New file.
110648         Module strdup.
110649         * m4/strdup.m4: New file.
110651         Module strnlen.
110652         * m4/strnlen.m4: New file.
110654         Module strndup.
110655         * m4/strndup.m4: New file.
110657         Module xstrtod.
110658         * m4/xstrtod.m4: New file.
110660         Module xstrtol.
110661         * m4/xstrtol.m4: New file.
110663         Module getdate.
110664         * m4/getdate.m4: New file.
110666         Module unlocked-io.
110667         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
110668         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
110669         * m4/jm-glibc-io.m4n: Remove file.
110671         Module long-options.
110672         * m4/long-options.m4: New file.
110674         Module md5.
110675         * m4/md5.m4: New file.
110677         Module sha.
110678         * m4/sha.m4: New file.
110680         Module getstr.
110681         * m4/getstr.m4: New file.
110683         Module getline.
110684         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
110685         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
110686         <sys/types.h>, for size_t. Use the function name gnu_getline, not
110687         simply getline. Infoke gl_PREREQ_GETLINE.
110689         Module obstack.
110690         * m4/obstack.m4: New file.
110692         Module hash.
110693         * m4/hash.m4: New file.
110695         Module readtokens.
110696         * m4/readtokens.m4: New file.
110698         Module strverscmp.
110699         * m4/strverscmp.m4: New file.
110701         Module stdbool.
110702         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
110703         OSF/1.
110705         Module strtoll.
110706         * m4/strtoll.m4: New file.
110708         Module strtoull.
110709         * m4/strtoull.m4: New file.
110711         Module strtoimax.
110712         * m4/strtoimax.m4: New file.
110714         Module strtoumax.
110715         * m4/strtoumax.m4: New file.
110717         Module xstrtoimax.
110718         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
110719         jm_AC_PREREQ_XSTRTOIMAX.
110720         Moved the strtol prerequisites to strtol.m4.
110721         Moved the strtoll prerequisites to strtoll.m4.
110722         Moved the strtoimax prerequisites to strtoimax.m4.
110724         Module xstrtoumax.
110725         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
110726         jm_AC_PREREQ_XSTRTOUMAX.
110727         Moved the strtoul prerequisites to strtoul.m4.
110728         Moved the strtoull prerequisites to strtoull.m4.
110729         Moved the strtoumax prerequisites to strtoumax.m4.
110731         Module chown.
110732         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
110733         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
110735         Module dup2.
110736         * m4/dup2.m4: New file.
110738         Module ftruncate.
110739         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
110740         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
110742         Module getgroups.
110743         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
110744         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
110746         Module gettimeofday.
110747         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
110748         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
110749         gl_PREREQ_GETTIMEOFDAY.
110751         Module mkdir.
110752         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
110753         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
110755         Module mkstemp.
110756         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
110757         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
110758         jm_AC_TYPE_UINTMAX_T.
110759         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
110761         Module stat.
110762         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
110763         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
110765         Module lstat.
110766         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
110767         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
110769         Module timespec.
110770         * m4/timespec.m4 (gl_TIMESPEC): New macro.
110771         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
110772         * m4/st_mtim.m4: Indentation.
110774         Module nanosleep.
110775         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
110776         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
110777         gl_PREREQ_NANOSLEEP.
110779         Module regex.
110780         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
110781         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
110782         (gl_REGEX): New macro.
110784         Module rename.
110785         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
110786         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
110788         Module rmdir.
110789         * m4/rmdir.m4: New file.
110791         Module utime.
110792         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
110793         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
110794         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
110796         Module dirname.
110797         * m4/dirname.m4: New file.
110799         Module getopt.
110800         * m4/getopt.m4: New file.
110802         Module unistd-safer.
110803         * m4/unistd-safer.m4: New file.
110805         Module fnmatch.
110806         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
110807         declaration.
110808         (gl_PREREQ_FNMATCH_EXTRA): New macro.
110809         (gl_FUNC_FNMATCH_POSIX): New macro.
110810         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
110811         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
110812         simply fnmatch.
110814         Module exclude.
110815         * m4/exclude.m4: New file.
110817         Module human.
110818         * m4/human.m4: New file.
110820         Module acl.
110821         * m4/acl.m4: Nop.
110823         Module backupfile.
110824         * m4/backupfile.m4: New file.
110825         * m4/d-ino.m4: Indentation.
110827         Module fsusage.
110828         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
110829         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
110830         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
110832         Module dirfd.
110833         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
110834         requirements.
110836         Module euidaccess.
110837         * m4/euidaccess.m4: New file.
110839         Module file-type.
110840         * m4/file-type.m4: New file.
110842         Module fileblocks.
110843         * m4/fileblocks.m4: New file.
110845         Module filemode.
110846         * m4/filemode.m4: New file.
110848         Module isdir.
110849         * m4/isdir.m4: New file.
110851         Module lchown.
110852         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
110853         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
110855         Module makepath.
110856         * m4/makepath.m4: New file.
110858         Module modechange.
110859         * m4/modechange.m4: New file.
110861         Module mountlist.
110862         * m4/mountlist.m4: New file.
110863         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
110864         Indentation.
110866         Module path-concat.
110867         * m4/path-concat.m4: New file.
110869         Module pathmax.
110870         * m4/pathmax.m4: New file.
110872         Module same.
110873         * m4/same.m4: New file.
110875         Module save-cwd.
110876         * m4/save-cwd.m4: New file.
110878         Module savedir.
110879         * m4/savedir.m4: New file.
110881         Module xgetcwd.
110882         * m4/xgetcwd.m4: New file.
110883         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
110885         Module xreadlink.
110886         * m4/xreadlink.m4: New file.
110888         Module safe-read.
110889         * m4/safe-read.m4: New file.
110891         Module safe-write.
110892         * m4/safe-write.m4: New file.
110894         Module closeout.
110895         * m4/closeout.m4: New file.
110897         Module stdio-safer.
110898         * m4/stdio-safer.m4: New file.
110900         Module getpass.
110901         * m4/getpass.m4: New file.
110903         Module getugroups.
110904         * m4/getugroups.m4: New file.
110906         Module group-member.
110907         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
110908         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
110910         Module idcache.
110911         * m4/idcache.m4: New file.
110913         Module userspec.
110914         * m4/userspec.m4: New file.
110916         Module gettime.
110917         * m4/clock_time.m4: New file.
110918         * m4/gettime.m4: New file.
110920         Module settime.
110921         * m4/settime.m4: New file.
110923         Module posixtm.
110924         * m4/posixtm.m4: New file.
110926         Module gethostname.
110927         * m4/gethostname.m4: New file.
110929         Module canon-host.
110930         * m4/canon-host.m4: New file.
110932         Module gettext.
110933         * m4/codeset.m4: New file, from gettext-0.11.5.
110934         * m4/gettext.m4: New file, from gettext-0.11.5.
110935         * m4/glibc21.m4: New file, from gettext-0.11.5.
110936         * m4/iconv.m4: New file, from gettext-0.11.5.
110937         * m4/intdiv0.m4: New file, from gettext-0.11.5.
110938         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
110939         * m4/inttypes.m4: New file, from gettext-0.11.5.
110940         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
110941         * m4/isc-posix.m4: New file, from gettext-0.11.5.
110942         * m4/lcmessage.m4: New file, from gettext-0.11.5.
110943         * m4/lib-ld.m4: New file, from gettext-0.11.5.
110944         * m4/lib-link.m4: New file, from gettext-0.11.5.
110945         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
110946         * m4/progtest.m4: New file, from gettext-0.11.5.
110947         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
110948         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
110949         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
110951         Module localcharset.
110952         * m4/localcharset.m4: New file.
110954         Module hard-locale.
110955         * m4/hard-locale.m4: New file.
110957         Module mbswidth.
110958         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
110959         onceonly macros.
110960         * m4/mbrtowc.m4: Add comment.
110962         Module memcasecmp.
110963         * m4/memcasecmp.m4: New file.
110965         Module memcoll.
110966         * m4/memcoll.m4: New file.
110968         Module unicodeio.
110969         * m4/unicodeio.m4: New file.
110971         Module rpmatch.
110972         * m4/rpmatch.m4: New file.
110974         Module yesno.
110975         * m4/yesno.m4: New file.
110977         Module exitfail.
110978         * m4/exitfail.m4: New file.
110980         Module c-stack.
110981         * m4/c-stack.m4 (gl_C_STACK): New macro.
110982         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
110984         Module error.
110985         * m4/error.m4 (gl_ERROR): New macro.
110986         (jm_PREREQ_ERROR): Use onceonly macros.
110988         Module fatal.
110989         * m4/fatal.m4: New file.
110991         Module getloadavg.
110992         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
110993         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
110995         Module getpagesize.
110996         * m4/getpagesize.m4: New file.
110998         Module getusershell.
110999         * m4/getusershell.m4: New file.
111001         Module physmem.
111002         * m4/physmem.m4: New file.
111004         Module posixver.
111005         * m4/posixver.m4: New file.
111007         Module quotearg.
111008         * m4/quotearg.m4: New file.
111010         Module quote.
111011         * m4/quote.m4: New file.
111013         Module readutmp.
111014         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
111016         Module sig2str.
111017         * m4/sig2str.m4: New file.
111019         Other.
111020         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
111021         ulonglong.m4.
111022         * m4/intmax_t.m4: New file.
111023         * m4/d-type.m4: Indentation.
111024         * m4/jm-macros.m4: Update.
111025         * m4/prereq.m4 (jm_PREREQ): Update.
111026         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
111027         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
111028         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
111029         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
111030         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
111031         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
111032         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
111033         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
111034         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
111035         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
111036         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
111037         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
111038         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
111039         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
111040         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
111041         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
111042         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
111043         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
111044         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
111046 2002-12-24  Bruno Haible  <bruno@clisp.org>
111048         * MODULES.txt: Update according to m4/ changes.
111050         Module gettext.
111051         * config.rpath: New file, from gettext-0.11.5.
111053         * modules/*: New module descriptions.
111054         * gnulib-tool: New file.
111055         * MODULES.html.sh: New file.
111057 2002-12-21  Karl Berry  <karl@gnu.org>
111059         * doc/fdl.texi: update to version 1.2.
111061 2002-12-19  Karl Berry  <karl@gnu.org>
111063         * config/config.guess: update from prep.
111065 2002-12-18  Bruno Haible  <bruno@clisp.org>
111067         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
111068         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
111070 2002-12-17  Bruno Haible  <bruno@clisp.org>
111072         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
111073         stdlib.h, string.h.
111075 2002-12-17  Bruno Haible  <bruno@clisp.org>
111077         * lib/canon-host.c (strdup): Remove unused declaration.
111079         * lib/fsusage.c: Include full_read.h.
111080         (get_fs_usage): Use full_read instead of safe_read.
111082         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
111084 2002-12-12  Karl Berry  <karl@gnu.org>
111086         * config/config.guess: update from prep.
111088 2002-12-11  Bruno Haible  <bruno@clisp.org>
111090         * m4/setenv.m4: New file, from gettext-0.11.5.
111092 2002-12-11  Bruno Haible  <bruno@clisp.org>
111094         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
111095         not unsetenv().
111096         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
111097         modifications:
111099         2002-12-11  Bruno Haible  <bruno@clisp.org>
111101                 * setenv.c (alloca): Fall back to malloc.
111102                 (freea): New macro.
111103                 (setenv): Use freea() to free memory allocated with alloca().
111105         2002-11-13  Bruno Haible  <bruno@clisp.org>
111107                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
111108                 function declarations.
111109                 * unsetenv.c (unsetenv): Likewise.
111111         2002-03-04  Bruno Haible  <bruno@clisp.org>
111113                 Portability to AIX 4.3.3.
111114                 * unsetenv.c: New file, extracted from setenv.c.
111115                 * setenv.c: Move the unsetenv() function to unsetenv.c.
111117         2001-12-20  Bruno Haible  <bruno@clisp.org>
111119                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
111120                 use malloc instead. For SunOS 4.
111122         2001-12-11  Bruno Haible  <bruno@clisp.org>
111124                 * setenv.c: Declare alloca.
111125                 (compar_fn_t): New typedef.
111126                 (KNOWN_VALUE, STORE_VALUE): Use it.
111128         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
111129         setenv.h.
111131 2002-12-10  Paul Eggert  <eggert@twinsun.com>
111133         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
111134         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
111135         Choose values that are less likely to collide with system fnmatch
111136         options.
111137         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
111138         defined (e.g., a pure POSIX system).
111139         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
111140         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
111142 2002-12-06  Paul Eggert  <eggert@twinsun.com>
111144         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
111145         a pain in practice to deal with generated m4 files.  This change
111146         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
111148         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
111149         and jm-glibc-io.m4, as they are no longer a special case.
111150         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
111151         kludge and the auto-generation stuff.  Check only whether the
111152         functions are declared, not whether they exist, since older hosts
111153         that don't declare the functions can't use the optimization anyway.
111155 2002-12-06  Jim Meyering  <jim@meyering.net>
111157         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
111159         Merge in changes from libc's misc/error.c, in preparation
111160         for the merge of gnulib's changes back into libc.
111162         * lib/error.c (_): Define only if not already defined.
111163         Move definition to follow all #include directives.
111164         Include unlocked-io.h only if !_LIBC.
111165         [_LIBC]: Include <libio/libioP.h>.
111166         [USE_IN_LIBIO]: Include <libio/iolibio.h>
111167         (fflush): Tweak definition to use INTUSE.
111168         (putc): Define.
111170 2002-12-05  Paul Eggert  <eggert@twinsun.com>
111172         * lib/alloca.c [defined emacs]: Include "lisp.h".
111173         (xalloc_die) [defined emacs]: New macro.
111174         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
111175         [! defined emacs]: Include <xalloc.h>.
111176         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
111177         (pointer): Typedef to POINTER_TYPE *.
111178         (malloc): Remove decl; we now always use xmalloc.
111179         (alloca): Use old-style definition, since Emacs needs this.
111180         Check for arithmetic overflow when computing combined size.
111182 2002-12-04  Paul Eggert  <eggert@twinsun.com>
111184         Do not generate unlocked-io.h automatically, since it's easier to
111185         maintain it by hand.
111187         * lib/unlocked-io.h: New file, from GNU diffutils,
111188         but with proper copyright notice and attribution.
111189         * lib/gen-uio: Remove.
111190         * lib/Makefile.am: Add copyright notice.
111191         (libfetish_a_SOURCES): Add unlocked-io.h.
111192         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
111193         (DISTCLEANFILES, io_functions): Remove macros.
111194         (EXTRA_DIST): Remove gen_uio.
111195         (unlocked-io.h): Remove rule.
111197 2002-12-04  Jim Meyering  <jim@meyering.net>
111199         Reflect the fact that stat.c and lstat.c are no longer generated.
111200         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
111201         (DISTCLEANFILES): Likewise.
111202         (EXTRA_DIST): Likewise.
111203         (all_local): Don't depend on stat.c or lstat.c.
111204         (stat.c, lstat.c): Remove rules.
111205         (EXTRA_DIST): Remove xstat.in.
111207         * lib/xstat.in: Remove file.  Contents moved into stat.c.
111208         * lib/stat.c: New file.  Contents mostly from xstat.in.
111209         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
111210         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
111212         * lib/safe-read.c: Rework so that it may serve to define safe_write,
111213         too.
111214         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
111216 2002-12-03  Jim Meyering  <jim@meyering.net>
111218         * lib/safe-read.c, safe-write.c: Change variable names and comments,
111219         but not semantics, to minimize the differences between these two files.
111220         (safe_read): Change comment to mention SAFE_READ_ERROR.
111222         * lib/safe-read.c (IS_EINTR): Define.
111223         (safe_read): Use IS_EINTR in place of in-function cpp directives.
111225 2002-12-02  Jim Meyering  <jim@meyering.net>
111227         * lib/safe-read.c (EINTR): Define.
111228         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
111229         (INT_MAX): Provide fallback.
111230         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
111232         * lib/safe-read.h (SAFE_READ_ERROR): Define.
111234 2002-12-02  Bruno Haible  <bruno@clisp.org>
111236         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
111237         Define, taken from safe-read.c.
111238         (INT_MAX): Provide fallback.
111239         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
111240         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
111242         * lib/safe-read.c (EINTR): Remove definition.
111243         (safe_read): Don't use EINTR if it is absent.
111245 2002-12-01  Jim Meyering  <jim@meyering.net>
111247         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
111248         zero.
111249         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
111251 2002-11-27  Paul Eggert  <eggert@twinsun.com>
111253         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
111254         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
111255         with `if (! (value < limit)) abort ();', for readability.
111257 2002-11-26  Karl Berry  <karl@gnu.org>
111259         * lib/strdup.c: copy from libc again, with jim's ok.
111260         * lib/.cppi-disable: re-add strdup.c
111262 2002-11-25  Karl Berry  <karl@gnu.org>
111264         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
111265         instead of "strtol.c".
111267 2002-11-25  Karl Berry  <karl@gnu.org>
111269         * config/install-sh: update from automake for variable quoting, $0 in
111270         error msgs, etc.
111272         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
111273         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
111274         entry.
111276 2002-11-25  Jim Meyering  <jim@meyering.net>
111278         * lib/mktime.c: Sync from libc, now that it has the latest fix.
111280 2002-11-24  Karl Berry  <karl@gnu.org>
111282         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
111283         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
111285 2002-11-24  Jim Meyering  <jim@meyering.net>
111287         Update from coreutils:
111289         * lib/mktime.c: Merge in changes from libc.
111291         Avoid a link-time failure on some Linux systems.
111292         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
111293         (otherwise).
111294         (__mon_yday): Declare with the STATIC attribute.
111295         (__mktime_internal): Likewise.
111296         Based on a report from Greg Schafer.
111298 2002-11-23  Jim Meyering  <jim@meyering.net>
111300         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
111301         Use `unsigned', not `int', as type of index.
111303         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
111305         * lib/fsusage.c: Remove unneeded parentheses around operands of
111306         `defined'.
111308 2002-11-22  Paul Eggert  <eggert@twinsun.com>
111310         * lib/quotearg.h: Allow multiple inclusion by surrounding with
111311         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
111312         so that we can be included first.
111313         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
111314         * lib/quotearg.c: Include quotearg.h immediately after config.h.
111315         No need to include stddef.h or sys/types.h any more.
111316         Surround local include files with "", not "<>".
111317         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
111318         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
111319         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
111320         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
111321         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
111322         (ISPRINT): Remove; no longer needed now that we assume C89.
111324         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
111325         Preserve errno.
111327         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
111328         quotearg_char): Use SIZE_MAX rather than
111329         (size_t) -1 when we are talking about "infinity".
111331         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
111333 2002-11-22  Paul Eggert  <eggert@twinsun.com>
111335         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
111336         hint that one should use `if (! x) abort ();' rather than `assert
111337         (x);', and anyway it's one less thing to worry about configuring.
111338         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
111339         hash_rehash, hash_insert): Use abort rather than assert.
111341 2002-11-22  Bruno Haible  <bruno@clisp.org>
111343         * lib/safe-read.h: Assume C89. Add comments.
111344         (safe_read): Change return type to size_t.
111345         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
111346         byte counts > SSIZE_MAX correctly.
111347         * lib/safe-write.h: New file.
111348         * lib/safe-write.c: New file.
111349         * lib/full-read.h: New file.
111350         * lib/full-read.c: New file.
111351         * lib/full-write.h: Assume C89. Add comments.
111352         * lib/full-write.c: Include safe-write.h.
111353         (full_write): Rewritten to use safe_write.
111354         Suggested by Jim Meyering and Paul Eggert.
111356 2002-11-21  Jim Meyering  <jim@meyering.net>
111358         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
111360         Merge in changes from the coreutils.
111362         2002-09-25  Paul Eggert  <eggert@twinsun.com>
111363         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
111364         <stdint.h>.
111365         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
111366         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
111367         int.  Work more efficiently if X is the same width as uintmax_t.
111368         Do not compare X to -1, to avoid bogus compiler warning.
111369         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
111370         Don't assume that f_frsize and f_bsize are the same type.
111372         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
111373         warning on FreeBSD.
111375         * lib/makepath.c (make_path): Restore umask *before* creating the final
111376         component.
111377         (make_path): Minor reformatting.
111379         * lib/xmalloc.c: Adjust to work with new autoconf macros,
111380         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
111381         HAVE_MALLOC/HAVE_REALLOC.
111383         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
111384         dummy ones.  At least on GNU/Linux systems, `auto' means something
111385         else.
111386         From Michael Stone.
111388 2002-11-21  Bruno Haible  <bruno@clisp.org>
111390         Remove case insensitive option matching.
111391         * lib/argmatch.h (argcasematch): Remove declaration.
111392         (ARGCASEMATCH): Remove macro.
111393         (__xargmatch_internal): Remove case_sensitive argument.
111394         (XARGMATCH): Update.
111395         (XARGCASEMATCH): Remove macro.
111396         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
111397         case_sensitive argument.
111398         (argcasematch): Remove function.
111399         (__xargmatch_internal): Remove case_sensitive argument.
111400         (main): Use XARGMATCH instead of XARGCASEMATCH.
111402         * lib/xmalloc.c: Change compile-time error message. Add comment about
111403         required autoconf version.
111405 2002-11-20  Paul Eggert  <eggert@twinsun.com>
111407         Merge argmatch cleanups from Bison.  Assume C89.
111409         * lib/argmatch.c: Include config.h here, not in argmatch.h.
111410         Include stdlib.h, for EXIT_FAILURE.
111411         Always include <string.h>, since we assume C89.
111412         (EXIT_FAILURE): Remove pre-C89 bug workaround.
111413         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
111414         Include <stddef.h> instead, since it's all we need for size_t.
111415         (PARAMS): Remove.  All uses removed.
111416         (ARRAY_CARDINALITY): Do not bother to #undef.
111417         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
111418         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
111419         Remove unnecessary parentheses.
111420         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
111421         Insert necessary parentheses.
111422         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
111423         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
111425 2002-11-19  Bruno Haible  <bruno@clisp.org>
111427         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
111428         * lib/mbswidth.h: Include <stddef.h>, for size_t.
111430         * lib/mbswidth.h (PARAMS): Remove macro.
111431         (mbswidth, mbsnwidth): Use ANSI C function declarations.
111432         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
111434         * lib/gcd.h (PARAMS): Remove macro.
111435         (gcd): Use ANSI C function declarations.
111436         * lib/gcd.c (gcd): Likewise.
111438 2002-11-15  Bruno Haible  <bruno@clisp.org>
111440         * lib/strcspn.c: Include <stddef.h>.
111441         (strcspn): Use ANSI C function declaration. Change return type to
111442         size_t. Use NULL.
111443         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
111444         (strpbrk): Use NULL.
111445         * lib/strpbrk.h (PARAMS): Remove macro.
111446         (strpbrk): Use ANSI C function declaration.
111447         * lib/strstr.c: Don't include <sys/types.h>.
111448         * lib/strstr.h (PARAMS): Remove macro.
111449         (strstr): Use ANSI C function declarations.
111451 2002-11-14  Karl Berry  <karl@gnu.org>
111453         * config/mkinstalldirs: `do' on separate line, instead of
111454         `for var; do'.
111456 2002-11-06  Bruno Haible  <bruno@clisp.org>
111458         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
111459         * lib/gcd.c (gcd): Likewise.
111461 2002-11-05  Bruno Haible  <bruno@clisp.org>
111463         * lib/gcd.h: New file, from gettext-0.11.5.
111464         * lib/gcd.c: New file, from gettext-0.11.5.
111466 2002-11-05  Bruno Haible  <bruno@clisp.org>
111468         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
111469         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
111470         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
111471         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
111473         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
111474         <libintl.h>.
111475         * lib/makepath.c: Include gettext.h instead of <locale.h> and
111476         <libintl.h>.
111478         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
111479         * lib/human.c: Include gettext.h instead of <libintl.h>.
111480         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
111481         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
111482         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
111483         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
111484         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
111485         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
111486         (textdomain): Remove definition.
111487         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
111489         * lib/long-options.c: Remove include of <libintl.h> and definition of
111490         _.
111491         * lib/same.c: Remove include of <libintl.h> and definition of _.
111493 2002-11-04  Owen Taylor  <otaylor@redhat.com>
111495         * lib/config.charset: A few additions for Solaris.
111497 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
111499         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
111500         * lib/localcharset.c (locale_charset): Declare as extern "C".
111502 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
111504         * lib/config.charset: msdos in uk_UA uses CP1125.
111506 2002-11-04  Bruno Haible  <bruno@clisp.org>
111508         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
111509         * lib/strcase.h: New file, from GNU gettext-0.11.5.
111510         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
111511         * lib/strstr.h: New file, from GNU gettext-0.11.5.
111512         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
111514 2002-11-04  Bruno Haible  <bruno@clisp.org>
111516         * lib/localcharset.c (locale_charset): Don't return an empty string.
111518 2002-11-04  Bruno Haible  <bruno@clisp.org>
111520         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
111521         aliases.
111523 2002-11-04  Bruno Haible  <bruno@clisp.org>
111525         * lib/config.charset: Update for newest glibc. Add canonical names
111526         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
111528 2002-11-04  Bruno Haible  <bruno@clisp.org>
111530         * lib/config.charset: Add support for NetBSD.
111532 2002-11-04  Bruno Haible  <bruno@clisp.org>
111534         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
111536 2002-11-01  Bruno Haible  <bruno@clisp.org>
111538         * configure.in: Add AC_CONFIG_AUX_DIR call.
111539         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
111540         test/Makefile.
111541         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
111543 2002-09-28  Karl Berry  <karl@gnu.org>
111545         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
111546         installed automake until the next release, since changes have been
111547         made.
111549 2002-09-25  Karl Berry  <karl@gnu.org>
111551         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
111552         * lib/getopt*: copy from libc/posix.
111553         * lib/gettext.h: copy from gettext.
111554         * lib/.cppi-disable: add strdup.c, gettext.h.
111556 2002-09-25  Karl Berry  <karl@gnu.org>
111558         * config/srclist.txt: enable gettext.h check.
111559         * config/config.{guess,sub}: update from prep.
111560         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
111561                 from automake 1.6.3.
111562         See srclist*.
111564 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
111566         * regex.c (PATFETCH): Remove the translating fetch.
111567         (PATFETCH_RAW): Rename to PATFETCH.
111568         (set_image_of_range): New fun.
111569         (SET_RANGE_TABLE_WORK_AREA): Use it.
111570         (regex_compile): Don't translate the pattern chars so eagerly.
111571         Only do it when inserting an `exactn' bytecode or when handling
111572         a char-range.
111573         (mutually_exclusive_p): Avoid empty statement.
111575 2002-07-06  Jim Meyering  <meyering@lucent.com>
111577         * m4/README: Don't mention Makefile.am.in.
111578         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
111580 2002-07-01  Jim Meyering  <meyering@lucent.com>
111582         * lib/c-stack.c: Include sys/time.h.
111583         From Volker Borchert.
111585 2002-06-26  Paul Eggert  <eggert@twinsun.com>
111587         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
111589 2002-06-26  Paul Eggert  <eggert@twinsun.com>
111591         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
111592         New macro.  Use it uniformly instead of
111593         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
111594         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
111595         reported by Vin Shelton.
111597 2002-06-22  Paul Eggert  <eggert@twinsun.com>
111599         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
111600         Do not assume SA_SIGINFO behavior.
111601         Bug reported by Jim Meyering on NetBSD 1.5.2.
111603 2002-06-22  Jim Meyering  <meyering@lucent.com>
111605         * m4/c-stack.m4: New file, from diffutils-2.8.2.
111606         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
111608         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
111609         now that configure.ac uses AC_GNU_SOURCE.
111610         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
111611         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
111613         Update to latest tools.  Suggestions from Paul Eggert.
111614         * m4/stdbool.m4: New file, from diffutils-2.8.2.
111615         * m4/gnu-source.m4: Update from diffutils-2.8.2.
111616         * m4/fnmatch.m4: Likewise.
111617         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
111618         to AC_HEADER_STDBOOL
111620 2002-06-22  Jim Meyering  <meyering@lucent.com>
111622         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
111623         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
111625 2002-06-22  Jim Meyering  <meyering@lucent.com>
111627         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
111629         * lib/exitfail.c, exitfail.h: Likewise.
111630         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
111632         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
111633         of fnmatch.h.
111634         (EXTRA_DIST): Add fnmatch_loop.c.
111635         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
111637         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
111638         * lib/fnmatch.c: Update from diffutils-2.8.2.
111639         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
111640         * lib/fnmatch.h: Remove file.
111642 2002-06-21  Jim Meyering  <meyering@lucent.com>
111644         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
111645         * m4/mbrtowc.m4: Likewise.
111647         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
111648         * m4/mbswidth.m4: Reflect name change:
111649         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
111650         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
111652         * m4/lib-link.m4: Update from gettext-0.11.2.
111653         * m4/gettext.m4: Likewise.
111655         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
111656         From Alfred M. Szmidt.
111658 2002-06-18  Paul Eggert  <eggert@twinsun.com>
111660         * lib/file-type.h: Report an error if neither S_ISREG nor
111661         S_IFREG is defined, instead of using a test specific to glibc
111662         2.2.  This should be safe, since POSIX requires S_ISREG and
111663         Unix Version 7 had S_IFREG.  We don't need to check for
111664         <sys/types.h> since we don't use any symbols that it defines.
111666 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
111668         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
111669         $@-t, so that each temporary file name is unique and valid in the first
111670         8 characters, for operation under DOS.
111672 2002-06-15  Paul Eggert  <eggert@twinsun.com>
111674         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
111676 2002-06-15  Jim Meyering  <meyering@lucent.com>
111678         Work even with DJGPP 2.03, which lacks support for symlinks.
111679         From Richard Dawe.
111680         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
111681         is defined.
111682         * lib/lchown.c (S_ISLNK): Likewise.
111684 2002-06-15  Jim Meyering  <meyering@lucent.com>
111686         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
111687         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
111688         have been included before this file.
111690 2002-06-14  Jim Meyering  <meyering@lucent.com>
111692         * lib/file-type.h: Use the version from diffutils-2.8.2.
111693         * lib/file-type.c: Likewise.
111695 2002-06-07  Jim Meyering  <meyering@lucent.com>
111697         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
111698         They're needed at least for NetBSD 1.5.2.
111699         ($statxfs_includes): Include those same headers.
111700         ($statxfs_includes): Include sys/vfs.h if available.
111701         ($statxfs_includes): Likewise for sys/statvfs.h.
111702         Check for the following members in both structs statfs and statvfs:
111703         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
111705 2002-06-01  Jim Meyering  <meyering@lucent.com>
111707         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
111708         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
111710 2002-05-28  Jim Meyering  <meyering@lucent.com>
111712         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
111713         Reported by Volker Borchert.
111715 2002-05-27  Jim Meyering  <meyering@lucent.com>
111717         Fix a problem seen only on nonconforming systems whereby ls.c's
111718         use of localtime, and then of gettimeofday would cause trouble:
111719         the localtime call used to initialize rpl_gettimeofday's save
111720         mechanism would clobber ls's current local time information so
111721         that in any long listing the first file would always be listed
111722         with date 1970-01-01.  Analysis by Volker Borchert.
111724         * lib/gettimeofday.c (localtime): Undefine.
111725         (rpl_localtime): New function.
111727 2002-05-27  Jim Meyering  <meyering@lucent.com>
111729         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
111730         localtime.
111732         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
111733         use the replacement function; it wouldn't resolve at link time.
111734         Reported by Volker Borchert.
111736 2002-05-22  Jim Meyering  <meyering@lucent.com>
111738         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
111739         file-type.h.
111740         * lib/file-type.h: New file.
111741         * lib/file-type.c (file_type): New file/function.  Extracted from
111742         diffutils.
111744 2002-04-30  Jim Meyering  <meyering@lucent.com>
111746         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
111748 2002-04-29  Paul Eggert  <eggert@twinsun.com>
111750         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
111752 2002-04-29  Paul Eggert  <eggert@twinsun.com>
111754         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
111755         Do not check for alloca.h (no longer used) or stdbool.h (was never
111756         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
111758 2002-04-29  Paul Eggert  <eggert@twinsun.com>
111760         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
111762 2002-04-29  Jim Meyering  <meyering@lucent.com>
111764         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
111765         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
111766         Use AC_FUNC_STRNLEN here instead.
111768         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
111769         With autoconf-2.53a, it's part of AC_PROG_CC.
111771 2002-04-28  Paul Eggert  <eggert@twinsun.com>
111773         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
111774         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
111776 2002-04-28  Paul Eggert  <eggert@twinsun.com>
111778         * lib/sig2str.h, lib/sig2str.c: New files.
111779         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
111781 2002-04-28  Paul Eggert  <eggert@twinsun.com>
111783         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
111784         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
111785         of 127, since 64 is the largest conceivable number for ancient
111786         nonstandard hosts.
111787         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
111789 2002-04-28  Jim Meyering  <meyering@lucent.com>
111791         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
111793 2002-04-24  Jim Meyering  <meyering@lucent.com>
111795         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
111796         (jm_PREREQ): Use it.
111798         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
111799         mach/mach.h fcntl.h.
111800         Check for this function: setlocale.
111802 2002-04-24  Jim Meyering  <meyering@lucent.com>
111804         * lib/gettext.h: New file, from Gettext.
111805         * lib/Makefile.am (INCLUDES): Remove -I../intl.
111806         (libfetish_a_SOURCES): Add gettext.h.
111808 2002-04-16  Jim Meyering  <meyering@lucent.com>
111810         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
111811         ut_pid, ut_id, ut_exit.
111813 2002-04-16  Jim Meyering  <meyering@lucent.com>
111815         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
111816         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
111817         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
111819 2002-04-12  Jim Meyering  <meyering@lucent.com>
111821         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
111822         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
111823         existence of the getmntinfo function.  Needed for Darwin 5.3.
111825         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
111826         This is necessary at least on Darwin 5.3.
111828         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
111829         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
111830         strnlen.o in the library, and that makes some versions of ranlib
111831         object.
111833 2002-04-12  Jim Meyering  <meyering@lucent.com>
111835         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
111837 2002-04-09  Jim Meyering  <meyering@lucent.com>
111839         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
111840         to be more precise.  Rather than saying we're checking whether the
111841         function `works', say what we're testing.
111842         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
111843         Reported by Bruno Haible.
111845 2002-03-10  Jim Meyering  <meyering@lucent.com>
111847         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
111848         Suggestion from Santiago Vila.
111850 2002-03-08  Jim Meyering  <meyering@lucent.com>
111852         * lib/rename.c: Mention that this wrapper is needed also on
111853         mips-dec-ultrix4.4 systems.
111855 2002-03-02  Jim Meyering  <meyering@lucent.com>
111857         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
111858         not HAVE_CLOCK_SETTIME.
111860 2002-02-27  Paul Eggert  <eggert@twinsun.com>
111862         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
111863         Check for clock_settime.
111865 2002-02-27  Paul Eggert  <eggert@twinsun.com>
111867         * lib/nanosleep.h: Rename to....
111868         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
111870         * lib/gettime.c: New file.
111871         * lib/settime.c: New file.
111872         * lib/stime.c: Remove.
111874         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
111875         timespec.h.  Remove nanosleep.h.
111877 2002-02-25  Paul Eggert  <eggert@twinsun.com>
111879         * m4/acl.m4: New file.
111880         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
111881         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
111883 2002-02-25  Paul Eggert  <eggert@twinsun.com>
111885         * lib/acl.c, lib/acl.h: New files.
111886         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
111888 2002-02-24  Jim Meyering  <meyering@lucent.com>
111890         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
111891         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
111892         cause trouble.  Reported by Nelson Beebe.
111894 2002-02-23  Paul Eggert  <eggert@twinsun.com>
111896         * lib/path-concat.c (xpath_concat): Reorder code to pacify
111897         compilers that don't know that xalloc_die never returns.
111899 2002-02-20  Jim Meyering  <meyering@lucent.com>
111901         * lib/getdate.c: Regenerate using bison-1.33.
111903 2002-02-17  Jim Meyering  <meyering@lucent.com>
111905         * config/config.guess (main): Don't use `head -1'; it's no longer
111906         portable. Use `sed 1q' instead.
111908 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
111910         * m4/codeset.m4: Upgrade to gettext-0.11.
111911         * m4/gettext.m4: Upgrade to gettext-0.11.
111912         * m4/glibc21.m4: Upgrade to gettext-0.11.
111913         * m4/iconv.m4: Upgrade to gettext-0.11.
111914         * m4/isc-posix.m4: Upgrade to gettext-0.11.
111915         * m4/lcmessage.m4: Upgrade to gettext-0.11.
111916         * m4/lib-ld.m4: New file, from gettext-0.11.
111917         * m4/lib-link.m4: New file, from gettext-0.11.
111918         * m4/lib-prefix.m4: New file, from gettext-0.11.
111919         * m4/progtest.m4: Upgrade to gettext-0.11.
111921 2002-02-15  Paul Eggert  <eggert@twinsun.com>
111923         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
111924         (jm_PREREQ): Use it.
111926 2002-02-15  Paul Eggert  <eggert@twinsun.com>
111928         * lib/posixver.c, lib/posixver.h: New files.
111929         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
111931 2002-02-02  Paul Eggert  <eggert@twinsun.com>
111932             Bruno Haible  <bruno@clisp.org>
111934         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
111935         (fwrite_success_callback): New declaration.
111936         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
111937         print_unicode_char. Call failure callback instead of error.
111938         (fwrite_success_callback): New function.
111939         (exit_failure_callback): New function.
111940         (fallback_failure_callback): New function.
111941         (print_unicode_char): Call unicode_to_mb.
111943 2002-01-26  Jim Meyering  <meyering@lucent.com>
111945         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
111946         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
111948 2002-01-26  Jim Meyering  <meyering@lucent.com>
111950         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
111952 2002-01-22  Paul Eggert  <eggert@twinsun.com>
111954         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
111956 2002-01-22  Jim Meyering  <meyering@lucent.com>
111958         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
111959         Otherwise, some versions of automake would omit the rule that makes
111960         Makefile from Makefile.in.
111962 2002-01-21  Paul Eggert  <eggert@twinsun.com>
111964         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
111965         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
111966         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
111967         (memcoll): Set errno to zero if there is no error.
111969         * lib/quotearg.c (quotearg_buffer_restyled):
111970         Fix bug with quoting buffers containing NUL when backslashing escapes.
111971         This bug was exposed by the other changes in this patch.
111972         (quotearg_n_options): New arg ARGSIZE.
111973         All callers changed.
111974         (quoting_options_from_style): New function.
111975         (quotearg_n_style): Use it.
111976         (quotearg_n_style_mem): New function.
111978         * lib/quotearg.h (quotearg_n_style_mem): New function.
111980 2002-01-19  Jim Meyering  <meyering@lucent.com>
111982         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
111983         Remove useless quotes: DF_PROG="df".
111984         * m4/strnlen.m4: New file.
111986 2002-01-16  Paul Eggert  <eggert@twinsun.com>
111988         * lib/backupfile.c (ISDIGIT): Comment fix.
111989         * lib/getdate.y (ISDIGIT): Likewise.
111990         * lib/posixtm.c (ISDIGIT, year): Likewise.
111991         * lib/strverscmp.c (ISDIGIT): Likewise.
111992         * lib/userspec.c (ISDIGIT): Likewise.
111994 2002-01-16  Jim Meyering  <meyering@lucent.com>
111996         * lib/getdate.y: Add three semicolons, each just before a closing
111997         brace. Bison (as of version 1.31) no longer papers over that mistake.
111999 2002-01-05  Jim Meyering  <meyering@lucent.com>
112001         * lib/version-etc.c (version_etc_copyright): Update copyright year.
112003 2001-12-19  Paul Eggert  <eggert@twinsun.com>
112005         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
112006         not silently exit merely because the output buffer happens to
112007         have nothing pending.
112009 2001-12-18  Paul Eggert  <eggert@twinsun.com>
112011         See the big note in ../ChangeLog.
112012         * lib/human.c (suffixes): Prefer K to k for 1024.
112013         (generate_suffix_backwards): New function.
112014         (human_readable_inexact): Use it.
112015         * lib/xstrtol.c (__xstrtol): If there is no number but there
112016         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
112017         Accept 'K' as well as 'k'.
112019 2001-12-15  Jim Meyering  <meyering@lucent.com>
112021         * lib/regex.h (__restrict_arr): Update from libc.
112023         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
112024         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
112025         (STREQ): Define.
112027 2001-12-14  Jim Meyering  <meyering@lucent.com>
112029         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
112030         Suggestion from Bruno Haible.
112032 2001-12-10  Jim Meyering  <meyering@lucent.com>
112034         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
112035         xrealloc, Instead, include "xalloc.h".
112036         (initbuffer): Don't cast xmalloc return value to char*.
112037         (readline): Reword comment.
112038         Don't cast xrealloc return value to char*
112039         Return NULL, not 0.
112041 2001-12-09  Jim Meyering  <meyering@lucent.com>
112043         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
112044         about `signed and unsigned type in conditional expression'.
112045         * lib/posixtm.c (posix_time_parse): Likewise.
112047         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
112049         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
112050         to avoid a pedantic warning.
112052         * lib/getstr.c: Don't include assert.h.
112053         (getstr): Remove warning-evoking assertions.
112054         Return -1 if offset parameter is out of bounds.
112055         Change the type of a local from int to size_t.
112057         * lib/strftime.c (my_strftime_localtime_r): Include this function
112058         definition in the `#if ! HAVE_TM_GMTOFF' block.
112060         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
112061         Include xalloc.h instead.
112063 2001-12-02  Jim Meyering  <meyering@lucent.com>
112065         * lib/tempname.c: Don't declare getenv, thus reverting the change of
112066         2001-11-18.  It's no longer necessary, now that stdlib.h is always
112067         included.
112069         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
112070         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
112072 2001-11-30  Akim Demaille  <akim@epita.fr>
112074         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
112075         before being defined.
112077 2001-11-27  Paul Eggert  <eggert@twinsun.com>
112079         * lib/quotearg.h (quotearg_n, quotearg_n_style):
112080         First arg is int, not unsigned.
112081         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
112082         (SIZE_MAX, UINT_MAX): New macros.
112083         (quotearg_n_options): Abort if N is negative.
112084         Avoid overflow check on hosts where size_t is 64 bits and int
112085         is 32 bits, as overflow is impossible there.
112086         Fix off-by-one typo that caused unnecessary reallocation.
112088 2001-11-27  Jim Meyering  <meyering@lucent.com>
112090         * lib/tempname.c: Merge with version from libc.
112091         * lib/regex.c: Likewise.
112093         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
112094         systems for which STDC_HEADERS is 0, it was not included, resulting in
112095         a warning about an integer-to-pointer conversion problem with getenv.
112096         Reported by Volker Borchert.
112098 2001-11-26  Jim Meyering  <meyering@lucent.com>
112100         * lib/gtod.h: Remove file.
112101         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
112102         * lib/gettimeofday.c: Don't include gtod.h.
112103         (GTOD_init): Remove function.
112104         (rpl_gettimeofday): Do its job here instead, rather than aborting.
112105         Suggestion from Volker Borchert.
112107 2001-11-23  Jim Meyering  <meyering@lucent.com>
112109         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
112110         it.
112111         * lib/hash.c (struct hash_table): Define it here instead.
112113 2001-11-22  Jim Meyering  <meyering@lucent.com>
112115         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
112117 2001-11-20  Jim Meyering  <meyering@lucent.com>
112119         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
112120         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
112122 2001-11-19  Jim Meyering  <meyering@lucent.com>
112124         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
112125         directory.  Use "conftestXXXXXX" as the template.
112126         Suggestion from Paul Eggert.
112128         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
112129         immediately, so the test doesn't mistakenly hit the max-open-files
112130         limit.
112132 2001-11-18  Paul Eggert  <eggert@twinsun.com>
112134         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
112135         (TEMPORARIES): New macro.
112136         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
112137         removes an artificial limitation (e.g. HP-UX 10.20, where
112138         TMP_MAX is 17576).
112140 2001-11-18  Jim Meyering  <meyering@lucent.com>
112142         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
112144 2001-11-18  Jim Meyering  <meyering@lucent.com>
112146         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
112147         on SunOS 4.
112149         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
112150         files will be created before anything else.
112152 2001-11-17  Paul Eggert  <eggert@twinsun.com>
112154         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
112155         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
112157 2001-11-17  Jim Meyering  <meyering@lucent.com>
112159         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
112160         Prompted by a report from Bob Proulx.
112162         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
112163         Instead, require UTILS_FUNC_MKSTEMP.
112165 2001-11-17  Jim Meyering  <meyering@lucent.com>
112167         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
112168         Now, that's done as part of AC_FUNC_STRTOD.
112170 2001-11-17  Jim Meyering  <meyering@lucent.com>
112172         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
112173         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
112174         rather than group writable.  Patch by Juan F. Codagnone.
112176         * lib/readtokens.c: Remove explicit declarations of xmalloc and
112177         xrealloc, Instead, include "xalloc.h".
112179         * lib/mountlist.c: Include unlocked-io.h after all system headers.
112180         Remove explicit declarations of xmalloc, xrealloc,
112181         and xstrdup.  Instead, include "xalloc.h".
112183         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
112184         unlocked-io.h.
112185         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
112186         Likewise.
112187         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
112189         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
112190         Reported by Padraig Brady.
112192         * lib/mkstemp.c: #undef mkstemp.
112193         Include config.h.
112194         (rpl_mkstemp): Rename from mkstemp.
112195         Protoize.
112197 2001-11-16  Jim Meyering  <meyering@lucent.com>
112199         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
112200         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
112201         determine the amount of total physical memory, use pstat_getstatic.
112202         HPUX-11 doesn't define _SC_PHYS_PAGES.
112203         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
112204         If sysconf couldn't be used to determine the amount of available
112205         physical memory, use both pstat_getstatic and pstat_getdynamic.
112206         Based on a patch from Bob Proulx.
112208 2001-11-10  Jim Meyering  <meyering@lucent.com>
112210         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
112211         (jm_PREREQ): Use it.
112213 2001-11-09  Jim Meyering  <meyering@lucent.com>
112215         * m4/jm-macros.m4: Require autoconf-2.52f.
112216         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
112217         Use these AC_-prefixed names, not the AM_-prefixed ones.
112219         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
112221 2001-11-05  Jim Meyering  <meyering@lucent.com>
112223         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
112225 2001-11-04  Jim Meyering  <meyering@lucent.com>
112227         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
112228         $DEFS.
112230 2001-11-03  Jim Meyering  <meyering@lucent.com>
112232         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
112233         of AC_DEFUN.
112235         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
112236         know the name of the variable in the macro definition.
112238 2001-11-03  Jim Meyering  <meyering@lucent.com>
112240         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
112241         in argmatch_to_argument call.
112243         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
112244         argument.
112246         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
112247         e.g., a fault due to an attempt to free a NULL pointer.
112249 2001-11-01  Jim Meyering  <meyering@lucent.com>
112251         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
112252         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
112254 2001-11-01  Jim Meyering  <meyering@lucent.com>
112256         * lib/dirfd.c, lib/dirfd.h: New files.
112257         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
112259         * lib/hash.c (hash_print) [TESTING]: Clean up.
112261 2001-10-22  Paul Eggert  <eggert@twinsun.com>
112263         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
112264         to avoid a warning if -Wall.
112266 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
112268         * README: New file
112269         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
112270         (per RMS's instructions, this is now the canonical source)
112271         * lgpl/, gpl/: New directories.
112273 2001-10-21  Paul Eggert  <eggert@twinsun.com>
112275         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
112277 2001-10-21  Jim Meyering  <meyering@lucent.com>
112279         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
112280         this code would end up calling gettext even in packages built
112281         with --disable-nls.
112282         * lib/getopt.c (_): Likewise.
112283         * lib/regex.c (_): Likewise.
112285 2001-10-20  Paul Eggert  <eggert@twinsun.com>
112287         * m4/error.m4 (jm_PREREQ_ERROR):
112288         Do not invoke AC_CHECK_FUNCS with strerror_r, as
112289         AC_FUNC_STRERROR_R does that.
112290         Check for strerror declaration.
112292         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
112293         are supposed to have them these days.
112294         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
112295         Merge changes from latest Autoconf CVS.
112296         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
112297         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
112298         POSIX decided to standardize on the int flavor of strerror_r.
112300 2001-10-20  Paul Eggert  <eggert@twinsun.com>
112302         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
112303         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
112304         Use strerror_r that is only a macro, even if it is not a function.
112305         (strerror): Check for HAVE_DECL_STRERROR before declaring.
112306         (private_strerror): Use prototypes, not old-style function definition.
112307         (print_errno_message): New function.
112308         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
112309         char*-flavored one.
112310         (error_tail, error, error_at_line): Use it.
112312 2001-10-11  Jim Meyering  <meyering@lucent.com>
112314         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
112315         and quote_n (1, ... to avoid clobbering a buffer.
112317 2001-10-05  Jim Meyering  <meyering@lucent.com>
112319         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
112320         hash-pjw.h.
112321         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
112322         * lib/hash-pjw.h: New file.
112324 2001-09-30  Jim Meyering  <meyering@lucent.com>
112326         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
112327         `struct fsstat' has the `f_fstypename' member.
112328         Use that to define FS_TYPE, which is now used to make
112329         the getfsstat link test tighter.
112331 2001-09-30  Jim Meyering  <meyering@lucent.com>
112333         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
112334         Include <sys/ucred.h>, for Apple Darwin.
112335         Include sys/mount.h and sys/fs_types.h only if available.
112336         (FS_TYPE): Define.
112337         (read_filesystem_list): Use FS_TYPE.
112339 2001-09-29  Paul Eggert  <eggert@twinsun.com>
112341         * lib/exclude.c (excluded_filename): 0 -> false, since it's
112342         a boolean context.
112344 2001-09-29  Jim Meyering  <meyering@lucent.com>
112346         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
112347         [one-argument getmntent function]): Include stdio.h before mntent.h.
112348         SunOS 4.1.x needs it for the declaration of `FILE'.
112349         Patch by Volker Borchert.
112351         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
112352         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
112353         sys/fs_types.h, and make the link-test for getfsstat guard #include
112354         directives with appropriate #if HAVE_*_H tests so that we can
112355         detect getfsstat on Apple Darwin1.3.7 systems.
112356         Reported by Nelson Beebe.
112357         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
112359 2001-09-28  Paul Eggert  <eggert@twinsun.com>
112361         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
112362         #defines strtoimax.  Also treat the other strto* functions
112363         like strtoimax.
112365         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
112366         Check for strtoul and strtoumax,
112367         as those declarations are made even in the signed case.
112368         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
112369         Likewise, for strtol and strtoimax.
112371 2001-09-28  Paul Eggert  <eggert@twinsun.com>
112373         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
112374         #defines strtoimax.  Also treat the other strto* functions
112375         like strtoimax.
112377         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
112378         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
112379         (strtoimax, strtoumax): Do not declare if already defined as a macro.
112381 2001-09-26  Jim Meyering  <meyering@lucent.com>
112383         Most macros in unlocked-io.h had the wrong number of arguments.
112384         * lib/gen-uio: New script.
112385         (USE_UNLOCKED_IO): Define to 1 if not already defined.
112386         * lib/unlocked-io.hin: Remove file.
112387         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
112388         rather than trying to embed it here.
112389         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
112390         Reported by Padraig Brady.
112392 2001-09-25  Volker Borchert  <bt@teknon.de>
112394         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
112395         `result'.
112397 2001-09-24  Jim Meyering  <meyering@lucent.com>
112399         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
112401 2001-09-23  Jim Meyering  <meyering@lucent.com>
112403         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
112404         instead of the mere test for existence of mntent.h.  The latter
112405         would get a false-positive on AIX 3.4 systems.
112406         In the outer getmntent if-block, don't die if neither of the getmntent
112407         tests succeeds.  Instead, just fall through and continue with the
112408         remaining tests.
112410 2001-09-23  Jim Meyering  <meyering@lucent.com>
112412         * lib/mountlist.c: Remove useless parentheses in #if directives.
112413         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
112414         the deprecated MOUNTED symbol is no longer defined in mntent.h.
112416 2001-09-22  Jim Meyering  <meyering@lucent.com>
112418         * m4/gettext.m4: New file.  From gettext.
112419         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
112420         * m4/progtest.m4: Likewise
112421         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
112422         * m4/glibc21.m4: Likewise.
112424         * m4/libintl.m4: Remove.  No longer used.
112426 2001-09-22  Jim Meyering  <meyering@lucent.com>
112428         * lib/localcharset.c: Update from latest gettext.
112429         * lib/config.charset: Likewise.
112431 2001-09-20  Jim Meyering  <meyering@lucent.com>
112433         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
112434         strtoimax.
112435         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
112436         strtoumax.
112438 2001-09-20  Jim Meyering  <meyering@lucent.com>
112440         * lib/xstrtol.c (strtoimax): Guard declaration with
112441         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
112442         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
112443         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
112444         (strtoumax): Likewise, for completeness (it wasn't necessary).
112446 2001-09-17  Paul Eggert  <eggert@twinsun.com>
112448         * lib/strtoimax.c (HAVE_LONG_LONG):
112449         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
112450         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
112451         to work around bug in IBM C compiler.
112453 2001-09-17  Jim Meyering  <meyering@lucent.com>
112455         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
112456         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
112457         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
112458         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
112459         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
112460         whenever the right hand side need not be expanded by the shell.
112462 2001-09-16  Paul Eggert  <eggert@twinsun.com>
112464         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
112465         library.  It's not correct, as some older glibcs are buggy.
112466         fnmatch wasn't fixed until glibc 2.2.
112468         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
112469         special shell magic here.
112471 2001-09-16  Jim Meyering  <meyering@lucent.com>
112473         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
112474         * m4/jm-macros.m4: Require it.
112476 2001-09-16  Jim Meyering  <meyering@lucent.com>
112478         * lib/mkdir.c: New file.
112480 2001-09-15  Jim Meyering  <meyering@lucent.com>
112482         * m4/jm-macros.m4: Check for help2man.
112484 2001-09-11  Jim Meyering  <meyering@lucent.com>
112486         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
112487         The body, by Paul Eggert, was moved here from configure.in.
112488         * m4/jm-macros.m4: Require UTILS_HOST_OS.
112490 2001-09-04  Paul Eggert  <eggert@twinsun.com>
112492         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
112493         (jm_PREREQ): Use it.
112495 2001-09-04  Paul Eggert  <eggert@twinsun.com>
112497         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
112498         Use ssize_t, not int, to store result of readlink.
112499         Check for ssize_t overflow as well as size_t overflow,
112500         as POSIX says the result of readlink is implementation-defined
112501         when ssize_t overflows.
112502         Remove unnecessary cast to char*.
112503         Use free+malloc instead of realloc, as the storage doesn't need
112504         to be preserved and it's clearer and can be more efficient that way.
112505         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
112506         * lib/xreadlink.h (xreadlink): Update prototype.
112508 2001-09-04  Paul Eggert  <eggert@twinsun.com>
112510         * lib/xgetcwd.c: Revert some of the previous change; intead,
112511         fix the HAVE_GETCWD_NULL code to behave more like the
112512         !HAVE_GETCWD_NULL code used to.
112514         Include "xalloc.h".
112515         (xgetcwd): Do not return NULL when memory is exhausted; instead,
112516         invoke xalloc_die.
112518 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112520         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
112521         sys/param.h, as pathmax.h includes them.
112523 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112525         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
112526         (jm_PREREQ_XGETCWD): New macro.
112528         * m4/getcwd.m4: New file.
112530 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112532         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
112533         like the HAVE_GETCWD_NULL code.
112534         Include pathmax.h if not HAVE_GETCWD.
112535         Do not include xalloc.h.
112536         (INITIAL_BUFFER_SIZE): New symbol.
112537         Do not use xmalloc / xrealloc, since the caller is responsible for
112538         handling errors.  Preserve errno around `free' during failure.
112539         Do not overrun buffer when using getwd.
112541 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112543         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
112544         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
112545         getcwd (NULL, 0).
112547 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112549         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
112550         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
112551         spotted by Jim Meyering.
112553 2001-09-03  Jim Meyering  <meyering@lucent.com>
112555         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
112556         failure.
112558 2001-09-02  Jim Meyering  <meyering@lucent.com>
112560         * lib/error.c: Update from GNU libc.
112562 2001-09-01  Jim Meyering  <meyering@lucent.com>
112564         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
112565         Used by df.
112567 2001-09-01  Jim Meyering  <meyering@lucent.com>
112569         * lib/xreadlink.c: New file.
112570         * lib/xreadlink.h: New file.
112571         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
112572         xreadlink.h.
112574         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
112575         doesn't conflict with sparc Solaris 7's definition in
112576         /usr/include/sys/int_types.h.
112578         * lib/exclude.c: Use `""', not `<>' to #include non-system header
112579         files.
112580         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
112581         and strncasecmp as r-values.  Unixware didn't have declarations.
112583 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112585         * lib/xstrtol.h: Add copyright notice.
112586         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
112587         LONGINT_INVALID_SUFFIX_CHAR.
112589 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112591         * lib/xstrtol.c (strtoimax): New decl.
112593 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112595         * lib/xgetcwd.c: Don't include pathmax.h.
112596         Include stdlib.h and unistd.h if available.
112597         Include xalloc.h.
112598         (xmalloc, xstrdup, free): Remove decls.
112599         (xgetcwd): Don't assume sizes fit in unsigned.
112600         Check for overflow when computing sizes.
112601         Simplify reallocation code.
112603 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112605         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
112606         a directory's st_size can have an arbitrary value, so the old
112607         usage could waste an arbitrary amount of memory.  All uses
112608         changed.
112609         * lib/savedir.h: Update prototype.
112611 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112613         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
112615         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
112616         old strtoimax.c.
112618         Also, make the following further changes to make this file's
112619         configuration more similar to that of strtol.c:
112620         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
112621         (strtoumax, uintmax_t, strtoull, strtol): Remove.
112622         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
112623         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
112624         changed to signed values.
112626         And make the following changes as well:
112627         Fix copyright notice, as 1999 was missing.
112628         (verify): New macro.
112629         (strtoimax): Check sizes at compile-time, not run-time.
112630         Prefer strtol to strtoll if both work.
112631         (main): Remove; it was not that useful and was a pain to maintain.
112633         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
112635 2001-08-31  Jim Meyering  <meyering@lucent.com>
112637         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
112638         Use an initial, malloc'd, buffer of length 128 rather than
112639         a statically allocated one of length 1024.
112641 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112643         Simplify code, partly by assuming autoconf 2.52 semantics.
112645         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
112647         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
112648         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
112649         All uses removed.
112650         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
112651         Move AC_REQUIRE to next-to-top level, to avoid confusion.
112652         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
112653         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
112654         jm_AC_HEADER_INTTYPES_H.
112655         * m4/jm-macros.m4 (jm_MACROS): Likewise.
112657         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
112659         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
112660         Quote first arg of AC_DEFUN.
112661         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
112662         since they are needed to parse the include file even if we need
112663         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
112664         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
112665         but with opposite signedness.
112667 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112669         Merge 'exclude' changes from tar 1.13.22.
112670         This fixes one or two unlikely storage allocation overflow bugs,
112671         but doesn't change user-visible behavior otherwise.
112673 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112675         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
112676         (jm_PREREQ_EXCLUDE): New macro.
112678 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112680         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
112681         tm to be declared.
112683 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112685         * lib/hash.c: Remove '2001' from copyright notice.
112687 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112689         * lib/full-write.h: New file.
112690         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
112691         * lib/full-write.c: Correct credits, as cccp.c no longer
112692         exists and anyway it was so heavily changed from the old cccp
112693         code as to be unrecognizable.  Include full-write.h.
112694         (full_write): Return size_t, with short writes meaning failure.
112695         All callers changed.  This fixes a bug with large buffers
112696         on 64-bit hosts.
112697         * lib/utime.c: Include full-write.h.
112699 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112701         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
112702         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
112703         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
112704         Include if available.
112705         (<xalloc.h>): Include
112706         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
112707         (verify): New macro.  Use it to verify that EXCLUDE macros do not
112708         collide with FNM macros.
112709         (struct patopts): New struct.
112710         (struct exclude): Use it, as exclude patterns now come with options.
112711         (new_exclude): Support above changes.
112712         (new_exclude, add_exclude_file):
112713         Initial size must now be a power of two to simplify overflow checking.
112714         (free_exclude, fnmatch_no_wildcards): New function.
112715         (excluded_filename): No longer requires options arg, as the options
112716         are determined by add_exclude.  Now returns bool, not int.
112717         (excluded_filename, add_exclude):
112718         Add support for the fancy new exclusion options.
112719         (add_exclude, add_exclude_file): Now takes int options arg.
112720         Check for arithmetic overflow when computing sizes.
112721         (add_exclude_file): xrealloc might modify errno, so don't
112722         realloc until after errno might be used.
112724         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
112725         New macros.
112726         (free_exclude): New decl.
112727         (add_exclude, add_exclude_file): Now takes int options arg.
112728         (excluded_filename): No longer requires options arg, as the options
112729         are determined by add_exclude.  Now returns bool, not int.
112731 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112733         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
112735 2001-08-27  Jim Meyering  <meyering@lucent.com>
112737         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
112739         * lib/version-etc.c (N_): Remove definition.
112740         Revert most of last change.
112741         Instead, simply don't mark the `Copyright...' string for translation.
112742         Based on advice from Paul Eggert.
112744         * lib/strtoxmax.c: Tweak comment.
112746 2001-08-26  Jim Meyering  <meyering@lucent.com>
112748         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
112750         * m4/xstrtoimax.m4: New file.
112751         * m4/xstrtoumax.m4: Add comments explaining why we
112752         AC_REPLACE_FUNCS(strtol).
112754 2001-08-26  Jim Meyering  <meyering@lucent.com>
112756         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
112757         of copyright with `%s' so translators don't get an untranslated
112758         message in 2002.
112759         (COPYRIGHT_YEAR): Define.
112760         (version_etc): Use fprintf rather than fputs.
112761         Suggestion from Ulrich Drepper.
112763         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
112765         * lib/strtoll.c: New file, from GNU libc.
112766         * lib/xstrtoimax.c: New file.
112768         * lib/xstrtol.h: Add xstrtoimax.
112769         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
112770         * lib/strtoimax.c: New file.  Likewise, but first define
112771         STRTOUXMAX_SIGNED.
112773         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
112774         ...
112775         * lib/strtoxmax.c: ... then renamed to this.
112777 2001-08-18  Paul Eggert  <eggert@twinsun.com>
112779         * m4/inttypes.m4: Add AC_PREREQ(2.13).
112780         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
112781         (jm_AC_TYPE_INTMAX_T): New macro.
112782         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
112784         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
112786         * m4/longlong.m4: Renamed from ulonglong.m4.
112787         * m4/inttypes.m4: Renamed from inttypes_h.m4.
112788         * m4/uintmax_t.m4: Removed.
112790 2001-08-13  Paul Eggert  <eggert@twinsun.com>
112792         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
112793         Port to Solaris 8, where 'sed' requires a space after the 'r'
112794         command, and where sh dislikes "$/".  Clean up the spacing a bit.
112795         Redirect output to $tmp just once.
112797 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
112799         * lib/addext.c (<errno.h>): Include.
112800         (errno): Declare if not defined.
112801         (addext): Work correctly when pathconf returns -1 and leaves
112802         errno alone because there is no limit.  Also, work even if
112803         pathconf returns a value greater than SIZE_MAX.
112805 2001-08-12  Jim Meyering  <meyering@lucent.com>
112807         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
112808         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
112809         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
112810         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
112811         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
112812         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
112813         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
112814         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
112815         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
112816         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
112817         utime.m4, utimes.m4, xstrtoumax.m4:
112818         Quote the first argument in each use of AC_DEFUN.
112820 2001-08-12  Jim Meyering  <meyering@lucent.com>
112822         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
112823         Simply `return getcwd (NULL, 0);'.
112824         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
112825         Use 1300 as initial value for length, not PATH_MAX.
112827         * lib/pathmax.h: Clean up cpp syntax.
112829 2001-08-12  Jim Meyering  <meyering@lucent.com>
112831         * lib/gettimeofday.c: New file.
112832         * lib/gtod.h: New file.
112833         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
112835 2001-08-05  Jim Meyering  <meyering@lucent.com>
112837         * m4/jm-macros.m4: Require autoconf-2.52.
112839 2001-08-04  Jim Meyering  <meyering@lucent.com>
112841         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
112842         stmt, to get in sync with glibc.
112844 2001-08-03  Paul Eggert  <eggert@twinsun.com>
112846         The following changes are from gettext 0.10.39 as maintained by
112847         Bruno Haible.
112849         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
112850         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
112851         with inverted sense.  All uses changed.
112853         * lib/mbswidth.c: Don't include <limits.h>.
112854         Include <stdlib.h> and <string.h> unconditionally.
112855         (iswcntrl, mbsinit, ISCNTRL): New macros.
112856         (mbsnwidth): Use K&R style function declarations.
112857         Don't bother checking for MB_LEN_MAX == 1, since the compiler
112858         can optimize it when MB_CUR_MAX == 1.
112859         The width of control characters is zero, not 1.
112861 2001-08-03  Paul Eggert  <eggert@twinsun.com>
112863         The following changes are from gettext 0.10.39 as maintained by
112864         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
112866         * m4/codeset.m4: Upgrade to serial AM1.
112867         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
112868         all uses changed.  Quote first arg of AC_DEFUN.
112869         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
112871         * m4/iconv.m4: Upgrade to serial AM2.
112872         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
112873         Add --with-libconv-prefix.
112874         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
112875         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
112876         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
112877         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
112878         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
112880         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
112881         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
112882         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
112883         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
112884         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
112885         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
112886         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
112887         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
112888         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
112890         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
112891         string.h any more.
112893         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
112894         not the default value.
112896         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
112897         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
112898         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
112899         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
112900         Also check for iswcntrl, used for wcwidth fallback.
112901         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
112902         to Autoconf 2.13.
112904 2001-08-03  Jim Meyering  <meyering@lucent.com>
112906         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
112907         as it was in the original.  Reported by Paul Eggert.
112909 2001-07-16  Jim Meyering  <meyering@lucent.com>
112911         * m4/gettimeofday.m4: New file.
112912         Prompted by a report from Bernhard Baehr.
112914 2001-07-15  Jim Meyering  <meyering@lucent.com>
112916         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
112917         stuff. Now it's in ../Makefile.cfg.
112919 2001-07-15  Jim Meyering  <meyering@lucent.com>
112921         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
112922         (BUILT_SOURCES): Add unlocked-io.h.
112923         (io_functions): Define.
112924         (unlocked-io.h): New rule.
112925         (DISTCLEANFILES): Add unlocked-io.h.
112926         (all-local): Depend on unlocked-io.h, to ensure it is created.
112928         * lib/unlocked-io.hin: New file
112930         * lib/regex.c: Update from glibc.
112932 2001-07-05  Jim Meyering  <meyering@lucent.com>
112934         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
112935         recommendation.
112936         (libfetish_a_SOURCES): Put all .h files here instead.
112937         Remove a thus-exposed (better checks in automake) duplicate and
112938         two unnecessary .h files.
112940 2001-07-04  Jim Meyering  <meyering@lucent.com>
112942         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
112943         that generates jm-glibc-io.m4 so that it doesn't trigger any make
112944         distcheck failure.
112946 2001-07-02  Jim Meyering  <meyering@lucent.com>
112948         The following changes were prompted by suggestions from Bruno Haible.
112950         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
112951         is now generated.
112952         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
112953         definition of EXTRA_DIST.
112954         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
112955         ensure that the generated file is created/updated whenever the list
112956         of $(unlocked_functions) is changed.
112957         (jm-glibc-io.m4): New rule.
112958         (unlocked-io.h): New rule -- currently unused.
112960 2001-06-24  Jim Meyering  <meyering@lucent.com>
112962         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
112963         unmatched right bracket, rather than kludging it with an extra,
112964         falsely-matching quote in a comment.  Patch by Akim Demaille.
112966 2001-06-11  Jim Meyering  <meyering@lucent.com>
112968         * lib/regex.c: Update from GNU libc.
112970 2001-05-27  Jim Meyering  <meyering@lucent.com>
112972         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
112973         Check for ut_type in struct utmp.
112975 2001-05-27  Jim Meyering  <meyering@lucent.com>
112977         * lib/readutmp.h (UT_TYPE): Define.
112979 2001-05-24  Jim Meyering  <meyering@lucent.com>
112981         * lib/argmatch.c: Include "quote.h".
112982         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
112983         quote function.  Reported by Göran Uddeborg.
112985 2001-05-22  Jim Meyering  <meyering@lucent.com>
112987         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
112988         now that we use the package-supplied version unconditionally.
112989         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
112991 2001-05-21  Jim Meyering  <meyering@lucent.com>
112993         * m4/regex.m4: Change a couple backticks to single quotes to avoid
112994         shell syntax errors.
112996 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
112998         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
113000 2001-05-20  Paul Eggert  <eggert@twinsun.com>
113002         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
113003         Don't bother to check library strftime, since
113004         we'll be using our own my_strftime function anyway.
113005         Define my_strftime instead of strftime.
113007 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
113009         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
113010         which is not yet declared.
113012 2001-05-15  Jim Meyering  <meyering@lucent.com>
113014         * m4/regex.m4: Use proper quoting so brackets appear in the test
113015         program.
113016         Reported by, and with help from, Bruno Haible.
113018 2001-05-13  Jim Meyering  <meyering@lucent.com>
113020         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
113021         undefined.
113023 2001-05-11  Paul Eggert  <eggert@twinsun.com>
113025         dirname code cleanup.  base_name now behaves more compatibly
113026         with POSIX basename when given file names that have trailing
113027         slashes, and similarly for dir_name.  Add new primitives
113028         base_len and dir_len.  Put the directory-name-related decls
113029         into dirname.h.
113031         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
113032         * lib/backupfile.c (base_name): Likewise.
113033         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
113034         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
113035         * lib/makepath.c (strip_trailing_slashes): Likewise.
113036         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
113037         ISSLASH): Likewise.
113038         * lib/rename.c (strip_trailing_slashes): Likewise.
113039         * lib/same.c (base_name): Likewise.
113040         * lib/stripslash.c (ISSLASH): Likewise.
113042         * lib/addext.c: Include <dirname.h> after size_t is defined.
113043         * lib/backupfile.c: Likewise.
113045         * lib/addext.c (addext): Use base_len to trim redundant
113046         trailing slashes instead of doing it ourselves.
113047         But do not trim the last slash if it is not redundant.
113049         * lib/backupfile.c (find_backup_file_name,
113050         max_backup_version): Use base_len instead of rolling it ourselves.
113051         Handle the case of "" and (on DOS) "C:" correctly.
113053         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
113054         needed. Include <string.h>, <dirname.h>.
113055         (base_name): Allow file names ending in slashes, other than names
113056         that are all slashes.  In this case, return the basename followed
113057         by the slashes.  This is more general, and can be used in places
113058         where the original base_name purposely had an assertion failure.
113059         (base_len): New function.
113061         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
113062         Do not include <assert.h>; no longer needed.
113063         Include xalloc.h.
113064         (memrchr): Remove decl.
113065         (dir_name_r): Remove.
113066         (dir_len): Renamed from dirlen.  All callers changed.
113067         Rewrite in terms of base_name, for simplicity and consistency.
113068         (dir_name): Never return NULL.  All callers changed.
113069         Do not include <stdlib.h> in test program; no longer needed.
113070         return 0; is fine for test program.
113072         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
113073         New macros.
113074         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
113076         * lib/path-concat.c (path_concat): Use base_len to compute
113077         base length, not strlen; this means we cannot rely on memcpy
113078         to null-terminate.
113080         * lib/same.c (STREQ): Remove.
113081         (same_name): Handle the case where the basename ends in trailing '/'.
113083         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
113084         a slash was stripped.  Do not strip the last slash after a
113085         file system prefix.
113087 2001-05-11  Paul Eggert  <eggert@twinsun.com>
113089         * lib/Makefile.am (libfetish_a_SOURCES):
113090         Add strftime.c, since we now compile it on all hosts.
113092         * lib/strftime.c (my_strftime):
113093         Define to nstrftime if emacs, but only if my_strftime is not defined.
113094         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
113095         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
113096         Add one more extra argument: a nanoseconds value.
113097         All uses changed.
113098         (ns): New macro.
113099         (my_strftime function): Add %N format.
113100         (emacs_strftimeu): Renamed from emacs_strftime,
113101         with extra ut argument.
113103 2001-05-09  Paul Eggert  <eggert@twinsun.com>
113105         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
113107 2001-04-21  Jim Meyering  <meyering@lucent.com>
113109         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
113110         doesn't interfere.
113112 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
113114         * m4/ftruncate.m4: Check for chsize.
113115         Link with ftruncate.o unconditionally if ftruncate is missing.
113116         This was required when cross-compiling to i586-mingw32msvc.
113118 2001-04-08  Jim Meyering  <meyering@lucent.com>
113120         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
113121         recomputed; that's necessary when the offset spans a DST transition.
113122         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
113124 2001-04-02  Jim Meyering  <meyering@lucent.com>
113126         * lib/regex.h, regex.c: Update from GNU libc.
113128 2001-03-24  Jim Meyering  <meyering@lucent.com>
113130         * m4/jm-macros.m4: Require autoconf-2.49d.
113132 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
113134         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
113136 2001-03-19  Paul Eggert  <eggert@twinsun.com>
113138         * lib/version-etc.c (version_etc_copyright): Update to 2001.
113140 2001-03-17  Jim Meyering  <meyering@lucent.com>
113142         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
113143         now that the version in autoconf is equivalent.
113144         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
113146         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
113147         Suggestion from Akim Demaille.
113149         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
113150         (jm_PREREQ_TEMPNAME): New function.
113152 2001-03-16  Paul Eggert  <eggert@twinsun.com>
113154         * lib/tempname.c (uint64_t): Define to uintmax_t if
113155         not defined, and if UINT64_MAX is not defined.
113156         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
113157         Reported by John David Anglin.
113159 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
113161         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
113162         resolve alias if codeset is empty.
113163         * lib/config.charset (BeOS): Use wildcard syntax.
113165 2001-03-13  Jim Meyering  <meyering@lucent.com>
113167         * lib/path-concat.c (path_concat)
113168         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
113169         concatenating e.g., `C:' and `foo'.
113170         From Bruno Haible.
113172 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
113174         * lib/localcharset.c (locale_charset): Don't use
113175         setlocale(LC_CTYPE,NULL). Don't return NULL.
113176         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
113178 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
113180         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
113181         support for DOS/DJGPP.
113183 2001-03-01  Paul Eggert  <eggert@twinsun.com>
113185         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
113186         lacks mkstemp.  Compile our own tempname.c if we compile our own
113187         mkstemp.c, as mkstemp relies on tempname.
113189 2001-03-01  Jim Meyering  <meyering@lucent.com>
113191         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
113192         AH_VERBATIM really does output its argument verbatim.
113194 2001-02-28  Paul Eggert  <eggert@twinsun.com>
113196         * lib/Makefile.am (libfetish_a_SOURCES):
113197         Add dup-safer.c, fopen-safer.c.
113198         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
113200         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
113201         * lib/unistd-safer.h: New files.
113203 2001-02-25  Paul Eggert  <eggert@twinsun.com>
113205         The mkstemp replacement is taken from glibc 2.2.2, with some
113206         portability fixes for use outside glibc, as follows:
113208         * lib/tempname.c (struct_stat64): New macro.
113209         (direxists, __gen_tempname): Use it.
113210         This avoids a portability problem with Solaris 8.
113212         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
113213         (<stddef.h>, <stdint.h>, <string.h>):
113214         Include only if STDC_HEADERS || _LIBC.
113215         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
113216         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
113217         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
113218         (__set_errno): Define this macro if <errno.h> doesn't.
113219         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
113220         Define these macros if <stdio.h> doesn't.
113221         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
113222         Define these macros if <sys/stat.h>
113223         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
113224         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
113225         __xstat64): Define if not _LIBC.
113226         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
113227         (__gen_tempname): Invoke gettimeofday only if
113228         HAVE_GETTIMEOFDAY || _LIBC;
113229         otherwise, fall back on plain "time".
113230         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
113232         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
113234         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
113236 2001-02-18  Paul Eggert  <eggert@twinsun.com>
113238         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
113240 2001-02-17  Paul Eggert  <eggert@twinsun.com>
113242         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
113243         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
113244         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
113245         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
113247 2001-02-17  Paul Eggert  <eggert@twinsun.com>
113249         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
113250         Remove workaround macros for hosts that have mbrtowc but not
113251         mbstate_t, as we now insist on proper declarations for both
113252         before using mbrtowc.
113254 2001-02-17  Jim Meyering  <meyering@lucent.com>
113256         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
113257         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
113258         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
113259         UnixWare 7.1.1.
113261         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
113262         rather than AC_CACHE_VAL.
113264 2001-02-17  Jim Meyering  <meyering@lucent.com>
113266         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
113267         around included file name.
113269         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
113271         * lib/strftime.c: Update from GNU libc (the only changes were to
113272         comments).
113274 2001-02-17  Jim Meyering  <meyering@lucent.com>
113276         * lib/regex.c: Update from libc.
113278 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
113280         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
113281         clash.
113283 2001-02-16  Paul Eggert  <eggert@twinsun.com>
113285         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
113286         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
113287         Reported by Mark Hounschell via Paul Eggert.
113289 2001-02-07  Jim Meyering  <meyering@lucent.com>
113291         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
113293 2001-02-05  Jim Meyering  <meyering@lucent.com>
113295         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
113296         it includes the patch required for `large file' support with at least
113297         HP-UX's 10.20 /bin/cc.
113299 2001-02-03  Jim Meyering  <meyering@lucent.com>
113301         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
113302         AS_IF, now that it works once again (mysteriously).
113303         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
113305 2001-01-30  Jim Meyering  <meyering@lucent.com>
113307         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
113308         * m4/chown.m4: Rename conftestchown to conftest.chown.
113309         * m4/rename.m4: s/conftestdir/conftest.d1/ and
113310         s/conftestdir2/conftest.d2/.
113311         * m4/utimes.m4: s/conftestdata/conftest.data/
113312         Inspired by Pavel Roskin's change in autoconf.
113314 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
113316         * lib/config.charset: Update for FreeBSD 4.2.
113318 2001-01-27  Jim Meyering  <meyering@lucent.com>
113320         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
113321         a use of AS_IF.
113322         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
113324 2001-01-26  Jim Meyering  <meyering@lucent.com>
113326         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
113327         quotearg.c includes it.
113329 2001-01-26  Jim Meyering  <meyering@lucent.com>
113331         * lib/quotearg.c: Include stddef.h.
113332         * lib/quote.c: Include stddef.h.
113333         Reported by Axel Kittenberger.
113335         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
113336         line in double quotes so that it evokes a better diagnostic.
113337         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
113338         Reported by Axel Kittenberger.
113340 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
113342         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
113343         as if it was a `charset'.
113345 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
113347         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
113348         has const.
113350 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
113352         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
113353         to avoid a warning.  Add back 'const' to inptr.
113355 2001-01-20  Jim Meyering  <meyering@lucent.com>
113357         Be sure that headers are checked before used in code compiled
113358         for the type checks.
113359         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
113360         In place of that, invoke jm_CHECK_ALL_TYPES.
113361         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
113362         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
113363         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
113364         The check for ssize_t was mistakenly run before the test for unistd.h.
113366         The configure-time check for stdbool.h was missing.
113367         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
113368         (jm_PREREQ_HASH): New function.
113370 2001-01-17  Jim Meyering  <meyering@lucent.com>
113372         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
113373         for autoconf-2.49c.
113374         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
113376 2001-01-16  Jim Meyering  <meyering@lucent.com>
113378         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
113379         From Bruno Haible.
113381 2001-01-14  Jim Meyering  <meyering@lucent.com>
113383         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
113384         foo and bar.  Create conftestdir/ in the script, not in the C code.
113385         Remove directories in the script, not in the C code.
113386         Remove conftestdir{,2} before trying to create the directory.
113387         Make the entire configure script fail if the mkdir fails.
113389 2001-01-14  Jim Meyering  <meyering@lucent.com>
113391         * lib/rename.c: New file.  From Volker Borchert.
113392         Include stdlib.h, string.h or strings.h, and xalloc.h.
113393         Use strip_trailing_slashes rather than open-coding it.
113395 2001-01-03  Paul Eggert  <eggert@twinsun.com>
113397         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
113399 2001-01-03  Jim Meyering  <meyering@lucent.com>
113401         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
113402         of local `inptr' to avoid warning with some system declarations of
113403         iconv.
113405 2001-01-02  Volker Borchert  <bt@teknon.de>
113407         * m4/rename.m4: New file.
113408         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
113410 2001-01-01  Jim Meyering  <meyering@lucent.com>
113412         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
113413         even on systems with utmpx.h.  It's necessary for the declaration of
113414         utmp's ut_user member.  Reported by Andreas Jaeger.
113416         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
113417         available. They are required for the declarations of getgrgid and
113418         getpwuid resp.
113419         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
113420         Reported by Andreas Jaeger.
113422 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
113424         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
113425         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
113426         so `make install' also works in VPATH builds.
113428 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
113430         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
113431         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
113432         can be used in subdirectories.
113434 2000-12-29  Paul Eggert  <eggert@twinsun.com>
113436         * lib/modechange.c: Do not assume that mode_t uses the
113437         traditional octal encoding.  E.g. "chmod 1 FOO" should set
113438         the other-execute bit of FOO even if S_IXOTH != 1.
113440         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
113441         WOTH, XOTH, ALLM): New macros.
113442         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
113443          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
113444         Use them.
113445         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
113446         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
113447         (mode_compile):
113448         No need to use uintmax_t; unsigned long is long enough.
113449         Don't bother to get suffix since we don't use it.
113451 2000-12-26  Jim Meyering  <meyering@lucent.com>
113453         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
113454         better with autoheader.
113456 2000-12-24  Jim Meyering  <meyering@lucent.com>
113458         * lib/hash.c (is_prime): Return explicit boolean values.
113459         (hash_get_first): Return NULL to appease Irix5.6's 89.
113460         Reported by Nelson Beebe.
113462 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
113464         * lib/localcharset.c (locale_charset): Add support for Win32.
113466 2000-12-18  Paul Eggert  <eggert@twinsun.com>
113468         * lib/physmem.h, lib/physmem.c: New files.
113470         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
113471         (noinst_HEADERS): Add physmem.h.
113473         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
113474         't' for compatibility with Solaris 8 sort.
113476 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
113478         * lib/config.charset: Add support for BeOS.
113480 2000-12-17  Jim Meyering  <meyering@lucent.com>
113482         * m4/dos.m4 (jm_AC_DOS): New file and macro.
113483         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
113485 2000-12-16  Jim Meyering  <meyering@lucent.com>
113487         This bug had a serious impact on chown: `chown N:M FILE' (for integer
113488         N and M) would have treated it like `chown N:N FILE'.
113490         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
113492 2000-12-16  Jim Meyering  <meyering@lucent.com>
113494         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
113495         SHELLS_FILE to a file name that's useful on djgpp systems.
113496         Include stdlib.h.
113497         (ADDITIONAL_DEFAULT_SHELLS): Define.
113498         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
113499         Based mostly on a patch from Prashant TR.
113501 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
113503         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
113504         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
113505         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
113507 2000-12-08  Andreas Schwab  <schwab@suse.de>
113509         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
113510         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
113512 2000-12-07  Jim Meyering  <meyering@lucent.com>
113514         * lib/stripslash.c (ISSLASH): Define.
113515         (strip_trailing_slashes): Use ISSLASH rather than comparing against
113516         `/'.
113517         From Prashant TR.
113519         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
113520         (dir_name_r): Declare this function as static.
113521         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
113522         manifest itself on a name containing a mix of slashes and
113523         backslashes.
113524         Make this function work with names starting with a DOS-style
113525         drive letter and colon prefix.
113526         (dir_name): Append `.' if necessary.
113527         Based mostly on patches from Prashant TR and Eli Zaretskii.
113529         * lib/dirname.h (dir_name_r): Remove prototype.
113531 2000-12-06  Paul Eggert  <eggert@twinsun.com>
113533         * m4/off_t-format.m4: Remove this file.
113534         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
113536 2000-12-06  Jim Meyering  <meyering@lucent.com>
113538         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
113539         replacement strtoull, we may well need the replacement strtoul, too.
113540         Check for declarations of strtoul and strtoull.
113541         Check for strtol.  Mainly as a cue to cause automake to include
113542         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
113543         Check for limits.h -- strtol.c needs it.
113545 2000-12-05  Jim Meyering  <meyering@lucent.com>
113547         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
113549 2000-12-04  Jim Meyering  <meyering@lucent.com>
113551         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
113552         Also include memory.h, stdlib.h, unistd.h if appropriate.
113553         Reported by Andreas Jaeger (conflicting declaration of malloc).
113555 2000-12-02  Jim Meyering  <meyering@lucent.com>
113557         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
113558         * m4/jm-macros.m4 (jm_MACROS): require it.
113560 2000-12-02  Jim Meyering  <meyering@lucent.com>
113562         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
113564 2000-12-01  Paul Eggert  <eggert@twinsun.com>
113566         * lib/memrchr.c: Include <config.h> before any system include file.
113568 2000-11-30  Jim Meyering  <meyering@lucent.com>
113570         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
113572 2000-11-30  Jim Meyering  <meyering@lucent.com>
113574         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
113576 2000-11-29  Paul Eggert  <eggert@twinsun.com>
113578         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
113580 2000-11-26  Jim Meyering  <meyering@lucent.com>
113582         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
113584 2000-11-22  Paul Eggert  <eggert@twinsun.com>
113586         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
113587         size of (size_t) -1; it's not portable.
113589 2000-11-17  Jim Meyering  <meyering@lucent.com>
113591         * lib/strstr.c: Update from GNU libc.
113593 2000-11-17  Akim Demaille  <akim@epita.fr>
113595         * lib/obstack.h: Formatting changes.
113596         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
113597         prevent type checking.
113598         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
113599         cast the value to (void *): assigning a `foo *' to a `void *'
113600         variable is valid.
113601         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
113603 2000-11-16  Jim Meyering  <meyering@lucent.com>
113605         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
113607 2000-11-11  Jim Meyering  <meyering@lucent.com>
113609         * lib/error.c: Add a couple #includes, merging from GNU libc version.
113611 2000-11-10  Jim Meyering  <meyering@lucent.com>
113613         * lib/obstack.h: Update from GNU libc.
113614         * lib/obstack.c: Likewise.
113616 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
113618         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
113620 2000-11-06  Paul Eggert  <eggert@twinsun.com>
113622         * lib/getusershell.c (setusershell): Use rewind rather than
113623         fseek/fseeko, to avoid configuration hassles with fseeko.
113624         Don't bother opening SHELLS_FILE if shellstream is NULL;
113625         it's not necessary.
113627 2000-11-05  Jim Meyering  <meyering@lucent.com>
113629         * lib/makepath.h (make_dir): Declare.
113630         * lib/makepath.c (make_dir): Remove `static' attribute.
113631         Tweak a comment.
113633 2000-11-04  Jim Meyering  <meyering@lucent.com>
113635         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
113637 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
113639         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
113640         last one in a bucket, advance to the next bucket.
113642 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
113644         * lib/fnmatch.c: Do not comment out all the code if we are using
113645         the GNU C library, because in some cases we are replacing buggy
113646         code in the GNU C library itself.
113648 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
113650         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
113651         (regex_compile): Catch bogus \(\1\).
113653 2000-10-30  Paul Eggert  <eggert@twinsun.com>
113655         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
113656         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
113657         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
113659 2000-10-30  Paul Eggert  <eggert@twinsun.com>
113661         * lib/error.h, getline.h, modechange.h:
113662         Remove "2000" from Copyright line, as the file hasn't been
113663         changed this year other than in the copyright notice.
113665         * lib/xalloc.h: Add "2000" to Copyright line, as this file
113666         was changed this year.
113668 2000-10-29  Jim Meyering  <meyering@lucent.com>
113670         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
113671         renaming.
113672         * m4/ls-mntd-fs.m4: Likewise
113674 2000-10-29  Jim Meyering  <meyering@lucent.com>
113676         * lib/xstat.in: Fix grammar in comment.
113678 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
113680         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
113681         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
113682         doesn't define __restrict_arr.
113684 2000-10-28  Jim Meyering  <meyering@lucent.com>
113686         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
113687         (jm_PREREQ_MEMCHR): New function.
113689 2000-10-28  Jim Meyering  <meyering@lucent.com>
113691         * lib/memchr.c: Update from libc.
113692         Adjust for portability:
113693         [HAVE_STDLIB_H]: Include stdlib.h.
113694         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
113695         Undef __memchr, too.
113696         [!weak_alias]: Define __memchr to memchr.
113698         * lib/regex.c: Update from libc.
113699         * lib/regex.h: Likewise.
113700         * lib/getopt1.c: Likewise.
113701         * lib/memcmp.c: Likewise.
113703         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
113704         Avoid using fseek, when possible -- it's broken by design.
113705         Patch by Ulrich Drepper.
113707 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
113709         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
113710         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
113711         Giving in to popular pressure to shut up the compiler with casts.
113713 2000-10-26  Jim Meyering  <meyering@lucent.com>
113715         * lib/strftime.c: Update from libc.
113717 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
113719         * regex.c: More `unsigned char' -> `re_char' changes.
113720         Also change several `int' into `re_wchar_t'.
113721         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
113722         (PUSH_FAILURE_POINTER): Don't cast any more.
113723         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
113724         We want GCC to complain, since this piece of code makes
113725         re_match non-reentrant, which *should* be fixed.
113726         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
113727         (EXTEND_BUFFER): Use RETALLOC.
113728         (SET_LIST_BIT): Don't cast.
113729         (re_wchar_t): New type.
113730         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
113731         that those two functions will always properly return.
113732         (IMMEDIATE_QUIT_CHECK): Cast to void.
113733         (analyse_first): Use recursion rather than an explicit stack.
113734         (re_compile_fastmap): Can't fail anymore.
113735         (re_search_2): Don't check re_compile_fastmap for failure.
113736         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
113737         Now also sets the new value (passed in a new argument).
113738         (re_match_2_internal): Use it.
113739         Also, use a new var `reg' of type size_t when looping through regs
113740         rather than reuse the inappropriate `mcnt'.
113742 2000-10-25  Jim Meyering  <meyering@lucent.com>
113744         * lib/obstack.c: Update from libc.
113746 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
113748         * regex.c (regex_compile): Change the way of handling a range from
113749         a char less than 256 to a char not less than 256.
113751 2000-10-24  Andrew Innes  <andrewi@gnu.org>
113753         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
113754         NT-Emacs only.
113755         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
113756         so that re_search functions only quit when callers expect them to.
113758 2000-10-23  Jim Meyering  <meyering@lucent.com>
113760         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
113761         wrong.  That set_locale call must not have any side effects.
113762         From Paul Eggert.
113764 2000-10-22  Jim Meyering  <meyering@lucent.com>
113766         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
113767         [CYCLIC]: Remove now-unused definition.
113769         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
113770         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
113771         Suggestion from Ulrich Drepper.
113773 2000-10-21  Jim Meyering  <meyering@lucent.com>
113775         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
113776         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
113777         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
113779 2000-10-21  Jim Meyering  <meyering@lucent.com>
113781         * lib/dirname.c (memrchr): Declare if necessary.
113782         (dir_name): Remove the restriction that there be no
113783         trailing slashes.  Now, this code skips past them, effectively
113784         ignoring them.
113785         [TEST_DIRNAME] (main): New unit tests.
113787         * lib/memrchr.c: New file from GNU libc.
113788         Undef __memrchr, too.
113789         [!weak_alias]: Define __memrchr to memrchr.
113790         Guard weak_alias use with `#ifdef weak_alias'.
113792 2000-10-21  Jim Meyering  <meyering@lucent.com>
113794         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
113795         (dir_name): Use dir_name_r.
113796         * lib/dirname.h (dir_name_r): Declare it.
113798 2000-10-17  Jim Meyering  <meyering@lucent.com>
113800         * lib/quote.h (PARAMS): Define and use.
113801         Reported by Akim Demaille.
113803         * lib/getopt.c: Update from libc.
113805 2000-10-16  Jim Meyering  <meyering@lucent.com>
113807         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
113808         setlocale.
113809         From Jan Fedak.
113811 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
113813         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
113815 2000-09-25  Jim Meyering  <meyering@lucent.com>
113817         * lib/md5.h (rol): Define (from GnuPG).
113819         * lib/sha.c: Give credit (GnuPG) where due.
113820         (M): Use rol rather than open-coding it.
113821         Add a FIXME comment.
113823 2000-09-21  Jim Meyering  <meyering@lucent.com>
113825         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
113826         Reported by Michael Stone.
113828 2000-09-20  Jim Meyering  <meyering@lucent.com>
113830         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
113831         (noinst_HEADERS): Add sha.h.
113832         Based on code from Scott G. Miller and from GnuPG.
113834 2000-09-18  Jim Meyering  <meyering@lucent.com>
113836         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
113837         LIBS. Otherwise, everyone ends up linking with -lelf for some
113838         configurations.
113839         Reported by Mike Stone.
113841 2000-09-15  Jim Meyering  <meyering@lucent.com>
113843         * lib/regex.c: Update from libc.
113845 2000-09-10  Jim Meyering  <meyering@lucent.com>
113847         * lib/getopt.c (_getopt_internal): Update from glibc.
113849 2000-09-09  Jim Meyering  <meyering@lucent.com>
113851         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
113852         think it should be used as a general replacement for isascii.
113853         * lib/fnmatch.c: Likewise.
113854         * lib/mbswidth.c: Likewise
113855         * lib/regex.c: Likewise.
113857         Don't use atoi.
113858         * lib/userspec.c: Include sys/param.h and limits.h.
113859         Include xstrtol.h.
113860         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
113861         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
113862         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
113863         UID, GID.  Check range.
113865 2000-09-06  Jim Meyering  <meyering@lucent.com>
113867         * lib/getopt.c (_getopt_internal): Update from glibc.
113869 2000-08-30  Jim Meyering  <meyering@lucent.com>
113871         * lib/strftime.c: Merge in changes from GNU libc.
113873 2000-08-26  Jim Meyering  <meyering@lucent.com>
113875         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
113876         * m4/fpending.m4: New file.
113878 2000-08-26  Jim Meyering  <meyering@lucent.com>
113880         * lib/closeout.c: Include "__fpending.h".
113881         (close_stdout_status): Return right away if there's nothing to flush.
113883         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
113884         * lib/__fpending.c: New file.
113885         * lib/__fpending.h: New file.
113887 2000-08-20  Jim Meyering  <meyering@lucent.com>
113889         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
113890         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
113891         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
113893 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
113895         Improve fileutils installation on systems where running
113896         programs (like install) can't be unlinked.
113897         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
113898         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
113900 2000-08-07  Paul Eggert  <eggert@twinsun.com>
113902         Standardize on "memory exhausted" instead of "Memory exhausted"
113903         or "virtual memory exhausted".
113904         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
113905         "virtual memory exhausted".
113906         * lib/same.c (same_name): Invoke xalloc_die instead of printing
113907         our own message.
113908         * lib/userspec.c (parse_user_spec): Likewise.
113909         * lib/bumpalloc.h: comment fix
113910         * lib/same.c, userspec.c: Include xalloc.h.
113912         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
113913         not char *const and pointing to a constant array.
113914         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
113915         (xrealloc): Comment fix.
113917         * lib/userspec.c (parse_user_spec):
113918         Don't translate a message until just before returning,
113919         to avoid unnecessary translation.
113921 2000-08-07  Jim Meyering  <meyering@lucent.com>
113923         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
113924         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
113925         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
113926         getgroups.c, gethostname.c, getopt.h, group-member.c,
113927         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
113928         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
113929         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
113930         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
113931         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
113932         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
113933         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
113934         yesno.c: Back out Copyright date changes for each file with no change
113935         this year.  This eases coordination with other programs using the same
113936         source code modules.  From Paul Eggert.
113938 2000-08-06  Paul Eggert  <eggert@twinsun.com>
113940         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
113941         not char, for compatibility with glibc 2.1.3 strftime.c.
113943 2000-08-03  Greg McGary  <greg@mcgary.org>
113945         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
113946         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
113947         (EXTEND_BUFFER): Use them.
113949 2000-08-01  Jim Meyering  <meyering@lucent.com>
113951         * lib/dirname.c (ISSLASH): Define.
113952         (BACKSLASH_IS_PATH_SEPARATOR): Define.
113953         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
113954         both `\' and `/' may be use as path separators.
113955         Based on a patch from Prashant TR.
113957 2000-07-31  Paul Eggert  <eggert@twinsun.com>
113959         * lib/quotearg.c (quotearg_n_options): Don't make the initial
113960         slot vector a constant, since it might get modified.
113962 2000-07-31  Jim Meyering  <meyering@lucent.com>
113964         * lib/xmalloc.c: Use `virtual memory exhausted', not
113965         `Memory exhausted'.
113966         * lib/obstack.c (print_and_abort): Likewise.
113968 2000-07-30  Paul Eggert  <eggert@twinsun.com>
113970         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
113971         buffer, so that the caller can always quote one small
113972         component of a "memory exhausted" message in slot 0.
113973         From a suggestion by Jim Meyering.
113975 2000-07-30  Jim Meyering  <meyering@lucent.com>
113977         * lib/makepath.c (make_path): Quote the other instance, too.
113979         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
113980         (STATIC_BUF_SIZE): Define.
113981         (quotearg_n_options): Use only statically allocated storage when
113982         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
113983         than STATIC_BUF_SIZE.
113985 2000-07-29  Jim Meyering  <meyering@lucent.com>
113987         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
113988         * lib/dirname.c (dir_name): Likewise.
113990         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
113991         `/'.
113993         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
113994         (dir_name): Assert that there are no trailing slashes.
113996 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
113998         * lib/mbswidth.h (mbswidth): Add a flags argument.
113999         (mbswidth): New declaration.
114000         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
114001         * lib/mbswidth.c (mbswidth): Add a flags argument.
114002         (mbsnwidth): New function.
114004 2000-07-24  Jim Meyering  <meyering@lucent.com>
114006         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
114008 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114010         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
114012 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114014         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
114015         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
114016         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
114017         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
114018         invoke multibyte primitives.
114020 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114022         * lib/quotearg.c:
114023         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
114024         so that mbstate_t is always defined.
114026         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
114027         be 1 in at least one GCC installation, and this configuration
114028         error is likely to be common.  Ignoring MB_LEN_MAX hurts
114029         performance on hosts that have mbrtowc but have only unibyte
114030         locales, but I assume these hosts are rare.
114032 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114034         * lib/mbswidth.c (_XOPEN_SOURCE):
114035         Don't define; this causes problems on Solaris 7.
114036         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
114038 2000-07-23  Jim Meyering  <meyering@lucent.com>
114040         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
114041         too: getgrgid, getpwuid, getuid.
114043 2000-07-23  Jim Meyering  <meyering@lucent.com>
114045         * lib/basename.c (base_name): Add an assertion.
114047 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
114049         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
114050         shadow its mbsinit function.
114052 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
114054         * lib/mbswidth.h: New file.
114055         * lib/mbswidth.c: New file.
114056         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
114057         (noinst_HEADERS): Add mbswidth.h.
114059 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
114061         * lib/config.charset: Add support for FreeBSD. Improve support for
114062         HP-UX and IRIX 6.
114064 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
114066         * m4/mbswidth.m4: New file.
114067         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
114069 2000-07-15  Jim Meyering  <meyering@lucent.com>
114071         * lib/makepath.c: Include quote.h.
114072         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
114073         corresponding argument in a `quote (...)' call.
114074         Give better diagnostics.
114076         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
114077         (noinst_HEADERS): Add quote.h.
114079         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
114080         from tar's src/misc.c.
114081         * lib/quote.h: New file.  Prototypes for same.
114083 2000-07-14  Paul Eggert  <eggert@twinsun.com>
114085         From a suggestion by Bruno Haible.
114086         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
114087         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
114088         to decide whether to define the BeOS workaround macro;
114089         this adjusts to the change to AC_MBSTATE_T.
114091 2000-07-14  Jim Meyering  <meyering@lucent.com>
114093         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
114094         jm_AC_TYPE_UINTMAX_T.
114096 2000-07-13  Paul Eggert  <eggert@twinsun.com>
114098         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
114100         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
114101         quotearg_buffer_restyled): Add support for
114102         clocale_quoting_style.  Undo previous change to
114103         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
114104         and "{RIGHT QUOTATION MARK}" msgids.
114106 2000-07-10  Paul Eggert  <eggert@twinsun.com>
114108         From a suggestion by Bruno Haible.
114109         * m4/mbstate_t.m4 (AC_MBSTATE_T):
114110         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
114111         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
114112         and mbstate_t, to a single-part test that simply defines mbstate_t.
114113         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
114114         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
114116 2000-07-10  Jim Meyering  <meyering@lucent.com>
114118         * m4/strerror_r.m4: Mirror the correction made in autoconf.
114120         * m4/gnu-source.m4: Output to confdefs.h directly.
114121         Suggestion from Akim Demaille.
114123 2000-07-09  Paul Eggert  <eggert@twinsun.com>
114125         The old behavior of quoting `like this' doesn't look good with
114126         newer, ISO-style fonts.  See:
114127         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
114129         Instead, quote "like this" by default.  Let the translator
114130         tailor the locale-specific quoting behavior by providing
114131         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
114133         * lib/quotearg.c (N_): New macro.
114134         (gettext_default): New function.
114135         (quotearg_buffer_restyled): Use
114136         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
114137         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
114139 2000-07-09  Jim Meyering  <meyering@lucent.com>
114141         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
114142         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
114144         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
114145         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
114147 2000-07-09  Jim Meyering  <meyering@lucent.com>
114149         * lib/Most files: Update copyright dates to include 2000.
114151 2000-07-08  Jim Meyering  <meyering@lucent.com>
114153         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
114154         if not defined.
114155         (xgethostname): Remove now-unnecessary #ifdef.
114156         Move declaration of `err' into loop where it's used.
114158 2000-07-05  Paul Eggert  <eggert@twinsun.com>
114159         and Bruno Haible  <haible@clisp.cons.org>
114161         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
114162         only if the test for an object-type mbstate_t fails.  This
114163         prevents us from mistakenly reporting that mbstate_t is a
114164         system object type after we "#define mbstate_t int" to work
114165         around its lack.
114167 2000-07-05  Paul Eggert  <eggert@twinsun.com>
114168         and Bruno Haible  <haible@clisp.cons.org>
114170         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
114172 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
114174         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
114175         to strerror_r.
114176         Include <ctype.h> for use of isalpha.
114178 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
114180         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
114181         by allocating a larger buffer. Test the gethostname return value for
114182         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
114183         returns an error and ENAMETOOLONG isn't defined.
114185 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
114187         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
114188         dimension.
114190 2000-07-04  Jim Meyering  <meyering@lucent.com>
114192         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
114193         of the deprecated AC_CHECKING.
114195 2000-07-04  Jim Meyering  <meyering@lucent.com>
114197         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
114198         Reported by Bruno Haible.
114200 2000-07-04  Jim Meyering  <meyering@lucent.com>
114202         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
114203         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
114204         lacks mbrtowc.
114206 2000-07-03  Paul Eggert  <eggert@twinsun.com>
114208         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
114209         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
114211 2000-07-03  Paul Eggert  <eggert@twinsun.com>
114212         and Bruno Haible  <haible@clisp.cons.org>
114214         * lib/quotearg.c (mbrtowc):
114215         Assign to *pwc, and return 1 only if result is nonzero.
114216         (iswprint): Use ISPRINT when substituting our own mbrtowc.
114218 2000-07-03  Jim Meyering  <meyering@lucent.com>
114220         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
114222 2000-07-03  Jim Meyering  <meyering@lucent.com>
114224         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
114225         This is necessary to get a definition of e.g., UTMP_FILE on
114226         HP-UX 10.20.
114227         From Bob Proulx.
114229 2000-07-02  Jim Meyering  <meyering@lucent.com>
114231         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
114233         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
114234         AC_LIBOBJ(function_name).
114235         * m4/chown.m4: Likewise.
114236         * m4/fnmatch.m4: Likewise.
114237         * m4/ftruncate.m4: Likewise.
114238         * m4/getgroups.m4: Likewise.
114239         * m4/getline.m4: Likewise.
114240         * m4/group-member.m4: Likewise.
114241         * m4/jm-macros.m4: Likewise.
114242         * m4/lstat.m4: Likewise.
114243         * m4/malloc.m4: Likewise.
114244         * m4/memcmp.m4: Likewise.
114245         * m4/nanosleep.m4: Likewise.
114246         * m4/putenv.m4: Likewise.
114247         * m4/realloc.m4: Likewise.
114248         * m4/regex.m4: Likewise.
114249         * m4/stat.m4: Likewise.
114250         * m4/strftime.m4: Likewise.
114252 2000-07-02  Jim Meyering  <meyering@lucent.com>
114254         * lib/quotearg.c (mbstate_t): Don't define here.
114256 2000-07-02  Jim Meyering  <meyering@lucent.com>
114258         * lib/nanosleep.c (SIGCONT): Define if not already defined.
114260 2000-07-01  Jim Meyering  <meyering@lucent.com>
114262         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
114264 2000-07-01  Jim Meyering  <meyering@lucent.com>
114266         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
114267         problem.
114269 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
114271         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
114272         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
114274 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
114276         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
114277         per change in ../m4/ls-mntd-fs.m4.
114278         (read_filesystem_list): Ignore symbolic links.
114280 2000-06-29  Jim Meyering  <meyering@lucent.com>
114282         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
114283         for declaration of strcmp.
114285         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
114287         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
114288         Avoid warning by casting result to `char *' to remove `const'.
114290 2000-06-28  Jim Meyering  <meyering@lucent.com>
114292         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
114293         included by quotearg.c, for which we perform this test.  From
114294         Bruno Haible.
114296 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
114298         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
114299         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
114300         <utmpx.h> exists, put readutmp.o into LIBOBJS.
114302 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
114304         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
114306 2000-06-26  Paul Eggert  <eggert@twinsun.com>
114308         savedir now sets errno on failure and invokes xmalloc to get memory.
114309         Fix a couple of other minor bugs while we're at it.
114311         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
114312         (NAMLEN): Remove macro.
114313         (malloc, realloc): Remove decls.
114314         (stpcpy): Likewise.
114315         ("xalloc.h"): Include.
114316         (NAME_SIZE_DEFAULT): New macro.
114317         (savedir): Use xmalloc / xrealloc to allocate memory.
114318         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
114319         Skip "" directory entries.
114320         Use strlen to calculate directory entry length, since the old method
114321         is rarely used these days and isn't worth supporting.
114322         Don't use a pointer after freeing it.
114323         Check for integer overflow when calculating allocation size.
114324         Use memcpy to copy entries, instead of stpcpy.
114325         Set errno properly when returning NULL.
114326         Check for readdir error.
114328 2000-06-26  Jim Meyering  <meyering@lucent.com>
114330         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
114332 2000-06-25  Jim Meyering  <meyering@lucent.com>
114334         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
114335         Linux header bug when _XOPEN_SOURCE is defined to 500.
114337 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
114339         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
114340         deficiency.
114342 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
114344         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
114345         Include xalloc.h.
114346         Don't include <stdlib.h>.  Don't declare malloc, realloc.
114348 2000-06-24  Jim Meyering  <meyering@lucent.com>
114350         * m4/strerror_r.m4: Revive this file -- to try out an experimental
114351         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
114352         for which strerror does return char*, but which lacks a conveniently
114353         accessible declaration of the function.  If the compile-test says
114354         strerror_r doesn't work, then resort to a `run'-test that works on
114355         BeOS and segfaults on DEC Unix.
114357 2000-06-24  Jim Meyering  <meyering@lucent.com>
114359         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
114361 2000-06-23  Paul Eggert  <eggert@twinsun.com>
114363         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
114364         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
114366 2000-06-23  Paul Eggert  <eggert@twinsun.com>
114368         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
114369         (mbrtowc, mbstate_t): Define substitutes if
114370         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
114371         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
114372         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
114374 2000-06-23  Jim Meyering  <meyering@lucent.com>
114376         * m4/afs.m4: Add missing AC_MSG_RESULT.
114377         Reported by Bruno Haible.
114379         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
114380         Suggestion from Bruno Haible.
114382 2000-06-23  Jim Meyering  <meyering@lucent.com>
114384         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
114386 2000-06-21  Jim Meyering  <meyering@lucent.com>
114388         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
114390 2000-06-21  Jim Meyering  <meyering@lucent.com>
114392         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
114393         (noinst_HEADERS): Add getstr.h.
114395         * lib/getline.c (getstr): Move into a separate file.
114396         * lib/getstr.c (getstr): New file, extracted from getline.c, with
114397         the following changes: new parameter, delim2; both delim[12]
114398         parameters have type `int', not `char'.  The latter would lose
114399         with 8-bit delimiters.
114400         * lib/getstr.h: New file.
114402 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
114404         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
114405         than 1024, return a memory chunk of least possible size, instead
114406         of size PATH_MAX + 2. In the loop, increment the size proportionally.
114407         Use free/xmalloc instead of xrealloc to avoid copying for very long
114408         paths.
114410 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
114412         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
114413         the empty string.
114415 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
114417         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
114418         address, not strdup.  Include <stdlib.h> and don't declare free().
114420 2000-06-19  Jim Meyering  <meyering@lucent.com>
114422         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
114424 2000-06-18  Jim Meyering  <meyering@lucent.com>
114426         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
114428         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
114429         `checking whether...' message to be consistent with that of the
114430         lstat test.
114432 2000-06-18  Jim Meyering  <meyering@lucent.com>
114434         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
114435         Besides, these days every porting target provides a mkdir function.
114437         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
114438         needed. (this snippet comes from src/system.h).
114440 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
114442         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
114444 2000-06-15  Paul Eggert  <eggert@twinsun.com>
114446         * lib/human.c (adjust_value): New function.
114447         (human_readable_inexact): Apply rounding style even when
114448         printing approximate values.
114450 2000-06-14  Paul Eggert  <eggert@twinsun.com>
114452         * lib/human.c (human_readable_inexact): Allow an input block
114453         size that is not a multiple of the output block size, and vice versa.
114454         Reported by Piergiorgio Sartor.
114456 2000-06-14  Paul Eggert  <eggert@twinsun.com>
114458         * lib/getdate.y (get_date): Apply relative times after time
114459         zone indicator, not before.  Reported by Todd A. Jacobs.
114461 2000-06-13  Jim Meyering  <meyering@lucent.com>
114463         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
114465         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
114467 2000-06-12  Paul Eggert  <eggert@twinsun.com>
114469         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
114471 2000-06-12  Jim Meyering  <meyering@lucent.com>
114473         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
114474         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
114475         optional argument.
114476         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
114477         the optional argument, `lib'.
114479 2000-06-08  Jim Meyering  <meyering@lucent.com>
114481         * m4/largefile.m4: Remove file (now that it's part of autoconf).
114483 2000-06-04  Paul Eggert  <eggert@twinsun.com>
114485         Rewrite largefile configuration so that we don't need to run
114486         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
114487         AC_CANONICAL_HOST in configure.in -- jmm]
114489         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
114490         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
114491         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
114492         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
114493         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
114494         All uses changed.
114495         Instead of inspecting the output of getconf, try to compile the
114496         test program without and with the macro definition.
114497         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
114498         for getconf.  Instead, check for the needed flags by compiling
114499         test programs.
114501 2000-06-04  Paul Eggert  <eggert@twinsun.com>
114503         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
114505 2000-06-04  Jim Meyering  <meyering@lucent.com>
114507         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
114508         SunOS 4.1.4 for which gid_t is an unsigned type.
114510 2000-06-03  Jim Meyering  <meyering@lucent.com>
114512         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
114513         now that autoconf requires that.
114515         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
114516         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
114517         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
114519 2000-06-03  Jim Meyering  <meyering@lucent.com>
114521         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
114523 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
114525         * m4/glibc21.m4: New file.
114526         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
114528 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
114530         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
114531         newer, don't install charset.alias.
114532         * lib/config.charset: Change the Linux/glibc rules so they become empty
114533         on glibc-2.1 or newer.
114535 2000-06-02  Jim Meyering  <meyering@lucent.com>
114537         * lib/mountlist.c: Back out last change.  Instead, do this...
114538         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
114539         me_dummy member using the same `ignore'-testing code.
114540         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
114541         fs_type strings.
114542         From Mark D. Roth.
114544 2000-05-29  Jim Meyering  <meyering@lucent.com>
114546         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
114547         mounts with the `ignore' attribute.  Based on a patch from
114548         Mark D. Roth.
114550 2000-05-28  Jim Meyering  <meyering@lucent.com>
114552         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
114553         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
114554         * m4/stat.m4: Likewise.
114555         * m4/lstat.m4: Likewise.
114556         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
114558         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
114559         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
114561 2000-05-26  Jim Meyering  <meyering@lucent.com>
114563         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
114565 2000-05-24  Jim Meyering  <meyering@lucent.com>
114567         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
114568         autoconf requires that.
114569         * m4/lib-check.m4: Likewise.
114570         * m4/jm-macros.m4: Likewise.
114571         * m4/strftime.m4: Likewise.
114573         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
114574         AC_CHECK_DECLS, now that autoconf requires that.
114576 2000-05-22  Jim Meyering  <meyering@lucent.com>
114578         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
114579         * m4/lstat.m4: Likewise.
114581 2000-05-22  Jim Meyering  <meyering@lucent.com>
114583         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
114585 2000-05-20  Jim Meyering  <meyering@lucent.com>
114587         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
114588         (jm_PREREQ): Use it.
114590 2000-05-18  Jim Meyering  <meyering@lucent.com>
114592         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
114593         back, too, since it may have been modified by allocate_entry.
114594         (hash_delete): Rewrite to use neither the assignment operator
114595         nor the comma operator in an if-expression.
114597 2000-05-15  Paul Eggert  <eggert@twinsun.com>
114599         * lib/closeout.c:
114600         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
114601         Remove; no longer needed.
114602         "quotearg.h": Add include.
114603         (file_name): Do not bother to explicitly initialize to NULL; it's less
114604         efficient on some hosts.
114605         (close_stdout_status): Remove test as to whether stdout was already
114606         closed; it breaks for the case "echo x | sort >&-".
114607         Quote file name colons.
114608         Do not assume that _("write error") lacks format strings.
114610 2000-05-15  Jim Meyering  <meyering@lucent.com>
114612         * lib/version-etc.c (version_etc_copyright): Update the copyright
114613         string used in all --version output.
114615 2000-05-14  Jim Meyering  <meyering@lucent.com>
114617         * lib/closeout.c (close_stdout_set_file_name): New function.
114618         (close_stdout_status): Use new file-scoped global.
114619         Return right away if fstat says the stdout file descriptor is invalid.
114620         * lib/closeout.h (close_stdout_set_file_name): Declare.
114622 2000-05-10  Jim Meyering  <meyering@lucent.com>
114624         * lib/closeout.c [default_exit_status]: New file-scoped variable.
114625         (close_stdout_set_status): New function.
114626         * lib/closeout.h (close_stdout_set_status): Declare.
114628 2000-05-09  Jim Meyering  <meyering@lucent.com>
114630         * m4/gettext.m4: Rename this...
114631         * m4/libintl.m4: ...to this.
114633 2000-05-08  Jim Meyering  <meyering@lucent.com>
114635         * lib/long-options.c: Don't include closeout.h.
114636         (parse_long_options): Don't call close_stdout for --version.
114638 2000-05-06  Paul Eggert  <eggert@twinsun.com>
114640         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
114641         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
114642         2.1.3 bug.  This avoids a clash when files like regex.c define
114643         _GNU_SOURCE.
114645 2000-05-06  Jim Meyering  <meyering@lucent.com>
114647         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
114648         (AC_REPLACE_FUNCS): Add strnlen.
114650         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
114651         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
114653         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
114654         AC_SEARCH_LIBS call for nanosleep.
114655         (LIB_NANOSLEEP): Set and AC_SUBST.
114657 2000-05-06  Jim Meyering  <meyering@lucent.com>
114659         * lib/strnlen.c: Undefine __strnlen and strnlen.
114660         [!weak_alias]: Define __strnlen to strnlen.
114662         * lib/atexit.c: New file, from libiberty.
114664 2000-05-06  Jim Meyering  <meyering@lucent.com>
114666         * lib/closeout.c (close_stdout_status): Also check for errors on the
114667         stderr stream.
114669 2000-05-05  Jim Meyering  <meyering@lucent.com>
114671         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
114672         AC_SEARCH_LIBS call for clock_gettime.
114673         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
114675         * m4/search-libs.m4: Update from autoconf.
114677         su doesn't work on Solaris 2.6.
114678         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
114679         <shadow.h>.  Reported by Dragos Harabor.
114681 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
114683         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
114684         memcpy instead of xmalloc, xrealloc, path_concat.
114685         (locale_charset): Treat empty environment variables as absent.
114686         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
114688 2000-05-04  Jim Meyering  <meyering@lucent.com>
114690         * lib/getopt.c: Update from glibc.
114691         * lib/obstack.c: Likewise.
114692         * lib/obstack.h: Likewise.
114693         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
114694         file
114696         * lib/regex.h: Likewise.
114697         * lib/strndup.c: Likewise.
114698         * lib/strnlen.c: New file, from glibc.
114700 2000-05-03  Jim Meyering  <meyering@lucent.com>
114702         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
114704 2000-05-02  Paul Eggert  <eggert@twinsun.com>
114706         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
114707         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
114708         compile-time test, rather than inspecting host and OS, to
114709         decide whether to define _LARGEFILE_SOURCE.
114711 2000-05-01  Jim Meyering  <meyering@lucent.com>
114713         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
114715         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
114716         Based on a patch from Bruno Haible.
114718 2000-05-01  Jim Meyering  <meyering@lucent.com>
114720         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
114722 2000-04-29  Jim Meyering  <meyering@lucent.com>
114724         * lib/path-concat.c: Declare strdup only if it's not defined.
114725         * lib/canon-host.c: Likewise.
114727 2000-04-28  Jim Meyering  <meyering@lucent.com>
114729         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
114730         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
114731         is included first, then limits.h is included by locale.h by libintl.h.
114732         From John David Anglin.
114734 2000-04-25  Jim Meyering  <meyering@lucent.com>
114736         * lib/makepath.c (S_IRWXUGO): Define.
114737         (make_path): Always perform explicit chmod if MODE specifies any
114738         of the `special' permission bits.  Prompted by a bug report against
114739         install from Mate Wierdl and Joost van Baal.
114741 2000-04-18  Jim Meyering  <meyering@lucent.com>
114743         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
114744         (jm_PREREQ): Use it.
114746 2000-04-18  Jim Meyering  <meyering@lucent.com>
114748         * lib/README: New file.
114750         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
114751         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
114753 2000-04-17  Jim Meyering  <meyering@lucent.com>
114755         Get it right :-)
114756         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
114757         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
114758         Suggestion from Akim Demaille.
114760 2000-04-17  Jim Meyering  <meyering@lucent.com>
114762         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
114763         the definition of it to rpl_strftime also defined-away the system's
114764         declaration.
114766 2000-04-15  Jim Meyering  <meyering@lucent.com>
114768         Use `C' to denote so-called `contiguous' files, the same way
114769         that tar does.
114770         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
114771         (ftypelet): Use S_ISCTG.
114772         From Michael Deutschmann.
114774 2000-04-14  Jim Meyering  <meyering@lucent.com>
114776         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
114777         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
114778         clobbered.
114780 2000-04-14  Jim Meyering  <meyering@lucent.com>
114782         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
114784 2000-04-13  Jim Meyering  <meyering@lucent.com>
114786         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
114787         AH_VERBATIM to insert required #ifndef into config.h.in.
114788         Suggestion from Akim Demaille.
114790 2000-04-12  Jim Meyering  <meyering@lucent.com>
114792         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
114793         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
114794         Christian Krackowizer.
114796         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
114797         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
114798         (AC_SYS_LARGEFILE): Require.
114799         (AM_C_PROTOTYPES): Require.
114801 2000-04-08  Jim Meyering  <meyering@lucent.com>
114803         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
114804         names don't conflict.  Reported by Eli Zaretskii.
114806 2000-04-07  Jim Meyering  <meyering@lucent.com>
114808         * lib/putenv.c: Move inclusion of errno.h so it follows that of
114809         sys/types.h, to work around system header problems on AIX 3.2.5.
114810         From Bruno Haible.
114812 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
114814         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
114815         bug.  Deal with the different error behavior of Irix iconv.
114817 2000-04-05  Paul Eggert  <eggert@twinsun.com>
114819         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
114820         IRIX if the installer said otherwise.
114822 2000-04-05  Jim Meyering  <meyering@lucent.com>
114824         Portability tweaks required for ultrix4.3.
114825         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
114826         (jm_CHECK_DECLS): Add getutent to the list of functions.
114827         (_jm_DECL_HEADERS): Add utmpx.h.
114828         From John David Anglin.
114830         * m4/strftime.m4: Back out the 2000-04-02 change.
114831         Instead of that change, simply undefine putenv in the test program.
114833 2000-04-05  Jim Meyering  <meyering@lucent.com>
114835         Portability tweaks required for ultrix4.3.
114836         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
114837         getutent.
114838         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
114839         * lib/canon-host.c: Declare strdup.
114840         * lib/path-concat.c: Likewise.
114841         From John David Anglin.
114843 2000-04-04  Jim Meyering  <meyering@lucent.com>
114845         Be more DOS 8.3-friendly.
114846         * lib/ref-add.sin: Renamed from ref-add.sed.in.
114847         * lib/ref-del.sin: Renamed from ref-del.sed.in.
114848         * lib/Makefile.am: Reflect renaming.
114849         Reported by Eli Zaretskii.
114851         Use a temporary file name that won't clash with `charset.alias'
114852         in the DOS 8.3 name space.
114853         * lib/Makefile.am (charset_tmp): Define.
114854         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
114855         (uninstall-local): Likewise.
114856         Reported by Eli Zaretskii.
114858 2000-04-03  Jim Meyering  <meyering@lucent.com>
114860         * m4/gettext.m4: Fix typo in comment.
114862         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
114863         textutils/configure.in).  Suggestion from Paul Eggert.
114864         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
114866 2000-04-02  Paul Eggert  <eggert@twinsun.com>
114868         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
114869         variable in the shell rather than using putenv, which isn't
114870         portable.  This avoids the configure-time inter-test dependency
114871         on the potentially-renamed putenv function.
114873 2000-03-30  Paul Eggert  <eggert@twinsun.com>
114875         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
114876         before checking struct stat.st_blksize, so that
114877         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
114879 2000-03-29  Paul Eggert  <eggert@twinsun.com>
114881         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
114882         since strftime.c uses HAVE_STRFTIME to decide whether to use
114883         the underlying strftime.
114885 2000-03-29  Paul Eggert  <eggert@twinsun.com>
114887         * lib/time/strftime.c (my_strftime): Make sure we call the system
114888         strftime, not ourselves, when invoking the underlying strftime.
114890 2000-03-24  Jim Meyering  <meyering@lucent.com>
114892         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
114893         (charset_alias): Define.
114894         (install-exec-local): Factor out common code.
114895         (uninstall-local): Split lines longer than 80.
114896         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
114897         (SUFFIXES): Define.
114898         (.sed.in.sed): New rule.  Don't redirect directly to $@.
114899         (CLEANFILES): Add ref-add.sed and ref-del.sed.
114901 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
114903         * lib/config.charset: Output a line containing "Packages using this
114904         file".
114905         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
114906         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
114907         ref-del.sed): New rules.
114909 2000-03-17  Jim Meyering  <meyering@lucent.com>
114911         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
114912         Otherwise, include <strings.h>
114914 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
114916         * lib/unicodeio.c (utf8_wctomb): New function.
114917         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
114918         format instead of in UCS-4 with platform dependent endianness.
114920 2000-03-10  Jim Meyering  <meyering@lucent.com>
114922         * m4/lib-check.m4: Look for getspnam in -lgen, too.
114923         From Marco Franzen.
114925 2000-03-07  Paul Eggert  <eggert@twinsun.com>
114927         * lib/savedir.c (savedir): Work even if directory size is
114928         negative; this can happen with some screwy NFS configurations.
114930 2000-03-06  Jim Meyering  <meyering@lucent.com>
114932         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
114933         if it's NULL (because we ran out of memory).  From Bruno Haible.
114935 2000-03-05  Jim Meyering  <meyering@lucent.com>
114937         * lib/localcharset.c ("path-concat.h"): Include.
114938         (get_charset_aliases): Use path_concat instead of ANSI string
114939         concatenation.
114941         * lib/unicodeio.h (PARAMS): Define.
114942         Use it to guard prototype.
114944 2000-03-04  Jim Meyering  <meyering@lucent.com>
114946         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
114947         for lib/localcharset.c.
114949 2000-03-04  Jim Meyering  <meyering@lucent.com>
114951         * lib/Makefile.am (install-exec-local): Create $(libdir) before
114952         installing into it.
114953         (uninstall-local): Uncomment this rule so `make distcheck' works
114954         once again.
114956         * lib/unicodeio.c (<errno.h>): Include it.
114957         (errno): Declare if not defined.
114959         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
114961         * lib/config.charset: New version, incorporating remarks from a linux
114962         i18n mailing list.  From Bruno Haible.
114964 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
114966         * m4/codeset.m4: New file.
114967         * m4/iconv.m4: New file.
114968         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
114970 2000-03-03  Jim Meyering  <meyering@lucent.com>
114972         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
114974 2000-03-02  Jim Meyering  <meyering@lucent.com>
114976         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
114977         the messages come out on separate lines.
114979         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
114980         rather than jm_CHECK_DECLARATIONS.
114981         * m4/decl.m4: Remove now-unused file.
114983         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
114984         geteuid.
114986 2000-03-02  Jim Meyering  <meyering@lucent.com>
114988         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
114990 2000-03-01  Jim Meyering  <meyering@lucent.com>
114992         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
114993         * lib/unicodeio.c: Likewise.
114995 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
114997         * lib/config.charset: New file.
114998         * lib/localcharset.c: New file.
114999         * lib/unicodeio.h, lib/unicodeio.c: New files.
115000         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
115001         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
115002         (noinst_HEADERS): Add unicodeio.h.
115003         (all-local, install-exec-local, charset.alias): New targets.
115005 2000-02-28  Paul Eggert  <eggert@twinsun.com>
115007         * lib/quotearg.c (ALERT_CHAR): New macro.
115008         (quotearg_buffer_restyled): Use it.
115010 2000-02-27  Jim Meyering  <meyering@lucent.com>
115012         * m4/check-decl.m4: Add getenv to the list.
115014 2000-02-27  Jim Meyering  <meyering@lucent.com>
115016         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
115017         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
115019         * lib/backupfile.c: Guard inclusion of stdlib.h with
115020         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
115021         Declare malloc if needed.
115023         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
115024         `#ifndef HAVE_DECL..'
115025         now that autoconf always defines the HAVE_DECL_ symbols.
115026         * lib/human.c: Likewise.
115027         * lib/same.c: Likewise.
115028         * lib/strtoumax.c: Likewise.
115030         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
115031         declaration check was not run.
115032         * lib/hash.c: Likewise.
115033         * lib/human.c: Likewise.
115034         * lib/same.c: Likewise.
115035         * lib/strtoumax.c: Likewise.
115037         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
115038         `.', then first look up the entire `.'-containing string as a login
115039         name.
115041 2000-02-23  Jim Meyering  <meyering@lucent.com>
115043         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
115044         in place of my hack.
115046 2000-02-18  Paul Eggert  <eggert@twinsun.com>
115048         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
115049         (textint): New typedef.
115050         (parser_control): Member year changed from int to textint.
115051         All uses changed.
115052         (YYSTYPE): Removed; replaced by %union with int and textint members.
115053         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
115054         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
115055         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
115056         (tSNUMBER, tUNUMBER): Now of type <textintval>.
115057         (date, number, to_year): Use width of number in digits, not its value,
115058         to determine whether it's a 2-digit year, or a 2-digit time.
115059         (yylex): Store number of digits of numeric tokens.
115060         Reported by John Kendall.
115062         (parser_control): Changed from struct parser_control to typedef (for
115063         consistency).  All uses changed.
115065         (tID): Removed; not used.
115066         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
115068 2000-02-14  Paul Eggert  <eggert@twinsun.com>
115070         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
115071         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
115073 2000-02-12  Jim Meyering  <meyering@lucent.com>
115075         * lib/userspec.c (ISDIGIT): Define it.
115076         (isdigit): Remove definition.
115077         (is_number): Use ISDIGIT, not isdigit.
115078         <libintl.h>: Include.
115079         (_ and N_): Define.
115080         (parse_user_spec): Mark translatable strings.
115082 2000-02-10  Jim Meyering  <meyering@lucent.com>
115084         With these changes, nanosleep.[ch] are finally enough like the other
115085         lib/* replacement files to compile on a few more losing systems.
115087         * lib/nanosleep.h: Don't include config.h.
115088         Remove prototype from declaration of nanosleep.
115089         (PARAMS): Remove now-unneeded definition.
115090         * lib/nanosleep.c: #undef nanosleep.
115091         (rpl_nanosleep): Rename from nanosleep.
115093 2000-02-10  Jim Meyering  <meyering@lucent.com>
115095         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
115096         gnu_nanosleep to rpl_nanosleep.
115098 2000-02-09  Jim Meyering  <meyering@lucent.com>
115100         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
115101         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
115103 2000-02-08  Akim Demaille  <akim@epita.fr>
115105         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
115106         `[' and `]' and remove uses of `changequote'.
115107         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
115108         (AC_SYS_LARGEFILE): Likewise.
115109         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
115110         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
115111         of changequote.
115112         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
115113         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
115114         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
115115         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
115117 2000-02-05  Jim Meyering  <meyering@lucent.com>
115119         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
115120         Remove explicit use of AC_HEADER_TIME.  It is required by
115121         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
115122         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
115123         in autoconf whereby the expansion of the latter ended up preceding
115124         the expansion of its prerequisite, AC_HEADER_TIME.
115125         Reported by Volker Borchert.
115127 2000-02-03  Jim Meyering  <meyering@lucent.com>
115129         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
115131 2000-02-03  Jim Meyering  <meyering@lucent.com>
115133         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
115134         rather than with `#if HAVE_UTMPNAME'.
115136 2000-02-02  Jim Meyering  <meyering@lucent.com>
115138         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
115139         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
115140         Reported by Eli Zaretskii.
115142 2000-02-01  Jim Meyering  <meyering@lucent.com>
115144         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
115146 2000-01-31  Jim Meyering  <meyering@lucent.com>
115148         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
115149         functions.  Add the time.h and sys/time.h headers along with the
115150         AC_REQUIRE'ment of AC_HEADER_TIME.
115152 2000-01-31  Jim Meyering  <meyering@lucent.com>
115154         * lib/nanosleep.h (nanosleep): Guard declaration with
115155         `#if ! HAVE_DECL_NANOSLEEP'.
115156         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
115157         the declaration in that vendor's sys/timers.h.
115158         Reported by Christian Krackowizer.
115160         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
115161         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
115162         (ISPRINT): Likewise.
115163         Reported by Tom Tromey.
115165 2000-01-30  Jim Meyering  <meyering@lucent.com>
115167         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
115169         * m4/prereq.m4 (utmp_includes): Define.
115170         Check for ut_user and ut_name members in both struct utmpx
115171         and struct utmp.
115173 2000-01-30  Jim Meyering  <meyering@lucent.com>
115175         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
115176         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
115177         header files where only utmpx.ut_user is declared.
115179         * lib/readutmp.h (UT_USER): Define.
115181 2000-01-29  Jim Meyering  <meyering@lucent.com>
115183         * m4/lib-check.m4: New file containing library-related checks from
115184         fileutils and sh-utils (textutils had none).
115186 2000-01-28  Jim Meyering  <meyering@lucent.com>
115188         * m4/perl.m4: Change format of warning message to look more like that
115189         from the missing script.  Suggestion from François Pinard.
115191 2000-01-25  Jim Meyering  <meyering@lucent.com>
115193         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
115194         well as time.h in the compile check.
115195         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
115196         Fix typo in cross-compiling case: s/yes/no/.
115198 2000-01-23  Jim Meyering  <meyering@lucent.com>
115200         * m4/jm-macros.m4: Move df-related tests here from
115201         fileutils/configure.in
115203         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
115204         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
115206         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
115207         s/space/ac_fsusage_space/.
115208         (jm_FILE_SYSTEM_USAGE): Take two parameters.
115210         * m4/ftruncate.m4: New file (derived from part of
115211         fileutils/configure.in).
115212         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
115213         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
115215         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
115216         AC_SUBST these here, rather than just in sh-util/configure.in, so
115217         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
115218         all the same.
115219         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
115220         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
115221         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
115222         (AC_SUBST(POW_LIBM)): Likewise.
115223         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
115225 2000-01-23  Jim Meyering  <meyering@lucent.com>
115227         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
115228         obstack.c.
115230 2000-01-22  Jim Meyering  <meyering@lucent.com>
115232         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
115234         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
115236         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
115237         configure.in
115238         (AC_CHECK_HEADERS): Likewise for sh-utils.
115239         (AC_CHECK_HEADERS): Likewise for textutils.
115240         Merge the three lists of headers.
115242         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
115243         from fileutils' configure.in.
115245         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
115246         code. Moved tests into their own function (_jm_DECL_HEADERS) in
115247         check-decl.m4.
115249         * m4/check-decl.m4: Use #if rather than #ifdef.
115250         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
115251         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
115252         (_jm_DECL_HEADERS): Define new function.
115253         (jm_CHECK_DECLARATIONS): Require it.
115255 2000-01-22  Jim Meyering  <meyering@lucent.com>
115257         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
115258         [! HAVE_DECL_STRTOULL]: Declare strtoull.
115259         Required for some AIX systems.  Reported by Christian Krackowizer.
115260         [TESTING] (main): New function.
115262         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
115263         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
115264         letters.
115266         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
115267         iswprint.
115269         * lib/strverscmp.c (ISDIGIT): Define.
115270         (strverscmp): Use ISDIGIT, not isdigit.
115272 2000-01-19  Jim Meyering  <meyering@lucent.com>
115274         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
115275         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
115276         defines `struct timespec' in <sys/time.h>
115278         * m4/c-bs-a.m4: Remove uses of changequote altogether.
115279         Thanks to Akim for explaining.
115281 2000-01-17  Paul Eggert  <eggert@twinsun.com>
115283         * lib/nanosleep.c (nanosleep):
115284         Don't use SA_INTERRUPT to decide whether to call sigaction, as
115285         POSIX.1 doesn't require SA_INTERRUPT and some systems
115286         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
115287         it's been part of POSIX.1 since day 1 (in 1988).
115289 2000-01-17  Jim Meyering  <meyering@lucent.com>
115291         * lib/interlock: Remove unused file.  Reported by François Pinard.
115293 2000-01-16  Paul Eggert  <eggert@twinsun.com>
115295         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
115296         alert, backslash, formfeed, and vertical tab unnecessarily in
115297         shell quoting style.
115299 2000-01-16  Jim Meyering  <meyering@lucent.com>
115301         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
115302         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
115303         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
115304         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
115306 2000-01-16  Jim Meyering  <meyering@lucent.com>
115308         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
115309         because the latter didn't work.
115311 2000-01-15  Jim Meyering  <meyering@lucent.com>
115313         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
115314         (AC_REPLACE_FUNCS): Add memcpy and memset.
115315         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
115316         Add strpbrk.
115317         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
115319 2000-01-12  Jim Meyering  <meyering@lucent.com>
115321         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
115322         (jm_PREREQ): Use it.
115323         (jm_PREREQ_READUTMP): New macro.
115324         (jm_PREREQ): Use it.
115326 2000-01-11  Paul Eggert  <eggert@twinsun.com>
115328         Quote multibyte characters correctly.
115329         * m4/c-bs-a.m4: New file.
115330         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
115331         (jm_PREREQ): Use it.
115333 2000-01-11  Paul Eggert  <eggert@twinsun.com>
115335         * m4/uintmax_t.m4: Port to autoconf 2.13.
115337 2000-01-08  Jim Meyering  <meyering@ascend.com>
115339         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
115340         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
115342 2000-01-04  Jim Meyering  <meyering@ascend.com>
115344         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
115345         jm_STRUCT_DIRENT_D_TYPE.
115346         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
115347         jm_STRUCT_DIRENT_D_INO.
115348         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
115349         jm_STRUCT_UTIMBUF.
115350         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
115351         renamings.
115352         * m4/utime.m4: Likewise.
115354         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
115355         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
115357 2000-01-03  Paul Eggert  <eggert@twinsun.com>
115359         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
115360         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
115362 2000-01-02  Jim Meyering  <meyering@ascend.com>
115364         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
115365         remember if this is necessary.
115367 1999-12-26  Jim Meyering  <meyering@ascend.com>
115369         * m4/jm-macros.m4: Use it here.
115370         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
115372 1999-12-23  Jim Meyering  <meyering@ascend.com>
115374         * m4/jm-macros.m4: Check for clock_gettime (moved from
115375         fileutils/configure.in)
115376         Check for gettimeofday.
115378 1999-12-20  Jim Meyering  <meyering@ascend.com>
115380         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
115381         autoconf-2.14a-1999-12-20.
115383 1999-12-19  Jim Meyering  <meyering@ascend.com>
115385         * m4/lstat-slash.m4: New file.
115386         * m4/jm-macros.m4: Use the new macro:
115387         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
115389 1999-12-07  Jim Meyering  <meyering@ascend.com>
115391         * m4/perl.m4: Require that File::Compare be available, too.
115392         Too many systems seem to lack it.
115394         * m4/strftime.m4: Add checks for most of the cpp macros tested in
115395         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
115397 1999-11-18  Paul Eggert  <eggert@twinsun.com>
115399         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
115400         problem with the QNX 4.25 shell, which doesn't propagate exit
115401         status of failed commands inside shell assignments.
115403 1999-11-17  Jim Meyering  <meyering@ascend.com>
115405         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
115407 1999-11-07  Jim Meyering  <meyering@ascend.com>
115409         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
115411 1999-11-06  Jim Meyering  <meyering@ascend.com>
115413         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
115414         * m4/jm-macros.m4 (jm_MACROS): Use it here.
115416 1999-11-05  Jim Meyering  <meyering@ascend.com>
115418         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
115419         configure.in of textutils, fileutils, and sh-utils into this one
115420         (shared between those packages) file.
115421         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
115422         AC_STRUCT_ST_BLKSIZE.
115424 1999-11-03  Jim Meyering  <meyering@ascend.com>
115426         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
115427         of AC_CHECK_TYPE checks includes unistd.h.
115428         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
115429         Suggestion from Akim Demaille.
115431 1999-10-30  Jim Meyering  <meyering@ascend.com>
115433         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
115434         m4-quoted string.
115435         * m4/ls-mntd-fs.m4: Likewise.
115436         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
115437         * m4/jm-winsz1.m4: Likewise.
115439         * m4/const.m4: Remove file, since the fix made it into the experimental
115440         version of autoconf.
115441         * m4/mktime.m4: Likewise.
115443         * m4/check-type.m4: Remove file, now that the latest version of
115444         AC_CHECK_TYPE takes a third arg to specify additional #includes.
115446         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
115447         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
115448         AC_CHECK_TYPE.
115450 1999-10-04  Jim Meyering  <meyering@ascend.com>
115452         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
115454 1999-09-22  Paul Eggert  <eggert@twinsun.com>
115456         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
115457         2.95.1 bug with HP-UX 10.20.
115459 1999-09-17  Jim Meyering  <meyering@ascend.com>
115461         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
115462         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
115463         due to missing strdup (against sh-utils-2.0).
115465 1999-08-29  Jim Meyering  <meyering@ascend.com>
115467         * m4/jm-macros.m4: Require jm_BISON.
115468         * m4/bison.m4: New file.
115470 1999-08-17  Paul Eggert  <eggert@twinsun.com>
115472         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
115473         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
115475 1999-08-05  Jim Meyering  <meyering@ascend.com>
115477         * m4/getline.m4: Rename test file from conftestdata to conftest.data
115478         to avoid conflicts with `conftest' on 8+3 filesystems.
115479         Suggestion from Eli Zaretskii.
115481 1999-08-04  Jim Meyering  <meyering@ascend.com>
115483         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
115484         fileutils and sh-utils (textutils's getline test was inadequate).
115485         (AM_FUNC_GETLINE): Run this test.
115486         (AC_CHECK_FUNCS): Check for getdelim.
115487         Reported by Bob Proulx.
115489 1999-08-02  Jim Meyering  <meyering@ascend.com>
115491         * m4/jm-macros.m4: Add a comment.
115493 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115495         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
115496         <inttypes.h> defines strtoumax as a macro (and not as a
115497         function).
115499 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115501         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
115502         that we can shift, multiply and divide unsigned long long
115503         values; Ultrix cc can't do it.
115505 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115507         * m4/mktime.m4: New file, which is a preview of what should appear
115508         in the next public autoconf release.
115510 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115512         * m4/lfs.m4: Remove this file.
115513         * m4/largefile.m4: New file.  It contains the old contents of
115514         lfs.m4, except that all names with prefix AC_LFS have been
115515         changed to use the prefix AC_SYS_LARGEFILE instead, to be
115516         compatible with future autoconf versions.  Also, some minor m4
115517         quoting problems have been fixed.
115519 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115521         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
115522         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
115523         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
115524         and simplify the shell code.
115526 1999-08-01  Jim Meyering  <meyering@ascend.com>
115528         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
115529         m4.
115531 1999-07-20  Jim Meyering  <meyering@ascend.com>
115533         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
115535 1999-07-15  Jim Meyering  <meyering@ascend.com>
115537         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
115539 1999-05-22  Jim Meyering  <meyering@ascend.com>
115541         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
115543 1999-05-20  Jim Meyering  <meyering@ascend.com>
115545         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
115546         Add a colon after each `then' in case $4 is empty.
115548 1999-05-16  Jim Meyering  <meyering@ascend.com>
115550         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
115552 1999-05-10  Jim Meyering  <meyering@ascend.com>
115554         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
115556         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
115557         AC_FUNC_MKTIME.
115559 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
115561         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
115563 1999-05-04  Paul Eggert  <eggert@twinsun.com>
115565         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
115566         not CPPFLAGS, so that linking works correctly in IRIX.
115568 1999-04-30  Paul Eggert  <eggert@twinsun.com>
115570         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
115572 1999-04-20  Paul Eggert  <eggert@twinsun.com>
115574         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
115575         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
115576         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
115577         jm_AC_TYPE_UNSIGNED_LONG_LONG.
115578         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
115580         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
115582 1999-04-20  Jim Meyering  <meyering@ascend.com>
115584         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
115585         AC_REPLACE xstroull if necessary.  From Paul Eggert.
115586         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
115588 1999-04-18  Jim Meyering  <meyering@ascend.com>
115590         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
115591         * m4/jm-macros.m4: Use it.
115593 1999-04-06  Jim Meyering  <meyering@ascend.com>
115595         * m4/strftime.m4: Remove test for %f.
115597 1999-03-29  Jim Meyering  <meyering@ascend.com>
115599         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
115600         superset of the AC_TYPE_* checks in the textutils, fileutils,
115601         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
115602         AC_TYPE_PID_T.
115604 1999-03-28  Jim Meyering  <meyering@ascend.com>
115606         * m4/jm-macros.m4: Define GNU_PACKAGE here.
115607         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
115608         replaced e.g., in the *.sh files of the sh-utils.
115610 1999-03-20  Jim Meyering  <meyering@ascend.com>
115612         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
115613         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
115614         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
115616 1999-03-19  Jim Meyering  <meyering@ascend.com>
115618         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
115620 1999-03-12  Jim Meyering  <meyering@ascend.com>
115622         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
115624 1999-03-07  Jim Meyering  <meyering@ascend.com>
115626         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
115627         declared.
115629 1999-02-17  Jim Meyering  <meyering@ascend.com>
115631         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
115632         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
115634 1999-02-07  Jim Meyering  <meyering@ascend.com>
115636         * m4/group-member.m4: New file -- extracted from sh-utils'
115637         configure.in.
115639         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
115640         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
115642 1999-02-06  Jim Meyering  <meyering@ascend.com>
115644         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
115645         * m4/fnmatch.m4: Likewise.
115646         * m4/getgroups.m4: Likewise.
115647         * m4/lstat.m4: Likewise.
115648         * m4/malloc.m4: Likewise.
115649         * m4/putenv.m4: Likewise.
115650         * m4/realloc.m4: Likewise.
115651         * m4/regex.m4: Likewise.
115652         * m4/stat.m4: Likewise.
115653         * m4/strftime.m4: Likewise.
115654         Suggestion from Alain Magloire.
115656         * m4/chown.m4: Use `.$ac_objext', not `.o'.
115657         * m4/fnmatch.m4: Likewise.
115658         * m4/getgroups.m4: Likewise.
115659         * m4/getline.m4: Likewise.
115660         * m4/lstat.m4: Likewise.
115661         * m4/malloc.m4: Likewise.
115662         * m4/memcmp.m4: Likewise.
115663         * m4/putenv.m4: Likewise.
115664         * m4/realloc.m4: Likewise.
115665         * m4/regex.m4: Likewise.
115666         * m4/stat.m4: Likewise.
115667         * m4/strftime.m4: Likewise.
115668         Suggestion from Alain Magloire.
115670         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
115671         an argument.
115673         * m4/regex.m4: Add a run-time Test for proper operation of
115674         re_compile_pattern.
115676 1999-01-31  Jim Meyering  <meyering@ascend.com>
115678         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
115680 1999-01-30  Jim Meyering  <meyering@ascend.com>
115682         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
115684         * m4/jm-mktime.m4: Make this a wrapper around the official
115685         AM_FUNC_MKTIME rather than my private copy, now that the official one
115686         is up to date.
115687         * m4/mktime.m4: Remove file.
115689         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
115690         * m4/uptime.m4: Likewise.
115691         * m4/uintmax_t.m4: Likewise.
115693 1999-01-28  Jim Meyering  <meyering@ascend.com>
115695         * m4/jm-macros.m4: Use jm_AFS.
115696         * m4/afs.m4: New file (from fileutils' configure.in).
115698         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
115699         * m4/chown.m4: Likewise.
115700         * m4/d-ino.m4: Likewise.
115701         * m4/d-type.m4: Likewise.
115702         * m4/fnmatch.m4: Likewise.
115703         * m4/getgroups.m4: Likewise.
115704         * m4/gettext.m4: Likewise.
115705         * m4/jm-mktime.m4: Likewise.
115706         * m4/jm-winsz2.m4: Likewise.
115707         * m4/lcmessage.m4: Likewise.
115708         * m4/ls-mntd-fs.m4: Likewise.
115709         * m4/malloc.m4: Likewise.
115710         * m4/memcmp.m4: Likewise.
115711         * m4/putenv.m4: Likewise.
115712         * m4/realloc.m4: Likewise.
115713         * m4/st_mtim.m4: Likewise.
115714         * m4/strftime.m4: Likewise.
115716 1999-01-16  Jim Meyering  <meyering@ascend.com>
115718         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
115719         (ARGMATCH_DIE_DECL): Define.
115721 1999-01-12  Jim Meyering  <meyering@ascend.com>
115723         * m4/Makefile.am.in: Rewrite to avoid using fmt.
115724         Reported by Lars Hecking.
115726 1999-01-10  Jim Meyering  <meyering@ascend.com>
115728         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
115729         gross kludge.
115730         * m4/inttypes_h.m4: Likewise.
115731         * m4/lstat.m4: Likewise.
115732         * m4/malloc.m4: Likewise.
115733         * m4/readdir.m4: Likewise.
115734         * m4/realloc.m4: Likewise.
115735         * m4/st_dm_mode.m4: Likewise.
115736         * m4/stat.m4: Likewise.
115737         * m4/utimbuf.m4: Likewise.
115738         * m4/utimes.m4: Likewise.
115740         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
115741         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
115742         comments in config.h.in are meaningful.
115744         * m4/jm-macros.m4: Require autoconf-2.13 here.
115746         * m4/regex.m4: By default, don't use the included regex.c on systems
115747         with glibc 2.  Suggestion from Uli Drepper.
115749 1999-01-02  Jim Meyering  <meyering@ascend.com>
115751         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
115753 1998-12-18  Jim Meyering  <meyering@ascend.com>
115755         * m4/Makefile.am.in (Makefile.am): Simplify rule.
115756         Based on a suggestion from Lars Hecking.
115758 1998-11-16  Paul Eggert  <eggert@twinsun.com>
115760         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
115762 1998-11-16  Jim Meyering  <meyering@ascend.com>
115764         * m4/lfs.m4: Double-quote the `uname...` expression.
115766 1998-11-14  Jim Meyering  <meyering@ascend.com>
115768         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
115769         * m4/stat.m4: Likewise.
115771 1998-11-03  Jim Meyering  <meyering@ascend.com>
115773         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
115774         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
115776 1998-10-18  Jim Meyering  <meyering@ascend.com>
115778         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
115780 1998-10-17  Jim Meyering  <meyering@ascend.com>
115782         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
115783         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
115784         calls for those previously hard-coded headers.  Instead, take a new
115785         parameter.
115786         (jm_CHECK_DECLARATIONS): Reflect interface change.
115787         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
115788         (jm_CHECK_DECL_LOCALTIME_R): New macro.
115790         * m4/mktime.m4: Test for spring-forward gap before long-running test.
115792 1998-10-14  Jim Meyering  <meyering@ascend.com>
115794         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
115795         instead of "TZ=America/Vancouver".  From Paul Eggert.
115797 1998-10-11  Jim Meyering  <meyering@ascend.com>
115799         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
115800         This adds a test for a recently added compatibility fix for mktime.c.
115801         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
115803 1998-09-27  Jim Meyering  <meyering@ascend.com>
115805         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
115807         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
115808         ../configure.in, including a change from Gordon Matzigkeit to allow
115809         cross-compiling for the Hurd.
115811         * m4/glibc.m4: New file/macro to test for the GNU C Library
115812         versions 1 and 2.  From Gordon Matzigkeit.
115813         Indent.
115815 1998-09-21  Jim Meyering  <meyering@ascend.com>
115817         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
115819 1998-08-18  Paul Eggert  <eggert@twinsun.com>
115821         Port nanosecond-resolution times to UnixWare 2.1.2 and
115822         pedantic Solaris 2.6.
115824         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
115825         AC_STRUCT_ST_MTIM.
115826         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
115827         Generate name of ns member, instead of just 1 or undef.
115828         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
115830 1998-08-15  Jim Meyering  <meyering@ascend.com>
115832         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
115833         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
115834         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
115835         instead of jm_TYPE_SSIZE_T.
115837 1998-08-12  Jim Meyering  <meyering@ascend.com>
115839         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
115841 1998-08-02  Jim Meyering  <meyering@ascend.com>
115843         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
115844         in acconfig.h manually.
115846 1998-07-31  Paul Eggert  <eggert@twinsun.com>
115848         * m4/st_mtim.m4: New file.
115850 1998-07-28  Jim Meyering  <meyering@ascend.com>
115852         * m4/utimes.m4: Undef stat.
115854 1998-07-25  Jim Meyering  <meyering@ascend.com>
115856         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
115857         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
115859 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
115861         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
115862         uid and gid actually remain unchanged.
115864 1998-07-07  Jim Meyering  <meyering@ascend.com>
115866         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
115868 1998-07-04  Jim Meyering  <meyering@ascend.com>
115870         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
115871         to prove that this macro can be used in packages without regex.c.
115873 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
115875         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
115876         is to be used.
115878 1998-07-03  Jim Meyering  <meyering@ascend.com>
115880         * m4/gettext.m4: Add -lintl if it's found to be necessary.
115882         * m4/gettext.m4: New file -- from gettext-0.10.35.
115883         * m4/lcmessage.m4: Likewise.
115884         * m4/progtest.m4: Likewise.
115886         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
115887         * m4/jm-macros.m4: Require the new macro.
115889 1998-06-29  Jim Meyering  <meyering@ascend.com>
115891         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
115892         for the definition of NGROUPS (used in a system header included
115893         by sys/mount.h).
115895 1998-06-28  Jim Meyering  <meyering@ascend.com>
115897         * m4/ls-mntd-fs.m4: New file.
115898         * m4/fstypename.m4: New file.
115900         * m4/jm-macros.m4: Require the new macro.
115901         * m4/jm-glibc-io.m4: New file.
115903 1998-05-19  Jim Meyering  <meyering@ascend.com>
115905         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
115906         * m4/lchown.m4: New file.
115908         * m4/Makefile.am.in: New file.
115909         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
115911 1998-05-14  Jim Meyering  <meyering@ascend.com>
115913         * m4/Makefile.am (EXTRA_DIST): Add them.
115914         * m4/jm-macros.m4: New file.
115915         * m4/utimbuf.m4: New file.
115917 1998-05-12  Jim Meyering  <meyering@ascend.com>
115919         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
115921 1998-05-11  Jim Meyering  <meyering@ascend.com>
115923         * m4/isc-posix.m4: New file.
115925 1998-05-10  Jim Meyering  <meyering@ascend.com>
115927         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
115929 1998-05-09  Jim Meyering  <meyering@ascend.com>
115931         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
115932         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
115933         with automake.
115935         * m4/ssize_t.m4: New file.
115936         * m4/mktime.m4: Remove file -- the new automake has this now.
115938 1998-04-26  Jim Meyering  <meyering@ascend.com>
115940         * m4/assert.m4: New file.
115941         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
115943 1998-04-05  Jim Meyering  <meyering@ascend.com>
115945         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
115946         (jm_PREREQ): Use it here.
115948 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
115950         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
115951         in acconfig.h.
115953 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
115955         * m4/prereq.m4: New file.
115956         * m4/error.m4: New file.
115957         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
115959 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
115961         * m4/getline.m4: Don't set am_cv_func_working_getline before the
115962         cache-check for the same variable -- that defeated the purpose of
115963         the test; the test program was never run.  This was a problem only
115964         on systems with losing getline functions -- HP-UX 10.20 is one.
115965         Reported by Bjorn Helgaas.
115967 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
115969         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
115971 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
115973         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
115975         * m4/const.m4: New file.  Use an initializer in this declaration
115976         typedef int charset[2]; const charset x;
115977         Reported by Bob Glickstein.
115979 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
115981         * m4/chown.m4: Fix reversed types on -1 args to chown.
115982         From Kaveh Ghazi.
115984 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
115986         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
115987         Add lseek and memchr.
115989         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
115990         T.E.Dickey <dickey@clark.net> said that some older preprocessors
115991         have a 20-character limit on names.
115993 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
115995         * m4/inttypes_h.m4: New file.
115996         * m4/uintmax_t.m4: New file.
115997         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
116000         -----
116002         Local Variables:
116003         coding: utf-8
116004         End:
116006         Copyright (C) 1997-2018 Free Software Foundation, Inc.
116008         Copying and distribution of this file, with or without
116009         modification, are permitted provided the copyright notice
116010         and this notice are preserved.